Capturerd The Total

How to apply eValid to functional testing of web applications.

Capturerd The Total

Postby utesting » Fri May 07, 2010 3:19 pm

When I get to a page I want to get the Total. Then after I add a value I would like to get the total again. If the second total is first total + 1 then pass else fail the script.

Using validation I have capturerd the total, however the total is statically written in the code ( like Total1 = 53). What do I need to do so when I play back the system gets the latest total?
utesting
 
Posts: 1
Joined: Fri May 07, 2010 3:08 pm

Re: Capturerd The Total

Postby eValid » Mon May 17, 2010 8:55 am

utesting wrote:When I get to a page I want to get the Total. Then after I add a value I would like to get the total again. If the second total is first total + 1 then pass else fail the script.

Using validation I have capturerd the total, however the total is statically written in the code ( like Total1 = 53). What do I need to do so when I play back the system gets the latest total?

Simple enough.

Assuming you are familiar with eValid's structural (index/motion) commands then all you have to do is find the DOM element index that has the specified value as the Total and use an IndexSave command to pick up the value of that property, and a ValueSave to store the resulting string in a local file.

At playback time this sequence will save to the local file the then-current Total.

To validate the result you can compare the two with the CompareStrings command.

eValid Suppor Crew
eValid
 
Posts: 2396
Joined: Tue Jan 01, 2008 12:48 pm
Location: USA


Return to Desktop and Mobile Device Functional Testing

Design Downloaded from free phpBB templates | free website templates | Free Web Buttons