Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Unable to run the scripts in QTP 10
#1
Not Solved Sad 
Sad Hi,

I am a beginner in QTP and already I have posted questions in this forum that how to write scripts in QTP in Expert View. But up till now I am getting the same error messages and I am not able to run the scripts as I am facing the same error messages.

I know I am a newbie in this QTP and I am trying to learn by heart but not sure why it not running the scripts and constantly giving the error mesages?

Please help me to understand!

Regards,

Payal

Reply
#2
Not Solved
Hi,

Please post the error message and related screen shot.

Regards,
Sankalp
Reply
#3
Not Solved
Hi,

Here is is the error message:

" The test run cannot continue due to an unrecoverable error.

Cannot identify the object "Login" (of class Dialog). Verify that this object's properties match an object currently displayed in your application.

Line (1): "With Dialog("Login")". "

Not sure, why "With" is coming in the beginning??

Regards,

Payal


.txt   QTP_Script Error_In Expert View.txt (Size: 707 bytes / Downloads: 93) [quote='sshukla12' pid='21101' dateline='1337573889']
Reply
#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
#5
Not Solved
Hi,

Thanks for the reply..but I am a newbie so how to add the object "Dialog" in the repository?

Regards,

Payal
Reply
#6
Not Solved
Hi,

Go to object repository->add objects-> click on the dialog box.

Regards,
Sankalp
Reply
#7
Not Solved
Hi Sankalp,

I am trying everything to get the scripts correctly done but I am not able to do that. Attaching the error scripts. Hope it helps!! I am trying to hard to get these scripts writing in Expert View in QTP 10 but not sure why this error is keep on coming.

Please help!!

Regards,
Payal


.txt   QTP_error_2.txt (Size: 1.2 KB / Downloads: 85) [quote='sshukla12' pid='21135' dateline='1337658943']
Reply
#8
Not Solved
Hi,

As sankalp wrote, please add all the objects to the repository not just the dialog box.This time "agent name" object is missing.Now you will have to go and add all these objects to repository for your script to work
1) Dialog("Login") 'this is the main window of flight app
2)WinEdit("Agent Name:") 'this is an edit box for user id
3)WinEdit("Password:") ' this is the password field in the main window

Regards,
Ravi
Reply
#9
Not Solved
Hi Ravi,

First of all thanks a lot! but I feel sorry for myself that I am not able to run the scripts after following Sankalp's advice and as well as your advice as well. Not sure the same error message is coming.

I know I am a beginner and I am in the learning phase but feel bad equally for myself that I am not able to do that but I am keep on trying.

Is it possible if you can write the steps? And one thing, I am thinking about Add-Ins as well? Do they have any role to perform these actions?

Please advice and guide me!

Regards,
Payal
Reply
#10
Not Solved
Hi,
Are u able to add objects in object repository?
just go head with default add-ins now.

Regards,
Sankalp
Reply


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

Forum Jump:


Users browsing this thread: 1 Guest(s)