Skip to content

Commit 547e1ca

Browse files
committed
Update stress bot to XMTP Stress Bot and improve docs
1 parent ef69d7c commit 547e1ca

File tree

1 file changed

+31
-28
lines changed

1 file changed

+31
-28
lines changed

bots/stress/README.md

+31-28
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,19 @@
1-
# 🤖 Stress bot
1+
# 🤖 XMTP Stress Bot
22

33
A lightweight toolkit for app developers to test messaging functionality against XMTP bots.
44

5-
### Prerequisites
5+
## 📋 Prerequisites
66

77
- Node.js (20.18.0)
88
- Yarn
99

10-
### Installation
10+
## 🔧 Installation
1111

1212
```bash
1313
git clone https://github.com/xmtp/xmtp-qa-testing
1414
cd xmtp-qa-testing
1515
yarn install
16+
1617
# Run the bot
1718
yarn bot:stress
1819
```
@@ -29,50 +30,52 @@ yarn bot:stress
2930
Create a `.env` file with the following configuration:
3031

3132
```bash
32-
LOGGING_LEVEL="off" # off, error, warn, info, debug, trace
33-
XMTP_ENV="dev" # dev, production
34-
OPENAI_API_KEY="sk-proj-..." # OpenAI API key
33+
LOGGING_LEVEL="off" # Options: off, error, warn, info, debug, trace
34+
XMTP_ENV="dev" # Options: dev, production
35+
OPENAI_API_KEY="sk-proj-..." # OpenAI API key
3536
```
3637

37-
## 🧪 Considerations
38+
## 🧪 Worker Behavior
3839

39-
- If a worker does not exist, its keys are created.
40-
- If worker exists uses the existing env file keys and .data folder
41-
- If the data folder doesnt exist, it creates one
42-
- Workers prefixed with "random" have keys that are stored only in memory.
40+
- New workers have their keys automatically created
41+
- Existing workers use their stored keys from the env file and .data folder
42+
- If the data folder doesn't exist, one is created automatically
43+
- Workers prefixed with "random" have keys that are stored only in memory
4344

44-
## Test Environment
45+
## 📱 Test Environment Specification
4546

46-
- Device: [iPhone 16 Pro Max]
47-
- Network: [Wifi]
48-
- XMTP Environment: [dev]
49-
- App Version: [1.0.0]
47+
| Parameter | Value |
48+
| ---------------- | ----------------- |
49+
| Device | iPhone 16 Pro Max |
50+
| Network | WiFi |
51+
| XMTP Environment | dev |
52+
| App Version | 1.0.0 |
5053

51-
## Stress Test Verification Matrix
54+
## 🔍 Stress Test Verification Matrix
5255

5356
| Test Scenario | Workers | App Launch | Message Loading | UI Performance | Stream Status | Message Sending | Status | Notes |
5457
| ------------- | ------- | ---------- | --------------- | -------------- | ------------- | --------------- | ------ | ----- |
55-
| Light Load | 5 | < 2s | Instant | No Lag | Connected | Instant | | |
56-
| Medium Load | 10 | < 3s | < 1s | Minimal Lag | Connected | < 1s | | |
57-
| Heavy Load | 20 | < 4s | < 2s | Acceptable | Connected | < 2s | | |
58-
| Extreme Load | 50 | < 5s | < 3s | Responsive | Connected | < 3s | | |
58+
| Light Load | 5 | < 2s | Instant | No Lag | Connected | Instant | | |
59+
| Medium Load | 10 | < 3s | < 1s | Minimal Lag | Connected | < 1s | | |
60+
| Heavy Load | 20 | < 4s | < 2s | Acceptable | Connected | < 2s | | |
61+
| Extreme Load | 50 | < 5s | < 3s | Responsive | Connected | < 3s | | |
5962

60-
## Legend
63+
## 🔑 Legend
6164

6265
- ⬜ Not Tested
6366
- ✅ Passed
6467
- ❌ Failed
6568
- ⚠️ Partial Pass
6669

67-
## Test Execution Log
70+
## 📝 Test Execution Log
6871

6972
| Date | Tester | Environment | Notes |
7073
| ---- | ------ | ----------- | ----- |
7174
| | | | |
7275

73-
### Resources
76+
## 📂 Project Structure
7477

75-
- **Local:** Work in local network with [dev section](/dev/)
76-
- **Workers:** Predefined workers like `bob`, `alice`, `randomguy` with [workers](/workers/)
77-
- **Helpers:** Utility functions in the [helpers section](/helpers/)
78-
- **Scripts:** Automation scripts in the [scripts section](/scripts/)
78+
- **Local:** Working in local network with resources in the [dev](/dev/) directory
79+
- **Workers:** Predefined workers like `bob`, `alice`, `randomguy` in the [workers](/workers/) directory
80+
- **Helpers:** Utility functions in the [helpers](/helpers/) directory
81+
- **Scripts:** Automation scripts in the [scripts](/scripts/) directory

0 commit comments

Comments
 (0)