IT Resource Cen2 Absent Member.
Absent Member.
2133 views

Network file access using QTP

How one can access a file which is kept for share under a network/network folder?

 

 

P.S. This thread has been moved from Quality Center Support and News Forum to Unified Functional Testing (formerly QTP) News and Support Forum. - Hp forum moderator

"Yesterday is already a dream, tomorrow is only a vision. But today well lived...makes every yesterday a dream of happiness and evey tomorrow a vision of hope"
0 Likes
5 Replies
Himani Yerneni Absent Member.
Absent Member.

Re: Network file access using QTP

Access the shared folder using the UNC path

Path = "\\ServerName\Directory$\Folder\Filename"
Life is not measured by the number of breaths we take;but by the moments that take our breath away.
0 Likes
Basher875 Absent Member.
Absent Member.

Re: Network file access using QTP

When I select Open in QTP only the local drives are displaying yet the network drives are mapped and I can access folder/files within them  from Windows Explorer.  Are there any settings in QTP to "discover" the network drives ?

 

0 Likes
Absent Member.. Trudy Claspill Absent Member..
Absent Member..

Re: Network file access using QTP

It shouldn't be necessary for QTP to discover the network shares if you have mapped local drives to those shares.

Show us an image of the Open dialog you see in QTP.

p.s. This is the QC forum. In the future you should post QTP-specific questions to the QTP forum.
http://h30499.www3.hp.com/t5/Functional-Testing-QTP/ct-p/sws-Fun_Test


[If this post solves or helps solve your issue, mark the thread as solved and give KUDOS to the author for their assistance.]

(Opinions expressed in my postings are mine alone, and do not reflect the opinions of my employer.No warranties express or implied for any solution/suggestion posted.)
0 Likes
Established Member.. Will Herrmann
Established Member..

Re: Network file access using QTP

Is QTP running under the same account that mapped the drives?

 

Try adding a step to map the drives in your script before using them.


~Have you Read The Felicitous Manual?
~Please hit the KUDOS button if my reply helped resolve your issue.
0 Likes
Gayathri_26 Absent Member.
Absent Member.

Re: Network file access using QTP

Try the below the code

 

systemutil.Run "explorer.exe", "(Folder Path)"

 

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.