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
{{ message }}
This repository was archived by the owner on Jan 10, 2025. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+29-3Lines changed: 29 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,10 +4,36 @@ Small project to show how to make Robot Framework to generate the JUnit result f
4
4
5
5
### How to generate the JUnit result files
6
6
7
-
You just have to execute Robot Framework with `-x` parameter followed by the xml result file name to instruct it to generate the JUnit result file. For testing purposes, you can clone this project and execute Robot Framework like so:
7
+
You just have to execute Robot Framework with `-x` parameter followed by the xml result file name to instruct it to generate the JUnit result file. Here is an example:
8
8
9
9
```
10
-
robot -x junitresult.xml calculator.robot
10
+
robot -x junitresult.xml mytest.robot
11
+
```
12
+
13
+
This will execute `mytest.robot` test file and generate the JUnit result file `junitresult.xml` that you'll [`POST /automations/executions/junit`](https://support.smartbear.com/zephyr-scale-cloud/api-docs/#operation/createJUnitExecutions).
14
+
15
+
16
+
### Requirements to run this example project
17
+
18
+
In order to execute this example on your local machine you’ll have to checkout this repository and install python 3. Here is how you can do it on mac:
19
+
20
+
```
21
+
brew upgrade pyenv
22
+
pyenv install 3.6.0
23
+
pyenv global 3.6.0
24
+
echo 'eval "$(pyenv init -)"' >> ~/.zshrc
25
+
source ~/.zshrc
11
26
```
12
27
13
-
This will generate the JUnit result file `junitresult.xml` that you'll [`POST /automations/executions/junit`](https://support.smartbear.com/zephyr-scale-cloud/api-docs/#operation/createJUnitExecutions).
28
+
Now you have to install robot framework and docutils library:
29
+
30
+
```
31
+
pip install robotframework
32
+
pip install docutils
33
+
```
34
+
35
+
You can now make Robot Framework to generate the JUnit result file by executing the following command:
0 commit comments