Forum Discussion

MulgraveTester's avatar
MulgraveTester
Frequent Contributor
10 years ago

Case Sensitive Parameters

I identify the tested GUI using the VBS instruction

set GUIObj = Sys.Process(GUIprocess).waitWindow("XTPMainFrame","ProgramName Version*",1,10000)


The GUI title has always been "ProgramName Version 1234".

Developers have recently changed the "V" to lower-case so it is now "ProgramName version 4567"

 

Since changing the title my code is unable to identify the GUI.

In the project properties I have "Use case-sensitive parameters" unchecked, so my question is - Why is waitWindow using case-sensitive compare when I have told it not to?

 

TestComplete 10.60.3387.7

1 Reply

  • Those are two different things...

    You are performing a string compare, which is by definition case sensitive...

    The project property only implies function calls and their parameters...

    if you do an if ("this" == "This") it would always return false...

    I had a similar issue with developers renaming classes from This to this or THIS....

    You could use a regex or use a ? as a character replacement for that specific letter...