Generated Testcases for userstory in JIRA using ‘Katalon-Testcase generator’ plugin
Integrated JIRA and Testops
Enabled ‘Save to katalon’ button and moved testcases to Testops
Query:
The testcases moved have referral JIRA ID.
- What is the use of moving this testcases from JIRA to Testops
- Is it possible to move this testcases to Katalon Studio and add testscripts
- I manually added the same summary of the testcase in katalon studio and run and uploaded the report to Testops. But it got moved to Uploaded Data folder whereas the JIRA Testcases are moved to Katalon cloud folder. Is it possible to map this testcase
- Need more details on this JIRA Integration uses in katalon
1 Like
Purpose of Moving Test Cases from JIRA to Katalon TestOps
- Traceability & Visibility:
- Link user stories (JIRA issues) directly to test cases in TestOps, ensuring end-to-end traceability (requirement → test case → execution result).
- Teams can track which tests validate specific JIRA user stories/epics.
- Centralized Test Management:
- TestOps acts as a single source of truth for test cases, executions, and reports. Moving JIRA-generated test cases to TestOps ensures they are managed alongside automated/exploratory tests.
- Automation Synchronization:
- Test cases in TestOps can be linked to automated scripts in Katalon Studio, bridging manual and automated testing workflows.
Moving Test Cases to Katalon Studio & Adding Scripts
Option 1: Export Test Cases from TestOps to Studio
- Use TestOps’ “Link to Automation” feature:
- In TestOps, open the test case imported from JIRA.
- Click “Link to Automation” and generate a placeholder script in Katalon Studio.
- Write automation code in Studio and map it to the TestOps test case via its UUID or external ID.
Option 2: Manual Script Creation with JIRA Mapping
- If you manually create test cases in Studio:
- Add the JIRA issue key (e.g.,
JIRA-123
) to the test case’s description or custom fields in Studio.
- Upload execution results to TestOps. Use TestOps tags or JIRA IDs to correlate results with the JIRA-linked test cases.
Why Manually Created Test Cases Land in “Uploaded Data”
- Cause: When you run tests in Studio and upload results to TestOps, they are treated as new executions unless explicitly linked to existing TestOps test cases.
- Solution:
- Use the
testOpsUpload
command with the --testCaseId
parameter to map executions to specific TestOps test cases:
bash
./katalon -noSplash -runMode=console -projectPath="your.prj" -retry=0 -testSuitePath="Test Suites/your_suite" -browserType="Chrome" -executionProfile="default" -apiKey="YOUR_API_KEY" -testOpsUpload --testCaseId="TEST_OPS_TEST_CASE_ID"
- OR use Katalon’s TestOps API to programmatically link executions.
Mapping Manual Test Cases to JIRA-Linked TestOps Entries
- In Katalon Studio:
- Ensure the test script includes the JIRA ID in metadata:
groovy
@Metadata(
[ tags: ["JIRA-ID:YOUR_JIRA_KEY"],
customFields: ["JIRA Link": "https://your-jira/browse/YOUR_JIRA_KEY"]
]
)
- In TestOps:
- Use JQL (JIRA Query Language) in TestOps to filter test cases by JIRA ID.
- Configure Traceability Dashboard to visualize relationships between JIRA issues and test cases.
Key Benefits of JIRA + TestOps Integration
- Bi-Directional Sync:
- Update test case statuses in TestOps (Pass/Fail) and reflect them in JIRA issues.
- Automated Reporting:
- TestOps automatically updates JIRA issues with execution summaries.
- Prioritization:
- Identify high-risk JIRA issues by analyzing linked test case failure rates.
Example Workflow
- JIRA → TestOps:
- Generate test cases in JIRA using the Katalon plugin.
- Sync them to TestOps (stored in the “Katalon Cloud” folder).
- TestOps → Studio:
- Link TestOps test cases to Studio scripts (via UUIDs).
- Studio → TestOps:
- Upload execution results mapped to TestOps/JIRA IDs.
- TestOps → JIRA:
- Automatically update JIRA issues with test results.
Troubleshooting Tips
- Mismatched Folders: Use TestOps Labels to organize test cases into folders dynamically.
- Missing Links: Ensure the JIRA ID is included in both TestOps test case metadata and Studio scripts.
- API Integration: Use TestOps REST API to programmatically sync data:
bash
# Example: Update TestOps test case with JIRA ID
curl -X POST "https://analytics.katalon.com/api/v1/test-cases" -H "Authorization: Bearer $API_KEY" -d '{"name":"Test Case","jiraId":"JIRA-123"}'
By properly linking JIRA, TestOps, and Studio, you ensure that every test execution is traceable to its originating requirement.