Skip to content

Commit

Permalink
Merge pull request #539 from testsigmahq/dev
Browse files Browse the repository at this point in the history
Created new doc for GenAI features, updated Okta SSO and GenAI docs
  • Loading branch information
Santhosh-testsigma authored Nov 27, 2024
2 parents 22c8f12 + 56ef23a commit b4b31b3
Show file tree
Hide file tree
Showing 33 changed files with 375 additions and 205 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: "CD"
name: 'CD'
on:
push:
branches:
- "main"
- 'main'
jobs:
Deploy:
runs-on: ubuntu-latest
Expand All @@ -15,13 +15,13 @@ jobs:
- name: Setup Node 18
uses: actions/setup-node@v2
with:
node-version: "18"
node-version: '18'
- name: Install dependencies
run: |
npm i --force --unsafe-perm
- name: Force installing sharp
run: npm install --ignore-scripts=false --verbose [email protected] --unsafe-perm --force
- name: "Create env file"
- name: 'Create env file'
run: |
rm -rf .env
touch .env
Expand All @@ -41,11 +41,11 @@ jobs:
cat .env
- name: Build
run: |
PREFIX_PATHS=true npm run build && npm run deploy
PREFIX_PATHS=true npm run clean && npm run build && npm run deploy
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_DEFAULT_REGION: "us-east-1"
AWS_DEFAULT_REGION: 'us-east-1'
AWS_DEFAULT_OUTPUT: json
TYPESENSE_HOST: ${{ secrets.TYPESENSE_HOST }}
TYPESENSE_PORT: ${{ secrets.TYPESENSE_PORT }}
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/staging-cd.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: "Staging CD"
name: 'Staging CD'
on:
push:
branches:
- "dev"
- 'dev'
jobs:
StagingDeploy:
runs-on: ubuntu-latest
Expand All @@ -15,14 +15,14 @@ jobs:
- name: Setup Node 18
uses: actions/setup-node@v2
with:
node-version: "18"
node-version: '18'
- name: Install dependencies
run: |
rm -rf .cache node_modules
npm i --force --unsafe-perm
- name: Force installing sharp
run: npm install --ignore-scripts=false --verbose [email protected] --unsafe-perm --force
- name: "Create env file"
- name: 'Create env file'
run: |
rm -rf .env
touch .env
Expand All @@ -44,11 +44,11 @@ jobs:
run: sed -i 's/localhost/website.testsigma.com/g' src/environment.ts
- name: Build
run: |
PREFIX_PATHS=true npm run build && npm run deploy
PREFIX_PATHS=true npm run clean && npm run build && npm run deploy
env:
AWS_ACCESS_KEY_ID: ${{ secrets.WEBSITE_STAGING_AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.WEBSITE_STAGING_AWS_SECRET_ACCESS_KEY }}
AWS_DEFAULT_REGION: "us-east-1"
AWS_DEFAULT_REGION: 'us-east-1'
AWS_DEFAULT_OUTPUT: json
TYPESENSE_HOST: ${{ secrets.WEBSITE_STAGING_TYPESENSE_HOST }}
TYPESENSE_PORT: ${{ secrets.WEBSITE_STAGING_TYPESENSE_PORT }}
Expand Down
7 changes: 6 additions & 1 deletion src/left-nav-title.json
Original file line number Diff line number Diff line change
Expand Up @@ -684,5 +684,10 @@
"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"},
"smtp-configuration": {"/docs/configuration/smtp-configuration/": "SMTP Configuration"},
"generate-wda-file": {"/docs/configuration/generate-wda-file/": "Create WDA File" }
}
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
10 changes: 5 additions & 5 deletions src/pages/docs/configuration/generate-wda-file.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@ WebDriverAgent (WDA) plays an important role in automating iOS tests. It bridges

2. Open **WDA Xcode Project** in **Xcode**.

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

3. On **Signing & Capabilities**, add Apple Account for wherever necessary in **Target OS & Integrations**.

