Forum Discussion
TestcComplete has builtin feature to organize tests:
Does it help?
No, this is not the solution. I have been using TestComplete since version 8. I am aware of that capability, which creates a real maintenance/execution issue when you have thousands of tests for the application, and you want to run ONE specific set of tests, such as smoke.
Our framework has a driver located in the Script\Drivers Library module. This driver needs to locate the tests in the specified folder and execute tests from the requested set of tests, that is, from Script\Smoke.
Sorry I didn't specify that earlier. WHen I execute the driver, it locates the python files in Script\Smoke, but fails to execute (various error messages). WHen I execute the code in Script\Smoke and it is defined as a function, I can select execute current routine and the code works. If I have it defined as a straight module to execute, python execution fails.
It is marrying the driver that finds the files to execute and then attempts to execute them successfully that it fails.
- baxatob7 years agoCommunity Hero
"If I have it defined as a straight module to execute, python execution fails.”
TestComplete supports Python with a few limitations. One of them: In TestComplete, a test run must start only from a function.
https://support.smartbear.com/testcomplete/docs/scripting/specifics/python.html
Can it be a reason of your issue?- ray_mosley7 years agoFrequent Contributor
I tried it both ways - as function and as straight code. Neither worked.
Also tried different floder structures and even all code under Project.Path + "\\Script"
- baxatob7 years agoCommunity Hero
Now I'm confused, because previously you said: "When I execute the code in Script\Smoke and it is defined as a function, I can select execute current routine and the code works."
Can you provide your project structure and the problem piece of code in screenshots?
Related Content
- 13 years ago
Recent Discussions
- 57 minutes ago
- 5 hours ago