Lesson 7: Configure operation behavior (QM)
In this lesson, you will learn how to configure preconditions for operations in a quality management project area. A precondition requires that a condition be true before members can complete an operation. You can use preconditions to enforce best practices in your organization.
About this task
Procedure
- Go to the administration interface of the Quality Management (QM) application at https://hostname.example.com:9443/qm/admin, where hostname.example.com is the fully qualified domain name of your Jazz Team Server.
- Log in as Bert by typing bert for both the user ID and password.
- For the Customization Tutorial project area, open the Preconditions
and Follow-up Actions page:
- Click the Project Areas menu, and then click Browse Active Project Areas.
- Click the Customization Tutorial (Quality Management) project.
- In the list on the left, click Preconditions & Follow-up Actions.
- Create a precondition that prevents test team members from
running unapproved test cases:
- Click Configure, and then click Create New Configuration.
- Under Quality Management, select Execute Test Case, and then click Next.
- Select Test Team Member, and then click Next.
- Verify that Always is selected, and then click Finish.
- Above the list of preconditions, click Add.
- Select Disallow Execution until Test Case is Approved, and then click OK.
- In the Actions column, click the pencil icon to collapse the precondition configuration.
- Add a precondition that prevents all users from advancing
a test case to the Approved state until at least two test team members
have approved the test case:
- Click Configure, and then click Copy Existing Configuration.
- Verify that Copy from within the same project area and Customization Tutorial (Quality Management) are selected, and then click Next.
- Select Save Test Case - Everyone (default) - Always, and then click Next.
- Select Test Team Member, and then click Finish.
- Above the list of preconditions, click Add.
- Select Required Approvals, and then click OK.
- In the Transition Rules section, click Add.
- From the Target State / Group list, under State Groups, select Approved.
- From the Required Approval Type list, verify that Approval is selected.
- In the Test Team Member field, type 2, and then click OK.
- In the Actions column, click the pencil icon to collapse the precondition configuration.
- Remove the precondition that requires all users to provide
an E-signature when they lock or unlock a test case:
- In the list of precondition configurations, find the Save Test Case - Everyone (default) precondition configuration. In the Action column, click the pencil icon.
- From the Preconditions list, select E-Signature Required for Lock/Unlock, and then click the Delete icon.
- Save the project area. You are now ready to see your configured operation behavior in action.
- Add Wilma as a member of the Customization Tutorial
Project (Quality Management) project area:
- In the list on the left, click Overview, and then scroll to the Members section.
- Click Add. Type Wilma. In the Matching users list, double-click Wilma, and then click Next.
- In the Available Roles list, double-click Test Team Member, and then click Finish.
- Save the project area.
- When you are prompted to send an invitation to Wilma, click Cancel.
- Log out, and then go to the QM application at https://hostname.example.com:9443/qm/web.
- Log in as Wilma by typing wilma for both the user ID and password.
- Click the Customization Tutorial Project (Quality Management) project area.
- Create a test case by clicking Construction > Create Test Case. Name the test case TC1, and then save it.
- Try to run the test case by clicking the Run icon () and then selecting Run. You cannot run the test case because it is not approved.
- From the Action list, select Ready for review, and then save the test case.
- From the Action list, select Approve, and then save the test case. You cannot set the test case as Approved because the test case is not approved by at least two test team members.
- Define an approval:
- In the list to the left of the test case, click Formal Review.
- In the Formal Review section, click Approval, and then select a due date that is one week from today.
- In the Description field, enter Final Approval.
- Click Add approver.
- In the Select Users window, click Show All.
- From the Matching users list, select Bert and Wilma, and then click Add and Close.
- From the Action list, select Return to Under Review, and then save the test case.
- Log on as Bert and approve the TC1 test case:
- From the User Profile menu (), click Log Out.
- Log on as Bert by typing bert for both the user ID and password.
- If the TC1 test case is not already open, open it.
- In the list to the left of the test case, click Formal Review. If this test case was a completed test case, you could review the contents by clicking each section in the list on the left.
- Click the Pending down arrow for Bert, and then select Approved.
- Save the test case.
- Log on as Wilma and approve the TC1 test case:
- From the User Profile menu (), click Log Out.
- Log on as Wilma by typing wilma for both the user ID and password.
- If the TC1 test case is not already open, open it.
- In the list to the left of the test case, click Formal Review. If this test case was a completed test case, you could review the contents by clicking each section in the list on the left.
- Click the Pending down arrow for Wilma, and then select Approved.
- Save the test case.
- Lock the test case by clicking the Set to
locked icon (). You are
not prompted for an E-signature because it is not required. The next step is to approve the test case, but the Action list is not visible to the right of State because the test case is locked.
- Unlock the test case by clicking the Set to unlocked icon (). You are not prompted for an E-signature because it is not required.
- From the Action list, select Approve, and then save the test case. The test case is saved and its state is changed to Approved.
- Run the test case:
- Click the Run icon ().
- In the Run Test Case window, select Create Result without Execution, and then click OK. Now that the preconditions for running a test case are met, the test case runs successfully.
Results
Lesson checkpoint
In this lesson, you learned how to configure preconditions
for specific roles.