Skip to content

Commit

Permalink
Created new section and docs for GenAI Feature (#535)
Browse files Browse the repository at this point in the history
Created new section in left nav bar and 2 new docs for GenAI Features.
  • Loading branch information
bharathk08 authored Nov 21, 2024
1 parent 6732775 commit a7a885d
Show file tree
Hide file tree
Showing 26 changed files with 307 additions and 177 deletions.
5 changes: 4 additions & 1 deletion src/left-nav-title.json
Original file line number Diff line number Diff line change
Expand Up @@ -684,5 +684,8 @@
"features-and-scenarios": {"/docs/test-cases/manage/features-and-scenarios/": "Features & Scenarios" },
"key-components": {"/docs/testsigma-tunnel/key-components/": "Components & Requirements" },
"basic-authentication-safari": {"/docs/desired-capabilities/basic-authentication-safari/": "Basic Authentication [Safari]" },
"gearset": {"/docs/continuous-integration/gearset/": "Gearset CI/CD" }
"gearset": {"/docs/continuous-integration/gearset/": "Gearset CI/CD" },
"copilot": {"/docs/genai-capabilities/copilot/": "Testsigma Copilot"},
"genai-capabilities": {"/docs/genai-capabilities/": "GenAI Capabilities" },
"generate-tdp": {"/docs/genai-capabilities/generate-tdp/": "Generate TDP Using Copilot"}
}
2 changes: 1 addition & 1 deletion src/pages/docs/best-practices/best-practices.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: "Testsigma Automation Standards and Best Practices"
page_title: "Enhance Efficiency with Automated Testing Best Practices"
metadesc: "Explore best practices for enhancing efficiency and reliability in automated testing through modular design, dynamic waits, and data-driven testing."
noindex: false
order: 33.1
order: 34.1
page_id: "Best Practices to follow Testsigma Automation Standards"
warning: false
contextual_links:
Expand Down
95 changes: 95 additions & 0 deletions src/pages/docs/genai-capabilities/copilot.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
---
title: "AI Test Automation with Testsigma Copilot"
page_title: "AI Test Automation with Testsigma Copilot"
metadesc: "In Testsigma you can now generate diverse test scenarios with a single click and also comprehensive test cases using simple prompts using GenAI"
noindex: false
order: 31.1
page_id: "Testsigma for Windows Automation"
warning: false
contextual_links:
- type: section
name: "Contents"
- type: link
name: "Prerequisites"
url: "#prerequisites"
- type: link
name: "Generate Test Scenarios"
url: "#generate-test-scenarios"
- type: link
name: "Generate Test Steps with Prompts"
url: "#generate-test-steps-with-prompts"
---

---

Testsigma Copilot redefines test automation with the power of generative AI 🤖.

- You can effortlessly create diverse test scenarios with a single click.
- Generate detailed test steps that accurately mimic real-world user behavior with the right UI elements and complex user interactions.
- Create a comprehensive test case using simple prompts.


---

> ## **Prerequisites**
>
> Before you begin, enable AI Features from **Settings > Preferences > Generative AI features** and ensure you're familiar with the concepts of [Test Cases](https://testsigma.com/docs/test-cases/manage/add-edit-delete/).

---

## **Generate Test Scenarios**

1. From the left-side navbar, select **Create Tests > Test Cases** and then click **Create Test Case**.

