Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Unable to run the scripts in QTP 10
#4
Not Solved
Hi,
Please make sure that the object "dialog" is available in the repository.copy pasting the code will not work with qtp unless we have all the objects in the repository.
The following code
Code:
With Dialog("Login")
    .Activate
    .WinEdit("Agent Name:").Set "nisha"
    .WinEdit("Agent Name:").Type  micTab
    .WinEdit("Password:").SetSecure "4fb9c587cc4d77b45a24542b5db06399cf49cc89"
    .WinEdit("Password:").Type  micReturn
End With
is equivalent to
Code:
    Dialog("Login").Activate
    Dialog("Login").WinEdit("Agent Name:").Set "nisha"
    Dialog("Login").WinEdit("Agent Name:").Type  micTab
    Dialog("Login").WinEdit("Password:").SetSecure "4fb9c587cc4d77b45a24542b5db06399cf49cc89"
    Dialog("Login").WinEdit("Password:").Type  micReturn
that explains "with"

Regards,
Ravi
Reply


Messages In This Thread
RE: Unable to run the scripts in QTP 10 - by ravi.gajul - 05-21-2012, 11:11 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Code to run all QTP scripts and see all results Pkapoor 11 17,835 08-15-2017, 02:58 AM
Last Post: Ravi
  Run scripts from folder badri 1 2,819 11-26-2014, 06:18 PM
Last Post: vinod123
  How to run driver script to kick off scripts stored in QC? shipu 0 3,591 04-30-2014, 02:39 AM
Last Post: shipu
  Unable to generate Scripts using QTP11 Divya Roopa 1 2,075 03-05-2014, 09:07 AM
Last Post: basanth27
Exclamation Unable to Run QTP on Windows 8 IE 10. Please Help gthomas 2 2,262 12-09-2013, 11:40 AM
Last Post: Vinay Y J

Forum Jump:


Users browsing this thread: 4 Guest(s)