Ask a Question

Desktop application Launch

SOLVED
sandeep7972
Occasional Contributor

Desktop application Launch

. Im trying to automate a desktop application(MS Word). So i have this test document which is a doc file. My questioon is is it possible to include the test document in the project instead of going to the folder where i have saved the document. Because if i send this script to someone else, the location of the document in their device might be different. 

 

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions
Marsha_R
Community Hero

Re: Desktop application Launch

What we do is always put documents in a folder with the same name inside the project folder, say \Data or \Documents

 

You can find the project folder this way no matter where it is

https://support.smartbear.com/testcomplete/docs/reference/project-objects/project/project/path.html

 

Then as the example shows, you can build the path to the document without knowing exactly where it is on someone's machine.


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

View solution in original post

2 REPLIES 2
Marsha_R
Community Hero

Re: Desktop application Launch

What we do is always put documents in a folder with the same name inside the project folder, say \Data or \Documents

 

You can find the project folder this way no matter where it is

https://support.smartbear.com/testcomplete/docs/reference/project-objects/project/project/path.html

 

Then as the example shows, you can build the path to the document without knowing exactly where it is on someone's machine.


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

View solution in original post

anupamchampati
Frequent Contributor

Re: Desktop application Launch

1. you can use Variables also and define the local value based on the system but this needs to be done all the time, useful if the size of the file is too big.
2. you can add in the Project folder and use the path as Marsha mentioned.
3. You can also use Stores- Files in this you can use it for verification also and will be automatically in sync with the Version Control if used any.
https://support.smartbear.com/testcomplete/docs/testing-with/checkpoints/stores/files/index.html

cancel
Showing results for 
Search instead for 
Did you mean: