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
* set up config, add api key
* lint
* test
* test target id in config
* options for apiKey and testTargetId in init
* refactor
* readme, rename file
* resolve test target id
* tests
* refactor
* fix tests, refactor
* update readme
Copy file name to clipboardExpand all lines: README.md
+48-33Lines changed: 48 additions & 33 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,50 +13,66 @@ See [API documentation](https://octomind.dev/docs/api-reference/)
13
13
14
14
## Commands
15
15
16
+
### Init
17
+
18
+
Initialize configuration by setting up your API key and optionally a test target ID. This allows you to avoid passing these parameters for subsequent commands.
19
+
20
+
```bash
21
+
octomind init \
22
+
[--api-key <key>] \
23
+
[--test-target-id <id>] \
24
+
[--force]
25
+
```
26
+
27
+
Options:
28
+
-`-k, --api-key`: Your Octomind API key (will prompt if not provided)
29
+
-`-t, --test-target-id`: Test target ID (optional)
30
+
-`-f, --force`: Force overwrite existing configuration
31
+
32
+
If you don't provide the API key via the command line option, the CLI will prompt you to enter it interactively. You can get your API key from https://octomind.dev/docs/run-tests/execution-curl#create-an-api-key.
33
+
16
34
### Execute Tests
17
35
18
36
Run test cases against a specified URL.
19
37
20
38
```bash
21
39
octomind execute \
22
-
--api-key <key> \
23
-
--test-target-id <id> \
24
40
--url <url> \
41
+
[--api-key <key>] \
42
+
[--test-target-id <id>] \
25
43
[--environment <name>] \
26
44
[--tags <list of tags>] \
27
45
[-v, --variables-to-overwrite <variables>] \
28
46
[--description <text>] \
29
-
[--tags <tags> ] \
30
47
[--json]
31
48
```
32
49
33
50
Options:
34
-
-`-k, --api-key` (required): Your Octomind API key
35
-
-`-t, --test-target-id` (required): Test target ID
36
51
-`-u, --url` (required): URL to test
52
+
-`-k, --api-key`: Your Octomind API key (optional if configured via `init`)
53
+
-`-t, --test-target-id`: Test target ID (optional if configured via `init`)
37
54
-`-e, --environment`: Environment name (default: "default")
38
55
-`-d, --description`: Test description
39
56
-`-g, --tags`: comma separated list of tags for tests to execute
40
57
-`-v, --variables-to-overwrite`: JSON object for variables to override for this run e.g. `{ "key": ["v1", "v2"]}`
41
58
-`-j, --json`: Output raw JSON response
42
-
-`-g, --tags <tags>`: comma separated list of tags
43
59
44
60
### Get Test Report
45
61
46
62
Retrieve details about a specific test report.
47
63
48
64
```bash
49
65
octomind report \
50
-
--api-key <key> \
51
-
--test-target-id <id> \
52
66
--report-id <id> \
67
+
[--api-key <key>] \
68
+
[--test-target-id <id>] \
53
69
[--json]
54
70
```
55
71
56
72
Options:
57
-
-`-k, --api-key` (required): Your Octomind API key
58
-
-`-t, --test-target-id` (required): Test target ID
59
73
-`-r, --report-id` (required): Test report ID
74
+
-`-k, --api-key`: Your Octomind API key (optional if configured via `init`)
75
+
-`-t, --test-target-id`: Test target ID (optional if configured via `init`)
60
76
-`-j, --json`: Output raw JSON response
61
77
62
78
Example text output:
@@ -104,20 +120,20 @@ Register a new private location worker. If you use the [private location worker]
104
120
105
121
```bash
106
122
octomind register-location \
107
-
--api-key <key> \
108
123
--name <name> \
109
124
--proxypass <password> \
110
125
--proxyuser <user> \
111
126
--address <address> \
127
+
[--api-key <key>] \
112
128
[--json]
113
129
```
114
130
115
131
Options:
116
-
-`-k, --api-key` (required): Your Octomind API key
0 commit comments