Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script not Running
#7
Solved: 12 Years, 10 Months, 2 Weeks ago
Hi Bhavin,
If QTP is not able to identify the Object uniquely using Mandatory + Assistive Property OR Smart identification mechanism (if configured), Ordinal identifier comes to our rescue.

In such a scenario QTP uses recorded description + Ordinal identifier to identify the object, if combined recorded description and ordinal identifier are not sufficient to identify the Object QTP stops and throws the Run Time Error Sad.

So there are 3 types of Ordinal Identifier:
1. Index
2. Location and
3. Creation Time (Specific to browser)

Index is a Numeric value based on the order in which the object appears within the source code. Index is 0 based.
If index is selected as an ordinal identifier then the QTP will generate the sequence of the number starting from 0,1,2.... and so on based on the sequence of corresponding Objects in the program.
For Example:
If you use index: =2 to describe a link test object, QTP searches for the 3rd Link object on the page.
If you use index: =2 to describe a WebElement object, QTP searches for the 3rd object on the page irrespective of type.

Please let me know if require more explanation.
Reply


Messages In This Thread
Script not Running - by bhawin - 11-09-2010, 11:55 AM
RE: Script not Running - by KavitaPriyaCR - 11-09-2010, 12:11 PM
RE: Script not Running - by Punam K - 11-10-2010, 06:53 PM
RE: Script not Running - by bhawin - 11-11-2010, 11:15 AM
RE: Script not Running - by rajeshwar - 11-11-2010, 11:48 AM
RE: Script not Running - by bhawin - 11-11-2010, 11:56 AM
RE: Script not Running - by rajeshwar - 11-11-2010, 10:15 PM
RE: Script not Running - by bhawin - 11-12-2010, 11:03 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  "UFT has stopped working" is displayed during running the script kotaramamohana 0 1,688 08-24-2018, 01:07 PM
Last Post: kotaramamohana
  running a script on two machine sametime sria123 3 4,614 05-09-2013, 09:53 AM
Last Post: basanth27
  Script running more times than the values in global data table TPavani 5 4,931 10-04-2012, 11:18 PM
Last Post: krr
  how to handle errors while running test batch script sureshkumar 0 2,392 11-11-2011, 04:38 PM
Last Post: sureshkumar
  Running QTP script from a VB Application scsenthil 0 2,435 07-06-2009, 11:18 AM
Last Post: scsenthil

Forum Jump:


Users browsing this thread: 1 Guest(s)