Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 338421 - Test executor: -h option gives error message
Summary: Test executor: -h option gives error message
Status: CLOSED FIXED
Alias: None
Product: Jubula
Classification: Technology
Component: RC (show other bugs)
Version: 0.9.0   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 1.0   Edit
Assignee: Markus Tiede CLA
QA Contact: Tim Winselmann CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-28 09:49 EST by Alexandra Schladebeck CLA
Modified: 2011-03-07 04:27 EST (History)
1 user (show)

See Also:


Attachments
Command line output (23.71 KB, image/png)
2011-02-28 09:49 EST, Alexandra Schladebeck CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandra Schladebeck CLA 2011-02-28 09:49:03 EST
When the parameter -h is entered for the test executor (i.e. testexec.exe -h), the parameter information appears, but is below two error messages listing the missing arguments (see screenshot).

It also takes a while for the information to appear. It seems as though the -h option is trying to start a test which would also explain the error message(s).
Comment 1 Alexandra Schladebeck CLA 2011-02-28 09:49:29 EST
Created attachment 189948 [details]
Command line output
Comment 2 Markus Tiede CLA 2011-03-04 11:28:43 EST
Fixed with

http://git.eclipse.org/c/jubula/org.eclipse.jubula.core.git/commit/?id=b38bcb6e1315514ca6396b7e266715a048bff91e

Passing the '-h' option leads to the pure help text for the choosen application without invoking the commandline run itself. Affected are the dbtool as well as the testexecutor. That also means that if the '-h' option is present even with additional / and or complete other options the commandline run will not continue.
Comment 3 Tim Winselmann CLA 2011-03-07 04:27:09 EST
'testexec.exe -h' does not create any errors anymore:

K:\guidancer\Workspace\hu_snapshot\current\platforms\win32.win32.x86\guidancer>testexec.exe -h
usage: testexec [-autconfig <autconfig> | -autid <autid>]  [-c
       <configfile>] -datadir <datadir_path> [-dbpw <password>] [-dbscheme
       <scheme>] [-dburl <database>] [-dbuser <user>] [-h] -language
       <language> [-n] -port <port_number> -project <project_name> [-q]
       [-r] -resultdir <resultdir> [-s] -server <hostname> [-startserver
       <port_number>] -testjob <testjob> | -testsuite <testsuite>
       [-timeout <timeout>] -version <project_version>
 -autconfig <autconfig>       AUTConfiguration to be used for test
                              execution
 -autid <autid>               AUT ID to be used for test execution
 -c <configfile>              The configuration file for the batch job
 -datadir <datadir_path>      Directory containing external test data and
                              local scripts
 -dbpw <password>             Database password
 -dbscheme <scheme>           Database scheme name
 -dburl <database>            The connection URL to your database
 -dbuser <user>               Database user name
 -h                           Displays this help text
 -language <language>         Language to use for the AUT
 -n                           Loads the job and checks for specification
                              errors without actually running any tests
 -port <port_number>          Portnumber [1024-65536] of the AUT Agent
 -project <project_name>      Project to be loaded
 -q                           Disables console output
 -r                           Use this option to mark this execution as
                              non-relevant for export with the project
                              (non-relevant results are not exported with
                              the project).
 -resultdir <resultdir>       Name of the directory to store the test
                              results
 -s                           Disable automatic screenshots for test
                              execution errors.
 -server <hostname>           Hostname to run the AUT Agent
 -startserver <port_number>   Wait on a port for receiving test execution
                              data
 -testjob <testjob>           Test Job to execute
 -testsuite <testsuite>       Test Suite to execute
 -timeout <timeout>           Abort the run after this many seconds.
 -version <project_version>   Version of project to be loaded