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
Copy file name to clipboardExpand all lines: README.md
+44-25Lines changed: 44 additions & 25 deletions
Original file line number
Diff line number
Diff line change
@@ -3,53 +3,47 @@
3
3
You will need to use 'create-testset' action once and 'populate-testset' action every time there is a new report.
4
4
If the structure of the report changes (new tests added for example), you will need to use 'create-testset' action again. New TestSet will be created, but existing tests will be reused.
5
5
6
+
If you don't have exsiting CONFIG_FILE and you want to use it go to https://firecracker-ui-prod.practitest.com/ and generate one.
7
+
To login you can use your PractiTest credentials, follow the instructions in the link and then you can continue here, set config-path to your configuration file path.
6
8
## Usage
7
9
10
+
### help
11
+
12
+
At every point you can run:
13
+
14
+
```shell
15
+
java -jar practitest-firecracker-standalone.jar help
16
+
```
17
+
to get more information about the parameters and commands.
18
+
8
19
### create-testset
9
20
10
21
Create new testset from reports folder:
11
22
12
23
```shell
13
-
java -jar practitest-firecracker-standaline.jar \
14
-
--api-token=YOUR_API_TOKEN \
15
-
--email=YOUR_EMAIL \
24
+
java -jar practitest-firecracker-standalone.jar \
16
25
--reports-path=SUREFIRE_REPORTS_PATH \
17
-
--project-id=PRACTITEST_PROJECT_ID \
18
26
--testset-name="TestSet name" \
19
27
--author-id=PRACTITEST_USER_ID \
28
+
--config-path=CONFIG_FILE \
20
29
create-testset
21
30
```
22
31
23
32
The call above will analyze the surefire reports and create tests and testset. If a test already exists, it will be reused.
24
-
You can set various custom fields for tests when they are created (especially useful if you have mandatory fields configured in your tests).
25
-
Here is an example for setting custom fields during creation of the tests and testset:
You can set various custom fields for tests when they are created (especially useful if you have mandatory fields configured in your tests).
40
35
41
-
Replace the field ids with the actual IDs, you can see all your custom fields by calling this API call: [get-all-custom-fields-in-your-project](https://www.practitest.com/api-v2/#get-all-custom-fields-in-your-project)
36
+
To set custom fields you will need to create configuration file in here https://firecracker-ui-prod.practitest.com/ after that you can use it to run the command line above with it (CONFIG_FILE).
42
37
43
38
### populate-testset
44
39
Populate the testset from reports folder:
45
40
46
41
```shell
47
-
java -jar practitest-firecracker-standaline.jar \
48
-
--api-token=YOUR_API_TOKEN \
49
-
--email=YOUR_EMAIL \
42
+
java -jar practitest-firecracker-standalone.jar \
50
43
--reports-path=SUREFIRE_REPORTS_PATH \
51
-
--project-id=PRACTITEST_PROJECT_ID \
52
44
--testset-id=PRACTITEST_TESTSET_ID \
45
+
--author-id=PRACTITEST_USER_ID \
46
+
--config-path=CONFIG_FILE \
53
47
populate-testset
54
48
```
55
49
@@ -60,7 +54,29 @@ This will attempt to do the two actions above at once. It will search for TestSe
60
54
Example:
61
55
62
56
```shell
63
-
java -jar practitest-firecracker-standaline.jar \
57
+
java -jar practitest-firecracker-standalone.jar \
58
+
--reports-path=SUREFIRE_REPORTS_PATH \
59
+
--testset-name="TestSet name" \
60
+
--author-id=PRACTITEST_USER_ID \
61
+
--config-path=CONFIG_FILE \
62
+
create-and-populate-testset
63
+
```
64
+
### use Firecracker without config file
65
+
66
+
You can use all the above command without the config file you will need to explicitly define
You can set various custom fields for tests when they are created (especially useful if you have mandatory fields configured in your tests).
92
+
93
+
Replace the field ids with the actual IDs, you can see all your custom fields by calling this API call: [get-all-custom-fields-in-your-project](https://www.practitest.com/api-v2/#get-all-custom-fields-in-your-project)
0 commit comments