Assigning team members to test cases
Team members can be assigned to test cases with specific roles, such as Owner, QA Tester, Reviewer, etc.
Allure TestOps provides two roles that you can use by default: Lead and Owner. To add new roles, you need to sign in to Allure TestOps as administrator.
When you create a test case using the web interface, you are automatically assigned as the Owner.
Team members can be assigned manually using the web interface or automatically from the test results you upload to Allure TestOps. If you want to assign team members to automated test cases manually, you need to change your project's upload policy.
Managing available roles
- Log in to Allure TestOps using an administrator account.
- Go to Administration → Roles.
- To add a new role, click the + Create button and enter a name for the new role.
To rename a previously added role, click the pencil icon on the right side of the role. To delete a role, click the trash bin icon.
Assigning team members manually
- Go to the Test cases section of your project.
- Open a test case.
- On the right side of the screen, next to Members, click the pencil icon.
- Click the + Add button.
- Select a role and a team member to assign.
- Click Submit.
To unassign a previously assigned team member, click the cross icon.
Assigning team members automatically from test results
Team members can be assigned to test cases automatically when you upload test results to Allure TestOps. For this to work, you need to specify them in your integration code and create mappings in your project settings.
Specifying roles in code
The exact implementation will depend on the testing framework you use, but as an example, here is what it might look like if you are using JUnit 5:
@Test
@Lead("John Doe")
@DisplayName("Creating new issue by authorized user")
public void shouldCreateIssue() {
steps.openIssuesPage(OWNER, REPO);
steps.createIssueWithTitle(ISSUE_TITLE);
steps.shouldSeeIssueWithTitle(ISSUE_TITLE);
}
Notice the line starting with @Lead. This line assigns John Doe as the lead tester of the test case.
The code above will generate a test result file with the field "labels". This field contains the properties that will be applied to the test case when the file is uploaded to Allure TestOps.
...
"labels": [
{
"name": "lead",
"value": "John Doe"
},
...
You can read more about using labels in the corresponding article.
Creating mappings
- Open your project.
- Got to Settings → Roles.
- Click the + Create button.
- As the Key, specify the value you use in your code. For the example above, it is lead.
- As the Role name, select the role you want to associate with the entered key. For the example above, it is Lead.
- Click Submit.
Changing upload policy
If you want to assign team members to automated test cases using the web interface instead of specifying them in test results, you can change your upload policy to ignore assignments from test results.
- Open your project.
- Go to Settings → Upload.
- Click the + Create button.
- Under Field, select member.
- Under Policy, select from_test_case.
- Click Submit.