diff --git a/assets/images/kane-ai/knowledge-base/variables/json-variable.mp4 b/assets/images/kane-ai/knowledge-base/variables/json-variable.mp4 new file mode 100644 index 000000000..0cfa426ca Binary files /dev/null and b/assets/images/kane-ai/knowledge-base/variables/json-variable.mp4 differ diff --git a/assets/images/kane-ai/knowledge-base/variables/json-variable/image1.jpg b/assets/images/kane-ai/knowledge-base/variables/json-variable/image1.jpg new file mode 100644 index 000000000..1e3d1ebc6 Binary files /dev/null and b/assets/images/kane-ai/knowledge-base/variables/json-variable/image1.jpg differ diff --git a/assets/images/kane-ai/knowledge-base/variables/json-variable/image2.jpg b/assets/images/kane-ai/knowledge-base/variables/json-variable/image2.jpg new file mode 100644 index 000000000..b539eebd7 Binary files /dev/null and b/assets/images/kane-ai/knowledge-base/variables/json-variable/image2.jpg differ diff --git a/assets/images/kane-ai/knowledge-base/variables/json-variable/image3.jpg b/assets/images/kane-ai/knowledge-base/variables/json-variable/image3.jpg new file mode 100644 index 000000000..ae80357d0 Binary files /dev/null and b/assets/images/kane-ai/knowledge-base/variables/json-variable/image3.jpg differ diff --git a/assets/images/kane-ai/knowledge-base/variables/json-variable/image4.jpg b/assets/images/kane-ai/knowledge-base/variables/json-variable/image4.jpg new file mode 100644 index 000000000..f82d13e11 Binary files /dev/null and b/assets/images/kane-ai/knowledge-base/variables/json-variable/image4.jpg differ diff --git a/assets/images/kane-ai/knowledge-base/variables/json-variable/image5.jpg b/assets/images/kane-ai/knowledge-base/variables/json-variable/image5.jpg new file mode 100644 index 000000000..02b65c41f Binary files /dev/null and b/assets/images/kane-ai/knowledge-base/variables/json-variable/image5.jpg differ diff --git a/assets/images/kane-ai/knowledge-base/variables/json-variable/image6.jpg b/assets/images/kane-ai/knowledge-base/variables/json-variable/image6.jpg new file mode 100644 index 000000000..09f443801 Binary files /dev/null and b/assets/images/kane-ai/knowledge-base/variables/json-variable/image6.jpg differ diff --git a/assets/images/kane-ai/knowledge-base/variables/json-variable/image7.jpg b/assets/images/kane-ai/knowledge-base/variables/json-variable/image7.jpg new file mode 100644 index 000000000..4d4ab6b25 Binary files /dev/null and b/assets/images/kane-ai/knowledge-base/variables/json-variable/image7.jpg differ diff --git a/docs/hyperexecute-appium-virtual-device.md b/docs/hyperexecute-appium-virtual-device.md index f9f46c161..1c3ecbb75 100644 --- a/docs/hyperexecute-appium-virtual-device.md +++ b/docs/hyperexecute-appium-virtual-device.md @@ -2,7 +2,7 @@ id: hyperexecute-appium-virtual-device title: Appium Testing - Virtual Device On HyperExecute sidebar_label: Appium - Virtual Device -description: Maximize Appium test execution with HyperExecute – Explore LambdaTest's support documentation for seamless automation testing. +description: Execute Appium tests on virtual devices using HyperExecute with TestNG and YAML 0.2. Learn setup, configuration, and seamless test execution steps. keywords: - appium - java diff --git a/docs/kane-ai-using-json-variables.md b/docs/kane-ai-using-json-variables.md new file mode 100644 index 000000000..865f66107 --- /dev/null +++ b/docs/kane-ai-using-json-variables.md @@ -0,0 +1,107 @@ +--- +id: kane-ai-using-json-variables +title: KaneAI - Utilizing JSON Variables for Assertions +hide_title: false +sidebar_label: JSON Variables Guide +description: Learn how to use JSON variables in the KaneAI test cases for assertions +keywords: + - lambdatest automation + - lambdatest kaneai + - kaneai scroll elements + - kaneai sidebar scroll +url: https://www.lambdatest.com/support/docs/kane-ai-using-json-variables/ +site_name: LambdaTest +slug: kane-ai-using-json-variables/ +--- + + +This document outlines the process of using JSON variables in KaneAI to assert specific objects within an API response. The guide provides a step-by-step procedure for executing API calls, examining responses, and performing assertions on both status and body of the response. + +## Prerequisites +- Access to KaneAI platform +- Basic understanding of API testing +- Familiarity with JSON structures + +## Step 1: Understanding JSON Variable Assertions +In KaneAI, you can use JSON variables to perform detailed assertions on API responses. This allows you to validate specific objects and elements within the response structure. + +## Step 2: Initiating an API Call +- Navigate to your desired API endpoint (e.g., a pet store website) +- Configure the necessary API call parameters +- Execute the API request + +### Example Workflow: +- Select the appropriate HTTP method (GET, POST, etc.) +- Add required headers +- Input any necessary request body +- Send the request + +Image + +## Step 3: Accessing Response Variables +After executing the API call, KaneAI automatically generates variables containing: +- Response status code +- Response body +- Response headers +- Other relevant metadata + +Image + +## Step 4: Asserting Response Status +To assert the response status: + +- Use double curly braces `{{` to access the variable list +- Navigate using arrow keys to select the status variable +- Define your expected status code + +Image + +### Example: +- Expected status: 200 +- If actual status is 500, the assertion will fail + +Image + +## Step 5: Asserting Response Body +Navigate through the response body using the same double curly brace method: +- Open the variable selection menu with `{{` +- Browse to the specific JSON element you want to validate +- Create an assertion for that element + +Image + +### Example Validation: +- Check if 'dogs' element exists in the response +- Verify specific property values +- Validate nested JSON structures + +Image + +
+ +## Video Explanation + diff --git a/docs/karate-report.md b/docs/karate-report.md index ff8ed5a46..23bdb34fd 100644 --- a/docs/karate-report.md +++ b/docs/karate-report.md @@ -3,7 +3,7 @@ id: karate-report title: Karate Report hide_title: false sidebar_label: Karate -description: Streamline error analysis with the Error Categorization Report. Identify patterns in test failures to enhance quality and efficiency in your testing process. +description: Learn how to configure and generate Karate test execution reports on HyperExecute with step-by-step guidance for seamless test insights and reporting. keywords: - cucumber testing reports - karate report lambdatest diff --git a/docs/lambdatest-sso-pingidentity-integration.md b/docs/lambdatest-sso-pingidentity-integration.md index 804c74206..3187757d6 100644 --- a/docs/lambdatest-sso-pingidentity-integration.md +++ b/docs/lambdatest-sso-pingidentity-integration.md @@ -3,7 +3,7 @@ id: lambdatest-sso-pingidentity-integration title: LambdaTest SSO & PingIdentity Integration hide_title: false sidebar_label: PingIdentity -description: Learn how to automate web app testing with KaneAI. Generate and execute tests in plain English, save cases, and run them seamlessly +description: Integrate LambdaTest with Ping Identity for secure SSO using SAML. Follow step-by-step instructions to configure SP-initiated, IdP-initiated SSO, and group management. keywords: - sso - lambdatest sso diff --git a/docs/real-time-upload-and-download-files.md b/docs/real-time-upload-and-download-files.md index c4c9f953f..ab33e72a6 100644 --- a/docs/real-time-upload-and-download-files.md +++ b/docs/real-time-upload-and-download-files.md @@ -3,7 +3,7 @@ id: real-time-upload-and-download-files title: Upload and Download Files hide_title: false sidebar_label: Upload and Download Files -description: Discover how to use the Recents and Favourites feature under Quick Links in LambdaTest. Quickly access recently used items and mark important resources for faster navigation. +description: Easily upload and download files during remote testing with LambdaTest. Manage cross-platform file transfers for seamless workflows across desktop and mobile devices. keywords: - real time testing in lambdatest - lambdatest real time testing feature diff --git a/docs/smartui-handle-sticky-elements.md b/docs/smartui-handle-sticky-elements.md index fa31e3e49..08843847b 100644 --- a/docs/smartui-handle-sticky-elements.md +++ b/docs/smartui-handle-sticky-elements.md @@ -2,7 +2,7 @@ id: smartui-handle-sticky-elements title: Handle Pages with Sticky Elements sidebar_label: Handle Sticky Elements -description: SmartUI can now perform automated visual testing on pages that implement lazy loading. +description: Ensure accurate visual testing with LambdaTest Smart UI by effectively handling sticky elements. Prevent false positives and maintain consistency across visual snapshots. keywords: - lambdatest - smart ui diff --git a/sidebars.js b/sidebars.js index ca39daf85..839d5d2c0 100644 --- a/sidebars.js +++ b/sidebars.js @@ -1070,7 +1070,16 @@ module.exports = { items: [ "kane-ai-command-guide", "kane-ai-web-test-writing-guidelines", - "kane-ai-using-variables" + { + type: "category", + collapsed: true, + label: "Variables Guide", + link: { + type: "doc", + id: "kane-ai-using-variables" + }, + items: ["kane-ai-using-json-variables"] + }, ], }, {