jaredjamieson
2 years agoOccasional Contributor
Using a returned value from a tested app
I added a tested app into my testcomplete project. This python script is able to be ran using TestedApp.script_name.Run(); I am able to successfully deliver command line parameters to this script. This script then returns a value. I want to retrieve this value within my testcomplete project. Is this possible?
This is what I would like to do:
process = TestedApp.script_name.Run();
** App runs and completes. It generates the number 25 **
Log.Message(process);
Output:
25
Is this a console or windows application?
If you look at the coding that's provided in Running PowerShell Scripts From TestComplete, it has examples on how to capture the output.