Hi
I am looking to call python script from Test complete. Is this possible?
I tried this but didn't worked out for me.
Sys.OleObject("WScript.Shell").Run("C:\\Python27\\python.exe C:\\myfile.py");
I tried to execute a sample python script via TestComplete. This script generates a .txt file.
My python file: test.py
Path where it is placed: C:\\
Output of this python file: test.txt
I placed this test.py file in C:\ and then used below function in TestComplete:
Sys.OleObject("WScript.Shell").Run("C:\\Python27\\python.exe C:\\test.py");
But the output file test.txt didn't get generated.
Please advice.
If this is not possible this way, then can I call a python script from a jscript?
Means that, this jscript will be called into the test complete which in turns finally call that python script.
is this possible?
If still not, is there any other possible way?
Looking forward to someones reply.
Regards,
Ritesh Chauhan