Take the 2-minute tour ×
Software Quality Assurance & Testing Stack Exchange is a question and answer site for software quality control experts, automation engineers, and software testers. It's 100% free, no registration required.

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
add comment

2 Answers

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
add comment

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
add comment

Your Answer

 
discard

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.