Forum Discussion

prabhjot88singh's avatar
prabhjot88singh
Contributor
6 years ago

How to work with Keyword testing and scripting together

Hello Team,   Could somene advise on how does Keyword testing and scripting works together in Testcomplete?   This means, lets say we have a test case with 10 steps, and first 4 test steps i ...
  • LinoTadros's avatar
    6 years ago

    to bring all the Keyword tests and scripts together, you use the TestItems window on the project level by adding items from both keywords and scripts

    Take a look at the screenshot below to see the combination between the two at the project level for execution

     

    You can also call a Keyword test programmatically from a script like:

    KeywordTests.Test1.Run();

    or call a script from a Keyword Test by using the Call Script operation like in the second screenshot below

     

    Good luck

    -Lino