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
+24-35Lines changed: 24 additions & 35 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
# practitest-firecracker
2
2
3
-
You will need to use the 'create-testset' action once and the 'populate-testset' action every time there is a new report.
4
-
If the structure of the report changes (new tests are added for example), you will need to use the 'create-testset' action again. New TestSets will be created, but existing tests will be reused.
3
+
You will need to use the 'create-and-populate-testset' action that will create and populate TestSets, Tests, Instances and Runs.
4
+
If the structure of the report changes (new tests are added for example), you will need to use the 'create-and-populate-testset' action again. New TestSets will be created, but existing tests will be reused.
5
5
6
6
If you don't have an existing CONFIG_FILE and you want to use it, go to https://firecracker-ui-prod.practitest.com/ and generate one.
7
7
To login, you can use your PractiTest credentials and follow the instructions in the link. Then you can continue here and set the config-path to your configuration file path.
@@ -23,35 +23,12 @@ java -jar practitest-firecracker-standalone.jar help
23
23
```
24
24
to get more information about the parameters and commands.
25
25
26
-
### create-testset
26
+
### version
27
27
28
-
Create new testset from reports folder:
28
+
To check your jar version you can you this command:
29
29
30
30
```shell
31
-
java -jar practitest-firecracker-standalone.jar \
32
-
--reports-path=SUREFIRE_REPORTS_PATH \
33
-
--testset-name="TestSet name" \
34
-
--author-id=PRACTITEST_USER_ID \
35
-
--config-path=CONFIG_FILE \
36
-
create-testset
37
-
```
38
-
39
-
The call above will analyze the surefire reports and create tests and the testset. If a test already exists, it will be reused.
40
-
41
-
You can set various custom fields for tests when they are created (especially useful if you have mandatory fields configured in your tests).
42
-
43
-
To set custom fields you will need to create a 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).
44
-
45
-
### populate-testset
46
-
Populate the testset from reports folder:
47
-
48
-
```shell
49
-
java -jar practitest-firecracker-standalone.jar \
50
-
--reports-path=SUREFIRE_REPORTS_PATH \
51
-
--testset-id=PRACTITEST_TESTSET_ID \
52
-
--author-id=PRACTITEST_USER_ID \
53
-
--config-path=CONFIG_FILE \
54
-
populate-testset
31
+
java -jar practitest-firecracker-standalone.jar version
55
32
```
56
33
57
34
### create-and-populate-testset
@@ -62,32 +39,39 @@ Example:
62
39
63
40
```shell
64
41
java -jar practitest-firecracker-standalone.jar \
65
-
--reports-path=SUREFIRE_REPORTS_PATH \
66
-
--testset-name="TestSet name" \
42
+
--reports-path=REPORTS_FOLDER_PATH \
67
43
--author-id=PRACTITEST_USER_ID \
68
44
--config-path=CONFIG_FILE \
69
45
create-and-populate-testset
70
46
```
71
-
* In the future config files --testset-name will be defined inside of the config file so there will be no need to define it in the command line
47
+
* author-id is not required in case of PAT (personal api token) is in use
48
+
49
+
The call above will analyze the surefire reports and create and populate tests and the testset. If a test already exists, it will be reused.
50
+
51
+
You can set various custom fields for tests when they are created (especially useful if you have mandatory fields configured in your tests).
52
+
53
+
To set custom fields you will need to create a 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).
54
+
72
55
### use Firecracker without config file
73
56
74
57
You can use all the above commands without the config file. You will need to explicitly define
" create-testset Analyzes the given Surefire reports directory and creates a TestSet with Tests and Steps in PractiTest to reflect"
78
-
" the structure of the report. Returns a TestSet ID that you should use to run the 'populate-testset' action"
79
-
" populate-testset Analyzes the given Surefire reports directory and populates the given TestSet with the data from the report"
80
-
" create-and-populate-testset Shortcut to perform both actions. If the TestSet with the given name already exists, it will be reused. If it exists, but has completely different set of tests, an error will be reported."
81
-
""]
77
+
" create-and-populate-testset Shortcut to perform both actions. If the TestSet with the given name already exists, it will be reused. If it exists, but has completely different set of tests, an error will be reported."
78
+
" version Will display firecracker jar file version"]
0 commit comments