Generating Automated Test Scripts
Test planning involves deciding which tests to automate. If you choose to execute tests manually, the tests are ready for execution as soon as you define the test steps. If you choose to automate tests, you can generate test scripts and complete them using other OpenText testing tools (for example, UFT One).
Consider these issues when deciding whether to automate a test.
Do Automate | Do Not Automate |
---|---|
Tests that run with each new version of your application to check the stability of basic functionality across the entire application (regression tests). |
Tests that are executed only once. |
Tests that use multiple data values for the same operation (data-driven tests). |
Tests that require immediate execution. |
Tests that are run many times (stress tests) and tests that check a multi-user client/server system (load tests). | Tests that check how easy the application is to use (usability tests). |
Tests that do not have predictable results. |
In this exercise, you will generate a UFT test script for the Address Options test.
Note: For prerequisites to working with a UFT test, see Before You Begin.
To generate an automated test script:
-
Make sure the test plan tree view is displayed.
If the test plan tree view is not displayed, select View > Test Plan Tree.
-
Locate the Address Options manual test.
-
Select the Subject folder at the root of the test plan tree and choose Edit > Find. The Find dialog box opens.
-
In Value To Find, type Book.
-
In the Search for, select Folders.
-
Click Find. The Search Results dialog box opens and displays a list of possible matches.
-
Double-click the Flight Reservation\Book Flight folder to highlight the folder in the test plan tree. Click Close to close the Search Results dialog box.
-
In the test plan tree, expand the Book Flight folder and select the Address Options test.
-
-
Display the Design Steps tab.
In the right pane, click the Design Steps tab.
-
Generate a test script.
-
Click the Generate Script button.
-
Choose QUICKTEST_TEST to generate a UFT test.
-
Version Control: If a check out message box opens, click OK.
The steps in the Address Options test are used to create the automated test script.
-
-
View the test script.
-
Click the Test Script tab.
-
To display and modify your test script in UFT, click the Launch UFT One button.
-