Skip to content

andreagubellini/robotframework-jiraissueopener

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

robotframework-jiraissueopener

Build Downloads Downloads PyPI

With the following listener a user can automatically create Jira issues when tests fail. Each failed test will have an individual Jira issue for which assignee, project id and issue type may be modified.

Issue reported data

The issue will report:

Summary: suite_name: test_name has failed (example: No-Regression-Suite: Login test has failed)

Description:

 Error message: test_message
 Documentation: test_documentation

Assignee: assignee can be set as variable value

Log files

Current execution log.html file is attached to all opened issues.

Installation

pip install robotframework-jiraissueopener

Dependencies

  • Robotframework
  • Requests

NB: above dependencies are installed automatically when using pip to retrieve robotframework-jiraissueopener

Usage

Executed .robot file must expose mandatory variables such as:

  • ${JIRA_PROJECT} Jira server api /issue/ url
  • ${JIRA_PROJECT_ID} your project id. Retrievable from project settings. Example: 11805
  • ${JIRA_ISSUE_TYPE} issue_type: can be found on your jira settings. (How-to) Example: 10100

Example:

***Variables***
${JIRA_PROJECT}     https://jira.myserver.com/rest/api/2/issue/
${JIRA_PROJECT_ID}  11888
${JIRA_ISSUE_TYPE}  10100
${JIRA_ISSUE_KEY}   TEST

The listener arguments are:

username: your jira username password: your jira password

Example

The following is an example based on the dummy data used in Usage

robot --listener "jiraissueopener;testusername;mycoolpassword" mytests.robot

Contributing

Pull requests are welcome. Please open an issue first to discuss what you would like to change.

License

MIT

About

An automatic jira issue opener library for robotframework

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages