How to add Defects into jira from test manager

Hi ,
I wanted to add defects (failed test cases )into jira from test manager.
How do I do this??

Please help

@Nisha_K21

Refer the below:

To add defects (failed test cases) into Jira from UiPath Test Manager, you can follow a structured approach. The exact steps may depend on your specific environment and setup, but here’s a general guide to help you through the process:

Steps to Create Defects in Jira from UiPath Test Manager

  1. Integrate UiPath with Jira:

    • Before you can create defects in Jira, ensure that your UiPath Test Manager is integrated with your Jira instance. This integration is typically done through API connections.
    • In UiPath Test Manager, navigate to the settings or administration section and configure the Jira connector by providing the necessary details like Jira URL, Username, and API Token/Password.
  2. Create a Test Case in UiPath Test Manager:

    • Ensure you have test cases set up in UiPath Test Manager. When you run these test cases, if they fail, you’ll want to capture those failures and report them as defects.
  3. Record Test Results:

    • Execute your test cases. After the test execution, review the results. Failed test cases will commonly have an attached error message and stack trace, which can be useful for the defect report.
  4. Manually Adding Defects in UiPath Test Manager:

    • After identifying a failed test case, you may need to manually create a defect linked to that test case. Most configurations allow you to right-click or select an option to create a defect.
    • Fill in the necessary details for the defect, such as:
      • Title: A brief description of the defect.
      • Description: More detailed information, including steps to reproduce, expected results, actual results, and any logs or screenshots.
      • Test Case ID: Link this defect to the failed test case ID for traceability.
      • Priority/Severity: Classify the defect based on its impact.
  5. Use Automation to Create Defects:

    • If you want this process to be automated, consider using UiPath’s capabilities to create a workflow that reads the test results from UiPath Test Manager and automatically creates defects in Jira when test cases fail.
    • You can utilize the Jira API to programmatically create issues. You would typically:
      • Authenticate with the Jira API using POST requests.
      • Structure the request body in JSON format with the necessary defect information.
      • Send the request to the Jira API endpoint responsible for creating issues.

Sample Workflow to Create Defects in Jira:

Here’s a high-level overview of a UiPath workflow to create defects in Jira automatically:

  1. Read Test Results:

    • Use activities to read the test results from UiPath Test Manager (e.g., using APIs or UI automation).
  2. Check for Failures:

    • Add logic to loop through the test results and identify any failures.
  3. Configure Jira API Request:

    • Use the HTTP Request activity to configure and send requests to the Jira API.
    • Set up the HTTP method as POST.
    • Provide the Jira API endpoint for issue creation (e.g., https://<your-jira-instance>/rest/api/2/issue).
  4. Construct JSON Payload:

    {
      "fields": {
        "project": {
          "key": "PROJECT_KEY"
        },
        "summary": "Summary of the defect",
        "description": "Detailed description of the defect",
        "issuetype": {
          "name": "Bug"
        }
      }
    }
    
  5. Send Request and Handle Response:

    • Capture the response to confirm issue creation and handle any errors if they occur.

Additional Considerations:

  • Permissions: Ensure that the user you are using has the necessary permissions in Jira to create issues.
  • Field Mapping: Understand how fields in Test Manager map to Jira fields to ensure accurate and meaningful defect creation.
  • Version Control: Track which version of the test case failed to prevent confusion later.

@naveen.s
I’ve made a set up.in jira and also in UiPath test manager executed a test set.
But there are few failed test case which I wanted to place it in jira.
There a option to create a defect for a failed test case but I’m getting one popup as

Even though I’ve logged into jira.

What should I do in such case?

@Nisha_K21

If you’re experiencing issues with UiPath Test Manager prompting for Jira authentication despite being logged in, it could be due to several factors. Here are key troubleshooting steps to resolve the issue:

  1. Session Expiration: Log out of Jira and log back in to refresh your session.
  2. Authentication Method: Verify that you’re using the appropriate authentication method (e.g., Basic, OAuth) and that API tokens are correctly configured.
  3. Browser Compatibility: Ensure that your browser is supported by Jira and not blocking cookies or pop-ups.
  4. Incognito Mode: Try using an incognito window to eliminate cache or cookie conflicts.
  5. Permissions Check: Confirm that your user account has the necessary permissions to create defects in Jira.
  6. VPN or Proxy Issues: Temporarily disable any VPN or proxy that might interfere with authentication.
  7. Reconfigure Connection: Check and re-enter your Jira credentials or API tokens in UiPath Test Manager settings.
  8. Review Logs: Inspect logs in UiPath Test Manager for specific error messages related to authentication.
  9. Contact Support: Reach out to UiPath or Jira support if the issue persists for further assistance.

Additionally, ensure that both Jira and UiPath Test Manager are updated and be aware of any API limits that might affect defect creation. If problems continue, consult your IT team for potential configuration issues.

@Nisha_K21

Please check this video

it has details on how to create

Credits to @pathrudu

cheers

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.