Testopia jenkins integration

257 views
Skip to first unread message

Ankush Aggarwal

unread,
Nov 27, 2014, 5:53:12 AM11/27/14
to jenkin...@googlegroups.com
Hi All,

I am integrating Testopia with Jenkins, 

Download very simple java app from internet having test cases.
Jenkins authentication with testopia is working fine.
Created test Plan, test run, test case in Testopia
Attached both jenkins and testopia conf details.

jenkins is not able found test results and not able to update testopia.  Anyone please help me on this.

Testing.sh :-
cd target/test-classes
/usr/java/jdk1.7.0_71/bin/java -cp ".:/var/lib/jenkins/jobs/App/target/classes/*:/var/lib/jenkins/jobs/App/junit-4.11.jar:/var/lib/jenkins/jobs/App/hamcrest-core-1.3.jar"  org.junit.runner.JUnitCore com.mkyong.core.TestApp1



[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.574 s
[INFO] Finished at: 2014-11-21T02:17:54-05:00
[INFO] Final Memory: 9M/57M
[INFO] ------------------------------------------------------------------------
Build step 'Invoke Maven 3' changed build result to SUCCESS
Connecting to Testopia to retrieve automated test cases
Preparing Testopia connection properties
Executing single build steps
[App] $ /bin/sh -xe /tmp/hudson2693326793877533844.sh
+ ./testing.sh
JUnit version 4.11
.
Time: 0.007

OK (1 test)

Executing iterative build steps
Seeking test results
Found 0 test results
Finished: SUCCESS
Jenkins-conf.JPG
Testopia-plan.JPG

Bruno P. Kinoshita

unread,
Nov 27, 2014, 6:53:47 AM11/27/14
to jenkin...@googlegroups.com
Hi Ankush,

I think you are missing the result seeking strategy? The plug-in uses these strategies to look for your test results, and that could be causing the 0 tests found message.

HTH,
Bruno


From: Ankush Aggarwal <er.ankush...@gmail.com>
To: jenkin...@googlegroups.com
Sent: Thursday, November 27, 2014 8:53 AM
Subject: Testopia jenkins integration

--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/0824adb5-ceb8-495c-aeed-8ec5b51855b0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Ankush Aggarwal

unread,
Dec 4, 2014, 1:22:31 AM12/4/14
to jenkin...@googlegroups.com
Hi Kinow,

Thanks for reply.

Yes i am missing this seeking result part. I have tried to integrated with selenium java suite, htmlsuite, or even basic shell script having echo command but failed to achieve exact results.


Could you please share some link where testopia + jenkins implementation things are documented or steps to follow or video that can help me.

Thanks,
Ankush

Bruno P. Kinoshita

unread,
Dec 4, 2014, 7:30:05 PM12/4/14
to jenkin...@googlegroups.com
Hi Ankush


Check your Jenkins, Testopia and plug-in versions for compatibility. You can post your config (screenshots, xml, etc) if that doesn't help.

All the best
Bruno


Sent: Thursday, December 4, 2014 4:22 AM
Subject: Re: Testopia jenkins integration

Hi Kinow,

Thanks for reply.

Yes i am missing this seeking result part. I have tried to integrated with selenium java suite, htmlsuite, or even basic shell script having echo command but failed to achieve exact results.


Could you please share some link where testopia + jenkins implementation things are documented or steps to follow or video that can help me.

Thanks,
Ankush

On Thursday, 27 November 2014 16:23:12 UTC+5:30, Ankush Aggarwal wrote:
Hi All,

I am integrating Testopia with Jenkins, 

Download very simple java app from internet having test cases.
Jenkins authentication with testopia is working fine.
Created test Plan, test run, test case in Testopia
Attached both jenkins and testopia conf details.

jenkins is not able found test results and not able to update testopia.  Anyone please help me on this.

Testing.sh :-
cd target/test-classes
/usr/java/jdk1.7.0_71/bin/java -cp ".:/var/lib/jenkins/jobs/App/ target/classes/*:/var/lib/ jenkins/jobs/App/junit-4.11. jar:/var/lib/jenkins/jobs/App/ hamcrest-core-1.3.jar"  org.junit.runner.JUnitCore com.mkyong.core.TestApp1



[INFO] ------------------------------ ------------------------------ ------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------ ------------------------------ ------------
[INFO] Total time: 3.574 s
[INFO] Finished at: 2014-11-21T02:17:54-05:00
[INFO] Final Memory: 9M/57M
[INFO] ------------------------------ ------------------------------ ------------
Build step 'Invoke Maven 3' changed build result to SUCCESS
Connecting to Testopia to retrieve automated test cases
Preparing Testopia connection properties
Executing single build steps
[App] $ /bin/sh -xe /tmp/ hudson2693326793877533844.sh
+ ./testing.sh
JUnit version 4.11
.
Time: 0.007

OK (1 test)

Executing iterative build steps
Seeking test results
Found 0 test results
Finished: SUCCESS
--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-de...@googlegroups.com.

Ankush Aggarwal

unread,
Dec 8, 2014, 7:46:13 AM12/8/14
to jenkin...@googlegroups.com
Hi Bruno,

I follwed the same wiki link also, but failed to find few of details from link like 1) build.xml details what all activity it is doing on testopia testcase script. 2) In Testopia, whether script is attached or not. 3) What is written in testopia_testcase_script

