How will you handle the situation when object is not
captured during record?
Answers were Sorted based on User's Feedback
Answer / venkatabala
By using object spy collect the properties of object and
write descriptive programming.some times object properties
are same at that time take the ordinal identifier .
eg:-
Browser("xyz").Page
("xyz1").Webbutton"name:=abc",index:=1").click
| Is This Answer Correct ? | 4 Yes | 0 No |
Answer / allin
While recording the object is not recognised--go for low
level recording.
virtual object vizard too right. But, if u find object not
recognised by tool before start generating script.
Regards,
Ratna Rao
| Is This Answer Correct ? | 3 Yes | 1 No |
Answer / howard
You would have to manually add the objects if they are
showing up in the object spy. Otherwise you would have to
check your add-ins. You could also try editing the mic.ini
file under the bin folder to add hooks to the AUT
(Application Under Test)
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / ramesh
When qtp not recognizes a object on the application we need
to install the appropriate addin then only qtp can recognize
that particular object.
This answer was given by the team lead who took the
interview and asked same question.
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / manjinder
it happens when object is under 3rd party controller. There are 3ways to handle this situatin:=
1. Discriptive programming
2. insert function generater
3. check syntex
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / guest
Hi,
Im Not too sure what u r asking...?
First...if the object does not recognise then we use the
virtual object wizard
Anyway ...u need to tell the interviwer that u have used
QTP only by programming.
If anyone else any brillant ideas plz do reply
| Is This Answer Correct ? | 1 Yes | 1 No |
Answer / kiran kumar
For this QTP has excelent technology called
SMART IDENTIFICATION
When ever the objects are not captured during recording by
using smart identification we can capture
kiran.pinninty@gmail.com
| Is This Answer Correct ? | 4 Yes | 4 No |
Answer / hemasundar
If such type of situation come then go for low level
Recording.........
| Is This Answer Correct ? | 0 Yes | 1 No |
why don’t use real time they r not using check points
if i have 10 actions and out of 10 actions last 3 actions i renamed will my script exicute sucesfuly r not? changed actions where i can see?
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
Is there anyway to have QTP go into a website and map out every object before I actually record any tests? I basically want to map out a website with all the objects and build a complete repository. The reason is because I'm running into issues with hierarcical objects. for example: Browser("ABC company- Home").Page("ABC company - Home").Link ("About Us").Click Browser("ABC company - Page 2").Page("ABC company - Page 2").Link("About Us").Click Both these links ("objects" and I use that term loosely as I'm trained mostly in OO programming) go to the same place but but the object heirarchies (pages) are different. I want a repository that will find any possible link on any possible page without having to manually record it. Is there a way to do this?
difference between waitProperty & Checkproperty
What is exact meaning of Database Checkpoint in QTP 9.2 and what are the different types of the database check points?
what is the Descriptive Progarmming? how it is help to testers in QTP?
you written some code in qtp for opening google.com browser and entered some text inthe search text box and clicked search button. this is ur script.. before running this script i have already opened two google.com browsers. now am running the script what will happen? script will run or what?? Thanks... Nani
i'm testing the webpage with QTP, in this wabpage i have to choose the CV from the window, but QTP can't recognize the object, so i used the Low LEvel Recording, but every time i run the test, QTP go to halt when it gets to the Recorded part, any solution for that?( except puting delay in the script and manuall selecting, because i've did that)
your coming from electrical backgroung..but y ur coming to software side?
In Test Director bug rEPORTS, wHAT ARE THE CONTENTS(fIELDS)? iF yoU PREAPARE BUG REPORT IN eXCEL sHEET , hOW U SEND TO dEVELOPMENT TEAM THRW T.D?
Hi friends I need to know about jubula automation tool. Is anybody know in bangalore where jubula tanning class is going on do let me know. Its urgent for me to learn that tool please help.