Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » RCP Testing Tool » Runner.cmd(How to run test cases using command line)
Runner.cmd [message #1735599] Tue, 21 June 2016 11:37 Go to next message
Aditya Mahakulkar is currently offline Aditya MahakulkarFriend
Messages: 3
Registered: June 2016
Junior Member
I am testing a rcp application I want to test it using command line.
How to test it?
I have used following commands::
________________________________________________________________________
SET AUT=C:\Users\fg1ckt\Desktop\RCP\eclipse
SET RUNNER=C:\Users\fg1ckt\Desktop\RCP\eclipse
SET PROJECT=C:\Users\fg1ckt\rcpttWorkspace\com.example.rac.rcptt.project

REM Path to directory with test results, default is C:\Users\User\results
SET RESULTS=D\results

REM Remove results dir if present
IF NOT EXIST %RESULTS% GOTO NORESULTS
RMDIR \S \Q %RESULTS%
:NORESULTS
md %RESULTS%

REM urun fccstat -restart && ..\server.bat &&
java -jar %RUNNER%\plugins\org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar ^
-application org.eclipse.ui.tutorials.rcp.part3.application ^
-data %RESULTS%\runner-workspace\ ^
-aut %AUT% ^
-autWsPrefix %RESULTS%\aut-workspace ^
-autConsolePrefix %RESULTS%\aut-output ^
-htmlReport %RESULTS%\report.html ^
-junitReport %RESULTS%\report.xml ^
-import %PROJECT%

is this correct to run it...........
Re: Runner.cmd [message #1735707 is a reply to message #1735599] Wed, 22 June 2016 07:57 Go to previous message
Angelo Luciani is currently offline Angelo LucianiFriend
Messages: 129
Registered: September 2015
Location: Milan
Senior Member

RCPTT Test Runner is command-line tool for launching RCPTT tests.
It takes various options like path to RCPTT projects, application-under-test and other parameters, runs all tests and produces reports in HTML and JUnit XML formats.


Download RCPTT Test Runner

You need to create a runner.cmd as below

REM insert where application under test (AUT) is located.
SET AUT=D:\Client2

REM RUNNER insert below the runner path.
SET RUNNER=C:\Users\Administrator\Desktop\rcptt.runner-2.0.0\eclipse

REM insert where the application under test is located
SET PROJECT=C:\QA\workspace2\q


REM Path to directory with test results, default is C:\Users\User\results
SET RESULTS=C:\Users\Administrator\Desktop\results

REM Remove results dir if present
IF NOT EXIST %RESULTS% GOTO NORESULTS
RMDIR /S /Q %RESULTS%

:NORESULTS
md %RESULTS%

java -jar %RUNNER%/plugins/org.eclipse.equinox.launcher_1.3.100.v20150511-1540.jar ^
-application org.eclipse.rcptt.runner.headless ^
-data %RESULTS%/runner-workspace/ ^
-aut %AUT% ^
-autWsPrefix %RESULTS%/aut-workspace ^
-autConsolePrefix %RESULTS%/aut-output ^
-htmlReport %RESULTS%/report.html ^
-junitReport %RESULTS%/report.xml ^
-import %PROJECT%


"Ce sont les petits désirs qui rendent un jeune homme hardi."
Giovanni Giacomo Casanova
Previous Topic:Exception: org.eclipse.swt.SWTException: Widget is disposed
Next Topic:How execute a java program ?
Goto Forum:
  


Current Time: Thu Apr 18 19:35:50 GMT 2024

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

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

Back to the top