Checking objects In this section, you will add a standard checkpoint in the book a flight page. This checkpoint verifies the value in the box containing the first name of the passenger. 1.Start quicktest and open the recording test. If quicktest is not already open, chooseStart> Programs> quicktest professional. OIf the welcome window opens, clickOpen existing. OIf quicktest opens without displaying the welcome window, chooseFile> open> TestOr clickOpenButton down arrow and chooseTest. In the open testdialog box, locate and selectRecordingTest, then clickOpen. 2.Save the test as checkpoint. ChooseFile> Save. Save the test as checkpoint. 3.Confirm that the active screen option is enabled. If you do not see the active screen at the bottom of the quicktest window, clickActive ScreenButton or chooseView> Active Screen. 4.Locate the page where you want to add a standard checkpoint. You want to add a checkpoint that checks the property values ofFirst nameEdit box after the passenger's name has been entered in the box. InItemColumn of the keyword view, expandAction1> welcome: Mercury tours. HighlightBook a flight: MercuryRow. The book a flight page is displayed in the active screen and the object corresponding to the selected step is highlighted. You can see that the pasted's first name is displayed inFirst nameBox. 5.Create a standard checkpoint. In the active screen, right-clickFirst nameBoxand chooseInsert standard checkpoint. The object selection-Checkpoint Properties dialog box opens. Confirm thatWebedit: passfirst0Is highlighted, and clickOK. The checkpoint Properties dialog box opens. The dialog box displays the object's properties: OTheNameIs the name of the object as defined in the HTML code of the web page. OTheClassIs the type of object.WebeditIndicates that the object is an edit box. OTheABCIcon inTypeColumn indicates that the value of the property is a constant. For each object class, quicktest recommends default property checks. The table below describes the default checks for the webedit class.
Property |
Value |
Explanation |
| HTML Tag |
Input |
InputIs the HTML tag as defined in the HTML source code. |
| innertext |
in this case, the value of innertext is empty. the checkpoint checks that the value is empty. |
Name |
Passfirst0 |
Passfirst0Is the name of the edit box. |
| Type |
Text |
TextIs the type of object as defined in the HTML source code. |
Value |
<Firstname> (The name you entered while recording) |
The value entered in the edit box. |
The passenger's first name is entered in the First Name box whenPassfirst0 set... Step is already med. Therefore, inInsert statementArea of the checkpoint Properties dialog box, selectAfter current step. This inserts the checkpoint afterPassfirst0 set... Step in which the first name is entered. InNameBox, enterChecknameAs the new checkpoint name. Accept the rest of the settings as default and clickOK. Quicktest adds a standard checkpoint step to your test below the selected step. 6.Save the test. ChooseFile> SaveOr clickSaveButton. You Insert Most checkpoints in the manner described above. Several special types of checkpoints are explained in the following sections. |