How can we Zephyr for Jira - Can we restrict a user from editing executed test? Would it be possible to create a new version for any executed tests and make changes only to the newer version of the test case? We are evaluating JIRA v6.3.9/Zephyr for JIRA 2.5.1.
We work around this Zephyr limitation by using workflow permissions. First you have to have to configure Zephyr to show the workflow toolbar and assign an appropriate workflow to your Tests.
In our case our basic workflow is Open -> Under Review -> Active
Once a test is designed and moved to Active it is restricted from any editing. We do this by applying workflow properties on the "Active" status as follows:
jira.permission.create.user = denied
jira.permission.edit.user = denied
This technically means that only the username "denied" can edit the issue. Since we will never have a user with this name, it works for us. You may want to adjust if you somehow will use that username.
Zephyr checks for "Create" permission when you add Test steps and checks the "Edit" permission when you move, delete, or edit the steps. Now the "Create" permission is the odd one here: Since you are applying this to a workflow step, you are saying that you cannot create an issue when the issue is in this status. But since this is a workflow property it does not apply to normal issue creation. In essence it only impacts Zephyr as its the only thing that would check for "Create" permission within an issue context. Logically since the steps are part of the issue it would have made sense for Zephyr to use the "Edit" permission for everything, but that is not the case here.
Hope this helps.
To me that's one of the biggest questions to Zephyr currently. You can edit test definitions with the weirdest effects on the test execution reports:
Basically that means: As soon as you've done a single test execution you should prevent to change the test definition, everything else breaks the laziest definitions of traceability.
Having the need to copy test definitions (I think they at least have a cloned from link) I would assume the whole system becomes unmanageable very soon.
So, I would second the question you've raised to Zephyr, how do you envision to use the plugin?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The above solution from Jacob works like a charm
Thanks a ton
It is so weird though that there is no straightforward permission, I tried the following earlier and it did not work:
jira.issue.editable=false but did not work. It would prevent me from editing the issue itself but would allow to edit or create test steps. Adding the above two permissions nailed it.
Now, I am looking at how to prevent execution of tests that are not yet approved
Any suggestions on this will be appreciated
Cheers!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Any idea how to prevent execution of tests that are not yet approved ? I am looking for the same feature in Zephyr - can you help on the same how it can be implemented?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
How to prevent execution of tests in Zephyr that are not yet approved
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.