How to Map network drive in QTP

Answer Posted / nani

To map network drive in qtp use the following syntax:

Dim WshNetwork
Set WshNetwork = WScript.CreateObject("WScript.Network")
WshNetwork.MapNetworkDrive "E:", "\\Server\Public"

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

hi can any body give me a script for creating a modularity or keyword driven framework..i am working as a qtp tester for 2 months but still i am not exposed to framework in my company

1431


Can testing be done on the production system, or will a separate test system be required? How are browser caching, variations in browser option settings, dial-up connection variabilities, and real-world internet 'traffic congestion' problems to be accounted for in testing?

620


Explain the features of quick test pro(qtp)?

579


How to test results for qtp ?

789


How many ways we can parameterize data in quicktest professional?

563






What is object spy in quicktest professional (qtp)?

546


If created one virtual object? Next time I changed the window position will it work?

585


Give me detailed theritical explanation about keyword driven, hybrid framework, environment variables, hybrid frame work

1444


Explain object spy in qtp.

588


i have an external excel datasheet where it only contains 3 rows. after qtp executed the code to import the datasheet, the datatable getrowcount method now gives me a different value, lets say 60,000+ instead of only 3. i did not have any values starting from row 4 of my excel file. why is this happening? this also results to the qtp report to load for a very long time.

1537


Explain how Selenium is different from UFT?

694


how do u plan test automation?

1445


What are the different properties of an web object

1429


What is quicktest professional window?

565


There is an excel file of 1 to 100 sheets how you will iterate through it?

530