I am using Jenkins - 1.586 
Bugzilla - 4.4.6
Testopia - 2.5
Testopia plugin - 1.3

In testopia, i have TestProduct which have 1 test plan. Test plan have 2 test run ( Run ID 1 and 2). each test run have 1 test case.

CASE 1:--
I have jenkins installed on windows machine and Testopia on Linux machine. Very basic question, Can I use these tools across platform ?
I have ant project which is executing selenium java testcases. 

Please check the screen shot having all configurations details and output result.


CASE 2:--
When both jenkins and testopia running on single linux machine.
Executing maven project which contains java junits and generating TEST*.xml report.

Please check the screen shot having all configurations details and output result.

I have attached all the screenshot in Testopia.zip file

Thanks,
Ankush


On Thursday, 27 November 2014 16:23:12 UTC+5:30, Ankush Aggarwal wrote:
Testopia.zip

Ankush Aggarwal

unread,
Dec 14, 2014, 11:53:23 PM12/14/14
to jenkin...@googlegroups.com
Hi Bruno,

Did you get a chance to check it.

Thanks,
Ankush

On Thursday, 27 November 2014 16:23:12 UTC+5:30, Ankush Aggarwal wrote:

Bruno P. Kinoshita

unread,
Dec 15, 2014, 8:14:07 PM12/15/14
to jenkin...@googlegroups.com
Sorry Ankush, haven't had time to take a look yet. I still have a working Bugzilla/Testopia + Jenkins environment in my computer, so it mustn't be very hard to debug it later. My guess is that your key custom field is missing/wrong, or the unit result file generated is different than expected by the plug-in.

Could you please file an issue with the information you provided here in the mailing list, please? Feel free to ping me there if I take too long to take a look on it. Probably will do after holidays.

Thanks!
Bruno


Sent: Monday, December 15, 2014 2:53 AM

Subject: Re: Testopia jenkins integration
Hi Bruno,

Did you get a chance to check it.

Thanks,
Ankush

On Thursday, 27 November 2014 16:23:12 UTC+5:30, Ankush Aggarwal wrote:
Hi All,

I am integrating Testopia with Jenkins, 

Download very simple java app from internet having test cases.
Jenkins authentication with testopia is working fine.
Created test Plan, test run, test case in Testopia
Attached both jenkins and testopia conf details.

jenkins is not able found test results and not able to update testopia.  Anyone please help me on this.

Testing.sh :-
cd target/test-classes
/usr/java/jdk1.7.0_71/bin/java -cp ".:/var/lib/jenkins/jobs/App/ target/classes/*:/var/lib/ jenkins/jobs/App/junit-4.11. jar:/var/lib/jenkins/jobs/App/ hamcrest-core-1.3.jar"  org.junit.runner.JUnitCore com.mkyong.core.TestApp1



[INFO] ------------------------------ ------------------------------ ------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------ ------------------------------ ------------
[INFO] Total time: 3.574 s
[INFO] Finished at: 2014-11-21T02:17:54-05:00
[INFO] Final Memory: 9M/57M
[INFO] ------------------------------ ------------------------------ ------------
Build step 'Invoke Maven 3' changed build result to SUCCESS
Connecting to Testopia to retrieve automated test cases
Preparing Testopia connection properties
Executing single build steps
[App] $ /bin/sh -xe /tmp/ hudson2693326793877533844.sh
+ ./testing.sh
JUnit version 4.11
.
Time: 0.007

OK (1 test)

Executing iterative build steps
Seeking test results
Found 0 test results
Finished: SUCCESS
--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-de...@googlegroups.com.

Ankush Aggarwal

unread,
Jan 28, 2015, 5:26:31 AM1/28/15
to jenkin...@googlegroups.com
Hi Kinow,

I have followed the https://wiki.jenkins-ci.org/download/attachments/753702/jenkins.pdf link and able to integrate jenkins with Testlink. Jenkins is able to update test case status in testlink.

But for Testopia i am still getting same below Message. It looks there is some problem in configuration. If you would be able to help me, it would be great. If you have any such pdf link, please share.


BUILD SUCCESSFUL
Total time: 22 seconds
Executing iterative build steps
Seeking test results
Looking for test results in TestNG classes by its name
Found 0 test results
Finished: SUCCESS

Thanks,
Ankush

On Thursday, 27 November 2014 16:23:12 UTC+5:30, Ankush Aggarwal wrote:

Ankush Aggarwal

unread,
Jan 30, 2015, 5:55:18 AM1/30/15
to jenkin...@googlegroups.com
Hi Kinow,

If you can share the sample testng-results.xml file, i believe it would help me. how is test case id or test case name getting mapped with output file?

Thanks,
Ankush

On Thursday, 27 November 2014 16:23:12 UTC+5:30, Ankush Aggarwal wrote:

Ankush Aggarwal

unread,
Feb 26, 2015, 7:40:34 AM2/26/15
to jenkin...@googlegroups.com
Hi Kinow,

Any solution or defined document ?

-Ankush


On Thursday, 27 November 2014 16:23:12 UTC+5:30, Ankush Aggarwal wrote:
Reply all
Reply to author
Forward
0 new messages