The equivalent of the SyncOnText command

How to use eValid to support regression testing.

The equivalent of the SyncOnText command

Postby aLorenzo » Tue Aug 07, 2012 3:57 pm

What is the equivalent of the SyncOnText command in term of your structural commands?
aLorenzo
 
Posts: 1
Joined: Tue Aug 07, 2012 3:51 pm

Re: The equivalent of the SyncOnText command

Postby eValid » Thu Aug 16, 2012 3:54 pm

aLorenzo wrote:What is the equivalent of the SyncOnText command in term of your structural commands?
That is a very good question, and the answer is that there is no direct equivalent in structural commands to the
SyncOnText command.

Recall that SyncOnText scans the visible text of a phrase that you selected during a recording -- or a specific proposed visible text that you've edited into the script independent of recording -- hoping to find it in the current page. If it doesn't then, after waiting out the ReTry Interval (a value that you can set as a user), it tries again. Eventually the desired text is found, and playback continues. Otherwise, the upper limit for how long to wait for a page to download is tripped and playback goes on to the next command after an ERROR message.

The closest equivalent is the SynOnSelectedObjProperty (Synchronize on a Selected Object Property), but for technical reasons this command is limited to looking for (waiting for) a particular value or combination of values on ONE element in the page. Such an element might have its state changed by the actions of JavaScript supporting AJAX, for example.

The SyncOnText command uses a very quick algorithm to get all of the elements' visible text so it meets the criteria of having a very low overhead. The nearest equivalent command, IndexFindElement is much higher -- too high to be useful in a synchronization loop.

-- eValid Support
eValid
 
Posts: 2392
Joined: Tue Jan 01, 2008 12:48 pm
Location: USA


Return to Regression Testing

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