cancel
Showing results for 
Search instead for 
Did you mean: 

Opening a specific path using Test Complete

SOLVED
Highlighted
Contributor

Re: Opening a specific path using Test Complete

Hello,

 

Can anyone tell me how to open a word document from C:\XYZ.

I can create a word document using aqfile.

But I want to launch the word document so that I can automate Subversion plugin.

Highlighted
Contributor

Re: Opening a specific path using Test Complete

Now my scripts stopped w orking even after adding registry.

It only works when I am watching the execution with remote desktop.

Kindly suggest solution

Highlighted
Contributor

Re: Opening a specific path using Test Complete

The testcase which I want to do is :-

Go to a folder
Perform SVN Checkout
Add a folder
Commit the folder
Add a Word document
Launch Word document, Perform action and commit
Add an Excel sheet
Launch Excel sheet, Perform action and commit.

Please someone help me.

Community Manager

Re: Opening a specific path using Test Complete

You can open a Word file by using it's COM object. Perhaps, it will be a way you can use to run the needed plugin also. 

Here is a sample code to open the file:

'VBScript
Set oWord = Sys.OleObject("Word.Application")
oWord.Visible = True
oWord.Documents.Open "C:\YourFile.doc"

 

---------
Tanya Gorbunova
SmartBear Community Manager

Learn SmartBear products in a fun and easy way and prove your knowledge!
>>Participate in the TechCorner Challenge today

View solution in original post

Highlighted
Contributor

Re: Opening a specific path using Test Complete

But what about my other issues.

How shall I launch the file explorer and performs my test cases.

New Here?
Join us and watch the welcome video:
Announcements
Join TechCorner Challenge!
Want a fun and easy way to learn TestComplete? Try solving weekly TechCorner challenges and get into the Leaderboard!

Challenge Status

How to execute remote test and obtain results via Test Runner REST API

Participate!

Comparing content of HTML table with Excel file data

Participate!

Compare HTML table with Excel file and correct data in the file

Participate!

Retrieve Data from a Web Page

Participate!