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: docs/sources/k6-studio/components/validator.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ weight: 300
8
8
9
9
# Validator
10
10
11
-
The Validator can help you debug test scripts. You can use it to run one iteration of your test, and visualize e.g. requests, logs and browser interactions. It supports both HTTP tests and browser tests, and can run any k6 test scripts, including scripts created outside of k6 Studio.
11
+
The Validator can help you debug test scripts. You can use it to run one iteration of your test and visualize, for example, requests, logs, and browser interactions. It supports both HTTP tests and browser tests, and can run any k6 test scripts, including scripts created outside of k6 Studio.
12
12
13
13
> _TODO: Update image to a more recent version_
14
14
{{< figure src="/media/docs/k6-studio/screenshot-k6-studio-test-validator-panels-3.png" alt="k6 Studio Validator window, showing a test script that has been executed, with a list of requests and their status code, as well as the request and response panels on the right, and the script preview" >}}
@@ -22,15 +22,15 @@ The content of the Validator window depends on the type of test script. The basi
22
22
- Click the menu icon to:
23
23
-**Open external script**: Open a k6 test script from your computer. After opening it, click **Validate script** to run one iteration of the test.
24
24
-**Delete**: Deletes the selected test script.
25
-
3.**Main view**: Below the test script name is the main view of the Validator. From here you can inspect the opened script and any data generated during a debug session.
26
-
4.**Bottom view**: This panel contains additional information about the test results, such as the logs emitted during its execution.
25
+
3.**Main view**: Below the test script name is the main view of the Validator. From here, you can inspect the opened script and any data generated during a debug session.
26
+
4.**Debug panel**: This panel contains additional information about the test results, such as the logs emitted during its execution, or console messages for browser tests.
27
27
28
28
## Debug a test
29
29
30
-
To debug a script
30
+
To debug a script:
31
31
32
32
1. Open a script.
33
-
2. Click **Debug script** on the top-right.
33
+
1. Click **Debug script** on the top-right.
34
34
35
35
After you click **Debug script**, k6 Studio runs one iteration of the test script and shows you the results of the test as the script is executed.
36
36
@@ -49,7 +49,7 @@ During a debug session, and once it's completed, you can inspect the test result
49
49
> _TODO: Insert numbered image of HTTP debugger._
50
50
{{< figure src="/media/docs/k6-studio/screenshot-k6-studio-test-validator-http-test-panels.png" alt="k6 Studio Validator window, showing the results of an HTTP test that has been executed, with a list of requests and their status code, as well as the request and response panels on the right" >}}
51
51
52
-
1.**Tabs**: From here you can switch between viewing the executed script and the list of requests made during execution.
52
+
1.**Tabs**: From here, you can switch between viewing the executed script and the list of requests made during execution.
53
53
2.**Validator options**: Below the tabs, you can see:
54
54
-**Requests**: The total number of requests executed from the test script run.
55
55
-**Search**: A search box that lets you search the list of requests by URL, method (such as GET or POST), and status code. You can also use the toggle to search across all request data.
@@ -62,7 +62,7 @@ During a debug session, and once it's completed, you can inspect the test result
62
62
> _TODO: Insert numbered image of browser debugger._
63
63
{{< figure src="/media/docs/k6-studio/screenshot-k6-studio-test-validator-browser-test-panels.png" alt="k6 Studio Validator window, showing the results of a browser test that has been executed, with the script and a list of browser interactions on the right, as well as console output and http requests in the bottom" >}}
64
64
65
-
1.**Script** From here you can inspect the executed script.
65
+
1.**Script** From here, you can inspect the executed script.
66
66
2.**Browser actions**: This panel shows the interactions made by the script and their outcomes. If an interaction failed, the reason for the failure is shown.
67
67
3.**Console**: Any logs emitted either by the browser or the [test script](https://grafana.com/docs/grafana-cloud/testing/k6/analyze-results/inspect-test-results/inspect-logs/).
68
68
4.**Requests**: A list of requests made _by the browser_. This is simlar to the request list in an [HTTP test](#http-test).
@@ -72,7 +72,7 @@ During a debug session, and once it's completed, you can inspect the test result
72
72
You can use the Validator to debug scripts that are created outside k6 Studio as well:
73
73
74
74
1. From the k6 Studio homepage, click **Validate script**.
0 commit comments