Updated : 01/10/2018
Rational Test Workbench Web UI Tester (RTW Web) is a GUI HCL OneTest UI tool for web applications. Rational 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 IBM 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 Rational 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 Rational Test Workbench Web UI Test where name of IBM 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, Rational Test Workbench Web UI Test variable will be initialized with error message and control will go back to test. In case of all matches, Rational 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, Rational 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.
Rational Test Workbench Web UI Test is a trademark of IBM Corporation in at least one jurisdiction and is used under license.