Skip to content
This repository was archived by the owner on Jan 10, 2025. It is now read-only.

Commit bdf25a7

Browse files
TM4J-3469 Improve README file
1 parent 99d531e commit bdf25a7

File tree

1 file changed

+29
-3
lines changed

1 file changed

+29
-3
lines changed

README.md

Lines changed: 29 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,36 @@ Small project to show how to make Robot Framework to generate the JUnit result f
44

55
### How to generate the JUnit result files
66

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:
88

99
```
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
1126
```
1227

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:
36+
37+
```
38+
robot -x junitresult.xml calculator.robot
39+
```

0 commit comments

Comments
 (0)