I have a WebEdit Object.It is added in object repository.It
has two properties Name and Index.In the next release the
Name Property is same but the index property is
changed.when i run the script will the script Pass or Fail
Answers were Sorted based on User's Feedback
Answer / rentalavdml
I dont think it would fail.QTP fisrt checks for mandatory
properties,after that assistve and finally goes for ordinal
identifier.Here in this scenario we can recognise the
object by name itself so no point of index.
| Is This Answer Correct ? | 6 Yes | 3 No |
Answer / kishan
Name is usually under Mandatory Property of a webEdit Element.
Eventhough the Index property changes, as QTP Intially Use
the Mandatory Property(name)to identify the object,
case 1:
*******
if that name property is unique in that webPage then QTp
will definetly identify that webEdit object without any fialure.
(I have checked it even by making smart identification false
+ Index property : changing(1 to 12). still QTP is able to
identify the object properly w/o any issues.)
case 2:
******
If web page has 2 objects with same properties then we
should use index property. This time script will fail if we
dont specify correct index value.
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / gopal reddy
It will pass because the QTP would use its SMART
IDENTIFICATION if it is enabled by you otherwise it will
fail...
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / deepakm82
It will pass because the QTP would use its SMART
IDENTIFICATION if it is enabled by you otherwise it will
fail...
| Is This Answer Correct ? | 2 Yes | 2 No |
Answer / sureshsinghbhandari
It will Pass.
Reason-
For WebEdit the Mandatory properties are
html tag,
name and
type
If these are same then on Runtime the QTP will recognise the
object by these (in our case "name" prop) and Script will pass.
Note-
QTP Learns the Properties in the Following Sequence
1. First of all QTP learns the complete list of mandatory properties and then it will check whether these properties are sufficient for identifying the objects uniquely.
2. If it sufficient it will stop learning otherwise it will learn the first assistive properties and then it will once again check whether these properties are sufficient are identifying the object uniquely.
3. If it feels not sufficient then it will learn the second assistive properties once again it will check whether these properties are sufficient if it feels not sufficient the above processor continue till the QTP feels satisfied or up to the end of the assistive properties list.
4. If it is still feels not sufficient then it will learn the ordinal identifier.
| Is This Answer Correct ? | 0 Yes | 1 No |
Answer / venkat reddy
I will Fail
to handle that scenario u have to use regular expressons
| Is This Answer Correct ? | 0 Yes | 7 No |
After fixing the bug, the same bug is raising again and again in new builds what we have to do? That bug is high level bug.
hi friends can anyone tell me where can i find descriptive programming material please send me the link also,from which i can download the material
Tell me the difference between the Data Driven Frame work and Keyword Driven frame work?
If you have given 1000 manual test scripts, what test you will do? and how?
What is the extension of script and object repositary files?
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
Are u place all QTP Framework folders in VSS?
Among all the check points what is the most important checkpoint?
in which case & which method we can use "native" property of an object ?
hi i have one doubt is there any companies are taking correspandence courses plz leme know urjent
What are the differences between table and db checkpoints?
anyone can explain about "Smart Identification" in QTP I mean what is the use of "Smart Identification" Give an example