Join 500+ Software Testing professionals. Solve problem and get your problem solved. Register Now!

Can you help me write the test case for multiple roles?

Open 2 Answers 67 Views
0 2
I am working on a system that has little complex user roles. We have users like super admin, admin, customer representative, sales guy, etc. Each has capabilities such as create, read, delete and update.

I see many repeated steps/case for roles. How do I optimize it?

2 Answers


Software testing companies follow strategies to create Test Plan for any feature. To avoid duplicacy in the test cases, the following methods can be followed:

a) Test Case Matrix
- Create a matrix with scenarios and roles defined. Then mark the status accordingly. [Refer to below screenshot]

b) Flow Chart
- Create a flow chart with the roles defined in order to verify the common and different areas for testing [Refer to below screenshot ]

answered by (570 points)
Okay, you can try using DRY principle. (Do not repeat yourself)

First, create a matrix with different test cases and their respective expected results.

Then, you can write a test scenario A with all test steps for one of the roles (X), with a reference to the table for the expected results.

Then, you can make a new test case that simply says "Repeat test scenario A, for role Y"
answered by (202 points)

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register.