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
+13-6Lines changed: 13 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,23 +26,29 @@ By defining test criteria, you can specify the performance expectations of your
26
26
27
27
## Load test pass/fail criteria
28
28
29
-
This section discusses the syntax you use to define Azure Load Testing pass/fail criteria.
29
+
This section discusses the syntax of Azure Load Testing pass/fail criteria. When a criterion evaluates to `true`, the load test gets the *failed* status.
30
30
31
-
You use `Aggregate_function (client_metric) condition value` syntax. When a criterion evaluates to `true`, the load test gets the *failed* status.
31
+
The structure of a pass/fail criterion is: `Request: Aggregate_function (client_metric) condition threshold`.
32
+
33
+
The following table describes the different components:
32
34
33
35
|Parameter |Description |
34
36
|---------|---------|
37
+
|`Request`|*Optional.* Name of the sampler in the JMeter script to which the criterion applies. If you don't specify a request name, the criterion applies to the aggregate of all the requests in the script. |
35
38
|`Client metric`|*Required.* The client metric on which the criteria should be applied. |
36
39
|`Aggregate function`|*Required.* The aggregate function to be applied on the client metric. |
37
40
|`Condition`|*Required.* The comparison operator. |
38
-
|`Threshold`|*Required.* The numeric value to compare with the client metric.<BR>The threshold evaluates against the aggregated value.|
41
+
|`Threshold`|*Required.* The numeric value to compare with the client metric. |
39
42
40
-
Load Testing supports the following combination of parameters:
43
+
Azure Load Testing supports the following metrics:
41
44
42
45
|Metric |Aggregate function |Threshold |Condition |
43
46
|---------|---------|---------|---------|
44
-
|`response_time_ms`|`avg` (average) | Integer value, representing number of milliseconds (ms) |`>` (greater than) |
45
-
|`error`|`percentage`| Numerical values in the range 0-100, representing a percentage |`>` (greater than) |
47
+
|`response_time_ms`|`avg` (average)<BR> `min` (minimum)<BR> `max` (maximum)<BR> `pxx` (percentile), xx can be 50, 90, 95, 99 | Integer value, representing number of milliseconds (ms). |`>` (greater than)<BR> `<` (less than) |
48
+
|`latency_ms`|`avg` (average)<BR> `min` (minimum)<BR> `max` (maximum)<BR> `pxx` (percentile), xx can be 50, 90, 95, 99 | Integer value, representing number of milliseconds (ms). |`>` (greater than)<BR> `<` (less than) |
49
+
|`error`|`percentage`| Numerical value in the range 0-100, representing a percentage. |`>` (greater than) <BR> `<` (less than) |
50
+
|`requests_per_sec`|`avg` (average) | Numerical value with up to two decimal places. |`>` (greater than) <BR> `<` (less than) |
Copy file name to clipboardExpand all lines: articles/load-testing/reference-test-config-yaml.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,7 +30,7 @@ A test configuration uses the following keys:
30
30
|`engineInstances`| integer ||*Required*. Number of parallel instances of the test engine to execute the provided test plan. You can update this property to increase the amount of load that the service can generate. |
31
31
|`configurationFiles`| array || List of relevant configuration files or other files that you reference in the Apache JMeter script. For example, a CSV data set file, images, or any other data file. These files will be uploaded to the Azure Load Testing resource alongside the test script. If the files are in a subfolder on your local machine, use file paths that are relative to the location of the test script. <BR><BR>Azure Load Testing currently doesn't support the use of file paths in the JMX file. When you reference an external file in the test script, make sure to only specify the file name. |
32
32
|`description`| string || Short description of the test run. |
33
-
|`failureCriteria`| object || Criteria that indicate failure of the test. Each criterion is in the form of:<BR>`[Aggregate_function] ([client_metric]) > [value]`<BR><BR>- `[Aggregate function] ([client_metric])` is either `avg(response_time_ms)` or `percentage(error).`<BR>- `value` is an integer number. |
33
+
|`failureCriteria`| object || Criteria that indicate when a test should fail. The structure of a pass/fail criterion is: `Request: Aggregate_function (client_metric) condition threshold`. For more information on the supported values, see [Load test pass/fail criteria](./how-to-define-test-criteria.md#load-test-passfail-criteria). |
34
34
|`properties`| object || List of properties to configure the load test. |
35
35
|`properties.userPropertyFile`| string || File to use as an Apache JMeter [user properties file](https://jmeter.apache.org/usermanual/test_plan.html#properties). The file will be uploaded to the Azure Load Testing resource alongside the JMeter test script and other configuration files. If the file is in a subfolder on your local machine, use a path relative to the location of the test script. |
36
36
|`splitAllCSVs`| boolean | False | Split the input CSV files evenly across all test engine instances. For more information, see [Read a CSV file in load tests](./how-to-read-csv-data.md#split-csv-input-data-across-test-engines). |
0 commit comments