# Running a Test Script on Windows

## Open oxygen-cli module inside node modules

Open cmd and run the following command to find your node root directory:

```
$ npm -g root
```

Once inside, enter the oxygen-cli folder and open cmd inside it, your path should look like this:

**C:\Users\Makeyev\AppData\Roaming\npm\node\_modules\oxygen-cli>**

Now we're ready to run the script, type the following command:

```bash
cls && node build\lib\cli 
```

And then the path to your script (in quotes):

```bash
cls && node build\lib\cli "C:\Users\Makeyev\Desktop\project\test.js"
```

{% hint style="info" %}
Before running the test, make sure Selenium is running either in oxygen or as a standalone
{% endhint %}

![](/files/-MKeizYH1Jts-972Vkl6)

## Run the command

![](/files/-MKemmj1KtURF1cA37Kr)

oxygen will initialize it's modules and execute the script:

![](/files/-MKekzEO7ETaaywQv_7d)

and finish by showing the status

![](/files/-MKeloZ_S-NWssij96P8)

then will generate a reports folder inside your project folder with your test report as an html file

![](/files/-MKenXrzsZiGjVtCBtPd)

![](/files/-MKenhHe0wzeDWZeDWo1)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.oxygenhq.org/download-installation-start/start-working-with-oxygen/introduction-and-usage/running-a-test-script.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
