Ask a Question

Unable to access Network drives from TestExecute

jpr347
Occasional Contributor

Unable to access Network drives from TestExecute

If I run this code from TestComplete 11 running on my PC:
 
 Sub EnumerateDrives
   Dim colDrives, oDrive, i
   Set colDrives = aqFileSystem.Drives
   For i = 0 to colDrives.Count - 1
  MsgBox colDrives(i).DriveLetter
   Next
 End Sub
 
It cycles through all the drives appearing under "This PC", local and network drives are listed.

 

From another PC running TestExecute 11 (Run As Administrator) it only lists the local hard drives and does not "see" any network drives at all, although I do "see" them from "My PC"

 

I did a quick check and mapped have T: mapped to \\MYPC\Test which has permissions of "Full control" to everyone and this does not help.

 

Any ideas?

 

----Added Fix/Workaround--------------

I managed to find a solution that may be of value to others.

It seemed to a windows/domain sharing issue.

On the PC running TestExecute:

  Open a command prompt

  NET USE T:  \\MYPC\Test /PERSISTENT:YES

The above worked fine.

 

The original method was:

  Right click "This PC">Map Network drive

 

2 REPLIES 2
TanyaYatskovska
Community Manager

Re: Unable to access Network drives from TestExecute

Hi Jpr347,

 

Thanks for lettings us know your solution!

 

---------
Tanya Yatskovskaya
SmartBear Community and Education Manager

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

Re: Unable to access Network drives from TestExecute

In the end it turned out to be the security settings on the remote folder, but I'm still mystified why "NET USE" worked and Windows "Map network drive" did not.

cancel
Showing results for 
Search instead for 
Did you mean: