Preparing to Record
Before you record a test, confirm that your application and QuickTest are set to match the needs of your test. 1. Make sure your application displays elements you want to record, such as a toolbar or a special window pane. 2. Check to see, that your application options are set for the purposes of your test. 3. View the settings in the Test Settings dialog box (Test > Settings) to ensure that data will be recorded and stored correctly. 4. Review the Options dialog box (Tools > Options) to ensure that QuickTest will record and store information appropriately. For example, you should confirm that the test is set to use the appropriate object repository mode. 5. Make sure that all browsers are closed before you begin recording. |
Recording a Session
As you navigate through your application or Web site, QuickTest graphically displays each step you perform as a row in the Keyword View. A step is any user action that causes or makes a change in your application, such as clicking a link or image, or entering data in a form. For example, if you wanted to test your course registration website, you would: 1. Create a new, blank, test file. 2. Click the Record button and enter the details about the type of application being tested. 3. Log on to your corporate website and perform the steps to register for a class. 4. Click the Stop button to end the test. QuickTest recorded your web browser operations from the time you clicked Record until you clicked Stop. |
Review a Recording
As you recorded your test, QuickTest generated steps in the Keyword View representing each operation you performed in the web browser.
The columns in the Keyword View show different information for each step, as described in this table: Column | Description |
Item | Displays the item for the step (test object, utility object, function call, or statement) in a hierarchical icon-based tree. |
Operation | The operation to be performed on the item, for example, Click or Select. |
Value | The argument values for the selected operation, for example, the mouse button to use when clicking the image. |
Assignment | The assignment of a value to or from a variable so you can use the value later in the test. |
Comment | Any textual information you want to add regarding the step, for example, Return to page used in first step of the test. |
Documentation | Auto-documentation of what the step does, in an easy-to-understand sentence, for example, Click the "See Details" icon. |
No comments:
Post a Comment