Skip to main content



      Home
Home » Eclipse Projects » RCP Testing Tool » [SOLVED] #Jenkins #run a simple test case (without Maven and versioning system)(#Jenkins #run a simple test case (without Maven and versioning system))
[SOLVED] #Jenkins #run a simple test case (without Maven and versioning system) [message #1709550] Tue, 29 September 2015 04:46 Go to next message
Eclipse UserFriend
Dear all,
I'd like to run a simple rcptt test case before to set up Maven and Subversion.
I'd like to go ahead step by step because I am newbie using both of them.

1. I have created a runner.cmd and it works from DOS shell.

2. I set up a Jenkins Job using the runner.cmd (and the report parameter inserted into the runner.cmd)
Jenkins look like don't recognize the link about the report.
index.php/fa/23382/0/

3. When I run the job it started but it is not able to open the AUT (Application Under Test) in the server and run the test case.
It is blocked on
-Dorg.eclipse.swt.browser.IEVersion=9999

Below the complete Console Output
Console Output
Started by user anonymous
Building in workspace C:\Program Files (x86)\Jenkins\jobs\test\workspace
[workspace] $ cmd /c call C:\Windows\TEMP\hudson1655199956839386395.bat

C:\Program Files (x86)\Jenkins\jobs\test\workspace>C:\Users\Administrator\Desktop\rcptt.runner-2.0.0\runner

C:\Program Files (x86)\Jenkins\jobs\test\workspace>REM !!! Replace the value below with the path to the directory there 

C:\Program Files (x86)\Jenkins\jobs\test\workspace>REM application under test (AUT) is located. 

C:\Program Files (x86)\Jenkins\jobs\test\workspace>SET AUT=D:\XDMClient2_AngeloLuciani 

C:\Program Files (x86)\Jenkins\jobs\test\workspace>SET RUNNER=C:\Users\Administrator\Desktop\rcptt.runner-2.0.0\eclipse 

C:\Program Files (x86)\Jenkins\jobs\test\workspace>SET PROJECT=C:\QA\workspace2\q 

C:\Program Files (x86)\Jenkins\jobs\test\workspace>REM Path to directory with test results, default is C:\Users\User\results 

C:\Program Files (x86)\Jenkins\jobs\test\workspace>SET RESULTS=C:\Users\Administrator\Desktop\results 

C:\Program Files (x86)\Jenkins\jobs\test\workspace>REM Remove results dir if present 

C:\Program Files (x86)\Jenkins\jobs\test\workspace>IF NOT EXIST C:\Users\Administrator\Desktop\results GOTO NORESULTS 

C:\Program Files (x86)\Jenkins\jobs\test\workspace>RMDIR /S /Q C:\Users\Administrator\Desktop\results 

C:\Program Files (x86)\Jenkins\jobs\test\workspace>md C:\Users\Administrator\Desktop\results 

C:\Program Files (x86)\Jenkins\jobs\test\workspace>java -jar C:\Users\Administrator\Desktop\rcptt.runner-2.0.0\eclipse/plugins/org.eclipse.equinox.launcher_1.3.100.v20150511-1540.jar  -application org.eclipse.rcptt.runner.headless  -data C:\Users\Administrator\Desktop\results/runner-workspace/  -aut D:\XDMClient2_AngeloLuciani  -autWsPrefix C:\Users\Administrator\Desktop\results/aut-workspace  -autConsolePrefix C:\Users\Administrator\Desktop\results/aut-output  -htmlReport C:\Users\Administrator\Desktop\results/report.html  -junitReport C:\Users\Administrator\Desktop\results/report.xml  -import C:\QA\workspace2\q  
Started at Tue Sep 29 10:15:59 CEST 2015
RCPTT Runner version: 2.0.0
Initializing target platform...

Target platform is valid.
Looking for tests...
Existing projects in workspace:
    <none>
Importing projects to workspace:
Refreshing projects:
    C:\QA\workspace2\q... OK
Refreshing projects:
    q... OK
Searching for tests in projects:
    q... 
Complete OK
Testcase Artifacts:1
AUT-0:Launching

AUT-0:Product: xdm.client.rcp.xdm
AUT-0:Application: null
AUT-0:Architecture: x86_64
64bit arch is selected because AUT uses Equinox launcher
	- D:plugins\org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.100-20120516\
C:\Users\Administrator\Desktop\results/aut-workspace0: AUT arguments: -os ${target.os} -arch ${target.arch} -consoleLog
C:\Users\Administrator\Desktop\results/aut-workspace0: AUT VM arguments: -Xmx1024m -Xverify:none -XX:MaxPermSize=256M -XX:+UseParallelGC -XX:PermSize=20M -XX:MaxNewSize=32M -XX:NewSize=32M -Duser.language=en -Duser.country=EN -Dosgi.instance.area=@user.home/xdm/workspace -Dosgi.user.area=@user.home/xdm/user -Dosgi.configuration.area=@user.home/xdm/configuration -Dclient.update.memsize=-Xmx128m -DmultiInstance=true -Dorg.eclipse.swt.browser.DefaultType=ie,mozilla -Dorg.eclipse.swt.browser.IEVersion=9999


  • Attachment: confJob.PNG
    (Size: 36.77KB, Downloaded 1030 times)

[Updated on: Thu, 01 October 2015 10:29] by Moderator

Re: #Jenkins #run a simple test case (without Maven and versioning system) [message #1709558 is a reply to message #1709550] Tue, 29 September 2015 05:59 Go to previous messageGo to next message
Eclipse UserFriend
Hi Angelo,

Could you please follow the instructions here: http://support.xored.com/solution/articles/3000028645

It is described how to use Maven & Jenkins to run RCPTT tests in a continuous integration environment.

Kind regards,
Ulyana.
Re: #Jenkins #run a simple test case (without Maven and versioning system) [message #1709609 is a reply to message #1709558] Tue, 29 September 2015 10:12 Go to previous messageGo to next message
Eclipse UserFriend
I read it so I need to set up Maven with the scope to run the application.
Re: #Jenkins #run a simple test case (without Maven and versioning system) [message #1709651 is a reply to message #1709609] Wed, 30 September 2015 00:30 Go to previous messageGo to next message
Eclipse UserFriend
Hi Angelo,

Yes, exactly.

Kind regards,
Ulyana.
Re: #Jenkins #run a simple test case (without Maven and versioning system) [message #1709806 is a reply to message #1709651] Thu, 01 October 2015 04:49 Go to previous message
Eclipse UserFriend
Hi Folks,
I complete to set up a simple test case (without versioning system) and I share with you.

Below the steps:

1.Test before Maven configuration in the local machine (you need able to run the test case and so the AUT using Maven ).
To work RCPTT use Maven Plugin so you need to have the POM file with the right repository to download it and set up in correct way (you need to insert AUT address and RUNNER address also).
I share the pom I have created below the github link:
https://github.com/angeloluciani/rcp/blob/master/MyRCPTTTeatProject/pom.xml
2. In Jenkins you need only to run the maven command 'clean compile'
I suggest to read https://www.eclipse.org/rcptt/documentation/userguide/maven/ in particular way the section 'Phases and Goals'
Previous Topic:Change JRE to JDK When launching the AUT
Next Topic:[SOLVED] After AUT Splash Log In (How to pass arguments using Maven)
Goto Forum:
  


Current Time: Sat Jun 14 17:18:12 EDT 2025

Powered by FUDForum. Page generated in 0.03934 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top