Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update the README.md #76

Merged
merged 5 commits into from
Mar 4, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
made a change
  • Loading branch information
dilankavishka committed Mar 4, 2025
commit fd159f2e8161d5d614580fbc09980bd1354bb9f0
13 changes: 6 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -31,24 +31,23 @@ and easy-to-use framework for simulating user load and measuring system performa

To run the performance tests locally, follow these steps:

1. Start OpenMRS on port 80. (Use the docker file: [src/test/resources/docker-compose.yml](src/test/resources/docker-compose.yml) It contains demo patients for the test. [Learn more](#generating-demo-patient-data))
1. Before starting the server, Install dependencies (and compile)
```bash
./mvnw install -DskipTests
```
2. Start OpenMRS on port 80. (Use the docker file: [src/test/resources/docker-compose.yml](src/test/resources/docker-compose.yml) It contains demo patients for the test. [Learn more](#generating-demo-patient-data))

For using the docker file, run the following command:
```bash
docker compose -f src/test/resources/docker-compose.yml up
```
2. Execute the following command in your terminal:
3. Execute the following command in your terminal:

**Standard** `export SIMULATION_PRESET='standard' && ./mvnw gatling:test` \
**dev** `export SIMULATION_PRESET=dev TIER_COUNT=2 TIER_DURATION_MINUTES=1 USER_INCREMENT_PER_TIER=10 && ./mvnw gatling:test`

This command will initiate the performance tests using Gatling and generate a report upon completion.

**Before starting the server, make sure to build the project using Maven:**

```bash
mvn install
```
### Simulation Presets

Simulation presets are configured within the OpenMRSClinic class. Below are the available presets. To add a new