Regular Expression in Physical Description and Verification Mechanism
I have a regular expression in the Physical description for a Window's Label. The reason is the Window Caption changes every time a Selection is made from a list box from the window:
ex of the Caption: WindowName - Item Selected
where Item Selected is an item in a list box.
I need to verify the caption before any selection is made and also if the caption of the window changes every time I select an item from the list box.
I do not want to hard code the values in my Tab delimited file that I use to drive the tests using key words. What other ways can I verify this functionality.
Re: Regular Expression in Physical Description and Verification Mechanism
</font><blockquote><font size="1" face="Verdana, Arial, Helvetica">code:</font><hr /><pre style="font-size:x-small; font-family: monospace;">ignoreText = "Window Name - ";
list_get_selected(myList, selectedText, selectedNbr);
win_get_info(myWindow, "label", winTitle);
endOfTitle = substr(winTitle, length(ignoreText) + 1);
if(selectedText == endOfTitle)
# they match
# they do not match
}</pre><hr /></blockquote><font size="2" face="Verdana, Arial, Helvetica">
[i]...Sound trumpets! Every trumpet in the host! / Sixty thousand, on these words, sound, so high the mountains sound, and the valleys resound.</i] (The Song of Roland)