Forum Discussion

autotest's avatar
12 years ago

Overriding host:port in TestRunner

I have a test suite containing multiple tests and I want to use TestRunner to launch the test suite on different environments.

For example an endpoint for a single test case in the suite would be:

https://environment.hostname.net:8888/t ... 1/service1


I want to be able to use testrunner.bat to run my test suite but changing the host and port for all test cases.

I think this is possible using the -h parameter, but my attempts so far have been unsuccessful. e.g:

testrunner.bat -rjf "C://etc" -hhttps://environment2.hostname2.net:8889 "C://etc.xml"


The hostname and port of my tests don't seem to be overriding as expected. I'm wondering if it's a formatting issue. My test cases at the moment use global properties to define the host and port. e.g

${#Global#HOST}/testservice1/service1