Lesson 2.4: Test for defects
In this lesson, you monitor the status of a story to determine when it is ready for testing. After completing a test case, you submit a defect. You also associate a defect with a build result.
About this task
In this lesson, you learn how to complete these tasks:
- Check testing status.
- Explore a build and download a build result.
- Explore a story to determine whether it is ready for testing.
- Run a test case.
- Submit a defect.
- Complete a test.
- Mark a defect as blocking.
- Distribute the weight of a test case.
- Associate a defect with a build result.
Checking testing status
About this task
Procedure
Exploring a build
About this task
Procedure
Determining if the story is ready for testing
About this task
Procedure
Running a test case
About this task
In this section, as you run the test case, you are prompted to perform operations against the JKE Banking application and view the application behavior to verify the expected results that are documented in the manual test. You can run the build of the JKE Banking application that Rebecca created, or you can complete the steps for the manual test.
Run a test case:
Procedure
- In the Allocate Dividends To Multiple Causes test case, click the green arrow in the toolbar; then click Run.
- In the window, leave New Test Case Execution Record.
- Set the test plan value to Development Test.
- Set Iteration to S2.
- Set Test Environment to Db2_Windows. Because test cases are reusable, a single test case can be executed against many different environments. Setting the test environment value in the run dialog ensures that the test execution result will be associated to this particular environment configuration.
- Multiple test scripts can be associated to a single test case. This is useful when different steps must be taken to complete a test case on different environments. Leave Allocate Dividends to Multiple Causes selected as the test script.
- The build record indicates which build of your application under test you are executing this test against. The build is associated to the test case execution at run time, so that results can be filtered and sorted by application build. If you complete the Build section, you can associate the build that Rebecca created. If not, you can leave it Unassigned.
- Your team might have many simple test cases that testers already know how to run and that do not require them to follow manual test steps. The execution variables enable you to override data and configuration values in test scripts. They can be assigned at the test script, test case, or test suite levels. Execution variables are out of the scope of this scenario, so leave this and any other value not already specified cleared.
- Click OK.
- Mark step 1 as passed by clicking the green check icon on the left toolbar. The execution arrow moves to the next step.
- If you are running the sample application, perform the action that is described in the Description column and observe the expected results of the first step.
- Continue performing actions and marking steps as passed until step 6, where you observe a defect.
Submitting a defect
About this task
Procedure
Completing a test
About this task
Procedure
- In the script steps, click the red Fail button on the toolbar to mark step 6 as failed.
- Continue running the test. Mark the remaining steps as Inconclusive.
- Close the JKE Banking application if you are running it.
Marking a defect as blocking
About this task
Procedure
Distributing the weight of a test case
About this task
Procedure
Associating a defect with a build result
About this task
Procedure
Lesson checkpoint
In this lesson, you learned how to complete these
tasks:
- Check testing status.
- Explore a build and download a build result.
- Explore a story to determine whether it is ready for testing.
- Run a test case.
- Submit a defect.
- Complete a test.
- Mark a defect as blocking.
- Distribute the weight of a test case.
- Associate a defect with a build result.