![Signing & Capabilities](https://s3.amazonaws.com/static-docs.testsigma.com/new_images/projects/applications/setcap.png)
![Signing & Capabilities](https://s3.amazonaws.com/static-docs.testsigma.com/new_images/projects/applications/setcap.png)

4. Once the signing is done, run the following command to build the latest WDA WebDriverAgent. This command will build the WDA project and prepare it for testing.

Expand All @@ -68,16 +68,16 @@ Locate the **Products** folder within the Xcode derived data directory. The path
6. Generating a New WDA for Installation
Run the following commands to create a new WDA package for installation.
Run the following commands to create a new WDA package for installation.
```
```
xcodebuild -scheme WebDriverAgentRunner -sdk iphoneos -configuration Release -derivedDataPath /tmp/derivedDataPath
cd /tmp/derivedDataPath/Build/Products/Release-iphoneos
mkdir -p Payload
mv WebDriverAgentRunner-Runner Payload
zip Payload wda.zip
mv wda.zip wda.ipa
```
```
The above commands will generate a new **wda.ipa** file.
Expand Down
11 changes: 4 additions & 7 deletions src/pages/docs/configuration/security/azure-sso.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,9 @@ You can use the Azure Active Directory Admin Center to enable single sign-on (SS

---

## **Prerequisites**

- Azure Account with Active Directory enabled

- Admin Access to Azure Account

> ## **Prerequisites**
>
> Before you begin, ensure you have an **Azure Account** with **Active Directory** enabled and admin access to the Azure account.
---

Expand All @@ -55,7 +52,7 @@ You can use the Azure Active Directory Admin Center to enable single sign-on (SS

2. Click the **View** button below **“Manage Microsoft Entra ID”.**

3. In the Active Directory Overview page, click on **+ New application** and choose **Enterprise Application**
3. In the **Active Directory Overview** page, click on **+ New application** and choose **Enterprise Application**


4. Click on **+ Create your own application**
Expand Down
5 changes: 3 additions & 2 deletions src/pages/docs/configuration/security/google-sso.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,9 @@ With SSO, you are not required to store and manage passwords for the websites yo
---


## **Prerequisites**
- You should have an active Testsigma account.
> ## **Prerequisites**
>
> Before you begin, ensure you have an active Testsigma account.

---
Expand Down
36 changes: 34 additions & 2 deletions src/pages/docs/configuration/security/okta-sso.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,24 @@ contextual_links:
- type: link
name: "Terminology"
url: "#terminology"
- type: link
name: "Prerequisites"
url: "#prerequisites"
- type: link
name: "Getting the Testsigma Configuration for Okta"
url: "#getting-the-testsigma-configuration-for-okta"
- type: link
name: "Create and configure Okta"
name: "Create and Configure Okta"
url: "#create-and-configure-okta"
- type: link
name: "Configure Testsigma for Okta SSO"
url: "#configure-testsigma-for-okta-sso"
- type: link
name: "Sign in to Testsigma with SAML SSO"
url: "#sign-in-to-testsigma-with-saml-sso"
- type: link
name: "Assign App to Users in Okta"
url: "#assign-app-to-users-in-okta"
- type: link
name: "Disable Configured SSO"
url: "#disable-configured-sso"
Expand Down Expand Up @@ -53,6 +59,12 @@ Familiarise yourself with these key terms before proceeding:

---

> ## **Prerequisites**
>
> Before you begin, ensure you have an active Okta account.
---

## **Getting the Testsigma Configuration for Okta**

1. Navigate to **Settings** > **Security (SSO)**.
Expand All @@ -63,7 +75,7 @@ Familiarise yourself with these key terms before proceeding:

---

## **Create and configure Okta**
## **Create and Configure Okta**

1. Log in to the [Okta Admin Console](https://www.okta.com/login).
[[info | NOTE:]]
Expand Down Expand Up @@ -108,6 +120,26 @@ After configuring your Testsigma account with SAML, you can log in using SSO.

---

## **Assign App to Users in Okta**


1. From the **Dashboard**, go to **Applications** and select the application you want to assign to users.
![OKTA Dashboard](https://s3.amazonaws.com/static-docs.testsigma.com/new_images/projects/applications/Okta_DB.png)

2. On the **Application Details** page, click **Assign** and select **Assign to People** from the dropdown menu.
![App Details Page](https://s3.amazonaws.com/static-docs.testsigma.com/new_images/projects/applications/Assign_Users_Okta.png)

3. In the **Assign <App> to People** dialog box, click the **Assign** button next to the user's ID.
![Assign Button Okta](https://s3.amazonaws.com/static-docs.testsigma.com/new_images/projects/applications/Assign_User_Button.png)

4. Validate the email in the dialog box, then click **Save and Go Back**.
![Save the ID](https://s3.amazonaws.com/static-docs.testsigma.com/new_images/projects/applications/Save_ID_Okta.png)

5. Click **Done**. The assigned user can now access the application through Okta.
![Done Assigning User](https://s3.amazonaws.com/static-docs.testsigma.com/new_images/projects/applications/Done_Adding_User_In_Okta.png)

---

## **Disable Configured SSO**

To disable SSO login using Okta, turn off the toggle to disable SAML SSO at any time. A disable SAML SSO warning prompt will appear. Click **I Understand and Disable** to remove the SSO configuration from your account. ![disable configured sso](https://s3.amazonaws.com/static-docs.testsigma.com/new_images/projects/applications/disable_configured_sso.gif)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,8 @@ Safari restricts automated Basic Authentication login by blocking credentials in
4. After execution completes, refer to the screenshot captured at the test step level.
![Screenshot of Execution](https://s3.amazonaws.com/static-docs.testsigma.com/new_images/projects/applications/Screenshot_Run_BA.png)


[[info | **NOTE**:]]
| This capability is available only for the Safari browser.

---
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_GenAI.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)

---
Loading

0 comments on commit b4b31b3

Please sign in to comment.