Any RQM/Jenkins integration materials?
14 answers
Hello,
Finally it is setup to run automated test cases through Jenkins. What i did is,
Create a batch file with my command line script and placed it in RQMExecutionTool folder.
In Jenkins, referred below.
cd C:\RQMExecutionTool
Execute1 (Bat file name)
I dont know why it wasn't picking the commands directly from Jenkins item but the above worked.
Thank you so much for your help. It really worked for me. :)
Finally it is setup to run automated test cases through Jenkins. What i did is,
Create a batch file with my command line script and placed it in RQMExecutionTool folder.
In Jenkins, referred below.
cd C:\RQMExecutionTool
Execute1 (Bat file name)
I dont know why it wasn't picking the commands directly from Jenkins item but the above worked.
Thank you so much for your help. It really worked for me. :)
Oscar,
Java was installed and configured correctly. Problem seems to be on Jenkins end as i have run the same script on CMD and it start executing my test cases.
I have restarted the Jenkins service as well and tried again through Jenkins but it still failed with the same error. where as the script works fine on command line.
any guess?
Java was installed and configured correctly. Problem seems to be on Jenkins end as i have run the same script on CMD and it start executing my test cases.
I have restarted the Jenkins service as well and tried again through Jenkins but it still failed with the same error. where as the script works fine on command line.
any guess?
Comments
remember that jenkins does NOT pass the system environment variables to the started tasks.. you must add java to the toolset in jenkins and add it to the path and env variables to be used...
Hi Sam,
can you mention where it should be set in the jenkins? I dont see any option in "Manage Jenkins" page to add java and environment variables.
Hi Humayun,
Looks like you either have to install Java or, if already installed, it isn't set in the execution path. If you search for the error you get, the first answer will point you in the right direction.
Then, to check for a java install, open a cmd window and type 'java -version' without quotes. If properly installed, it should print something like the following:
Regards,
Oskar
Looks like you either have to install Java or, if already installed, it isn't set in the execution path. If you search for the error you get, the first answer will point you in the right direction.
Then, to check for a java install, open a cmd window and type 'java -version' without quotes. If properly installed, it should print something like the following:
java version "1.8.0_91"
Java(TM) SE Runtime Environment (build 1.8.0_91-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.91-b14, mixed mode)As for RQMExecutionTool.jar, you may set its path in the Jenkins item advanced options, workspace field.
Regards,
Oskar
Hi Oscar,
Thanks for your help, I am almost done with the integration however build is failing due to below error,
C:\Program Files (x86)\Jenkins\workspace\Test4_RPT>java -jar RQMExecutionTool.jar -tserId=546 -projectName="Testing 1" -publicURI=https://xyz:0000/qm -user=abc -password=xyz -suiteStepScriptIds=634,635 -suiteStepAdapterIds=8,8 -parallelExecution=true -exitOnComplete=true -printResultUrl=true
'java' is not recognized as an internal or external command,
operable program or batch file.
C:\Program Files (x86)\Jenkins\workspace\Test4_RPT>exit 9009
Build step 'Execute Windows batch command' marked build as failure
Finished: FAILURE
I am using below batch command.
java -jar RQMExecutionTool.jar -tserId=546 -projectName="Testing 1" -publicURI=https://xyz:0000/qm -user=abc -password=xyz -suiteStepScriptIds=634,635 -suiteStepAdapterIds=8,8 -parallelExecution=true -exitOnComplete=true -printResultUrl=true
Seems like i haven't located java where it should be. Can you be more specific on locating java and RQMExecutionTool.jar
Thanks in advance.
Thanks for your help, I am almost done with the integration however build is failing due to below error,
C:\Program Files (x86)\Jenkins\workspace\Test4_RPT>java -jar RQMExecutionTool.jar -tserId=546 -projectName="Testing 1" -publicURI=https://xyz:0000/qm -user=abc -password=xyz -suiteStepScriptIds=634,635 -suiteStepAdapterIds=8,8 -parallelExecution=true -exitOnComplete=true -printResultUrl=true
'java' is not recognized as an internal or external command,
operable program or batch file.
C:\Program Files (x86)\Jenkins\workspace\Test4_RPT>exit 9009
Build step 'Execute Windows batch command' marked build as failure
Finished: FAILURE
I am using below batch command.
java -jar RQMExecutionTool.jar -tserId=546 -projectName="Testing 1" -publicURI=https://xyz:0000/qm -user=abc -password=xyz -suiteStepScriptIds=634,635 -suiteStepAdapterIds=8,8 -parallelExecution=true -exitOnComplete=true -printResultUrl=true
Seems like i haven't located java where it should be. Can you be more specific on locating java and RQMExecutionTool.jar
Thanks in advance.
see this topic, https://jazz.net/forum/questions/132739/jenkins-polling-is-too-slow-can-rtc-notify-jenkins-immediately
near the end are two posts that point to RTC build triggers.. to start jobs on Jenkins on source changes.
one uses the RTC Build interface, and mine uses the changeset approach with a script to trigger whatever u want.
so you can launch a jenkins job via URL like the svn and git commit hooks.
near the end are two posts that point to RTC build triggers.. to start jobs on Jenkins on source changes.
one uses the RTC Build interface, and mine uses the changeset approach with a script to trigger whatever u want.
so you can launch a jenkins job via URL like the svn and git commit hooks.
Hi Oscar,
Glad to know that you have successfully integrated RQM with Jenkins.
I am stuck at some point, If you can please answer.
In this case, you need to have java installed in the host where you are going to execute the .jar file and configure Jenkins item to execute a Windows batch command.
regarding above, I have installed java on the vm I have already setup Jenkins with RTC, and also extracted the RQMExecutionTool.jar file on the same machine. Now, i need to know below.
Is there any configure needed at Jenkins end or RQMExecutionTool will cater all the integration?
Where should i configure the tcer and tser to execute?
Would i have to create a text execution schedule in order to run tcer/tser when a new build deployed?
I have asked a question regarding this, It would be great if you can answer there as well.
https://jazz.net/forum/questions/221326/need-to-integrate-rqm-with-jenkins
Thanks
Glad to know that you have successfully integrated RQM with Jenkins.
I am stuck at some point, If you can please answer.
In this case, you need to have java installed in the host where you are going to execute the .jar file and configure Jenkins item to execute a Windows batch command.
regarding above, I have installed java on the vm I have already setup Jenkins with RTC, and also extracted the RQMExecutionTool.jar file on the same machine. Now, i need to know below.
Is there any configure needed at Jenkins end or RQMExecutionTool will cater all the integration?
Where should i configure the tcer and tser to execute?
Would i have to create a text execution schedule in order to run tcer/tser when a new build deployed?
I have asked a question regarding this, It would be great if you can answer there as well.
https://jazz.net/forum/questions/221326/need-to-integrate-rqm-with-jenkins
Thanks
@Michael Elder:
Any updates on RQM/Jenkins integration? Has the article been published yet?
Thanks,
Ulhas.
Ulhas.
page 1of 1 pagesof 2 pages