In project module it contains 3-ok buttons with same
properties who qtp identify its objects while runing ??
Answers were Sorted based on User's Feedback
Answer / uday kumar_anem
QTP uses unique properties to distinguish the object from
other objects. If all these three buttons have same
properties then it go for Ordinal Identifiers. These
ordinal identifiers are 1. Index, 2. Creation Time, 3.
Location.
1. Location: There is no way that all these 3 buttons
placed at the same location.
2. QTP adds index to each of the objects i.e it creates
object description as ok_1, ok_2, ok_3
3. No two objects cannot be created at same time(Web add-in
only)
Is This Answer Correct ? | 9 Yes | 0 No |
Answer / srinivasu
In qtp we can identify the object with the help of
following :-
Whenever we record a script using QTP - QTP identifies an
object uniquely using the following mechanisum.
[i] First captured the mandiatory properties
Object/Window [Class name, Label name etc...
If the manditory properties is not unique
[ii] Assistive properties [X,Y,Width,Hight,Abslute of X...]
If Manditory/Assistive properties are not unique then
it goes to ordinal Identify which is either location
or Index
Note: If the Object is identified using location/index
and if an object location is changed or index is changed...
the script will fail.
Is This Answer Correct ? | 3 Yes | 1 No |
Answer / chaitu.c
In qtp we can identify the object with the help of
following :-
1.Assive properties and Mandatory properties
2.Smart Identification ( Basefilter and Option filtr
properties)
3.Ordinal Identification(through the Index and Location of
Object in the project module screen)
Is This Answer Correct ? | 2 Yes | 1 No |
Answer / tvsramakrishnachowdary
this can be solved by Ordinal Identifiers Concept in QTP
Is This Answer Correct ? | 1 Yes | 0 No |
WHY U CHOOSE TESTING FIELD?
How do you find out whether the string is Numeric or Alpha numenric.Suppose..'QTP is an automation testing tool 12345' How should I know it is alphanumeric.Can any one please write the code for this
How is UFT 11.5 version different from UFT 12.0?
What is the difference between Functions and Action ?
How u connect bugzilla with QTP
1 Answers Deloitte, TCS, Wipro,
In qtp, explain what is crypt object
If 3 browsers are opened in our system, how to enter the facebook url into second browser by using descriptive programing
Hi I am new to QTP. we are planning to implement automation for the application. I am trying to execute the following script: Set ExcelObj=CreateObject ("Excel.Application") ExcelObj.WorkBooks.Add Set NewSheet=ExcelObj.Sheets.Item(1) NewSheet.Name="Order" ExcelObj.Cells(1, 1).Value = "Name" ExcelObj.Cells(1, 2).Value = "Ordernum" ExcelObj.Cells(2, 1).Value = "nam" ExcelObj.Cells(2, 2).Value = "21" ExcelObj.ActiveWorkbook.SaveAs "c:\test1.xls" ExcelObj.Quit Set ExcelObj = Nothing in the above script for the line(ExcelObj.Cells(2, 2).Value = "21") it is inserting the value 21 successfully.this is fine But if i want to insert a variable instead of the constant value then what should be the modification in the script. For example: If user retrives a value throug "GetRoProperty" and wants to insert the value into then how the script changes?
i have a window , initial its name is "NEW CUSTOMER" i have to enter the details of customer in the test object fields and after saving the window name is automatically changing with the customer name . so how to identify that window after saving. (i am using descriptive programming.)
How iteration is related to Test Results in QTP?
please clarify the question ................. i know how to open the notepad file ? but i don't know how to enter the data into opened notepad ? Ex: set a=createobject("wscript.shell") a.run "Notepad.exe" please give the replay. my mail id is raju.ippali@gmial.com, 9823257761
Hello, Can we capture only the labels of the web page in the object repository. If yes, then how. Actually my scenario is: I have to capture all the label of mercury site http://newtours.mercuryinteractive.com/tour/mercurypurchase. php. and want to copy all these labels in the notepad. So,please help me how to do this all. Thanks in advance, Gaytri