You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**Default credentials**: API key defaults to `devkey`, API secret defaults to `secret` if not provided.
108
+
109
+
**Test discovery**: The unified runner (`run-all-e2e-tests.sh`) automatically discovers all `*-config.yaml` files in `config/` and maps them to validation scripts using convention: `foo-config.yaml` → `validate-foo.sh` (fallback: `validate-default.sh`).
-`PLATFORM_URL`: Required. The URL of your OpenVidu deployment (e.g., https://your-openvidu-url.io:7443)
33
-
-`PLATFORM_APIKEY`: Optional. API key for authentication (defaults to "devkey")
34
-
-`PLATFORM_APISECRET`: Optional. API secret for authentication (defaults to "secret")
37
+
The unified runner will:
35
38
36
-
### Configuration File
39
+
1. Discover all `*-config.yaml` files in the `config/` directory
40
+
2. Map each config to its validation script using convention (see below)
41
+
3. Run each test sequentially
42
+
4. Print a summary of all test results
37
43
38
-
The smoke test uses the configuration file `config/smoke-test-config.yaml` which specifies `advanced.reportOutput: html,txt` to generate both text and HTML reports.
- Start both loadtest-controller and browser-emulator services
64
-
- Launch 2 Chrome browsers that connect to the OpenVidu instance
65
97
- Create a single session with 2 participants in N:N topology
66
98
- Generate results in the `results/` directory:
67
99
-`results.txt` (text summary)
68
-
-`report.html` (HTML report, with user retry details if retries occurred)
100
+
-`report.html` (HTML report)
69
101
- Complete successfully and shut down cleanly
70
102
71
-
### Validation Checks
72
-
73
-
The smoke test validates that both `results.txt` and `report.html` files are generated and contain expected content.
103
+
### Validation Checks (Default)
74
104
75
105
**results.txt validation:**
76
106
@@ -87,26 +117,13 @@ The smoke test validates that both `results.txt` and `report.html` files are gen
87
117
- "Sessions Created"
88
118
- "Total Participants"
89
119
- "User Connections" (mandatory)
90
-
- Table columns: User, Session, Join date (from successful connection), Disconnect Date (captured from ParticipantDisconnected websocket event), Retry Number (count of retries per user)
The smoke test configuration uses `advanced.reportOutput: html,txt` to generate both output formats. If validation fails, the result files are kept in the `results/` directory for debugging.
94
-
95
-
## Extending the Test Suite
96
-
97
-
Additional test scenarios can be added by:
98
-
99
-
1. Creating new configuration files in `configs/` directory
100
-
2. Adding new scripts in `scripts/` directory or modifying the existing one
101
-
3. Following the same pattern as the smoke test
102
-
103
-
Examples of additional test scenarios:
104
-
105
-
- Scaling tests with different participant counts
106
-
- Different topologies (N:M, TEACHING, etc.)
107
-
- Different browsers (Chrome vs Firefox)
123
+
If validation fails, the result files are kept in the `results/` directory for debugging.
108
124
109
125
## Notes
110
126
111
127
- Make sure your OpenVidu instance is accessible from the Docker containers
112
-
- For troubleshooting, check the Docker Compose logs with `docker-compose logs`
128
+
- For troubleshooting, check the Docker Compose logs with `docker compose logs`
129
+
- Tests run sequentially to avoid resource conflicts
0 commit comments