Re: Testlink integration with Maven project in Jenkins

2015-10-22 Thread manasi sattarkar
Thanks Eric.
I'll try with Testlink api.

Regards,

Manasi S

On Fri, Oct 16, 2015 at 1:35 PM, Eric Engel <e...@ivu.de> wrote:

> 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, tran

Re: Testlink integration with Maven project in Jenkins

2015-10-13 Thread manasi sattarkar


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 
>

Testlink integration with Maven project in Jenkins

2015-10-13 Thread manasi sattarkar
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 
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 
... ... TestNG 6.8.9beta by Cédric Beust (ced...@beust.com) ... 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 Tests 
run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 18.844 sec - in 
TestSuite Results : Tests run: 1, 

Jenkins + Testlink Integration for data driven framework

2015-09-23 Thread manasi sattarkar

Hi,

My scenario is:
For login :
testcase id:1
Java Class: CustomerSignIn#login
Data
Username:user1
password:password1

Testcase Id:2
Java Class: CustomerSignIn#login
Data
Username:user2
password:password2

Here the difference between two testcases is only data.I am passing data 
from property files and in testNG test case is only one.
Please see below configurations:

testng.xml






https://mail.google.com"/>






for Jenkins configurations I have attached images.

I tried to execute test case 1 but when I run jenkins build it executes my 
both test cases.
Can anyone help me 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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/ae9f79fc-aaa5-44d1-8d79-5910d8a422a0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins-Testlink Integration:Not able to map multiple suites in testlink

2015-08-20 Thread manasi sattarkar
I have followed all steps as per this document:
https://wiki.jenkins-ci.org/download/attachments/753702/jenkins.pdf
in custom field we are giving class name as:pkgName.ClassName.java

we are pulling code from GitHub, so how to handle this multiple suite 
scenario from POM.xml as we don't want to modify it manually?

On Thursday, 20 August 2015 11:48:40 UTC+5:30, Irfan Sayed wrote:

 can you bit elaborate more on this ?? 
 did you try running with giving package names??

 On Thu, Aug 20, 2015 at 10:43 AM, manasi sattarkar manasi.s...@gmail.com 
 javascript: wrote:

 Hi,

 I have integrated Jenkins and Testlink with below specifications
 Jenkins:1.624
 Testlink:1.9.13

 I am able to run one test suite with this configurations but when I tried 
 with multiple suites, it worked for one suite but for other suite it shows 
 'not run'.
 my POM.xml is:
 configuration
 suiteXmlFiles
 suiteXmlFile.\\testNG-xml\\TestNg_Smoke.xml/suiteXmlFile
   
  suiteXmlFile.\\testNG-xml\\TestNg_Regression.xml/suiteXmlFile
 /suiteXmlFiles
 /configuration

 TestLink Results
 Build ID:*2*Build Name:*XYZ-Build-2*Passed:*3*Failed:*0*Blocked:*0*Not 
 Run:*2*Total:

 *5Can anyone help me here to resolve this issue?*

 -- 
 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-use...@googlegroups.com javascript:.
 To view this discussion on the web visit 
 https://groups.google.com/d/msgid/jenkinsci-users/f10e704c-1f8f-4e09-aa84-b2dbb282c189%40googlegroups.com
  
 https://groups.google.com/d/msgid/jenkinsci-users/f10e704c-1f8f-4e09-aa84-b2dbb282c189%40googlegroups.com?utm_medium=emailutm_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/385a493d-52e9-4585-9eba-cda90f1350d6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Jenkins-Testlink Integration:Not able to map multiple suites in testlink

2015-08-19 Thread manasi sattarkar
Hi,

I have integrated Jenkins and Testlink with below specifications
Jenkins:1.624
Testlink:1.9.13

I am able to run one test suite with this configurations but when I tried 
with multiple suites, it worked for one suite but for other suite it shows 
'not run'.
my POM.xml is:
configuration
suiteXmlFiles
suiteXmlFile.\\testNG-xml\\TestNg_Smoke.xml/suiteXmlFile
  
 suiteXmlFile.\\testNG-xml\\TestNg_Regression.xml/suiteXmlFile
/suiteXmlFiles
/configuration

TestLink Results
Build ID:*2*Build Name:*XYZ-Build-2*Passed:*3*Failed:*0*Blocked:*0*Not Run:
*2*Total:

*5Can anyone help me here to resolve this issue?*

-- 
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/f10e704c-1f8f-4e09-aa84-b2dbb282c189%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.