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.

Highlighted
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

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️

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
Script Wanted
A new challenge is here!

Create a function to drag one element to another for the TechCorner tag!

Will you dare to take the challenge?


Scripts created in July:
- Passing custom command-line arguments as a test parameter
Top Kudoed Authors