How To open a testedapp file(Test Document) from a path
SOLVED- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-17-2021
06:55 AM
09-17-2021
06:55 AM
How To open a testedapp file(Test Document) from a path
Hi. My TestedApp is Windows word and i need to open a test document which is a word file. How can i open it by using the path of the file in a script.
Solved! Go to Solution.
2 REPLIES 2
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-17-2021
10:43 AM
09-17-2021
10:43 AM
Option 1. Automate the step to click on New and File
Option 2. Use Command Line para available for Window Word : winword.exe <filepath> you can set it from the code
as shown below
TestedApps.notepad.Params.ActiveParams.CommandLineParameters = "\"" + "C:\\My File.txt" + "\"";
TestedApps.notepad.Run();
Link: https://support.smartbear.com/testcomplete/docs/testing-with/tested-apps/desktop/command-line.html
Please consider giving a Kudo if I write good stuff
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2021
07:34 AM
09-24-2021
07:34 AM
Hi Anupam, thank you for the suggestions!
@sandeep7972 did this advice help?
Sonya Mihaljova
Community and Education Specialist
