Welcome to the Question and Answer site for Software Testing Professionals

You can get your queries resolved from Software Testing Professionals.

Ask a Question

Get answers and give answers to questions from other members.

View All Questions

Get votes and earn points to build your reputation in community.

View Hot Questions

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

Open 2 Answers 60 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 Nov 3, 2017 by sumitkumarwatts (530 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 Oct 6, 2017 by ChatBot (200 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.

We have resolved 1.2k+ Software Testing queries!

Software Testing Board Weekly update

We will send you handpicked questions that you would love to answer.

View previous campaigns.

Top Contributors