How to Map network drive in QTP
Answers were Sorted based on User's Feedback
Answer / palanivel
the script written as
Dim WshNetwork
Set WshNetwork = WScript.CreateObject("WScript.Network")
WshNetwork.MapNetworkDrive "E:", "\\Server\Public"
returns error as object required
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / sonali
'This will work
Dim WshNetwork
Set WshNetwork = CreateObject("WScript.Network")
WshNetwork.MapNetworkDrive "E:", "\\Server\Public"
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / 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 |
If created one virtual object? Next time I changed the window position will it work?
There is a very good institute for Automation Testing using QTP.For more details please visit jbslearnings.com.
when i perametarization of the test through outputcheckpoint,i have seen run time error i.e outputcheckpoint mismatch .Plz tell anybody to me(qtp).How to clear that?
Difference between image checkpoint and bitmap checkpoint
How open an excel sheet in QTP(not a run time )?
what is keyword driven framework in qtp.
how do i know how to use tools
hi i have one issue while coding the dates . i want to add the date curret to 4 days . can any one helme plz about this regards balaji
I wnnt to learn about QTP Automation Framework,please give URL Address to get more information about AFW.
Could someone explain me how to work on Out put values, explain with some example on Flight Reservation. I want to insert the out put value for the order No. Please explain the steps with some example.
Hi friends, I have heard that it is required to have an application hosted in the same machine where we use QTP. Otherwise QTP may identify the objects incorrectly. Please clear me is it true.
Hi, I have a login page. To login in that page I need to have a valid username and password, which is stored in database. I imported that table to my DataTable in QTP (Global sheet). Now I need to write a code in qtp so that I can login only with valid username and data. my condition is : I want to get username and password from inputbox(which i did) and click on login button- which should verify the datatable for username and password and if value is present only then lofin else stop the testing. DataTable contains columns : LoginName and Password Code: Rowcount= DataTable.GetSheet("Global").GetRowCount msgbox "RowCount= " &RowCount,1 CurrentRow= DataTable.SetCurrentRow(1) Do Browser("").Page("").Frame("Frame").WebEdit("ctl10$ct l00$ctl00$UserName$ctl").Set DataTable("LoginName",1) Browser("").Page("").Frame("Frame").WebEdit("ctl10$ct l00$ctl00$Password$ctl").Set DataTable("Password",1) Browser("").Page("").Frame("Frame").Link("Login").Cli ck CurrentRow=CurrentRow+1 Loop Until CurrentRow>Rowcount Can anyone help? Thanks, Priya