Ask a Question

Using a returned value from a tested app

SOLVED
jaredjamieson
Occasional 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

2 REPLIES 2
rraghvani
Champion Level 2

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.

jaredjamieson
Occasional Contributor

This is exactly what I was trying to look for.  Thank you.

cancel
Showing results for 
Search instead for 
Did you mean: