Ask a Question

How To open a testedapp file(Test Document) from a path

SOLVED
sandeep7972
New Contributor

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.

1 ACCEPTED SOLUTION

Accepted Solutions
anupamchampati
Frequent Contributor

Re: How To open a testedapp file(Test Document) from a path

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

View solution in original post

2 REPLIES 2
anupamchampati
Frequent Contributor

Re: How To open a testedapp file(Test Document) from a path

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

View solution in original post

sonya_m
Community Manager

Re: How To open a testedapp file(Test Document) from a path

Hi Anupam, thank you for the suggestions!

 

@sandeep7972 did this advice help?


Sonya Mihaljova
Community and Education Specialist

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
cancel
Showing results for 
Search instead for 
Did you mean: