The pros and cons of using structural tests

Applying eValid to AJAX applications that require advanced DOM-based methods.

The pros and cons of using structural tests

Postby Enriquer » Tue May 07, 2013 4:08 pm

What are the pros and cons of using structural tests versus allowing the recorded FollowLink commands to stay in place?
Enriquer
 
Posts: 1
Joined: Tue May 07, 2013 4:04 pm

Re: The pros and cons of using structural tests

Postby eValid » Tue May 14, 2013 7:21 am

If the FollowLink commands in your script...well, if it's working why fix it.

The reason you'd convert the recorded FollowLink into a structural sequence probably is because the FollowLink doesn't work because the link moves around on the page so much that even Adaptive Playback won't solve the problem.

The big advantage of a structural test is, it makes the test less brittle over time and that will save you work in the long run.

There's some work to be done to get this benefit. You have to identify (in the page) some fixed point that uniquely identifies the element where the link to be followed is on the page. Usually the ID tag is unique and you can use that. If not, then you have to pick some other unique quantity or property to use.

Then you simply insert an IndexFollowLink command to trigger the event on that particular element and you're done.

The big advantage of this extra piece of work is that now your script will be invulnerable to change. If you're been having failures, this effort will be worth it.

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


Return to AJAX Applications & DOM Processing

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