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 want to create using keyword tests and final 6 test steps I want to create scripts, then how to order them and put a sequence in Test Complete,.i.e keyword execution first and then script test execution. or vice versa etc.
Best,
Prabhjot
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