Test Workbench Web UI Tester (RTW Web) is a GUI Functional Tester tool for web applications. Test Workbench Web UI Tester records user actions on the User Interface of the Application under test and generates a test script in simple English like statement, this test script could be used to playback on same Application. It supports HTML5, JQuery and the Dojo-based web application.
Example of automating functional/data validationTo explain this scenario, we have taken a use case to validate product search results on search page. The user needs to validate search results and the results link’s count on page 1 of the ibm.com search results.
Using recorded steps we can easily reach on results page but post that validating searched result is challenging for Test Workbench Web UI Tester as it requires processing of data displayed on the application.
Validate that the search result belongs to the searched product:
Validate the count of search results:
function validateLinks() will be called by Test Workbench Web UI Test where name of product to be searched will be passed as parameter. First, it locates all the links on the search result page and will filter out search result links. Inside every search result link text, it will search for searched product name. If there is a mismatch, Test Workbench Web UI Test variable will be initialized with error message and control will go back to test. In case of all matches, Test Workbench Web UI Test variable will be initialized with success message.
The getLinks() function finds all links. Iterates through them one by one and matches the text of link with searched product name. Finally the function returns the count of all the matched links.
At the end,Test Workbench Web UI Test variable specified under the details is assigned with the search result count.
Navanit K Singh
Senior Technical Architect
Navanit is a Senior Technical Architect at HCL Technologies. He has 11 years of experience and is currently leading the Test Workbench Web UI Tester test team.