Software Quality Assurance & Testing Stack Exchange is a question and answer site for software quality control experts, automation engineers, and software testers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am testing a Java applet with QTP.I am adding the objects in the applet to my object repository.I am able to create an action that works with the objects in Objects Repository.My doubt is if an object is moved from the current location to some other.Will my script work?If not how to overcome this issue?

share|improve this question

Anytime ordinal position values for x,y coordinates or indexes are used in a test script there is a high probability of failure. Not only will the test throw a false positive if the object is moved, but also consider different screen resolutons, and different devices. In general ordinal values for objects is generallly not a good practice in robust test automation. A better solution would be to use object properties as suggested by Kanishka.

share|improve this answer

depend on what you have in mandatory and assistive properties. also if you are not using any of these and you are using Ordinal identifier such as Index there are chances that the script will fail.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.