Robot framework +jenkins, testing java application -


i'm working on centos 6.5, jenkins running. i've installed robot framework plugin jenkins, installed python 2.7 robot framework (pybot works). wrote pretty easy program using netbeans maven project 1 unit test. goal use rf in order run said test. @ first i've tried use python version of rf, did jar stand-alone. questions are:

1. possible add java libraries keywords python version of rf or have use jar stand-alone?

2. if have use .jar stand-alone, how can run working test case on jenkins?

i've literally tried i've found on site (that's why test-case worked), couldn't find else specificaly i'm asking.

you can use jar edition jenkins using execute shell command

java -jar robotframework-3.0.jar -p testedjarname.jar -d folderforlogs robotscript.txt 

this let run test script. in script, have specify library keywords - in other words, in package .java file. example, if want test main.java in com.main package, must write

library      com.main.main 

now, can use methods main.java

if want python script runs maven tests, run through shell pybot testname.txt in text u need run mvn test , that's all.


Comments