regexpwndtitle property changes with each UAT build

  • Questions
  • regexpwndtitle property changes with each UAT build
Question ID: 104330
0
0

The main form of my application is identified using the following properties:

swfname
regexpwndtitle
is owned window
is child window

QTP appears to be identifying my application mainly by the regexpendtitle property. This property contains that text found in the title bar of the application. The problem I’m experiencing is with every build this text value changes in the title bar. Every time I go to kick off a script I have to update the object repository so that is can identify the application. I’ve attempted to remove this property and add others, but QTP can’t seem to identify my application with this property.

Any help with this problem would be greatly appreciated.

Thanks,

Tyler D.

Marked as spam
Posted by (Questions: 1, Answers: 0)
Asked on February 28, 2011 4:40 pm
37 views
Answers (2)
7
Private answer

Have you tried to use Regular Express in the Object Repository attribute regexpwndtitle?

For example this page has value of:
regexpwndtitle property changes with each UAT build - EyeOnTesting

and you can replace it with regular express:
.*EyeOnTesting$

One note make sure you turn off Smart Identification. If you want more details check out section ''Value Configuration and Regular Expressions'' (Chapter 25) of the ''HP QuickTest Professional User Guide'' (QTP 11)

Marked as spam
Posted by (Questions: 2, Answers: 98)
Answered on March 7, 2011 7:13 pm
I will give this a try. Thank you very much.
( at March 8, 2011 6:12 pm)
2 questions here. 1.One object have 6 attributes in total. And the Test object details as attachment only show three attribute. If only these three attributes match a object in system. Then the object in system is identified as the correct one by qtp? If yes where can we config which attributes to represent a object in system? 2. If object has six attributes in total and 3 is changed after build. Do we need to add regular expression for all the six attributes or it is ok if we only care the ones displayed in the attachment. Really thx for help. [1]: /storage/temp/391-objectrepository.png
( at January 19, 2016 5:58 am)
0
Private answer

@bubblehead712
I forget to add the attachment. And I cannot do this at home. Will add it tomorrow at office.

Marked as spam
Posted by (Questions: 0, Answers: 1)
Answered on January 19, 2016 1:52 pm