|
| 1 | +--- |
| 2 | +id: automated-test-cases-linked-with-test-manager |
| 3 | +title: Linking Automated Test Cases to Test Manager |
| 4 | +hide_title: false |
| 5 | +sidebar_label: Linking Automated Test Cases |
| 6 | +description: Link your automated test cases with the test manager using the test case id and run the automation test via Autoamtion dashboard or HyperExecute |
| 7 | +keywords: |
| 8 | + - automated test cases |
| 9 | + - automated test cases linking to test manager |
| 10 | + - test cases |
| 11 | + - automation |
| 12 | + - hyperexecute |
| 13 | +url: https://www.lambdatest.com/support/docs/automated-test-cases-linked-with-test-manager/ |
| 14 | +site_name: LambdaTest |
| 15 | +slug: automated-test-cases-linked-with-test-manager/ |
| 16 | +--- |
| 17 | + |
| 18 | +<script type="application/ld+json" |
| 19 | + dangerouslySetInnerHTML={{ __html: JSON.stringify({ |
| 20 | + "@context": "https://schema.org", |
| 21 | + "@type": "BreadcrumbList", |
| 22 | + "itemListElement": [{ |
| 23 | + "@type": "ListItem", |
| 24 | + "position": 1, |
| 25 | + "name": "LambdaTest", |
| 26 | + "item": "https://www.lambdatest.com" |
| 27 | + },{ |
| 28 | + "@type": "ListItem", |
| 29 | + "position": 2, |
| 30 | + "name": "Support", |
| 31 | + "item": "https://www.lambdatest.com/support/docs/" |
| 32 | + },{ |
| 33 | + "@type": "ListItem", |
| 34 | + "position": 3, |
| 35 | + "name": "Linking Automated Test Cases to Test Manager", |
| 36 | + "item": "https://www.lambdatest.com/support/docs/automated-test-cases-linked-with-test-manager/" |
| 37 | + }] |
| 38 | + }) |
| 39 | + }} |
| 40 | +></script> |
| 41 | +Test Manager supports linking automated test runs directly to specific test cases using Test Case IDs. This feature enables better traceability and management of your automated testing workflow. |
| 42 | + |
| 43 | +> Currently, this feature is supported on [HyperExecute](/support/docs/getting-started-with-hyperexecute/) and Web Automation tests. |
| 44 | +
|
| 45 | +## How to Link a Test Case ID |
| 46 | + |
| 47 | +To link an automated test run with a specific test case, add the `tms.tc_id` key in the `lt:Options` section of your test capabilities. Here is a sample configuration demonstrating how to include the `tms.tc_id` key in your script: |
| 48 | + |
| 49 | +```javascript |
| 50 | +const capabilities = { |
| 51 | + "browserName": "Chrome", // Specify browser name |
| 52 | + "browserVersion": "120.0", // Specify browser version |
| 53 | + "lt:Options": { |
| 54 | + "tms.tc_id": "TC-1470" // Link the test execution to the Test Case ID 'TC-1470' |
| 55 | + } |
| 56 | +}; |
| 57 | +``` |
| 58 | + |
| 59 | +- `browserName` : Name of the browser being used for the test. |
| 60 | +- `browserVersion` : Version of the browser. |
| 61 | +- `lt:Options` : A JSON object containing additional options for LambdaTest configurations. |
| 62 | +- `tms.tc_id` : The key used to link a test case in Test Manager. Replace "TC-1470" with your desired Test Case ID. |
| 63 | + |
| 64 | +:::info NOTE |
| 65 | +- Ensure the Test Case ID exists in Test Manager before linking. |
| 66 | +- The Test Case ID format should match exactly as shown in Test Manager |
| 67 | +- Each automated test run can be linked to one test case at a time |
| 68 | +::: |
0 commit comments