From cf87fc904a0dc8e832c69d2652a97b66e99c485b Mon Sep 17 00:00:00 2001 From: Aman Chopra Date: Mon, 18 Nov 2024 13:17:30 +0530 Subject: [PATCH] automated test case manager --- ...ted-test-cases-linked-with-test-manager.md | 68 +++++++++++++++++++ sidebars.js | 2 +- 2 files changed, 69 insertions(+), 1 deletion(-) create mode 100644 docs/automated-test-cases-linked-with-test-manager.md diff --git a/docs/automated-test-cases-linked-with-test-manager.md b/docs/automated-test-cases-linked-with-test-manager.md new file mode 100644 index 000000000..d465412fe --- /dev/null +++ b/docs/automated-test-cases-linked-with-test-manager.md @@ -0,0 +1,68 @@ +--- +id: automated-test-cases-linked-with-test-manager +title: Linking Automated Test Cases to Test Manager +hide_title: false +sidebar_label: Linking Automated Test Cases +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 +keywords: + - automated test cases + - automated test cases linking to test manager + - test cases + - automation + - hyperexecute +url: https://www.lambdatest.com/support/docs/automated-test-cases-linked-with-test-manager/ +site_name: LambdaTest +slug: automated-test-cases-linked-with-test-manager/ +--- + + +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. + +> Currently, this feature is supported on [HyperExecute](/support/docs/getting-started-with-hyperexecute/) and Web Automation tests. + +## How to Link a Test Case ID + +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: + +```javascript +const capabilities = { + "browserName": "Chrome", // Specify browser name + "browserVersion": "120.0", // Specify browser version + "lt:Options": { + "tms.tc_id": "TC-1470" // Link the test execution to the Test Case ID 'TC-1470' + } +}; +``` + +- `browserName` : Name of the browser being used for the test. +- `browserVersion` : Version of the browser. +- `lt:Options` : A JSON object containing additional options for LambdaTest configurations. +- `tms.tc_id` : The key used to link a test case in Test Manager. Replace "TC-1470" with your desired Test Case ID. + +:::info NOTE +- Ensure the Test Case ID exists in Test Manager before linking. +- The Test Case ID format should match exactly as shown in Test Manager +- Each automated test run can be linked to one test case at a time +::: \ No newline at end of file diff --git a/sidebars.js b/sidebars.js index edcf2537f..7bf3f6836 100644 --- a/sidebars.js +++ b/sidebars.js @@ -1707,7 +1707,7 @@ module.exports = { type: "category", collapsed: true, label: "Automated Test Cases", - items: ["automated-test-cases-with-ai"], + items: ["automated-test-cases-with-ai", "automated-test-cases-linked-with-test-manager"], }, { type: "category",