...
3. Fill the required data in accordingly for Cloud/Server.
Cloud
In the case of Cloud instance for QMetry for JIRA, select the Cloud option and fill in the required data.
You can get more information regarding fields by clicking on the Help icon for respective fields. It explains what to enter in that particular field.
...
Test Case and Test Cycle Fields | ||||
Parameter | Type | Required | Description | |
Summary (only for Test Cycle) | string | No | Summary of test cycle. | |
Description | string | No | Description of test case/test cyclePriority | |
Folder Id | string | No | Priority to be added to the test case/test cycle. | StatusFolder Id to organize test cases and test cycles in that particular folder. You can get the Folder Id by right clicking on the folder and selecting option “Copy Folder Id”. If the mentioned Folder Id does not exist, and error will be shown. The test cases/test cycles will not be created. |
Priority | string | No | Status Priority to be added to the test case/test cycle. | |
Status | string | No | Status to be added to the test case/test cycle. | |
Components | string | No | Comma separated names of Components to be added to the test case/test cycle. | |
Labels | string | No | Comma separated names of Labels to be added to the test case/test cycle. | |
Fix Version Id (How to find the Fix Version Id) | number | No | Id of Fix Version to be added to the test case/test cycle. | |
Sprint Id (How to find the Sprint Id) | number | No | Id of Sprint to be added to the test case/test cycle. | |
Assignee | string | No | Account Key of the current user for test case/test cycle. | |
Reporter | string | No | Account Key of the current user for test case/test cycle. | |
Precondition (only for Test Case) | string | No | Precondition for test case. | |
Estimated Time (only for Test Case) | string | No | Estimated time for test case in ‘HH:mm’ format | |
Planned Start Date (only for Test Cycle) | string | No | Planned Start Date of test cycle in 'dd/MMM/yyyy HH:mm' format | |
Planned End Date (only for Test Cycle) | string | No | Planned End Date of test cycle in 'dd/MMM/yyyy HH:mm' format | |
Custom Fields | string | No | Comma separated custom fields in JSON array. |
Server
In the case of a Server instance for QMetry for Jira, select the Server option and fill in the required data.
Parameters for Server instance:
Parameter | Type | Required | Description |
Jira URL | string | Yes | Enter Jira URL. |
Basic Authentication OR | string | Yes | Basic Authentication Basic authentication with Jira's credentials.
|
Personal Access Token If the Allow basic authentication on API calls option is disabled in Jira, then Personal Access Token is required for authentication. To generate a personal access token, perform the following steps:
| |||
Automation API Key | string | Yes | Your API Key. API Key is unique for a specific user in a single project. The result will be imported for the project associated with the given API Key. |
Format | selection | Yes | Format of result file to be imported. Supported formats: cucumber/json testng/xml junit/xml QAF hpuft/xml specflow/json |
File | string | Yes | Path to your result file to be uploaded. Example: The Jenkins plugin is expecting the file in Jenkins Workspace. If your automation generates multiple result files of the supported format in a folder then provide the absolute path till the folder name(It should not be the path till workspace). QMetry plugin will zip all supported format files and upload them to QMetry. |
Test Cycle To Reuse | string | No | Key of the test cycle to be reused. |
Upload Screenshots | checkbox | No | Check to upload attachments in execution. Default value: false. |
Environment | string | No | Name of the environment on which test cycle has to be executed. |
Build | string | No | Name of the build for test cycle execution. |
Test Case and , Test Cycle Fields and Test Case Execution Fields | |||
Parameter | Type | Required | Description |
Summary (only for Test Cycle) | string | No | Summary of test cycle. |
Description | string | No | Description of test case/test cycle |
Folder Path | string | No | Folder path to organize test cases and test cycles |
Priority | string | No | Priority to be added to the test case/test cycle. |
Status | string | No | Status to be added to the test case/test cycle. |
Components | string | No | Comma separated names of Components to be added to the test case/test cycle. |
Labels | string | No | Comma separated names of Labels to be added to the test case/test cycle. |
Fix Version Id (How to find the Fix Version Id) | number | No | Id of Fix Version to be added to the test case/test cycle. |
Sprint Id (How to find the Sprint Id) | number | No | Id of Sprint to be added to the test case/test cycle. |
Assignee | string | No | Account Key of the current user for test case/test cycle./test cycle execution assignee |
Reporter | string | No | Account Key of the current user for test case/test cycle.Estimated Time |
Precondition (only for Test Case) | string | No | Estimated timePrecondition for the test case. |
Estimated Time (only for Test Case) | string | No | Estimated time for test case in ‘HH:mm’ format |
Planned Start Date (only for Test Cycle) | string | No | Planned Start Date of test cycle in 'dd/MMM/yyyy HH:mm' format |
Planned End Date (only for Test Cycle) | string | No | Planned End Date of test cycle in 'dd/MMM/yyyy HH:mm' format |
Custom Fields | array | No | Comma separated custom fields in JSON array. |
Comment (only for Test Case Execution) | string | No | Test Case Execution Comment |
Actual Time (only for Test Case Execution) | string | No | Actual time for test case execution in ‘HH:mm’ format |
Pipeline
QMetry Test Management supports Jenkins Pipeline for implementing and integrating continuous delivery pipelines into Jenkins.
...
Enter Pipeline script to define your code repository, generate test results, and upload test results into QMetry Test Management.
...
Code Snippet for Cloud: QMetry for Jira v4.0 and above
Pipeline Script
|
|
|
|
|
|
|
Code Snippet for Server: QMetry for Jira v4.0 and above
Pipeline Script
...
stage('Upload Result to QTM4J server V4'){ step([$class: 'TestReportDeployPublisherCloudV4', jiraUrlServer: 'http://qtm4jpostgres.qmetry.com:8080/', serverAuthenticationType:'BASICAUTH', username: 'admin', password: hudson.util.Secret.fromString('john123#'), testToRun: 'SERVER', apikeyServer: 'bc851b65c4224984f36d9e5f8931327b4985d1a68d9e8', formatServer: 'junit/xml', fileServer: 'junit.xml', testCycleToReuseServer: "", attachFileServer: true, environmentServer: "Firefox", buildServer: "1.0.0", testCycleSummaryServer: "Basic mode testing", testCycleDescriptionServer: "Unit testing", testCycleFolderPathServer:"F1/F2/F3", testCycleLabelsServer: "v8.2.1", testCycleComponentsServer: "FitBit", testCyclePriorityServer: "High", testCycleStatusServer: "To Do", testCycleSprintIdServer: "63", testCycleFixVersionIdServer: "10909", testCycleAssigneeServer: "JIRAUSER11200", testCycleReporterServer: "JIRAUSER11200", testCycleStartDateServer: "15/May/2020 00:00", testCycleEndDateServer: "30/May/2020 00:00", testCycleCustomFieldsServer: "'[{"name": "Country", "value": "India"}, {"name": "Language", "value": "English"}, {"name": "TimeZone", "value": "IST"}]"', testCaseDescriptionServer: "Verify the login page", testCasePreconditionServer:"The user should be registered", testCaseFolderPathServer:"F1/F2/F3", testCaseLabelsServer: "v8.2.1", testCaseComponentsServer: "FitBit", testCasePriorityServer: "High", testCaseStatusServer: "To Do", testCaseSprintIdServer: "63", testCaseFixVersionIdServer: "10910", testCaseAssigneeServer: "JIRAUSER11200", testCaseReporterServer:"JIRAUSER11200", testCaseEstimatedTimeServer: "10:10", testCaseCustomFieldsServer: "'[{"name": "Country", "value": "India"}, {"name": "Language", "value": "English"}, {"name": "TimeZone", "value": "IST"}]"])} |
→ Token Authentication:
...
', testCaseExecutionCommentServer: "Pipeline Comment testing", testCaseExecutionActualTimeServer: "11:11", testCaseExecutionAssigneeServer: "JIRAUSER10100", testCaseExecutionCustomFieldsServer: '[{"name": "Country", "value": "India"}, {"name": "Language", "value": "English"}, {"name": "TimeZone", "value": "IST"}]'])} |
→ Token Authentication:
stage('Upload Result to QTM4J server V4'){ step([$class: 'TestReportDeployPublisherCloudV4', jiraUrlServer: 'http://qtm4jpostgres.qmetry.com:8080/', serverAuthenticationType:'TOKENAUTH', personalAccessToken:'NDY2OTIyOTYxkzOg17rGUmpZPMdFtGyWdDHX', testToRun: 'SERVER', apikeyServer: 'bc851b65c42259f49846d9e5f8931327b985d1a68d9e8', formatServer: 'junit/xml', fileServer: 'junit.xml', testCycleToReuseServer: "", attachFileServer: true, environmentServer: "Firefox", buildServer: "1.0.0", testCycleSummaryServer: "Basic mode testing", testCycleDescriptionServer: "Unit testing", testCycleFolderPathServer:"F1/F2/F3", testCycleLabelsServer: "v8.2.1", testCycleComponentsServer: "FitBit", testCyclePriorityServer: "High", testCycleStatusServer: "To Do", testCycleSprintIdServer: "63", testCycleFixVersionIdServer: "10909", testCycleAssigneeServer: "JIRAUSER11200", testCycleReporterServer: "JIRAUSER11200", testCycleStartDateServer: "15/May/2020 00:00", testCycleEndDateServer: "30/May/2020 00:00", testCycleCustomFieldsServer: '[{"name": "Country", "value": "India"}, {"name": "Language", "value": "English"}, {"name": "TimeZone", "value": "IST"}]', testCaseDescriptionServer: "Verify the login page", testCasePreconditionServer:"The user should be registered", testCaseFolderPathServer:"F1/F2/F3", testCaseLabelsServer: "v8.2.1", testCaseComponentsServer: "FitBit", testCasePriorityServer: "High", testCaseStatusServer: "To Do", testCaseSprintIdServer: "63", testCaseFixVersionIdServer: "10910", testCaseAssigneeServer: "JIRAUSER11200", testCaseReporterServer:"JIRAUSER11200", testCaseEstimatedTimeServer: "10:10", testCaseCustomFieldsServer: '[{"name": "Country", "value": "India"}, {"name": "Language", "value": "English"}, {"name": "TimeZone", "value": "IST"}]', testCaseExecutionCommentServer: "Pipeline Comment testing", testCaseExecutionActualTimeServer: "11:11", testCaseExecutionAssigneeServer: "JIRAUSER10100", testCaseExecutionCustomFieldsServer: '[{"name": "Country", "value": "India"}, {"name": "Language", "value": "English"}, {"name": "TimeZone", "value": "IST"}]"'])} |
...
Test Case and Test Cycle Fields | |||
Parameter | Type | Required | Description |
Summary (only for Test Cycle) | string | No | Summary of test cycle. |
Description | string | No | Description of test case/test cycle. |
Priority | string | No | Priority to be added to the test case/test cycle. |
Status | string | No | Status to be added to the test case/test cycle. |
Components | string | No | Comma separated names of Components to be added to the test case/test cycle. |
Labels | string | No | Comma separated names of Labels to be added to the test case/test cycle. |
Fix Version Id (How to find the Fix Version Id) | number | No | Id of Fix Version to be added to the test case/test cycle. |
Sprint Id (How to find the Sprint Id) | number | No | Id of Sprint to be added to the test case/test cycle. |
Assignee | string | No | Account Key of the current user for test case/test cycle. |
Reporter | string | No | Account Key of the current user for test case/test cycle. |
Precondition (only for Test Case) | string | No | Precondition for the test case. |
Estimated Time (only for Test Case) | string | No | Estimated time for test case in ‘HH:mm’ format |
Planned Start Date (only for Test Cycle) | string | No | Planned Start Date of test cycle in 'dd/MMM/yyyy HH:mm' format |
Planned End Date (only for Test Cycle) | string | No | Planned End Date of test cycle in 'dd/MMM/yyyy HH:mm' format |
Custom Fields | string | No | Comma separated custom fields in JSON array. |
...