Micro Focus QTP (UFT) Forums
Please help on a RegExp issue - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Regular Expressions (https://www.learnqtp.com/forums/Forum-UFT-QTP-Regular-Expressions)
+--- Thread: Please help on a RegExp issue (/Thread-Please-help-on-a-RegExp-issue)



Please help on a RegExp issue - cuit3016 - 12-10-2010

I am junior automation test engineer using QTP, currently i met an issue below need use RegExp as below:
There is data grid includes three webelements like
"WebElement: Physical Large machine", innertext is "Physical Cloud Service BL280c G6 - 2 Processor Intel Xeon 5600,4 core per processor, 96GB of memory, Non-SAN ready, 4 cores per processor, 32 server nodes per 10U"
"WebElement: Virtual small machine:" innertext is "...."
"WebElement: Firewall Rules", innertext is "...."
Now i want to choose the first line item "WebElement: Physical Large machine", the input parameter might be "Physical Cloud Service BL280c G6", how should i use RegExp to let QTP choose the correct line item?
Please help on this!

Thanks in adanvance!


RE: Please help on a RegExp issue - manishbhalshankar - 12-10-2010

Hi Cuit,

in the object properties of your WebElement change the text to: Physical Large machine.* and check the regular expression check box.


RE: Please help on a RegExp issue - markQA - 02-13-2011

use ordinal identifier....

something like:

B().P().WebElement("name:=xxx","index=n")