You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/load-testing/how-to-define-test-criteria.md
+12-14Lines changed: 12 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -56,7 +56,7 @@ Azure Load Testing supports the following client metrics:
56
56
|`requests_per_sec`|`avg` (average) | Numerical value with up to two decimal places. |`>` (greater than) <BR> `<` (less than) | Number of requests per second. |
57
57
|`requests`|`count`| Integer value. |`>` (greater than) <BR> `<` (less than) | Total number of requests. |
58
58
59
-
## Define load test fail criteria for client metrics
59
+
###Define load test fail criteria for client metrics
60
60
61
61
# [Azure portal](#tab/portal)
62
62
@@ -130,8 +130,6 @@ To specify fail criteria in the YAML configuration file:
130
130
:::image type="content" source="media/how-to-define-test-criteria/azure-pipelines-log.png" alt-text="Screenshot that shows the test criteria in the CI/CD workflow log.":::
131
131
132
132
---
133
-
### Fail criteria structure for server metrics
134
-
135
133
### Grant access to your app component
136
134
137
135
When you set failure criteria on a metric in your app component, your load testing resource uses a managed identity for accessing that component. After you configure the manage identity, you need to grant the managed identity of your load testing resource permissions to read these values from the app component.
@@ -140,33 +138,33 @@ To grant your Azure load testing resource permissions to read the metrics from y
140
138
141
139
1. In the Azure portal, go to your app component.
142
140
143
-
2. On the left pane, select Access Control(IAM), then select + Add, and then select Add role assignment.
141
+
2. On the left pane, select **Access Control(IAM)**, then select **+ Add**, and then select **Add role assignment**.
144
142
145
-
3. On the Role tab, under Job functions roles, search for Monitoring Reader or Monitoring Contributor.
143
+
3. On the **Role **tab, under** Job functions roles**, search for **Monitoring Reader** or **Monitoring Contributor**.
146
144
147
-
4. On the Members tab, under Assign access to, select Managed Identity.
145
+
4. On the **Members** tab, under **Assign access to**, select **Managed Identity**.
148
146
149
-
5. Click on Select members, search for and select the managed identity for the load testing resource, and then select Next.
147
+
5. Click on **Select members**, search for and select the managed identity for the load testing resource, and then select **Next**.
150
148
If you're using a system-assigned managed identity, the managed identity name matches that of your Azure load testing resource.
151
149
152
-
6. Select Review + assign to assign the identity the permission.
150
+
6. Select **Review + assign** to assign the identity the permission.
153
151
When your test runs, the managed identity that's associated with your load testing resource can now read the metrics for your load test from your app component.
154
152
155
-
## Define load test fail criteria for client metrics
153
+
## Define load test fail criteria for server metrics
156
154
157
155
In this section, you configure test failure criteria on server-side metrics for a load test in the Azure portal.
158
156
159
157
1. In the Azure portal, go to your Azure Load Testing resource.
160
158
161
-
3. Click on Create Test.
159
+
2. Click on **Create Test**.
162
160
163
-
5. Under the Monitoring Tab, configure the app components you want to monitor during the test.
161
+
3. Under the **Monitoring** Tab, configure the app components you want to monitor during the test.
164
162
165
-
7. Configure the Metrics reference identity. The identity can be the system-assigned identity of the load testing resource, or one of the user-assigned identities. Make sure you use the same identity you've granted access previously.
163
+
4. Configure the **Metrics reference identity**. The identity can be the system-assigned identity of the load testing resource, or one of the user-assigned identities. Make sure you use the same identity you've granted access previously.
166
164
167
-
9. On the Test criteria pane, fill the Resource ID, Namespace, Metric, Aggregation, Condition, Threshold values for your test. You can set failure criteria only for those resources/app components that you are monitoring during the test.
165
+
5. On the **Test criteria** pane, fill the **Resource ID, Namespace, Metric, Aggregation, Condition, Threshold values** for your test. You can set failure criteria only for those resources/app components that you are monitoring during the test.
168
166
169
-
10. Select Apply to save the changes.
167
+
6. Select **Apply** to save the changes.
170
168
When you now run the load test, Azure Load Testing uses the test criteria to determine the status of the load test run.
171
169
172
170
7. Run the test and view the status in the load test dashboard.
0 commit comments