Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev to main [28 Oct] #311

Merged
merged 3 commits into from
Oct 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
---
title: "Upgrade Testsigma Agent Automatically"
metadesc: "Testsigma application has the capability to download & install the agent automatically. This article discusses how to upgrade Testsigma agent automatically"
noindex: false
order: 11.93
page_id: "Upgrade Testsigma Agent Automatically"
search_keyword: ""
warning: false
contextual_links:
- type: section
name: "Contents"
- type: link
name: "Prerequisites"
url: "#prerequisites"
- type: link
name: "Steps to Upgrade Testsigma Agent Automatically"
url: "#steps-to-upgrade-testsigma-agent-automatically"
---

---

Testsigma can download and install the agent automatically if there's a higher version available for installation. This article discusses how the agent is upgraded automatically in Testsigma.

---

## **Prerequisites**

- You should know how to [set up Testsigma agent](https://testsigma.com/docs/agent/setup-on-windows-mac-linux/).

---

## **Steps to Upgrade Testsigma Agent Automatically**

1. Start Testsigma agent. *For more information, refer to [start agent as a process](https://testsigma.com/docs/agent/setup-on-windows-mac-linux/#start-the-testsigma-agent-server-as-a-process).*


2. Once you start the agent, if a higher version is available, it'll automatically download the agent.

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


[[info | **NOTE**:]]
| - You'll get the following message if there's an interruption in the network.
|
| ![Upgrade Failed](https://s3.amazonaws.com/static-docs.testsigma.com/new_images/projects/applications/upgradefailed.png)
|
| - Once the network is stable, the download will start from the beginning once again.


3. Post download, the agent will start automatically, and you'll get the **Upgrade Success** message.

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


---

42 changes: 29 additions & 13 deletions src/pages/docs/test-data/types/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ warning: false
contextual_links:
- type: section
name: "Contents"
- type: link
name: "Prerequisites"
url: "#prerequisites"
- type: link
name: "Add Test Data in Test Steps"
url: "#add-test-data-in-test-steps"
Expand Down Expand Up @@ -43,19 +46,20 @@ contextual_links:

---

Testsigma enhances your test automation by supporting different Test Data types. You can input various values and scenarios into your test cases using Test Data. You require a lot of test data to validate different scenarios in many test cases. A bug-free feature that passes these test data inputs is ready for production.
Testsigma enhances your test automation by supporting different test data types. You can input various values and scenarios into your test cases using test data. You require a lot of test data to validate different scenarios in many test cases. A bug-free feature that passes these test data inputs is ready for production.

In simpler terms, Test Data is the information or values needed to set up and run a test. For instance, the test data for a login feature includes the username and password. The test data for a ticket booking feature includes the source and destination, and for a fund transfer feature, the source account and beneficiary account numbers serve as test data.
In simpler terms, test data is the information or values needed to set up and run a test. For instance, the test data for a login feature includes the username and password. The test data for a ticket booking feature includes the source and destination, and for a fund transfer feature, the source account and beneficiary account numbers serve as test data.

This documentation will explain the different Test Data types supported in Testsigma, their uses, and guide how to use them.
This documentation will explain the different test data types supported in Testsigma, their uses, and guide how to use them.

---

### **Prerequisite**
## **Prerequisites**

Before using Test Data Type, you must understand specific concepts such as creating [Projects](https://testsigma.com/docs/projects/overview/), [Test Cases](https://testsigma.com/docs/test-cases/manage/add-edit-delete/), and [Test Steps](https://testsigma.com/docs/test-cases/create-steps-nl/overview/).
Before using test data type, you must understand specific concepts such as creating [projects](https://testsigma.com/docs/projects/overview/), [test cases](https://testsigma.com/docs/test-cases/manage/add-edit-delete/), and [test steps](https://testsigma.com/docs/test-cases/create-steps-nl/overview/).

---

## **Add Test Data in Test Steps**

1. Add a new step to the **Test Case** using **NLP** and include a placeholder for the **test data**.
Expand All @@ -78,11 +82,22 @@ Here is a quick GIF demonstrating the above workflow: ![Select Test Data Types](

## **Plain Text**

You can use Plain Text as a Test Data Type in Testsigma. It is perfect for entering static and fixed values in your test cases. This type is suitable for providing constant information like usernames, passwords, or text that doesn't change during testing. Raw Data, where the data is directly specified, frequently uses Plain Text Test Data for test steps. For more information, refer to [Plain Text - Raw Data](https://testsigma.com/docs/test-data/types/raw/).
You can use Plain Text as a test data type in Testsigma. It is perfect for entering static and fixed values in your test cases. This type is suitable for providing constant information like usernames, passwords, or text that doesn't change during testing. Raw Data, where the data is directly specified, frequently uses Plain Text test data for test steps. For more information, refer to [Plain Text - Raw Data](https://testsigma.com/docs/test-data/types/raw/).

For example, at the start of the Test Case, we specify the URL to navigate as shown below:
For example, at the start of the test case, we specify the URL to navigate as shown below:
![Plain Text data type](https://s3.amazonaws.com/static-docs.testsigma.com/new_images/projects/applications/plaintext_testdata.png)
In this instance, we use Plain Text Test Data by directly providing the test data, which is the URL, within the Test Step.

In this instance, we use Plain Text test data by directly providing the test data, which is the URL, within the test step.


[[info | **NOTE**:]]
| You can also provide a blank value as test data, an additional option with Plain Text test data. To use this functionality, we must replace the *test data* part with the string **key_blank**. This will enter a blank value in the field where *test data* is passed.
|
| <br>
|
| Here's a quick GIF demonstrating using blank value as test data.
|
| ![Blank Value](https://s3.amazonaws.com/static-docs.testsigma.com/new_images/projects/applications/BlankValue.gif)

---

Expand All @@ -107,7 +122,8 @@ In this instance, we use Plain Text Test Data by directly providing the test dat

## **Environment**

- Manage Environment Test Data Type on the Environments page with a limited scope to a project. The Environment Test Data Type contains environment-related information like URLs, API endpoints, and database connection details. You must configure test cases to work in various environments (e.g., development, staging, production).
- Manage Environment Test Data Type on the Environments page with a limited scope to a project. The Environment Test Data Type contains environment-related information like URLs, API endpoints, and database connection details. You must configure test cases to work in various environments (e.g., development, staging, production).

- You can use the *** Environment** type and substitute the parameter's name for "**Environment**" to use Testsigma's most versatile Test Data Type, the Environment Parameter. Refer to the [Environment](https://testsigma.com/docs/test-data/types/environment/) for more information. ![Environment Test data type](https://s3.amazonaws.com/static-docs.testsigma.com/new_images/projects/applications/environment_testdata_type.png)

[[info | EXAMPLE:]]
Expand All @@ -126,24 +142,24 @@ Random Test Data Type generates random data such as numbers, email addresses, an

## **Data Generator**

Data Generator Test Data Type generates realistic and structured data for testing purposes, such as names, addresses, and emails. You can obtain dynamic data by using the **Default Test Data Generator Functions**. To use them, you must substitute "**Data Generator**" with the specific name required in the **! Data Generator** format. Refer to the [Data Generator](https://testsigma.com/docs/test-data/types/data-generator/) for more information. ![Data Generator Data Type](https://s3.amazonaws.com/static-docs.testsigma.com/new_images/projects/applications/datagenerator_datatype.png)
Data Generator test data type generates realistic and structured data for testing purposes, such as names, addresses, and emails. You can obtain dynamic data by using the **Default Test Data Generator Functions**. To use them, you must substitute "**Data Generator**" with the specific name required in the **! Data Generator** format. Refer to the [Data Generator](https://testsigma.com/docs/test-data/types/data-generator/) for more information. ![Data Generator Data Type](https://s3.amazonaws.com/static-docs.testsigma.com/new_images/projects/applications/datagenerator_datatype.png)

---

## **Phone Number**

Phone Number Test Data Type allows you to create random or predefined phone numbers for testing SMS or phone number validation features. If you need a valid phone number to receive SMS codes for scenarios like two-factor authentication testing, Testsigma provides a test phone number that you can use as test data in your test steps. Refer to the [Phone Number](https://testsigma.com/docs/test-data/types/phone-number/) and [2-step Authentication](https://testsigma.com/tutorials/advanced/sms-based-two-factor-authentication-2fa/) for more information. ![Phone Number Data Type](https://s3.amazonaws.com/static-docs.testsigma.com/new_images/projects/applications/phonenumber_testdatatype.png)
Phone Number test data type allows you to create random or predefined phone numbers for testing SMS or phone number validation features. If you need a valid phone number to receive SMS codes for scenarios like two-factor authentication testing, Testsigma provides a test phone number that you can use as test data in your test steps. Refer to the [Phone Number](https://testsigma.com/docs/test-data/types/phone-number/) and [2-step Authentication](https://testsigma.com/tutorials/advanced/sms-based-two-factor-authentication-2fa/) for more information. ![Phone Number Data Type](https://s3.amazonaws.com/static-docs.testsigma.com/new_images/projects/applications/phonenumber_testdatatype.png)

---

## **Mail Box**

Mailbox Test Data Type generates email addresses and mailbox data for testing email-related functions, particularly for workflows involving OTPs or activation links. Testsigma enables you to use provisioned mailbox email addresses to input test data. Refer to the [Mail Box](https://testsigma.com/docs/test-data/types/mailbox/) for more information. ![Mail Box Data Type](https://s3.amazonaws.com/static-docs.testsigma.com/new_images/projects/applications/mailbox_testdatatype.png)
Mailbox test data type generates email addresses and mailbox data for testing email-related functions, particularly for workflows involving OTPs or activation links. Testsigma enables you to use provisioned mailbox email addresses to input test data. Refer to the [Mail Box](https://testsigma.com/docs/test-data/types/mailbox/) for more information. ![Mail Box Data Type](https://s3.amazonaws.com/static-docs.testsigma.com/new_images/projects/applications/mailbox_testdatatype.png)

---

## **Upload**

Upload Test Data Type enables you to easily upload files and applications to your tests using NLP, streamlining the process of adding attachments to your test cases. Refer to the [Upload Files](https://testsigma.com/docs/uploads/upload-files/) & [Apps](https://testsigma.com/docs/uploads/upload-apps/) for more information. ![Upload data type](https://s3.amazonaws.com/static-docs.testsigma.com/new_images/projects/applications/upload_testdata_type.png)
Upload test data type enables you to easily upload files and applications to your tests using NLP, streamlining the process of adding attachments to your test cases. Refer to the [Upload Files](https://testsigma.com/docs/uploads/upload-files/) & [Apps](https://testsigma.com/docs/uploads/upload-apps/) for more information. ![Upload data type](https://s3.amazonaws.com/static-docs.testsigma.com/new_images/projects/applications/upload_testdata_type.png)

---
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ contextual_links:
The easiest way to debug an error is to check the Logs for the Mobile test recorder. It contains the actual reason for the error. This article discusses some of the most common reasons.

---

## **1. There are already running sessions for the user**

There could be a couple of reasons for this error to appear. The reasons are listed below:
Expand Down Expand Up @@ -114,12 +115,13 @@ At all times, ensure that the tap point is within the screen.

**Reason:**

This error appears when due to some reasons the Testsigma servers are not able to reach to the mobile inspector session. One of the main reasons could be an issue with your browser network. At such times, the keep-alive requests from the browser dont go through to the Testsigma servers and the Testsigma servers assume that the session was closed abruptly - thus, marking the session as **expired**.
This error appears when Testsigma servers cannot reach the mobile inspector session. One of the main reasons could be an issue with your browser network. At such times, the keep-alive requests from the browser don't go through to the Testsigma servers, and the Testsigma servers assume that the session was closed abruptly, thus marking the session as **expired**.

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

**Solution:**

Check and rectify any network-related issues and relaunch.
Check and resolve any network-related issues and relaunch.

<br>

Expand Down
2 changes: 1 addition & 1 deletion src/templates/page.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ export default ({ data, pageContext }) => {
<span dangerouslySetInnerHTML={{ __html: post.html }} />
</div>
</main>
<aside className="isGithubEdit w-1/5">
<aside className="isGithubEdit w-1/5 bg-white">
<hr className="d-block lg:hidden"/>
<div className="top-0 top-1 border-l pl-4 py-16 sticky">
<div className="edit-button">
Expand Down
42 changes: 42 additions & 0 deletions src/templates/page.scss
Original file line number Diff line number Diff line change
Expand Up @@ -641,4 +641,46 @@ code[class*="language-"] {

.fixed{
display: none;
}

table{
thead, tbody{
@apply w-full;
tr{
td, th{
word-wrap: break-word;
li{
@apply break-all w-full;
}
}
}
}
}

// Cookie banner
#hs-banner-parent{
.hs-cookie-notification-position-bottom{
width: calc(min(28em, 100%));
left: 14%;
@media only screen and (max-width: 767px) {
left: 3%;
width: 95%;
}
@media only screen and (min-width:768px) and (max-width: 1023px) {
left: 20%;
width: 35%;
}
#hs-eu-cookie-confirmation-inner{
@apply p-8;
#hs-eu-policy-wording{
@apply mr-0 mb-4;
}
#hs-eu-cookie-confirmation-buttons-area{
@apply justify-center mr-0;
#hs-eu-decline-button{
@apply hidden;
}
}
}
}
}
Loading