ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
info       Did you received any Funny E-Mails from your Friends and like to share with rest of our friends? Yeah!! you can post that stuff   HERE
Google
 
Categories  >>  Software  >>  Testing  >>  Automation Testing  >>  QTP
 
 


 

 
 WinRunner interview questions  WinRunner Interview Questions
 Load Runner interview questions  Load Runner Interview Questions
 QTP interview questions  QTP Interview Questions
 Test Director interview questions  Test Director Interview Questions
 Rational TestSuite interview questions  Rational TestSuite Interview Questions
 Silk Test interview questions  Silk Test Interview Questions
 Automation Testing AllOther interview questions  Automation Testing AllOther Interview Questions
Question
I m trying to automate one vb desktop application in that 
there is vblist vbcombobox many other vb tools are 
there ,when i m trying to find some unique property to 
identify the object (take example of vbcombobox ) I cannot 
find any unique property, all the combobox belong to same 
nativeclass same name no ids are available ,only the 
distinct property is there x and y coordinates so i m using 
some code like this 
"vbbutton "nativeclass:=ThunderRT6CommandButton","x:=304","y
:=443").exist(2)" but i dont find them reliable .Can anyone 
suggest me some other way to identify those objects with 
some unique property or is there any way to register our 
own property .I m using descriptive programming to write 
the code .Thanks in advance
 Question Submitted By :: Ankur_jain
I also faced this Question!!     Rank Answer Posted By  
 
  Re: I m trying to automate one vb desktop application in that there is vblist vbcombobox many other vb tools are there ,when i m trying to find some unique property to identify the object (take example of vbcombobox ) I cannot find any unique property, all the combobox belong to same nativeclass same name no ids are available ,only the distinct property is there x and y coordinates so i m using some code like this "vbbutton "nativeclass:=ThunderRT6CommandButton","x:=304","y :=443").exist(2)" but i dont find them reliable .Can anyone suggest me some other way to identify those objects with some unique property or is there any way to register our own property .I m using descriptive programming to write the code .Thanks in advance
Answer
# 1
I didn't understood your question but i feel that you have 
problem with finding unique properties during descreptive 
programing among the same controls...

If my understandig is correct than Just try Index or 
CreationTime (in case your app is web based).

Please let me know if it helps.
 
Is This Answer Correct ?    0 Yes 0 No
Jay Prakash
 
  Re: I m trying to automate one vb desktop application in that there is vblist vbcombobox many other vb tools are there ,when i m trying to find some unique property to identify the object (take example of vbcombobox ) I cannot find any unique property, all the combobox belong to same nativeclass same name no ids are available ,only the distinct property is there x and y coordinates so i m using some code like this "vbbutton "nativeclass:=ThunderRT6CommandButton","x:=304","y :=443").exist(2)" but i dont find them reliable .Can anyone suggest me some other way to identify those objects with some unique property or is there any way to register our own property .I m using descriptive programming to write the code .Thanks in advance
Answer
# 2
thanks Jay prakash for ur reply 
U got my problem right but its not web based application 
its desktop application and i cannot find any unique 
property to identify the objects such as vbcombobox all the 
vbcombobox on the page have the same property .I read 
somewhere that we can add our own property to the test 
object but i dont know how .SO please let me know if you 
have any solution .Thanks in advance
 
Is This Answer Correct ?    0 Yes 0 No
Ankur_jain
 
 
 
  Re: I m trying to automate one vb desktop application in that there is vblist vbcombobox many other vb tools are there ,when i m trying to find some unique property to identify the object (take example of vbcombobox ) I cannot find any unique property, all the combobox belong to same nativeclass same name no ids are available ,only the distinct property is there x and y coordinates so i m using some code like this "vbbutton "nativeclass:=ThunderRT6CommandButton","x:=304","y :=443").exist(2)" but i dont find them reliable .Can anyone suggest me some other way to identify those objects with some unique property or is there any way to register our own property .I m using descriptive programming to write the code .Thanks in advance
Answer
# 3
try "index" it will work for windows applications.
 
