Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Apr 7th, 2006, 3:35 AM   #1
brasil181
Newbie
 
Join Date: Apr 2006
Posts: 2
Rep Power: 0 brasil181 is on a distinguished road
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.
brasil181 is offline   Reply With Quote
Old Apr 7th, 2006, 7:27 AM   #2
Arevos
Programming Guru
 
Arevos's Avatar
 
Join Date: Aug 2005
Location: England
Posts: 1,499
Rep Power: 4 Arevos is on a distinguished road
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.
Arevos is offline   Reply With Quote
Old Apr 13th, 2006, 8:50 AM   #3
brasil181
Newbie
 
Join Date: Apr 2006
Posts: 2
Rep Power: 0 brasil181 is on a distinguished road
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
brasil181 is offline   Reply With Quote
Old Apr 13th, 2006, 9:51 AM   #4
Arevos
Programming Guru
 
Arevos's Avatar
 
Join Date: Aug 2005
Location: England
Posts: 1,499
Rep Power: 4 Arevos is on a distinguished road
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.
Arevos is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 8:35 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC