О нет))) Я согласен в общем и целом регулярные выражения в WinRunner послабее, но не так мало как кажется)))
Основной плюс состоит в том, что можно было минимизировать GUI карты за счёт применения регулярных выражений(тут этого не хватает в разделе NameMapping а очень хотелось бы, конечно переменные помогают как то решить этот вопрос но всё-таки... хотя наверное дело привычки).
Вот только часть - хотя может это и всё))))
Matching Any Single Character
A period (.) instructs WinRunner to search for any single character. For example, welcome.
matches welcomes, welcomed, or welcome followed by a space or any other single character. A series of periods indicates a range of unspecified characters.
Matching Any Single Character within a Range
In order to match a single character within a range, you can use brackets ([ ]). For example, to search for a date that is either 1968 or 1969, write:
196[89]
You can use a hyphen (-) to indicate an actual range. For instance, to match any year in the 1960s, write:
196[0-9]
Brackets can be used in a physical description to specify the label of a static text object that may vary:
{
class: static_text,
label: "!Quantity[0-9]"
}
In the above example, WinRunner can identify the static_text object with the label “Quantity” when the quantity number varies.
A hyphen does not signify a range if it appears as the first or last character within brackets, or after a caret (^).
A caret (^) instructs WinRunner to match any character except for the ones specified in the string. For example:
[^A-Za-z]
matches any non-alphabetic character. The caret has this special meaning only when it appears first within the brackets.
Note that within brackets, the characters “.”, “*”, “[“ and “\” are literal. If the right bracket is the first character in the range, it is also literal. For example:
[]g-m]
matches the “]“ and g through m.
Note: Two “\” characters together (“\\”) are interpreted as a single “\” character. For example, in the physical description in a GUI map, “!D:\\.*” does not mean all labels that start with “D:\”. Rather, it refers to all labels that start with “D:.”. To specify all labels that start with “D:\”, use the following regular expression:
“!D:\\\\.*”.
Matching Specific Characters
An asterisk (*) instructs WinRunner to match one or more occurrences of the preceding character. For example:
Q*
causes WinRunner to match Q, QQ, QQQ, etc.
A period “.” followed by an asterisk “*” instructs WinRunner to locate the preceding characters followed by any combination of characters. For example, in the following physical description, the regular expression enables WinRunner to locate any push button that starts with “O” (for example, On or Off).
{
class: push_button
label: "!O.*"
}
You can also use a combination of brackets and an asterisk to limit the label to a combination of non-numeric characters. For example:
{
class: push_button
label: "!O[a-zA-Z]*"
}
И всё-таки она вертится...