I have a query regarding the use of verification point for search results in our application development:
1.BackGround: For our application (search functionality), I recorded a script which is quite static in nature. The problem is that for different search inputs there are different results and for each result I have to insert seperate verification point to the results. The only difference is the test inputs which is provided but the application flow is same.
2. Purpose: The purpose of the mail is that I want to know: Is there anyway to make the script dynamic in nature which can search the results at any point of time even if the data changes,i.e., data at the time of recording is different than the data at the time of playback. In other words, if the data changes then also the script should be able to identify the search results with success.
During playback, you can vary the search criteria using the datapools. Depending on the input, you should be aware that what would be the result. You have to retrieve and verify the results according to your input. You may use SQAGetProperty function to retrieve values from a control used in your application.
"A highly advanced bug is indistinguishable from a feature."
If so, Robot can execute the same query against the database (using the SQA Basic SQL Commands), and compare those results with the application query results. You'll need to set up a variable - to reflect the different search criteria. And you'll need to know SQL, in order to create the same query.