Skip to content

Commit 466c90a

Browse files
Apply suggestions from code review
1 parent 90eb1e9 commit 466c90a

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

docs/sources/k6-studio/components/validator.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ weight: 300
88

99
# Validator
1010

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.
1212

1313
> _TODO: Update image to a more recent version_
1414
{{< 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
2222
- Click the menu icon to:
2323
- **Open external script**: Open a k6 test script from your computer. After opening it, click **Validate script** to run one iteration of the test.
2424
- **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.
2727

2828
## Debug a test
2929

30-
To debug a script
30+
To debug a script:
3131

3232
1. Open a script.
33-
2. Click **Debug script** on the top-right.
33+
1. Click **Debug script** on the top-right.
3434

3535
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.
3636

@@ -49,7 +49,7 @@ During a debug session, and once it's completed, you can inspect the test result
4949
> _TODO: Insert numbered image of HTTP debugger._
5050
{{< 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" >}}
5151
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.
5353
2. **Validator options**: Below the tabs, you can see:
5454
- **Requests**: The total number of requests executed from the test script run.
5555
- **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
6262
> _TODO: Insert numbered image of browser debugger._
6363
{{< 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" >}}
6464
65-
1. **Script** From here you can inspect the executed script.
65+
1. **Script** From here, you can inspect the executed script.
6666
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.
6767
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/).
6868
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
7272
You can use the Validator to debug scripts that are created outside k6 Studio as well:
7373

7474
1. From the k6 Studio homepage, click **Validate script**.
75-
2. Click **Open script**.
75+
1. Click **Open script**.
7676

7777
Alternatively, from the Validator screen you can:
7878

0 commit comments

Comments
 (0)