- Create Test Project
- Assign Users to Test Project
- Create Requirement Specification
- Create Requirement Specification Operations
- Create Requirement Operations
- Requirement Overview
- Create Test Specification
- Create Test Suite
- Create Test Case Operations
- Automatically generate Test Cases from Requirement Operations
- Create Test Plan
- Create Build / Releases (Set mile stones)
- Assign Test cases to Test Plan
- Assign Test Cases for Test Execution
- Execute Test Cases and log defects
- Add Test Cases in between of Execution (if required)
- Generate Test Reports and metrics
- Test Report
- Failed Test Cases
1. Create Test Project
Users with Manager or Admin role can create Test Projects.
To create a new Test Project, click on Project link -> Test Project Management and click the Create button.
Enter your project details and click the Create button.
Click Project link and in the Test Project drop down at the top right select your project.
2. Assign Users to Test Project
If a project is not created as Public, then we have to assign users to project and specify their roles. Once again, only users with Admin or Manager role can perform this action.
Use the following procedure to assign users to the new Test Project.
- Create a Project without Public Rights.
- Click the User Management link at the top right of the page.
- Click Assign Test Project Roles.
- Select your project from the Test Project drop down and click the Change button.
- Assign users appropriate rights and click the Update button when done.
3. Create Requirement Specification
3.1 . Create Requirement Specification Operations
Use the following procedure to create your Requirement Specification in TestLink.
- Go to Project -> Requirement Specification.
- Click the Create button.
- Create your section requirements, user requirements and system requirements as necessary.
3.2 . Create Requirement Operations
Once Requirement Specification Operations are created, we can create Requirement Operations by selecting particular Requirement Specification Operations and clicking the Create button under the desired Requirement Operations.
User can create the following types of Requirement Operations:
- Use Cases
- User interface
- Non Functional
- System Function
Once all requirements are created, their status can be assigned to the following options:
- Non testable
The user can also enter the number of test cases required to get 100 percent test coverage for each Requirement Operation.
Once the requirements are frozen you can freeze the current version by clicking on Freeze this version.
When changes are required, you can create a new version of your requirements by clicking on the Create a new revision button.
3.3. Requirement Overview
Users can generate a Requirement Specification overview to check the coverage of requirements and their coverage in test cases.
To access this overview, go to Project -> Requirement Overview.
4. Create Test Specification
4.1 Create Test Suite
Use the following procedure to create your test suite.
- Go to Project Link -> Test Specification and select your project.
- Click the Create button.
- Enter mandatory details and click the Create Test Suite button.
4.2 Create Test Case Operations
Click the Create button under the Test Case Operations heading.
Alternately, Test Cases can also be generated from Requirement Operations. Below are the steps to do that.
- Navigate to Project -> Requirement Specifications.
- Select Requirement Specification Operation.
4.2.1 Automatically generate Test Cases from Requirement Operations
Use the following procedure to automatically generate Test Cases from Requirement Operations.
- Click the Create Test Cases button under the Requirement Operations heading.
- Select Requirement -> Enter number of Test Cases and click the Create Test Cases button.
This automatically generates a Test Suite with name of the Requirement Specification Operation and test cases with the name of Requirement Operation auto-incrementing by one for each required test case.
All automatically generated test cases need to be refined by editing the summary, preconditions and adding test steps. All generated test cases are automatically linked with their requirements.
5. Create Test Plan
Once Requirement and Test Cases are created we need to create a Test Plan to cover them.
Use the following procedure to create a Test Plan.
- Navigate to Project -> Test Plan Management and click the Create button.
- Enter mandatory details and click the Create button
If all goes well, your test plan should appear as follows.
6. Create Build / Releases
Use the following procedure to create a build or release.
- Navigate to Build / Releases and click the Create button.
- Enter Title , Description, Release Date and Click Create Button
The new Build should appear as follows.
7. Assign Test Cases to Test Plan
Next we need to assign our test cases to the test plan.
- Navigate to your Project and select Add /Remove Test Cases.
- Select the Test Suite under your Project.
- Click on the check/uncheck all test cases for adding button to select all test cases.
- Click on the Add Selected button. All Test Cases get highlighted in yellow .
8. Assign Test Cases for Test Execution
Now we need to assign test cases for test execution.
- Navigate to your project and select Assign Test Case Execution.
- Select the desired Test Suite.
- Select Check/Uncheck All Test Cases and click the Do button to select all test cases.
Test cases can be assigned in bulk or individually
For bulk user assignment, follow these steps.
- Select the tester’s name and click the Do button. The tester’s name will appear in the Assign drop down to the right of each page.
- Click the Save button.
9. Execute Test Cases and log Defects
Now your testers can login with their credentials and start test execution of their assigned test cases using the following procedure:
- Find the desired project and click Execute Tests.
- Select the desired test cases, and click Execute.
The results will return one of the following:
- Not Run
Depending on the results, select the appropriate radio button and click the Save execution button.
Link the defect with the failed test case and click Access to Bug Tracking System (Redmine).
Log the defect in your bug tracking system, in this case Redmine. And click Link Existent Issue under Bug Management in Testlink.
The Add bug report window will open.
Enter the Bug id and click the Add Bug button.
A summary of the bug will now load with the failed test case.
Repeat as necessary.
10. Adding New Test Cases in Between Test Execution
If new test case needs to be added in between of test execution, below are the steps for same
- Navigate to your project and select Test Specification.
- Select the desired requirement operation.
- Under the Test Case Operations heading, click the Create button.
- Enter the mandatory test case details.
- Navigate to Project -> Requirement Specification -> Assign Requirements.
- Select the newly added test case.
- Select Available requirements and click the Assign button to assign requirements to the test case.
- Navigate to the project and click Add / Remove Test cases.
- Select the newly added test case and click the Add/Remove selected button.
- Navigate to the project and select Assign Test Case Execution.
- Select newly added test case and add choose tester name from the Assigned to drop down and click the Save button.
Now the tester can login with his or her normal credentials and execute the newly added test case in existing test plan.
11 .Generate Test Reports
11.1 Test Report
The test report shows the Pass/Fail status of test cases. Once execution is completed, users can generate test reports and metrics for each Test Plan.
To generate a test report,
- Click the Test Report link at the top of the page
- Set the Report format to HTML, or whatever other format you want.
- Select the appropriate test plan from Test plan drop down.
- Select Test Report.
- Select the content that you want to include in the report.
- Select the test project or test suite for which the test report needs to be generated.
- Click Print button and then save as PDF.
11.2 Failed Test Cases
Use the following procedure to generate a report on failed test cases.
- Select HTML as your Report format .
- Select the desired test plan from the Test Plan drop down.
- Click the Failed Test Cases link.
- Click the Print button and save the report in PDF format.