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
with a regular expression since this value changes with each instance of the test application. My regular expression is
Am I attempting something that is not supported or attempting it in the wrong place?
Solved! Go to Solution.
TestComplete has regular expressions but I don't see any reference for name mapping, only for testing.
I think what you want for NameMapping is wildcards:
Are there other properties you can use to map the component other than class name? Text or labels or something else?
[Hall of Fame]
Please consider giving a Kudo if I write good stuff
Why automate? I do automated testing because there's only so much a human being can do and remain healthy. Sleep is a requirement. So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.
Mysterious Gremlin Master
Vegas Thrill Rider