3 messages in com.canoo.lists.webtestRE: [Webtest] setinputfield
FromSent OnAttachments
Ji Kim29 Jun 2004 16:24 
Scot Hale29 Jun 2004 16:30 
Ji Kim30 Jun 2004 11:22 
Subject:RE: [Webtest] setinputfield
From:Ji Kim (Ji.@cnet.com)
Date:06/30/2004 11:22:01 AM
List:com.canoo.lists.webtest

Thanks, Scot.

In somewhat related problem, I can't seem to submit a form that should append a name/value pair if the current GET query string already contains the named tag with different values. Within the same page, I can submit a form that can result a query string that contains multiple occurrence of tags with different values using <setcheckbox> and <clickbutton>. (the application I am testing displays multiple pages of listing and the checkbox field values with the same name are appended to the url for comparison form submission)

I have been using storeregex and storexpath whenever I run into problems like these, but my test scripts are getting pretty ugly. I don't recall such restriction on the specification of query string of uri.

-----Original Message----- From: webt@gate2.canoo.com [mailto:webt@gate2.canoo.com] On Behalf Of Scot Hale Sent: Tuesday, June 29, 2004 4:31 PM To: 'webt@lists.canoo.com' Subject: RE: [Webtest] setinputfield

When I have this problem, I use the <invoke> step.

Then I append the form elements to the url, e.g. url="doSomething.jsp?name=Scot&password=password&language=java"

you can use the regex to find the values of different form elements if they are dynamic. Don't forget about the hidden form elements if there are any.

Does anybody have a better solution than this? If so I would be interested in the solution.

-----Original Message----- From: Ji Kim [mailto:Ji.@cnet.com] Sent: Tuesday, June 29, 2004 4:24 PM To: webt@gate2.canoo.com Subject: [Webtest] setinputfield

Hello,

I know that the values set via "setinputfield" are added to next request when subsequently "clickbutton" is used. How can I mimic the behavior for the clicklink? Did anyone else have a similar problem?

Thanks.

Ji