Forum Discussion

rebecca_pelaez's avatar
11 years ago

How to record a number generated by the application and then find that number in a grid

I'm evaluating TestComplete for purchase (so i'm really new to the program) and using an previous script as my test.  In the test, I generate an ID in my application.  I need a way to 'remember' that ID (I guess i could use a checkpoint) but then i need to find that ID later in a grid and select it by clicking in a check box. 



I tried sorting the grid on the ID in descending order but TestComplete did not recognize my actions when i right clicked to select the sort order. 



Being so new, i'm not sure what to search on the Help / Forums to look for a solution. 



Any Advice?

1 Reply

  • Ryan_Moran's avatar
    Ryan_Moran
    Valued Contributor
    Start here.

    Eventually, if you continue with Test Complete, you'll likely find that you will be writing more code than using the recorder. So for storing the ID or row of the grid you'll want to store it in a variable. If you need the ID persisting between tests check this.