Forum Discussion
ritesh_chauhan
11 years agoContributor
Hello Gena,
Thanks for your reply.
I tried this but didn't worked out for me.
Sys.OleObject("WScript.Shell").Run("C:\\Python27\\python.exe C:\\myfile.py");
I have attached a sample python script (its in txt format, please change this into.py as this format was not attachable) which i tried to execute 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 as you suggested
Sys.OleObject("WScript.Shell").Run("C:\\Python27\\python.exe C:\\test.py");
But the output file test.txt didn't get generated.
Please advice.
Regards,
Ritesh Chauhan
Related Content
- 6 years ago
- 9 years ago
Recent Discussions
- 51 minutes ago
- 2 days ago