Another extension from me aiding usability. It adds a checkbox on Add New Case page that allows to memorize values from current test case and insert them in the new case. This is very handy if one has to create multiple test cases with similar preconditions/steps/results/title etc.
UPD (Mar 4, 2015): The script now supports separate steps mode! For TestRail 4.0 and newer only. » Gist here «
Note: you must add and enable both scripts for everything to wire up.
While the checkbox is checked: when Add Test Case is clicked, and current case is valid, it is saved, and the user is forwarded to the page for creating another test, where all fields will be pre-populated with values from the saved case.[/]
When the checkbox is unchecked, adding cases works as usual.[/]
Now also works with separate steps![/*]
Things to consider:
Since cases functionality still uses form submission (unlike other pages that use AJAX), the script is a bit hackish. First, you’ll notice that there are in fact two redirects, and you require two scripts for two pages for this functionality to work. I hope, this functionality will soon be AJAX’ified and I’ll update the script to have better UX (or maybe the Gurocks will implement this feature natively? ;))[/]
The script uses HTML5 session storage to store case data and flags between pages.[/]
New: Since TestRail servers block too many concurrent requests, adding steps in multi-step mode might be slow because it’s done synchronously. The loading time should be well below 2 seconds for <20 steps though[/*]
With best regards,