# 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 %}

![](https://3998735799-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Lwyvw09Dn_2O4RFZKxE%2F-MKebpqLr39zxkbeeq_4%2F-MKeizYH1Jts-972Vkl6%2Fimage.png?alt=media\&token=d25f4cc6-cb48-4d63-a78c-48c22a18edb8)

## Run the command

![](https://3998735799-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Lwyvw09Dn_2O4RFZKxE%2F-MKebpqLr39zxkbeeq_4%2F-MKemmj1KtURF1cA37Kr%2Fimage.png?alt=media\&token=2e03307a-ac45-4980-acc3-7574215eb90c)

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

![](https://3998735799-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Lwyvw09Dn_2O4RFZKxE%2F-MKebpqLr39zxkbeeq_4%2F-MKekzEO7ETaaywQv_7d%2Fimage.png?alt=media\&token=29bfa666-ae53-4341-ab2a-c5670b5c1cf1)

and finish by showing the status

![](https://3998735799-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Lwyvw09Dn_2O4RFZKxE%2F-MKebpqLr39zxkbeeq_4%2F-MKeloZ_S-NWssij96P8%2Fimage.png?alt=media\&token=8b5d754b-6279-443a-80bc-7f8d5de236f1)

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

![](https://3998735799-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Lwyvw09Dn_2O4RFZKxE%2F-MKebpqLr39zxkbeeq_4%2F-MKenXrzsZiGjVtCBtPd%2Fimage.png?alt=media\&token=ccc6a02e-8fb3-4261-8c0c-c485fa0369f2)

![](https://3998735799-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Lwyvw09Dn_2O4RFZKxE%2F-MKebpqLr39zxkbeeq_4%2F-MKenhHe0wzeDWZeDWo1%2Fimage.png?alt=media\&token=5e687564-d2f2-416f-b063-6474ce36c651)
