![]() |
Canoo Webtest
Hi all,
i'm begining testing on a web project using either canoo or jmeter. canoo seems to be the more powerful tool but i'm finding in hard to find good working examples. firstly i simply want to get the test to put text into fields and submit it. the following code snipet should do this <setInputField name="username" value="alex" description="name set"/> but the following verification fails! <verifyText text="alex" description="name"/> any help on this would be appreciated and and pointers to good canoo(or jmeter) sites would be helpful. thanks in advance edit: canoo is written in xml and executed through command prompt btw. |
Coincidentally, I was playing around with Webtest a few days ago. In the end I plumped for JWebUnit, however, as the XML for my Webtests was getting too messy.
Returning to the subject at hand, the verification fails because you're using the wrong command. The verifyText command looks for a text string in the HTML of the document being tested. When you enter in a value into an input field, you do not change the underlying HTML, and thus verifyText will not detect your changes. verifyInputField, on the other hand, may do what you require. |
thanks for that - forgot i had posted here!
one other question if you wouldn't mind - the app i'm testing uses jsp's which load items onto a page. is there a way of identifying which item is which( each has a fix item link next to it and for example i want to click the 3rd item) the items are numbered but it is impossible to know what item number will appear where as this page is the result of a search |
You can use verifyText to check whether a string of text is on the page, or whether a regular expression matches on the page. And clickLink will give you the ability to click on a link. Those two actions might be able to do what you want.
|
| All times are GMT -5. The time now is 12:36 PM. |
Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC