Hi,

the Testlink Plugin is in my opinion a pain to work with. I would suggest using 
the Testlink REST API  to gather data needed before job executions and to write 
back information to Testlink after a build succeded/failed.
You could write your own Jenkins plugin to do that, or use scripts in 
pre-/post-steps that access the Testlink API.
I found API documentation here: 
http://www.jetmore.org/john/blog/2012/02/testlink-1-9-3-api-documentation/ 
(seems partly incomplete) and there: 
http://testlinkjavaapi.sourceforge.net/apidocs/br/eti/kinoshita/testlinkjavaapi/TestLinkAPI.html

Regards
Eric

Von: jenkinsci-users@googlegroups.com [mailto:jenkinsci-users@googlegroups.com] 
Im Auftrag von manasi sattarkar
Gesendet: Dienstag, 13. Oktober 2015 08:02
An: Jenkins Users
Betreff: Re: Testlink integration with Maven project in Jenkins



On Tuesday, 13 October 2015 11:29:43 UTC+5:30, manasi sattarkar wrote:
Hi,

I have below configurations:
Jenkins : 1.632,
Testlink : 1.9.13
Maven : 3.3.3
JDK : 1.8

I have created Maven project in jenkins.
added Testlink configurations in pre steps.
When I execute the job, I get below console output:


Started by user anonymous<http://localhost:8080/user/null>

Building in workspace C:\Users\admin\.jenkins\workspace\Testlink with maven 
project

Preparing TestLink client API.

Using TestLink URL: http://localhost:8087/testlink/lib/api/xmlrpc/v1/xmlrpc.php



Found 2 automated test cases in TestLink.



Sorting automated test cases by TestLink test plan execution order.



Executing single Build Steps.



Executing iterative Build Steps.



Looking for the test results of TestLink test cases.



Looking for test results in TestNG methods by its name.



Found 2 test result(s).



There are failed tests, setting the build result as UNSTABLE.

Build step 'Invoke TestLink' changed build result to UNSTABLE

Parsing POMs

Established TCP socket on 54746

[Testlink with maven project] $ "C:\Program Files\Java\jdk1.8.0_45/bin/java" 
-cp 
C:\Users\admin\.jenkins\plugins\maven-plugin\WEB-INF\lib\maven32-agent-1.7.jar;D:\softwares\apache-maven-3.3.3\boot\plexus-classworlds-2.5.2.jar;D:\softwares\apache-maven-3.3.3/conf/logging
 jenkins.maven3.agent.Maven32Main D:\softwares\apache-maven-3.3.3 
C:\Users\admin\.jenkins\war\WEB-INF\lib\remoting-2.52.jar 
C:\Users\admin\.jenkins\plugins\maven-plugin\WEB-INF\lib\maven32-interceptor-1.7.jar
 
C:\Users\admin\.jenkins\plugins\maven-plugin\WEB-INF\lib\maven3-interceptor-commons-1.7.jar
 54746

<===[JENKINS REMOTING CAPACITY]===>channel started

Executing Maven:  -B -f C:\Users\admin\.jenkins\workspace\Testlink with maven 
project\pom.xml test -Dsuite.xml=.\testNG-xml\TestNG_Smoke.xml

[INFO] Scanning for projects...

[WARNING]

[WARNING] Some problems were encountered while building the effective model for

project

:

project

:jar:1.0-SNAPSHOT
[WARNING] 'dependencies.dependency.systemPath' for 
com.microsoft.sqlserver:sqljdbc4:jar should not point at files within the 
project directory, ${basedir}/lib/sqljdbc4.jar will be unresolvable by 
dependent projects @ line 86, column 16

[WARNING] 'dependencies.dependency.systemPath' for 
net.jsourcerer.webdriver:JSErrorCollector:jar should not point at files within 
the project directory, ${basedir}/lib/JSErrorCollector-0.6.jar will be 
unresolvable by dependent projects @ line 93, column 16

