Skip to content

Commit 66f9916

Browse files
authored
Merge pull request #298843 from ninallam/ninallam-enhancements
Add script based tests to PaaS integrations
2 parents c17b0ba + 5773079 commit 66f9916

10 files changed

+31
-67
lines changed

articles/load-testing/how-to-create-load-test-app-service.md

Lines changed: 16 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -28,36 +28,35 @@ With the integrated load testing experience in Azure App Service, you can:
2828

2929
## Create a load test for a web app
3030

31-
You can create a URL-based load test directly from your Azure App Service web app in the Azure portal.
31+
You can create load test directly from your Azure App Service web app in the Azure portal. You can either create by entering your HTTP requests directly in portal or by uploading a JMeter or Locust test script.
3232

3333
To create a load test for a web app:
3434

3535
1. In the [Azure portal](https://portal.azure.com), go to your Azure App Service web app.
3636

37-
1. On the left pane, select **Load Testing (Preview)** under the **Performance** section.
37+
1. On the left pane, select **Load Testing** under the **Performance** section.
3838

3939
On this page, you can see the list of tests and the load test runs for this web app.
4040

41-
:::image type="content" source="./media/how-to-create-load-test-app-service/app-service-load-testing.png" lightbox="./media/how-to-create-load-test-app-service/app-service-load-testing.png" alt-text="Screenshot that shows Load Testing page in App Service.":::
41+
:::image type="content" source="./media/how-to-create-load-test-app-service/app-service-load-testing.png" lightbox="./media/how-to-create-load-test-app-service/app-service-load-testing.png" alt-text="Screenshot that shows Load Testing page in App Service.":::
4242

43-
1. Optionally, select **Create load testing resource** if you don't have a load testing resource yet.
43+
1. Select **Create test** to start load test for the web app. Select **Create a URL-based test** if you don't have a test script. Select **Upload a script** if you have a JMeter or Locust test script.
4444

45-
1. Select **Create test** to start creating a URL-based load test for the web app.
4645

47-
1. On the **Create test** page, first enter the test details:
46+
1. On the **Create test** page, first enter the test details:
4847

49-
|Field |Description |
50-
|-|-|
51-
| **Load Testing Resource** | Select your load testing resource. |
52-
| **Test name** | Enter a unique test name. |
53-
| **Test description** | (Optional) Enter a load test description. |
54-
| **Run test after creation** | When selected, the load test starts automatically after creating the test. |
48+
|Field |Description |
49+
|-|-|
50+
| **Load Testing Resource** | Select your load testing resource. Create new if you don't have one in the Azure subscription. |
51+
| **Test name** | Enter a unique test name. |
52+
| **Test description** | (Optional) Enter a load test description. |
53+
| **Run test after creation** | When selected, the load test starts automatically after creating the test. |
5554

56-
1. If you have multiple deployment slots for the web app, select the **Slot** against which to run the load test.
55+
1. If you have multiple deployment slots for the web app, select the **Slot** against which to run the load test.
5756

58-
:::image type="content" source="./media/how-to-create-load-test-app-service/app-service-create-test-resource-configuration.png" lightbox="./media/how-to-create-load-test-app-service/app-service-create-test-resource-configuration.png" alt-text="Screenshot that shows the resource configuration page for creating a test in App Service.":::
57+
:::image type="content" source="./media/how-to-create-load-test-app-service/app-service-create-test-resource-configuration.png" lightbox="./media/how-to-create-load-test-app-service/app-service-create-test-resource-configuration.png" alt-text="Screenshot that shows the resource configuration page for creating a test in App Service.":::
5958

60-
1. Select **Add request** to add HTTP requests to the load test:
59+
1. For a URL-based test, select **Add request** to add HTTP requests to the load test:
6160

6261
On the **Add request** page, enter the details for the request:
6362

@@ -73,25 +72,10 @@ To create a load test for a web app:
7372

7473
Learn more about [adding HTTP requests to a load test](./how-to-add-requests-to-url-based-test.md).
7574

76-
1. Select the **Load configuration** tab to configure the load parameters for the load test.
77-
78-
79-
|Field |Description |
80-
|-|-|
81-
| **Engine instances** | Enter the number of load test engine instances. The load test runs in parallel across all the engine instances. |
82-
| **Load pattern** | Select the load pattern (linear, step, spike) for ramping up to the target number of virtual users. |
83-
| **Concurrent users per engine** | Enter the number of *virtual users* to simulate on each of the test engines. The total number of virtual users for the load test is: #test engines * #users per engine. |
84-
| **Test duration (minutes)** | Enter the duration of the load test in minutes. |
85-
| **Ramp-up time (minutes)** | Enter the ramp-up time of the load test in minutes. The ramp-up time is the time it takes to reach the target number of virtual users. |
86-
87-
1. Optionally, configure the network settings if the web app is not publicly accessible.
88-
89-
Learn more about [load testing privately hosted endpoints](./how-to-test-private-endpoint.md).
90-
91-
:::image type="content" source="./media/how-to-create-load-test-app-service/app-service-create-test-load-configuration.png" lightbox="./media/how-to-create-load-test-app-service/app-service-create-test-load-configuration.png" alt-text="Screenshot that shows the load configuration page for creating a test in App Service.":::
75+
1. For a script-based test, upload your test script in the **Test plan** tab. Learn more about [creating a test by uploading a test script](./how-to-create-manage-test.md#create-a-test-by-using-a-test-script).
9276

9377

94-
1. Select **Review + create** to review the test configuration, and then select **Create** to create the load test.
78+
1. After entering all the required details, select **Review + create** to review the test configuration, and then select **Create** to create the load test.
9579

9680
Azure Load Testing now creates the load test. If you selected **Run test after creation** previously, the load test starts automatically.
9781

articles/load-testing/how-to-create-load-test-function-app.md

Lines changed: 15 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ With the integrated load testing experience in Azure Functions, you can:
2828

2929
## Create a load test for a function app
3030

31-
You can create a URL-based load test directly from your Azure Function App in the Azure portal.
31+
You can create a URL-based load test directly from your Azure Function App in the Azure portal. You can either create by entering your HTTP requests directly in portal or by uploading a JMeter or Locust test script.
3232

3333
To create a load test for a function app:
3434

@@ -40,62 +40,42 @@ To create a load test for a function app:
4040

4141
:::image type="content" source="./media/how-to-create-load-test-azure-functions/azure-functions-load-test.png" lightbox="./media/how-to-create-load-test-azure-functions/azure-functions-load-test.png" alt-text="Screenshot that shows Load Testing page in an app in Azure Functions.":::
4242

43-
1. Optionally, select **Create load testing resource** if you don't have a load testing resource yet.
43+
1. Select **Create test** to start load test for the function app. Select **Create a URL-based test** if you don't have a test script. Select **Upload a script** if you have a JMeter or Locust test script.
4444

45-
1. Select **Create test** to start creating a URL-based load test for the function app.
4645

47-
1. On the **Create test** page, first enter the test details:
48-
49-
|Field |Description |
50-
|-|-|
51-
| **Load Testing Resource** | Select your load testing resource. |
52-
| **Test name** | Enter a unique test name. |
53-
| **Test description** | (Optional) Enter a load test description. |
54-
| **Run test after creation** | When selected, the load test starts automatically after creating the test. |
46+
1. On the **Create test** page, first enter the test details:
5547

48+
|Field |Description |
49+
|-|-|
50+
| **Load Testing Resource** | Select your load testing resource. Create new if you don't have one in the Azure subscription. |
51+
| **Test name** | Enter a unique test name. |
52+
| **Test description** | (Optional) Enter a load test description. |
53+
| **Run test after creation** | When selected, the load test starts automatically after creating the test. |
5654

57-
1. Select **Add request** to add HTTP requests to the load test:
55+
56+
1. For a URL-based test, select **Add request** to add HTTP requests to the load test:
5857

5958
On the **Add request** page, enter the details for the request:
6059

6160
|Field |Description |
6261
|-|-|
6362
| **Request name** | Unique name within the load test to identify the request. You can use this request name when [defining test criteria](./how-to-define-test-criteria.md). |
64-
| **Function name** | Select the function that you want to test |
65-
| **Key** | Select the key required for accessing the function |
63+
| **URL** | Select the base URL for the HTTP endpoint |
64+
| **Path** | (Optional) Enter a URL path name within the HTTP endpoint. The path is appended to the URL to form the endpoint that is load tested. |
6665
| **HTTP method** | Select an HTTP method from the list. Azure Load Testing supports GET, POST, PUT, DELETE, PATCH, HEAD, and OPTIONS. |
6766
| **Query parameters** | (Optional) Enter query string parameters to append to the URL. |
6867
| **Headers** | (Optional) Enter HTTP headers to include in the HTTP request. |
6968
| **Body** | (Optional) Depending on the HTTP method, you can specify the HTTP body content. Azure Load Testing supports the following formats: raw data, JSON view, JavaScript, HTML, and XML. |
7069

71-
:::image type="content" source="./media/how-to-create-load-test-azure-functions/azure-functions-create-test-add-requests.png" lightbox="./media/how-to-create-load-test-azure-functions/azure-functions-create-test-add-requests.png" alt-text="Screenshot that shows adding requests to a load test in an app in Azure Functions.":::
72-
7370
Learn more about [adding HTTP requests to a load test](./how-to-add-requests-to-url-based-test.md).
7471

75-
1. Select the **Load configuration** tab to configure the load parameters for the load test.
76-
77-
78-
|Field |Description |
79-
|-|-|
80-
| **Engine instances** | Enter the number of load test engine instances. The load test runs in parallel across all the engine instances. |
81-
| **Load pattern** | Select the load pattern (linear, step, spike) for ramping up to the target number of virtual users. |
82-
| **Concurrent users per engine** | Enter the number of *virtual users* to simulate on each of the test engines. The total number of virtual users for the load test is: #test engines * #users per engine. |
83-
| **Test duration (minutes)** | Enter the duration of the load test in minutes. |
84-
| **Ramp-up time (minutes)** | Enter the ramp-up time of the load test in minutes. The ramp-up time is the time it takes to reach the target number of virtual users. |
85-
86-
1. Optionally, configure the network settings if the function app isn't publicly accessible.
87-
88-
Learn more about [load testing privately hosted endpoints](./how-to-test-private-endpoint.md).
89-
90-
:::image type="content" source="./media/how-to-create-load-test-azure-functions/azure-functions-create-test-load-configuration.png" lightbox="./media/how-to-create-load-test-azure-functions/azure-functions-create-test-load-configuration.png" alt-text="Screenshot that shows the load configuration page for creating a test for an app in Azure Functions.":::
72+
1. For a script-based test, upload your test script in the **Test plan** tab. Learn more about [creating a test by uploading a test script](./how-to-create-manage-test.md#create-a-test-by-using-a-test-script).
9173

9274

93-
1. Select **Review + create** to review the test configuration, and then select **Create** to create the load test.
75+
1. After entering all the required details, select **Review + create** to review the test configuration, and then select **Create** to create the load test.
9476

9577
Azure Load Testing now creates the load test. If you selected **Run test after creation** previously, the load test starts automatically.
9678

97-
> [!NOTE]
98-
> If the test was converted from a URL test to a JMX test directly from the Load Testing resource, the test cannot be modified from the function app.
9979

10080
## View test runs
10181

18.5 KB
Loading
Loading
125 KB
Loading
91.5 KB
Loading
55.4 KB
Loading
6.64 KB
Loading

0 commit comments

Comments
 (0)