Forum Discussion

randall's avatar
randall
Contributor
7 years ago

Where exactly can regular expressions be used in TestComplete? NameMapping? Elsewhere?

My test application is MFC based and comes with all of the warts and defects therein.  I am having problems name mapping the application and its controls because after creating them, they don't seem to work.  Every time my test app is invoked is has different classname values.  I thought I could solve the problem via the use of a regular expression.  I've tried using the regular expression as a constant and as a project variable value and referencing the variable.   Neither appear to work.

 

I am trying to represent the classname

 

Afx:01320000:8:00010003:00000000:05F32707

 

with a regular expression since this value changes with each instance of the test application.  My regular expression is 

 

Afx:[0-9]{8}:[0-9]{1}:[0-9]{8}:[0-9]{8}:*

 

Am I attempting something that is not supported or attempting it in the wrong place?  

 

TIA,

Randall Bowen