Problems with a Chooser

"Glen McKittrick" <[email protected]>
Newsgroups gmane.comp.web.httpunit.devel
Message-ID <[email protected]>
Hi,

I am using HttpUnit to test some eforms, and i having difficult with forms 
that contain chooser lists.
When I use HttpUnit to retrieve the chooser parameter and its value from the 
eform I get the correct parameters back, but I can’t get the correct values 
back. (I expected to get back a list containing Andrew Alan Kevin and Sonya, 
as the source would indicate) Anyone any idea why? I have listed the output 
of my test and the actual form I am testing against.

Thanks

Glen.

testall:
   [java] Running ExecuteAllTests!
   [java] .EFORMTEST: Executing test for form: Enable1.xml
   [java] EFORMTEST: Initializing webconversation
   [java] EFORMTEST: Parm Name: title2leftSide Parm Value: null Parm State: 
false
   [java] EFORMTEST: Parm Name: chooserButton_title2_rightButton Parm Value: 
null Parm State: false
   [java] EFORMTEST: Parm Name: chooserButton_title2_leftAllButton Parm 
Value: null Parm State: false
   [java] EFORMTEST: Parm Name: otherButton Parm Value: null Parm State: 
false
   [java] EFORMTEST: Parm Name: form Parm Value: Enable1 Parm State: false
   [java] EFORMTEST: Parm Name: page Parm Value: Page1 Parm State: false
   [java] EFORMTEST: Parm Name: title2rightSide Parm Value: null Parm State: 
false
   [java] EFORMTEST: Parm Name: chooserButton_title2_rightAllButton Parm 
Value: null Parm State: false
   [java] Got values for title 2!
   [java] Parm value:
   [java] EFORMTEST: Parm Name: title2 Parm Value:  Parm State: false
   [java] EFORMTEST: Parm Name: chooserButton_title2_leftButton Parm Value: 
null Parm State: false
   [java] EFORMTEST: Assertion Error Occurred!

   [java] Time: 1.391

   [java] OK (1 test)



<Form>
  <Name>Enable2</Name>
  <Startup>Page1</Startup>
  <Style>Style2.css</Style>
  <SectionHeaderWidth>5</SectionHeaderWidth>
  <Section>
      <Name>Section1</Name>
      <Startup>Page1</Startup>
      <Page>
          <Name>Page1</Name>
          <Group>
              <Line>
                  <Field>
                      <Name>title2</Name>
                      <Label>Title2:</Label>
                      <Chooser>
                          <Depth>5</Depth>
                          <Combo>
                              <Line>
                                  <Label>Andrew</Label>
                                  <Value>AI</Value>
                              </Line>
                              <Line>
                                  <Label>Kevin</Label>
                                  <Value>KW</Value>
                              </Line>
                              <Line>
                                  <Label>Alan</Label>
                                  <Value>AG</Value>
                              </Line>
                              <Line>
                                  <Label>Sonya</Label>
                                  <Value>SF</Value>
                              </Line>
                          </Combo>
                      </Chooser>
                  </Field>
              </Line>
          </Group>
      </Page>
  </Section>
</Form>

_________________________________________________________________
Txt a lot? Get Messenger FREE on your mobile.  
https://livemessenger.mobile.uk.msn.com/

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

_______________________________________________
Httpunit-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/httpunit-develop
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.