Micro Focus QTP (UFT) Forums
how to make use of wild char * in QTP - 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 Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: how to make use of wild char * in QTP (/Thread-how-to-make-use-of-wild-char-in-QTP)



how to make use of wild char * in QTP - karraaruna - 12-02-2010

Hi
Iam trying to convert the winrunner scripts to QTP scripts and got some problem in my test script. Iam using java applciatons.
i want to run my test with different Client IDs but rest all information will be the same. so the parent javainternal frame title property is as below whichI want to make as for any client ID. irrespective of the client ID and name it shoud run.now it is running only if the client ID is 2329

Client Demographics for Client: 2329\, DICKIE CHRISTOPHER ERIC: \((\)|A\))

In winrunner the code is as follows
!Client Demographics for Client *.
any suggestions please.

[/b]Thanks in advance.


RE: how to make use of wild char * in QTP - ngocvo3103 - 12-02-2010

Hi Karraaruna,
Can you provide me more information about the frame title? Like what is the original title of the frame? Can you give me at least 2 example of this title, so that I can help you on this regular expression.

Ngoc Vo


RE: how to make use of wild char * in QTP - cdesserich - 12-02-2010

If you set the property as a regular expression, (or if it is already a regular expression property) you can use:

Client Demographics for Client .*

In regular expressions, "." means any character, "*" means 0 or more. Hope this helps...