Skip to content

Commit c27d57b

Browse files
authored
Update README.md
1 parent 39fd1a5 commit c27d57b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ This repository contains the code for a random tester developed using [Cypress](
44
## How to run
55
In order to use the tester, you will have to follow these steps:
66
- Get the source code from this repository: Click on Download as Zip and unzip the folder in your machine or clone the repo
7-
- Install the required modules: Using [Node Package Manager](https://www.npmjs.com/), run `npm install`. This will install the cypress and faker modules, besides a cypress [plugin](https://github.com/Bkucera/cypress-plugin-tab) for tab.
7+
- Install the required modules: Using [Node Package Manager](https://www.npmjs.com/), run `npm install cypress` on the root folder; this will install the cypress CLI module. The testers need other dependencies, so change the directory with `cd cypress/integration/monkey` to the corresponding folder and run `npm install`; this will install the faker module and a cypress [plugin](https://github.com/Bkucera/cypress-plugin-tab) for pressing the tab key.
88
- Configure the desired parameters: The repository's root folder contains two JSON files which have the configuration parameters for each test. Open them and edit the parameters as needed. You can change the baseURL, the percentage of events, the delay between events, and the number of events.
9-
- Run the desired tester: For the random tester, run `cypress run --config-file ./monkey-config.json`. For the slightly smarter random tester, run `cypress run --config-file ./smart-monkey-config.json`.
9+
- Run the desired tester: The commands for running the tests must be executed from the root folder, so do not forget to change de directory again with the `cd` command. For the random tester, run `cypress run --config-file ./monkey-config.json`. For the slightly smarter random tester, run `cypress run --config-file ./smart-monkey-config.json`.
1010

1111
\* Note: The default browser is Electron 78 in headless mode. In order to test another browser, add the `--browser <browser-name-or-path>` option to the run command, indicating which of the [supported browsers](https://docs.cypress.io/guides/guides/launching-browsers.html#Browsers) you want to use
1212

0 commit comments

Comments
 (0)