Forum Discussion

RegasQA's avatar
RegasQA
New Contributor
6 years ago

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 in a search bar. I just can't figure out how to do that. Is there anyone who can help me?

  • When the id is created, capture the value and save it in a variable.  Use that variable for the search.

    • RegasQA's avatar
      RegasQA
      New Contributor

      Thanks for your comment. My goal is that I can run the test automatically and that I don't have to do any manual action with every run. Does this solution work?

      PS. I am just starting with testcomplete ;-)