Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
how to make use of wild char * in QTP
#1
Solved: 10 Years, 9 Months, 1 Week ago
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.
Reply
#2
Solved: 10 Years, 9 Months, 1 Week ago
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
Reply
#3
Solved: 10 Years, 9 Months, 1 Week ago
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...
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How to make QTP Script to work when system gets locked? ramkumarad 6 11,890 11-02-2017, 03:37 PM
Last Post: Divv
  Local script to make compatible with QC automation2012 1 2,152 01-28-2015, 02:11 PM
Last Post: automation2012
  How to make QTP take the value of a formula in a spreadsheet? utestqa 1 2,954 07-06-2013, 04:13 PM
Last Post: Ankur
  Can a make Shared OR be made a Local OR sams001 0 1,802 10-30-2012, 03:07 PM
Last Post: sams001
  How to make multiple dependent list in excel? pradeep singh 1 2,180 09-20-2012, 10:57 AM
Last Post: sshukla12

Forum Jump:


Users browsing this thread: 1 Guest(s)