Interview Question : How WinRunner handles varying window labels?
Answer : The Varying window labels problem can be solved by using the regular expressions. Regular expressions enable WinRunner to identify objects with varying names or titles. We can use regular expressions in Test Script Language statements. A regular expression is a string. Regular expression is followed by an exclamation mark. We use special characters such as a period (.), asterisk (*), caret (^), and brackets ([ ]), by this we can generate the conditions of the search. For example, the string "!hit.*" matches both "rohit" and "hit".
Interview Question Category : Automated Testing
|