How to record and run test cases in JIRA?

I have a web application that I need to continuously and thoroughly test and automate the JIRA testing process.

I am using a JIRA Cloud subscription.

How to implement the following JIRA requirements:

1 - Writing usage scenarios (user stories) and saving them as elements in JIRA so that I can easily find, search and filter them on JIRA (just as I can do with problems, for example).

2 - Creating test cases by recording them when I test a test case manually for the first time (the same as recording a macro in Excel), and then you can re-run the test cases at any time I want again and record the output every i run them.

  • Each test case created must be associated with its parent use case.
  • In each use case, many test cases may be associated.
  • A test case may involve several use cases.

3 - Run all recorded test cases in batches and collect the results for each run of each test case, and then manually determine whether the test case was successful or unsuccessful for this run.

Please inform.

+8
unit-testing jira jira-plugin
source share
2 answers

Some, but not all, of what you describe is possible with the finished JIRA.

You can create your own type of problem "Test Case". You can give this problem the type of all the fields that are suitable for the test case.

Having a custom type of problem simplifies the search (for example, searching for all open problems like "Test Case" in a project).

JIRA allows you to have many-to-many relationships using problem references . Unfortunately, searching using problem references is a pain if you don't have a plugin like Script Runner . The script runner provides you with features like hasLinks, linkedIssueOf, and epicsOf .

If you want to make more complex binding of actual tests with JIRA, then it is worth considering some of the test plugins, for example Zephyr . This plugin allows you to create and run tests from JIRA.

Another thing worth considering is the integration of JIRA with version control systems. For example, JIRA has good integration with GitHub . You could keep your test cases under source control and then link them to JIRA problems as part of the commit process.

+2
source share

New tickets to JIRA can also be created using the REST API call, below are a few links that reference the call to create an additional ticket with examples. Hope this helps!

0
source share

All Articles