Our Jenkins server is separate from the RedwoodHQ server. From the Jenkins server I was going to use psexec to remote execute the following:
c:\PSTools>PsExec.exe \\192.168.12.204 -u *** -p *** "c:\Program Files\RedwoodHQ\cli\node.exe" CIExecution.js --name GGO --user admin --testset GGO --machines 127.0.0.1:1 --project GG --variables Browser=Chrome
When I run this I get the following java error.
PsExec v2.2 - Execute processes remotely
Copyright (C) 2001-2016 Mark Russinovich
Sysinternals - www.sysinternals.com
module.js:327
throw err;
^
Error: Cannot find module 'C:\Windows\system32\CIExecution.js'
at Function.Module._resolveFilename (module.js:325:15)
at Function.Module._load (module.js:276:25)
at Function.Module.runMain (module.js:441:10)
at startup (node.js:134:18)
at node.js:962:3
c:\Program Files\RedwoodHQ\cli\node.exe exited on 192.168.12.204 with error code 1.
If use psexec in interaction mode: {psexec.exe cmd} to the remote server, I can run the command without issue.
Is there a different way to execute this from the jenkins server? I would like t have the Jenkins and RedwoodHQ on the same box but this isn't an option.
thanks!
You need to make sure that you run your scripts in c:\Program Files\RedwoodHQ\cli\ dir not C:\Windows\system32\
it isn't working as I expected, but I am sure I still have work to do. Thanks for the info Freddy! I will continue to play with this and see if I Can get Redwood to flag a test pass in Jenkins. Currently it just shows that it ran the tests, not that anything passed of failed.
I am new to all this as far as Jenkins and Redwood. This is my first attempt at writing automation for a web application. I appreciate all the help given so far.
Now, is there a way to display the test results as far as pass/fail count in Jenkins? I can look at the console logs and see the pass/fail count. They were trying to use RobotFrame work before I was hired and I can see that there is a plugin that will display Robots pass/fail count.
I am trying to get away from Robot because I find it isn't as user friendly as RedwoodHQ has been.
Thanks!
You can use Jenkins Junit plug-in to store the results. RedwoodHQ will output result.xml in cli dir. Just point Jenkins to it and you'll have your results.
Dmitri
I hope someone has figured out how to get this to execute.Our Jenkins server is separate from the RedwoodHQ server. From the Jenkins server I was going to use psexec to remote execute the following:
c:\PSTools>PsExec.exe \\192.168.12.204 -u *** -p *** "c:\Program Files\RedwoodHQ\cli\node.exe" CIExecution.js --name GGO --user admin --testset GGO --machines 127.0.0.1:1 - private --project GG --variables Browser=Chrome
When I run this I get the following java error.
PsExec v2.2 - Execute processes remotely
Copyright (C) 2001-2016 Mark Russinovich
Sysinternals - www.sysinternals.com - private