Skip to content

Files

Latest commit

 

History

History
96 lines (76 loc) · 4.61 KB

kane-ai-using-datasets.md

File metadata and controls

96 lines (76 loc) · 4.61 KB
id title hide_title sidebar_label description keywords url site_name slug
kane-ai-using-datasets
KaneAI - Using Datasets on Test Manager
false
Datasets
Learn how to use datasets in the KaneAI test cases
lambdatest automation
lambdatest kaneai
kaneai scroll elements
kaneai sidebar scroll
LambdaTest
kane-ai-using-datasets/

import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; import CodeBlock from '@theme/CodeBlock'; import {YOUR_LAMBDATEST_USERNAME, YOUR_LAMBDATEST_ACCESS_KEY} from "@site/src/component/keys";

<script type="application/ld+json" dangerouslySetInnerHTML={{ __html: JSON.stringify({ "@context": "https://schema.org", "@type": "BreadcrumbList", "itemListElement": [{ "@type": "ListItem", "position": 1, "name": "Home", "item": "https://www.lambdatest.com" },{ "@type": "ListItem", "position": 2, "name": "Support", "item": "https://www.lambdatest.com/support/docs/" },{ "@type": "ListItem", "position": 3, "name": "KaneAI Datasets", "item": "https://www.lambdatest.com/support/docs/kane-ai-using-datasets/" }] }) }} ></script>

Datasets in KaneAI-LambdaTest allow you to manage and reuse input values for test cases efficiently. This guide explains how to create, edit, and manage these data sets while utilizing parameters to run test cases with a variety of inputs, improving flexibility and reducing manual data entry.

Accessing Datasets within a Project

Navigate to the Parameters section within your project and review existing data sets under this section.

Note : Parameters act as placeholders for data, enabling test cases to use varying inputs.

<img loading="lazy" src={require('../assets/images/kane-ai/features/datasets/1.png').default} alt="Image" className="doc_img img_center"/>

Every test case which uses parameters in KaneAI automatically generates a default data set during authoring. Example: A default data set might capture initial values like form submissions.

Default Datasets are immutable in nature i.e. they cannot be modified.

<img loading="lazy" src={require('../assets/images/kane-ai/features/datasets/2.png').default} alt="Image" className="doc_img img_center"/>

Creating and Editing Datasets

  • To create a dataset, navigate to the Datasets section, click "Create Dataset," and define parameters and values as needed.
  • For existing datasets, access the version history of a default dataset, create a copy, and edit the copied dataset to update or add values seamlessly.

<img loading="lazy" src={require('../assets/images/kane-ai/features/datasets/3.png').default} alt="Image" className="doc_img img_center"/>

Adding Data to Datasets

Open the editable Dataset. Click on "Add a Row After". Enter your desired values (e.g., 5 or Mike).

<img loading="lazy" src={require('../assets/images/kane-ai/features/datasets/4.png').default} alt="Image" className="doc_img img_center"/>

Autofill with AI

Alternatively, you can use the Autofill with AI option to automatically populate data fields. AI generates values based on the parameter's name, saving time and effort.

<img loading="lazy" src={require('../assets/images/kane-ai/features/datasets/5.png').default} alt="Image" className="doc_img img_center"/>

Importing Data via CSV Files

Prepare your data set in CSV format. Use the Import Data feature in the data set editor and verify imported data and save the test case to ensure synchronization.

<img loading="lazy" src={require('../assets/images/kane-ai/features/datasets/6.png').default} alt="Image" className="doc_img img_center"/>

Utilizing Version History

  • Version Tracking : All changes to data sets are recorded.
  • Revert or Restore : Easily revert to a previous version if needed.
  • Backup Assurance : Ensure data integrity with a maintained history of edits.

<img loading="lazy" src={require('../assets/images/kane-ai/features/datasets/7.png').default} alt="Image" className="doc_img img_center"/>

Executing Test Cases with Parameters

Combine multiple data sets with their respective parameters. Execute test cases using these data sets to simulate diverse input scenarios.

<img loading="lazy" src={require('../assets/images/kane-ai/features/datasets/8.png').default} alt="Image" className="doc_img img_center"/>

Video Explanation