![Test Case](https://s3.amazonaws.com/static-docs.testsigma.com/new_images/projects/applications/GenAI_TestCase.png)

2. On the **Test Case Details** page, enter a name for the test case and click **Record** in the top-right corner. A new window will open.

![Record](https://s3.amazonaws.com/static-docs.testsigma.com/new_images/projects/applications/GenAI_Record.png)

3. In the opened window, input the URL of the web page from which you want to generate test scenarios. The **Testsigma Recorder** will activate and prepare for recording.

4. Click **Testsigma Copilot**.
![Copilot](https://s3.amazonaws.com/static-docs.testsigma.com/new_images/projects/applications/Copilot_Button.png)

5. Click **Generate Scenarios** in the **Testsigma Copilot** overlay. The Testsigma Copilot will start generating test scenarios based on the current page content.

![Generate Scenarios](https://s3.amazonaws.com/static-docs.testsigma.com/new_images/projects/applications/Generate_Scenarios.png)

6. Wait until the test scenarios are generated.

7. Click on any generated test case scenario to view its corresponding test steps.

![View test Steps](https://s3.amazonaws.com/static-docs.testsigma.com/new_images/projects/applications/View_Scenarios.png)

8. Click **Add to test case** to import the displayed test steps into the recorder.

![Add to Test Case](https://s3.amazonaws.com/static-docs.testsigma.com/new_images/projects/applications/Add_AI_Test_Steps.png)

9. Modify the test steps as per the desired test case behavior. Once the necessary modifications are done, click **Stop** to return to the test case details page.

![Stop](https://s3.amazonaws.com/static-docs.testsigma.com/new_images/projects/applications/Stop_Rec_AI_TestSteps.png)

---

## **Generate Test Steps with Prompts**

Follow the same steps from 1-3 from the above section.

4. On prompt input, enter the prompt for which you want to fetch test steps.
![Prompt](https://s3.amazonaws.com/static-docs.testsigma.com/new_images/projects/applications/Prompt_AI.png)

5. Press **Enter**.

6. Wait until the test steps are generated.

7. Click **Add to test case** to import the displayed test steps into the recorder.

![Add to Test Case](https://s3.amazonaws.com/static-docs.testsigma.com/new_images/projects/applications/AddtoTestCase_AI.png)

8. Modify the test steps as per the desired test case behavior. Once the necessary modifications are done, click **Stop** to return to the test case details page.

![Stop](https://s3.amazonaws.com/static-docs.testsigma.com/new_images/projects/applications/Stop_PromptSteps.png)

---
57 changes: 57 additions & 0 deletions src/pages/docs/genai-capabilities/generate-tdp.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
---
title: "Generate Test Data Profile Using Copilot"
page_title: "Generate TDP Using Copilot"
metadesc: "With Testsigma Copilot, you can quickly generate a Test Data Profile, eliminating the need to manually create multiple test data sets!"
noindex: false
order: 31.2
page_id: "Generate TDP"
warning: false
contextual_links:
- type: section
name: "Contents"
- type: link
name: "Prerequisites"
url: "#prerequisites"
- type: link
name: "Steps to Generate Test Data Profile Using Copilot"
url: "#steps-to-generate-test-data-profile-using-copilot"
---

---

With Testsigma Copilot, you can quickly generate a Test Data Profile. This eliminates the need to manually create multiple test data sets and allows you to focus on more critical aspects while testing. This article discusses generating a Test Data Profile using Testsigma Copilot.

---

> ## **Prerequisites**
>
> Before you begin, enable AI Features from **Settings > Preferences > Generative AI features** and ensure you're familiar with the concepts of [Test Cases](https://testsigma.com/docs/test-cases/manage/add-edit-delete/) and [Test Data Profiles](https://testsigma.com/docs/test-data/create-data-profiles/) in Testsigma.

---

## **Steps to Generate Test Data Profile Using Copilot**

1. From the left navigation bar, go to **Create Tests > Test Cases**.

2. Select the **+ icon** next to the **Scenario** where you want to add the test case.

3. On the dialog that opens, enter the test case name and click **Create**.

3. In the **Test Case Details** page, click **Record** to open the **Testsigma Test Recorder** in a new window.

4. Create test steps by performing actions or use **Copilot** to generate steps automatically. *For more information, see [Creating Test Cases Using Copilot](https://testsigma.com/docs/test-cases/create-test-steps/overview/#ai-test-automation-with-testsigma-copilot-).*
5. When you're done, click **Stop** to end the session. You will be redirected to the **Test Case Details** page.

6. A confirmation dialog will appear.

- Select **Convert** to generate a **Test Data Profile** and convert the test case to a data-driven one.
![Gen AI TDP](https://s3.amazonaws.com/static-docs.testsigma.com/new_images/projects/applications/Copilot_TDP_SneakPeak.png)
- Once you are satisfied with the data, click **Create and Replace**.

[[info | **NOTE**:]]
| - You can click **Add more rows** to generate additional data.
| - You can also provide prompts to customize the data further. For example, we successfully changed the entire dataset to reflect the Indian context with a simple prompt.
| ![Prompt Update](https://s3.amazonaws.com/static-docs.testsigma.com/new_images/projects/applications/GenAI_TDP_Prompt.png)

---
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
---
title: "Generate Tests from Requirements (Jira)"
page_title: "Generate Tests from Requirements (Jira)"
metadesc: "In Testsigma, you can create test cases from Jira stories & epics by integrating Jira | Learn how to create test cases from Jira using GenAI capabilities"
noindex: false
order: 31.4
page_id: "Generate Tests from Requirements (Jira)"
warning: false
contextual_links:
- type: section
name: "Contents"
- type: link
name: "Prerequisites"
url: "#prerequisites"
- type: link
name: "Steps to Generate Test Cases from Requirements"
url: "#steps-to-generate-test-cases-from-requirements"
---

---

With Testsigma, you can create test cases directly from Jira stories and epics by integrating your Jira account. You just need to tag the relevant epics and stories, write a prompt, and click only once to generate multiple test cases. This article discusses generating test cases from requirements using Testsigma's GenAI capabilities.

---

> ## **Prerequisites**
>
> Before you begin, enable AI Features from **Settings > Preferences > Generative AI features**, integrate [Jira with Testsigma](https://testsigma.com/docs/integrations/bug-reporting/jira/) and ensure you're familiar with the concepts of [Test Cases](https://testsigma.com/docs/test-cases/manage/add-edit-delete/).
---

## **Steps to Generate Test Cases from Requirements**

1. From the left-side navbar, go to **Create Tests > Test Cases**.

2. Click **Copilot**, and then select **Generate from Requirements** from the dropdown menu.

3. In **Generate Test Cases from Requirements** overlay,
- Select a **Project** from the dropdown menu.
- Under **Issue Type**, select either **Epic** or **Story**:
- If you select **Epic**, choose the stories for which you want to generate test cases.
- If you select **Story**, choose all the stories for which you want to generate test cases.

4. In the prompt field, enter the required details, and click the **Play** button.

5. Wait for Testsigma to generate the test cases with the test steps.

6. Select the test cases you want to save, and click **Save Test Cases**.

7. You’ll be redirected to the Test Cases page, where the generated test cases appear under the **AI Generated Feature** Scenario.

---
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
---
title: "Generate Test Scenarios from User Actions"
page_title: "Generate Tests from User Actions"
metadesc: "With Testsigma, you can generate automated test cases based on user actions using the test recorder to by capturing the UI interactions."
noindex: false
order: 31.3
page_id: "Generate Tests from User Actions"
warning: false
contextual_links:
- type: section
name: "Contents"
- type: link
name: "Prerequisites"
url: "#prerequisites"
- type: link
name: "Steps to Test Scenarios from User Actions"
url: "#steps-to-test-scenarios-from-user-actions"
---

---

Testsigma can now generate automated test cases based on user actions. Simply enter the URL and allow the test recorder to capture the interactions to create test cases for each action performed on the page. It's that simple!

This article discusses generating end to end automated test cases based on user actions.

---

> ## **Prerequisites**
>
> Before you begin, enable AI Features from **Settings > Preferences > Generative AI features** and ensure you're familiar with the concepts of [Test Cases](https://testsigma.com/docs/test-cases/manage/add-edit-delete/).
---

## **Steps to Test Scenarios from User Actions**

1. From the left-side navbar, go to **Create Tests > Test Cases**.

2. Click **Copilot** and choose **Test Scenarios from User Actions** from the dropdown menu. This will open the **Generate End-to-End Test Cases** dialog box.

3. Enter the URL in the text box and click **Start Recording**.

4. The URL opens in a new window. Click **Record**, provide screen sharing access to **Testsigma Recorder** by choosing **Tab/Window/Entire Screen**, and click **Share**.

5. The Copilot starts recording.

6. Perform the actions for which you want to create test cases.

[[info | **NOTE**:]]
| Test case generation is available only for **1 minute & 30 seconds**.

7. Wait while Copilot generates the test cases.

8. Select the test cases you want to add to the test case list and select **Save Test Cases**.

---
8 changes: 4 additions & 4 deletions src/pages/docs/open-source-docs/docker.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: "Testsigma Docker Setup"
page_title: "Testsigma Community Edition Docker Setup"
metadesc: "Learn how to set up Testsigma Server and MySQL as docker containers using Docker Compose | Easiest way to set up Testsigma on your local machines"
noindex: false
order: 32.3
order: 33.3
page_id: "Testsigma Docker Setup"
warning: false
contextual_links:
Expand Down Expand Up @@ -41,9 +41,9 @@ This guide will help you setup [Testsigma Server](https://github.com/testsigmahq

---

## **Prerequisites**
* [Docker](https://docs.docker.com/install/)
* [Docker Compose](https://docs.docker.com/compose/install/)
> ## **Prerequisites**
>
> Before you begin, ensure you have installed [Docker](https://docs.docker.com/install/) and [Docker Compose](https://docs.docker.com/compose/install/).
---

Expand Down
2 changes: 1 addition & 1 deletion src/pages/docs/open-source-docs/introduction-community.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: "Intro: Testsigma Community Edition"
metadesc: "Testsigma Community Edition is an open-source automation platform | This article discusses installing Testsigma on your workstation & start test automation"
noindex: false
order: 32.1
order: 33.1
page_id: "Introduction to Testsigma Community Edition"
warning: false
contextual_links:
Expand Down
12 changes: 6 additions & 6 deletions src/pages/docs/open-source-docs/reset-password.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "Reset Password"
page_title: "How to reset password in Testsigma Community Edition"
order: 32.4
order: 33.4
page_id: "Reset password"
metadesc: "Learn steps in detail on how to reset username and password in Testsigma Community Edition. Follow these steps to reset username and password."
search_keyword: "Reset password"
Expand Down Expand Up @@ -35,11 +35,11 @@ contextual_links:

---

## [Prerequisite](#zip-prerequisite)
1. Download the testsigma_opensource latest build [click here](https://testsigma.com/docs/getting-started/setup/downloadable-package/)
2. Run nginx server
3. Run testsigma server
4. Register with username and password
> ## [Prerequisite](#zip-prerequisite)
> 1. Download the testsigma_opensource latest build [click here](https://testsigma.com/docs/getting-started/setup/downloadable-package/)
> 2. Run nginx server
> 3. Run testsigma server
> 4. Register with username and password
---

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: "Testsigma Community Cloud"
metadesc: "Integrate self-hosted open-source platform with Testsigma Community Cloud. This will provide free access to test labs, addons, visual testing, our discord, etc."
noindex: false
order: 32.2
order: 33.2
page_id: "Testsigma Community Cloud"
warning: false
contextual_links:
Expand Down
Loading

0 comments on commit a7a885d

Please sign in to comment.