[WARNING] 'build.plugins.plugin.version' for ch.fortysix:maven-postman-plugin 
is missing. @ line 137, column 12

[WARNING]

[WARNING] It is highly recommended to fix these problems because they threaten 
the stability of your build.

[WARNING]

[WARNING] For this reason, future Maven versions might no longer support 
building such malformed projects.

[WARNING]

[INFO]

[INFO] ------------------------------------------------------------------------

[INFO] Building lampsplus 1.0-SNAPSHOT

[INFO] ------------------------------------------------------------------------

[WARNING] The POM for javax.xml:saaj-api:pom:1.3 is invalid, transitive 
dependencies (if any) will not be available, enable debug logging for more 
details

[INFO]

[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @

project

---
[INFO] Using 'UTF-8' encoding to copy filtered resources.

[INFO] Copying 0 resource

[INFO]

[INFO] --- maven-compiler-plugin:3.2:compile (default-compile) @

project

---
[INFO] Nothing to compile - all classes are up to date

[INFO]

[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @

project

---
[INFO] Using 'UTF-8' encoding to copy filtered resources.

[INFO] Copying 0 resource

[INFO]

[INFO] --- maven-compiler-plugin:3.2:testCompile (default-testCompile) @

project

---
[INFO] Changes detected - recompiling the module!

[INFO] Compiling 7 source files to C:\Users\admin\.jenkins\workspace\Testlink 
with maven project\target\test-classes

[INFO]

[INFO] --- maven-surefire-plugin:2.18.1:test (default-test) @ lampsplus ---

[INFO] Surefire report directory: C:\Users\admin\.jenkins\workspace\Testlink 
with maven project\target\surefire-reports



-------------------------------------------------------

 T E S T S

-------------------------------------------------------

Running TestSuite



Started InternetExplorerDriver server (64-bit)

2.46.0.0

Listening on port 17231

log4j:WARN No appenders could be found for logger 
(org.apache.http.client.protocol.RequestAddCookies).

log4j:WARN Please initialize the log4j system properly.

log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more 
info.

Oct 09, 2015 3:15:30 PM org.openqa.selenium.os.UnixProcess$SeleniumWatchDog 
destroyHarder

INFO: Command failed to close cleanly. Destroying forcefully (v2). 
org.openqa.selenium.os.UnixProcess$SeleniumWatchDog@4da4253<mailto:org.openqa.selenium.os.UnixProcess$SeleniumWatchDog@4da4253>

Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 18.844 sec - in 
TestSuite



Results :



Tests run: 1, Failures: 0, Errors: 0, Skipped: 0



[JENKINS] Recording test results

[INFO] ------------------------------------------------------------------------

[INFO] BUILD SUCCESS

[INFO] ------------------------------------------------------------------------

[INFO] Total time: 23.738 s

[INFO] Finished at: 2015-10-09T15:15:32+05:30

[INFO] Final Memory: 29M/273M

[INFO] ------------------------------------------------------------------------

Waiting for Jenkins to finish collecting data

[JENKINS] Archiving C:\Users\users\.jenkins\workspace\Testlink with maven 
project\pom.xml to project/project/1.0-SNAPSHOT/project-1.0-SNAPSHOT.pom
channel stopped

Finished: UNSTABLE
----------------------------------------
Testlink result:
Build ID:        9
Build Name: 5
Passed:            0
Failed: 2
Blocked:         0
Not Run:         0
Total:   2
----------------------------------------------

I am not able to log correct results in testlink.
Can anyone help here?
--
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
jenkinsci-users+unsubscr...@googlegroups.com<mailto:jenkinsci-users+unsubscr...@googlegroups.com>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/09485a76-2720-4548-9e18-183b59ab8a85%40googlegroups.com<https://groups.google.com/d/msgid/jenkinsci-users/09485a76-2720-4548-9e18-183b59ab8a85%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/DDB06868916F0342A722619DC460E97B8E4E1E2B%40exch-bln01.
For more options, visit https://groups.google.com/d/optout.

Reply via email to