Issue 72009 - ComplexTestCase: no easy possibility to overrule the ConnectionString
Summary: ComplexTestCase: no easy possibility to overrule the ConnectionString
Status: CLOSED IRREPRODUCIBLE
Alias: None
Product: QA
Classification: Unclassified
Component: testscripts (show other issues)
Version: current
Hardware: All All
: P3 Trivial
Target Milestone: ---
Assignee: Frank Schönheit
QA Contact: issues@qa
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-11-27 09:06 UTC by Frank Schönheit
Modified: 2006-11-27 11:48 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Frank Schönheit 2006-11-27 09:06:02 UTC
Complex test cases implemented using the OOoRunner by default use a connection
string of
  socket,host=localhost,port=1200
as specified in qadevOOo/runner/lib/TestParameters.java.

However, if this default doesn't work for whatever reason (for instance, because
another user on the same machine is already using this port), then you need to
override this. The current ways to do so all require changes of source code: You
can either re-compile the runner with a modified connection string, or
re-compile your test cases (there can be a lot of them when you do the
pre-ready-for-QA-tests of a CWS!) to modify the test parameters at runtime.

Both solutions are not really satisfying, especially when you have to run a
large number of tests in the pre-ready-for-QA phase of a CWS.

It would me much more convenient if the parameters could be specified
dynamically, e.g. via a dedicated properties file (shared by all tests!), or via
environment variables.
Comment 1 steffen.grund 2006-11-27 11:01:57 UTC
This is already possible, as stated on
http://qa.openoffice.org/qadevOOo_doc/user-guide.html

The parameter is called ConnectionString and can be give in a property file
called .runner.props (or runner.props on Windows) in your home directory that is
automatically evaluated for every test. 
Comment 2 steffen.grund 2006-11-27 11:02:56 UTC
reassign
Comment 3 Frank Schönheit 2006-11-27 11:48:22 UTC
Ah!, didn't find this, neither in the source nor in the Wiki. Thanks!