Is This Answer Correct ?    1 Yes 0 No
Jay Prakash
 
  Re: I m trying to automate one vb desktop application in that there is vblist vbcombobox many other vb tools are there ,when i m trying to find some unique property to identify the object (take example of vbcombobox ) I cannot find any unique property, all the combobox belong to same nativeclass same name no ids are available ,only the distinct property is there x and y coordinates so i m using some code like this "vbbutton "nativeclass:=ThunderRT6CommandButton","x:=304","y :=443").exist(2)" but i dont find them reliable .Can anyone suggest me some other way to identify those objects with some unique property or is there any way to register our own property .I m using descriptive programming to write the code .Thanks in advance
Answer
# 4
Hi Ankur,

Select the object in the object repository, and select the 
icon where it will open you to see the mandatory and 
assistive properties of the object. By using this you can 
add the properties to the particular object whichever you 
want to find some uniqueness.

I feel this answer may be usefull for your question.

Pls let me know if i am wrong.
 
Is This Answer Correct ?    0 Yes 0 No
Babu
 
  Re: I m trying to automate one vb desktop application in that there is vblist vbcombobox many other vb tools are there ,when i m trying to find some unique property to identify the object (take example of vbcombobox ) I cannot find any unique property, all the combobox belong to same nativeclass same name no ids are available ,only the distinct property is there x and y coordinates so i m using some code like this "vbbutton "nativeclass:=ThunderRT6CommandButton","x:=304","y :=443").exist(2)" but i dont find them reliable .Can anyone suggest me some other way to identify those objects with some unique property or is there any way to register our own property .I m using descriptive programming to write the code .Thanks in advance
Answer
# 5
Use Object Spy to identify the property of the particular 
object. The use that property in DP
 
Is This Answer Correct ?    0 Yes 0 No
Test
 

 
 
 
Other QTP Interview Questions
 
  Question Asked @ Answers
 
How to write test cases for web applications using QTP.plz write a sample test case to show how to write.urgently needed.thanks in advance..  1
how to use command prompt using qtp? HCL7
Can you give me the code to calculate the total number of Links using the child object in the web page..? is there any other way to calculate number of links with out using the Child objects.?? DST-Global-Solutions2
wt is frame work wt r d different types of frame works used in ur company Infotech1
If QTP not recognizing using repository while executing, how can we go forward  3
when i was doing the Flight reservation with QTP calculating the tickets i got Type mismatch: '[string: ""]' in "If cdbl(tot)=cdbl(p)*t Then" error. where I am doing the mistake Could you please tell me.  4
Dear Friend, I am New in QTP 10 so can any one tell me how to do QTP testing on WEB APPLICATION while writing VBScript. If Possible then Give Example how to write vbscript in QTP to test WEB Apllication. Vishal Patil  1
Can you tell me the differences between writing the VB script manually for a application and recording the same application in QTP , with a example?  1
Hi, I want to write the script for a webpage. But i didn't added the properties of the objects to the object repository. Without adding the object properties to the object repository, how to write the script. When i am writing the script, Let us say i typed as Browser (""). after selecting ".", if the object is added to the object repository it will display atomatically. But in my case it is not as i didn't added the object properties. How to proceed further in the above mentioned case to write the script manually. Pls let me know if you didn't understand the question.  3
what is the difference between Reusable action and external action? HCL1
how to load vbs file to qtp through scripting. plz provide the code..... IBM1
what is the extension for the test version of the script? TCS4
what is object repository size? ITC-Infotech22
Few basic questions on commonly used Excel VBA functions.  1
how we connect oracle or sql data server database to qtp. TCS3
According to use, how virtual object is different from object spy? If Qtp is not learning a sub-menues. What should we done? how would we manage on the expert view too? alkaa.dugaal@gmail.com HCL1
Use of Debug Viewer?  1
How to send QTP scripts to our colleagues? Virtusa1
how can we group that these test cases only should be automated and in which order you execute that test cases Satyam3
What is the use of Accessibility check point?  2
 
For more QTP Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com