Sie sind auf Seite 1von 14

QTP

CHECKPOINTS:

Now to check Text check point we need to do:


click on imag e Click on text-lipika

Click on Ok

button

Click on text lipika and then right click - click on insert text checkpoint

it will open select an object window click on ok button Text checkpoint properties ok button

Click on Okbutton and then right click - click on insert standard checkpoint ok

Click on image and then right click - click on insert bitmap checkpoint ok

2)Function:-

Record application(login and logout) stop record now enter public function now copy the script and save this script as .vbs format in notepad now go to resources open OR(object repository) click on file Export local object save file as .tsr

Entering function

Click on file option and select export local object

click on tool option and select associate repositories(to call .tsr file)

Click on resources to open OR

Now click on new test enter which function we need to call to call the function we need to enter .vbs file and .tsr fied Steps to call .vbs file:Go to file setting click on resouces click on plus(+) sign to call .vbs file ok Steps to call .tsr file:Click on tool option and select associate repositories(to call .tsr file) In associate repositories window we need to click on Plus sign attach .tsr file To call .tsr file we need to use this button

Actions:1.click on record open application perform stop 2.To performing split action function a)Right click on the script on which you want to perform split action. b)select action split c) Click on OK button d)Save the test split action window select option rename 1st and 2nd action ok
Right click on the script on which you want to perform split action select split option

Select action

select any one option from 2

Rename action1 and action 2

Click on OK button 2) To perform call to copy of action:-

Right click on the script

select action

select action properties

Object repository:-Click on resources open OR

OR

To share local repository SELECT export local objects

Select tool and click on associate repositories to call share repository

Object Identification:-

To check properties select Object Identification from tool menu select environment test object classes We can change properies using add remove button ok

To select smart identification

Wait property:

Select setting from file menu select run reduce object synchronization time run

Regular Expression:-To perform regular expression-

Click on record record test for login ,insert order and fax, logout stop record run It will show an error To handle this error we need to use regular expression Click on resources open OR go to fax order click on it and then physical property click here now change it tick regular expression check box ok

Error handling:Click record Login ,open order, logout parameterize open order run showing error error handling

Das könnte Ihnen auch gefallen