How to Create Tests
This task describes how to create folders of test subjects in the test plan tree, and add tests to the test subjects.
Note: This task is part of a higher-level task. For details, see How to Plan Tests in ALM.
To learn more about test specification, see Test Plan Specification Overview.
-
Create folders in the test plan tree. Each folder represents a test subject – a testing area in your application.
To create a test subject:
-
On the ALM sidebar, under Testing, select Test Plan.
-
Select View > Test Plan Tree.
-
Select the Subject root folder or an existing test subject, and click New Folder .
Example:
To test a flight reservation application that lets you manage flight scheduling, passenger bookings, and ticket sales, you might define the following subjects for the test plan tree:
Notice how the Itinerary subject contains additional subject folders. These folders further categorize the tests in the test plan tree by creating additional levels of subjects. For the complete example, refer to the ALM_Demo project.
-
-
Create tests in the test plan tree
Create tests under test subject folders.
To create tests:
-
In the Test Plan tree, right-click the folder, and select New Test.
-
Fill in the fields in the New Test dialog box. For user interface details, see New Test Dialog Box.
Each test should have a distinct objective, such as verifying a specific function or system requirement. The tests you define should be based on the goals you set at the beginning of the application management process.
Example:
In the test plan tree shown in the previous step, you might assign tests to the Itinerary subject folders as follows:
Tip: For test types that support test configurations, a test configuration is automatically created when you create the test. For details, see How to Work with Test Configurations.
Note: To create and edit Unified Functional Testing tests from within ALM, you must install the UFT add-in from the Add-ins page. You can access the Add-ins page in ALM from Help > Add-ins.
-
-
Create tests from a testing tool – optional
You can add tests to the ALM Test Plan tree from supported testing software such as Unified Functional Testing or LeanFT. For details, see the user guide for the appropriate testing tool.
Note: UFT tests can be added to ALM from within UFT without needing to install the UFT add-in. These tests can then be run normally from ALM.
-
Import tests – optional
In addition to creating a test plan tree in the ALM Test Plan module, you can also import test plan data from Microsoft Word or Microsoft Excel to your ALM project. To import test plan data, you must first install the appropriate add-in. For details, see Data Import from Microsoft Word and Microsoft Excel .
You can also import LeanFT tests in the ALM Test Plan module. For details, see LeanFT Tests Overview.
-
Create a manual template test – optional
If there are common instructions that will be repeated in several tests, for example
Log in to the application
, you can create a manual template test of common instructions, that is then called by other manual tests.Note: It is not essential to mark a test as a template test to be able to call it.
To create a manual template test:
-
Create a manual test, as described in the step above for creating tests in the test plan tree.
-
Right-click the new test in the test plan tree, and select Mark as Template Test. The test icon changes from gray to white, indicating that it is now a template test.
-
-
Create a UFT template GUI test – optional
Micro Focus Unified Functional Testing (UFT) comprises the product formerly known as Micro Focus QuickTest Professional and the product known as Micro Focus Service Test.
-
Functionality provided by QuickTest is now known as GUI testing in UFT.
-
Functionality provided by Service Test is also known as API testing in UFT.
The template test defines which UFT add-ins ALM associates with a new UFT GUI test. For details,see the Unified Functional Testing documentation and the relevant Unified Functional Testing add-in documentation.
In addition to the default UFT template GUI test that is provided with the ALM client, you can create other UFT template tests.
To create a UFT template test:
-
Create a UFT GUI test, as described above in the step for creating tests in the test plan tree.
-
Right-click the new test in the test plan tree, and select Mark as Template Test. The test icon changes from gray to white, indicating that it is now a template test.
-
-
Add steps to tests
Add steps to tests, describing the actions a tester should perform to complete the tests.
For task details, see How to Design Test Steps.