QTP usually doesn't use html id to identify objects. That is why a script from QA is working on UAT. If you want it to fail then you would need to change the object identification settings to make html id a mandatory property for object identification. This will make sure that the id does get noted when you record a script on QA.
Some objects don't have html id ,when I check in the repository the html id is null and that is the only mandatory property.I am not using another properties to identify object.
Tool still clicks webutton when html id is null.How is the tool doing this activity?Please let me know.
Thanks for you help.
Just check the assistive properties. Also check if Smart Identification is enabled on this web button object. I am sure there might be other unique property, just do spy and check the properties for the button.