How to select a file by using the python script file on Tested Applications run-mode parameters
SOLVED- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
How to select a file by using the python script file on Tested Applications run-mode parameters
Hi.
I write my generic windows application's path in the Tested Applications>run-mode parameters>Application section manually. However, I keep building newer versions of the same application, and I do not want to add a new item from Tested Applications and specify the path each time whenever I create a newer version. For that reason, I've written a python code, where it selects the latest .msi file in the specified folder and prints out the path. However, I don't know how to integrate this code into Test Complete file selection text box in Run-Mode Parameters. I want test Complete to select the file using my code instead of manually typing the path. I've tried adding a code template, but it doesn't work for Tested Applications>run-mode parameters>Application section. It only works for code scripts. Is there a way to implement my code into a text box for path selection?
Thanks.
Solved! Go to Solution.
- Labels:
-
Command Line
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I'm looking at the Application section here.
I think what you can do is use your python routine to set a project or project suite variable and build that variable into your application path.
Marsha_R
[Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you. I've created a project suite variable, and it worked.
