Está en la página 1de 6

CHECK POINTS 1) Standard Check Point We can use this check point to verify the property of an object.

Ex: Verify Update Order Step Name Step description Expected result Actual Activate Window Disable Step-1 Open Record Disable Step-2 Perform change Enable Step-3

Status

Navigation Start Recording Click on Ok Activate Window (Flight 4a.exe) File Menu Click on Open Order Select Order No. Enter No. Click on Ok Perform any changeClick Update OrderStop RecordingKeep theapplication (Flight4a.exe) in base state Identify positions in the Test Script to insert Check Points [After Activate window; after open order; after perform change] Start Recording {Insert Menu Check Points Click on Standard Check Point} {or F12} show object [ ] with Click Ok Enter Name of the Check Point Select Property with expected value (Enable-True = Enable; Enable-False = Disable) Click Ok Stop Recording after insertion of all Check points at relevant places Click Run Analyze results manually. Ex:1 Window("Flight Reservation").Activate Window("Flight Reservation").WinButton("Update Order").Check CheckPoint("CP_1") Window("Flight Reservation").WinMenu("Menu").Select "File;Open Order..." Window("Flight Reservation").WinButton("Update Order").Check CheckPoint("CP_2") Window("Flight Reservation").Dialog("Open Order").WinCheckBox("Order No.").Set "ON" Window("Flight Reservation").Dialog("Open Order").WinEdit("Edit").Set "30" Window("Flight Reservation").Dialog("Open Order").WinButton("OK").Click Window("Flight Reservation").WinRadioButton("Economy").Set Window("Flight Reservation").WinButton("Update Order").Check CheckPoint("CP_3") Window("Flight Reservation").WinButton("Update Order").Click wait (10) If Window("Flight Reservation").ActiveX("Threed Panel Control").GetROProperty("text") ="Update Done..." Then msgbox ("Test is pass") else msgbox ("Test is fail") End If

How to edit existing check point: Place the cursor on Check Point which you want to edit Right Click Check Point Properties Select property Change value or Rename Check Point Click Ok.

How to insert check point through Active Screen Start Recording Record Required Operation like as below [Click on Ok Activate Window (Flight 4a.exe) File Menu Click on Open Order Select Order No. Enter No. Click on Ok Perform any change Click Update Order] Stop Recording Keep the application (Flight4a.exe) in base state Identify positions in the Test Script to insert Check Points [After Activate window; after open order; after perform change] place the cursor on specified statement Click on Active Window Right Click on object Click on Insert Standard Check Point Click Ok Enter Check Point Name Select Property with expected value (Enable-True = Enable; Enable-False =Disable) Select option to insert statement (Before current Step / After current Step) Click Ok Click Run after insertion of all Check points at relevant places Analyze results manually.

2) Bit Map Check Point We can use this Check Point to conduct test on Bitmaps. Navigation Start Recording Help Menu Click on about Insert Menu (QTP) Check Point Click Bit Map Check Point Show Bitmap with hand icon Click Ok Enter Name of the Check Point Click on select area if you want to check a specific area with in the Bit Map Select save only selected area Click on Ok Stop Recording Close current application (Flight 4a) Open another application (Flight 4b) Click run to analyze results manually.

How to insert check point through Active Screen Start Recording Help Menu Click on about Click on Bit Map Stop Recording Click on Active Screen Icon Right click on Bit Map which you want to check Click on Insert Bitmap Check Point Click Ok Enter Name of

the Check Point Select area which area to be checked Select option to insert statement (Before current Step / After Current Step) Click on Ok Close current application (Flight 4a) Open another application (Flight 4b) Click run to analyze results manually.

3) Database Check Point To automate backend testing we are using Database Check Point. During this testing we are validating backend table in terms of Data validation and data integrity. Data validation means that the correctness of storing values into backend table. Data integrity means that the impact of stored values on existing data table content. In this we will be concentrate on primary keys, foreign keys, unique keys, . etc., To automate backend testing we can follow below approach. 4 1 5 Actu al Data

Expected Value = = Fail = ! Pass Step 1: Step 2: Step 3: Step 4: Step 5: Connect to Database using DSN (Data Source Name) Execute Specified Select statement. Retrieve the result of SQL Statement Perform any db Operation. Compare expected data with actual data to verify the impact of frontend operation on backend table content.

Navigation Insert Menu Check Point Database Check Point Select Specify SQL Statement Manually Next Create Machine Data source (Select Data source) Select DSN (QT_FLIGHT32) Click Ok SQL Statement (Enter your specified SQL Statement Ex:. select * from orders) Finish Change the Check Point Name Click Ok Open Frontend (perform any db operation like insert, delete, update) Click Run Analyze results manually. To Create New DSN *) First of all you create One database in MS Access with specified table. Navigation Insert Menu Check Point Click on Database Check Point Select Specify SQL Statement Manually Next Create Machine Data source (Select Data source) New Select type of data source (User [Single user] / System Data Source [multiple users]) Next Select a Driver (Microsoft Access Driver) Select database Click Ok Enter Data Source Name with description Click Ok Click Ok Take your specified statement (Table) Ex:. select * from orders) Finish Click Ok. Note Database Check Point insertion is not possible through Active Screen.

4) Text Check Point We can use this checkpoint to conduct test on text present on the object. Navigation Start Recording Insert Menu Check Point Click on Text Check Point Select object with hand icon Click Ok Enter Name of the Check Point Enter your expected Text in Constant Select Matching [(1) Match Case (2) Ignore Spaces (3) Exact Match (4) Text Not displayed] Click on Ok Stop Recording Click run to analyze results manually.

How to insert check point through Active Screen Start Recording Activate Window Stop Recording Click on Active Screen Icon Right click on object, which object text you want to check Select insert Text Check Point Click Ok Enter Checkpoint Name Expected text fill in constant Select Matching [(1) Match Case (2) Ignore Spaces (3) Exact Match (4) Text Not displayed] Select Insert Statement (Before / After Current step) Click Ok Click run to analyze results manually. 5) Text Area Check Point We can use this Checkpoint to conduct test on Text present in the specified screen area. Navigation Start Recording Insert Menu Check Point Click on Text Area Check Point Select the area specified to check Click Ok Enter Name of the Check Point Enter your expected Text in Constant or click on to give Regular expression Select type of Matching [(1) Match Case (2) Ignore Spaces (3) Exact Match (4) Text Not displayed] Click on OkStop RecordingClick run to analyze resultsmanually. Note: Text Area Checkpoint is not possible through Active Screen. 6)Accessibility Check Point We can use this checkpoint to verify whether the specified Web Page meets W3C (WWWC) Standards or not (World Wide Web Consortium Standards) Navigation Tools Menu Options Web Tab Advanced Select / Check in the check point [ActiveX Check, Alt Property Check, Applet Check, Frame Titles Check, Multimedia Links check, Server-side Image Check, Tables Check] Ok Ok Start recording Insert Menu Check Point Click on Accessibility Check Point

Show Web Page with Hand Icon Click Ok Enter Name of the CheckpointClick OkStop RecordingRunAnalyze Results manually. Note Page Checkpoint, Table Checkpoint, Image Checkpoint, Accessibility Checkpoint, XML Checkpoint are applicable for Web Pages only.

7) XML Check Point To verify the content of an XML file we can use this check point. Navigation Insert Menu Check point XML Check Point (From File) Browse your XML File path Click Ok Enter name of the Checkpoint Select Element Name Specify your expected value Click Ok Run Analyze Results manually.

También podría gustarte