Forum Discussion

RegasQA's avatar
RegasQA
New Contributor
5 years ago
Solved

Search for dynamic id when creating an item Keywordtest

I have a use case where a new item is created with every test run. Every time a new item is created, a new ID is also generated. After the item is created, I have to use the ID of that specific item...
  • Marsha_R's avatar
    Marsha_R
    5 years ago

    Yes, it will be automatic. 

     

    https://support.smartbear.com/testcomplete/docs/keyword-testing/variables.html

     

    You want the part in here that talks about assigning values during a test run.  After the id is generated, your test will look for the ID and assign that value to a variable.  Then instead of a hard-coded value, you will use that variable for the search.