Tuesday, July 12, 2011

Testing With DOM Interactions -- Guide to Examples (Part 2)

This article presents eValid example scripts that illustrate use of the index/motion (structural testing) DOM manipulation commands. These scripts were developed using the available DOM Technology Resources to accomplish the results demonstrated in each "snippet".

In most cases the index/motion (structural testing) scripts are extremely robust in that these test script passages do not depend on specific page or application properties, but only on objects and effects that can change location and visual detail.

Tests built using these techniques survive the effect of dynamic page changes, including inconsequential changes that don't affect the underlying functionality. They also address basic test playback synchronization issues and can still provide fine-detail client-side performance data extraction suitable for large-scale loading experiments.

Link Short Example Explanation
Third Item in Dropdown List Find the third item in a dropdown list and click on it.
Nth Item in a Select Box Choose the Nth entry in a select box and click on it.
Select Two Elements in a CheckBox Select two elements of a checkbox.
Find and Follow a Specified Link Find a link based on knowing something about it and then follow it.
Find A Dynamic Tag And Click It Locate a dynamic element tag and then click on it.
Text Entry Into a JavaScript Editor Field Find a particular input field that is handled by JavaScript and type specific text into it.
Validate That One Item Matches Another Extract two values from different spots on a page and compare the extracted values.
Using Regular Expressions Using the IndexFindElementEX command to find using multiple "name=value" pairs.

No comments: