Skip to content

Commit 6c75380

Browse files
author
Hoisko Sakari.M 10802213
committed
Added suppor to robot parameters
1 parent 602f987 commit 6c75380

File tree

2 files changed

+15
-5
lines changed

2 files changed

+15
-5
lines changed

README.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,11 +84,17 @@ java -cp "target/javafxlibrary-<version>.jar" org.robotframework.RobotFramework
8484
* Docker-compose: https://docs.docker.com/compose/install/
8585
* VNC port: vnc://localhost:5900
8686
87-
### Running the demo
87+
### Running the demo with testing env
8888
1. Build & Start Dockerized Environment: `docker-compose up -d robot-framework javafxcompile`
8989
2. Take VNC connection to: <i>vnc://<docker_daemon_ip>:5900</i>
9090
3. Password is: 1234
9191
4. Open shell by right clicking in VNC desktop and selecting Applications > Shells > Bash
92-
5. Execute tests: `robot --include smoke -d /robot/results /robot/acceptance`
93-
94-
Remote server and tests run in separate containers, and their GUIs are forwarded to the VNC container.
92+
5. Execute tests: `test.sh`
93+
94+
FYI:
95+
Single testcase execution in locale and remote (replace spaces with _ ):<br>
96+
`test.sh all '--include tag_name' '-t test_case_name'`<br>
97+
Single suite execution in locale and remote (replace spaces with _ ):<br>
98+
`test.sh all '--include tag_name' '-s suite_name'`
99+
<br>
100+
NOTE: smoke tag is default included.

docker/robot-javafx-demo/test.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,18 @@
22
EXIT_VALUE=0
33

44
function local() {
5+
echo "**********************"
56
echo "INFO: Local execution:"
67
file=$(ls -1 /javafxbinary/javafxlibrary-*-jar-with-dependencies.jar)
7-
java -cp "${file}" org.robotframework.RobotFramework -d /robot/results/local --include smoke $@ /robot/acceptance
8+
java -cp ${file} org.robotframework.RobotFramework -d /robot/results/local --include smoke $@ /robot/acceptance
89
# $@ #just to testing script
910
if [[ "$?" != "0" ]]; then
1011
EXIT_VALUE=$((EXIT_VALUE+1))
1112
fi
1213
}
1314

1415
function remote() {
16+
echo "***********************"
1517
echo "INFO: Remote execution:"
1618
robot -d /robot/results/remote --include smoke $@ /robot/acceptance
1719
# $@ #just to testing script
@@ -38,6 +40,8 @@ case $1 in
3840
;;
3941
* )
4042
echo "ERROR:$@ is not supported parameter"
43+
echo "Supported parameters: local, remote, all, demo ...and same with capitals"
44+
echo "From README.md more info about usage"
4145
EXIT_VALUE=$((EXIT_VALUE+4))
4246
;;
4347
esac

0 commit comments

Comments
 (0)