Class notes for Weekend : 9am est batch : Aug 11th 2012 – QTP – Day 4
Regular Expressions:
-to handle dynamic objects in applciaiton
e.g. chnages in window title, link name etc…
-wild characters
-!@#$%^&*()
Fax Order No.451
Fax Order No.*
Steps for regular expressions:
-record script for loign, reservation, fax order and exit
-stop record
-save script
-select resources=>object repository
-click “+” button against reservation
-select “fax order no.” object on left side
-click on value column again “text” property right side
-click on small purple button(configure the value)
-check regular expressions check box
-click No on conformaiton message
-mention regular expression “Fax Order No.*”
-click Ok
-save script
-run script
Reusable actions:
-automate Pre condition from manual test case
Action:
-series of events while recodring script
-default is “Action1″
Steps for creating reusable action:
-record script for login
-stop recording
-right click on action1
-select action properties
-enter name say “login”
-enter descirption
-make sure “reusable action” checkbox is checked
-click Ok button
-save script :login reusable”
Steps to call action:
-create new test
-select insert=>call to an existing action
-click on “…” button
-select script “login reusable”
-click Ok
-save script
-run script
Transactions:
-what is transaction time:
-elapsed time to complete a transaction
e.g. login, create order, fax order
-difference between start and end transaction time
steps for trasaction:
-while record script for login, before clikc OK butotn
-select insert=>strat transaction
-name the transaction say “logintime”
-click oK
-clikc OK button on application
-insert standard check popint to verify window title
-select insert=>end transaction
-click oK
-select file=>exit on app
-stop record
-save script
-run script