Apache OpenOffice (AOO) Bugzilla – Issue 72009
ComplexTestCase: no easy possibility to overrule the ConnectionString
Last modified: 2006-11-27 11:48:22 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.
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.
reassign
Ah!, didn't find this, neither in the source nor in the Wiki. Thanks!