Checkout our demo site to practice selenium https://magento.softwaretestingboard.com/

0 like 0 dislike
1.6k views
by The go-to Tester (222 points)
retagged by
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

1 like 0 dislike
by Expert (570 points)

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 ]

0 like 0 dislike
by The go-to Tester (222 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"


This site is for software testing professionals, where you can ask all your questions and get answers from 1300+ masters of the profession. Click here to submit yours now!

1.4k questions

1.6k answers

866 comments

1.9k users

...