Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to Use regular Expressions
#3
Solved: 11 Years, 5 Months ago
Hi
Below is the Code I have recorded.In the 6th Step ((WinEdit("Edit").Set "3"), I change the value 3 to 7 and Run it. The test will obviously fail as in the 12th step I insert a check point for "Send Signature with order" which will look for the Order no.3 in the title bar. I was asked to use a regular expression to handle the order no. in the title bar of the fax screen. I right clicked on the title bar in the active screen and tried to use the above regular expressions. But they are not working. I would like to know the exact syntax for the regular expression in the title bar

Code:
Window("Flight Reservation").Activate
Window("Flight Reservation").Activate
Window("Flight Reservation").WinMenu("Menu").Select "File;Open Order..."
Window("Flight Reservation").Dialog("Open Order").Activate
Window("Flight Reservation").Dialog("Open Order").WinCheckBox("Order No.").Set "ON"
Window("Flight Reservation").Dialog("Open Order").WinEdit("Edit").Set "3"
Window("Flight Reservation").Dialog("Open Order").WinButton("OK").Click
Window("Flight Reservation").Activate
Window("Flight Reservation").Activate
Window("Flight Reservation").WinMenu("Menu").Select "File;Fax Order..."
Window("Flight Reservation").Dialog("Fax Order No. 3").Activate
Window("Flight Reservation").Dialog("Fax Order No. 3").WinCheckBox("Send Signature with order").Check CheckPoint("Send Signature with order")
Window("Flight Reservation").Dialog("Fax Order No. 3").WinButton("Cancel").Click
Window("Flight Reservation").WinButton("Button").Click
Reply


Messages In This Thread
RE: How to Use regular Expressions - by srinivasadityab - 10-04-2008, 03:05 PM
RE: How to Use regular Expressions - by Ankur - 10-04-2008, 03:49 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
At Regular Expressions for e-mail address ganesh.dengale 6 19,335 08-23-2022, 02:51 PM
Last Post: ahmad3029
  How to disable regular expressions in a text? ttralor 6 6,849 07-05-2013, 02:44 PM
Last Post: Staff
  Need help on using regular expressions on Java Window's title qa_tester 3 5,173 02-13-2012, 10:56 PM
Last Post: madsenfr
  java window titles & regular expressions jotdog2 1 4,286 02-13-2012, 10:55 PM
Last Post: madsenfr
  Process to use Regular Expressions in QTP using screen shots. yvslraotesting@gmail.com 1 3,551 01-31-2012, 12:45 PM
Last Post: basanth27

Forum Jump:


Users browsing this thread: 4 Guest(s)