jakarta-cactus-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Henning Blohm <henning.bl...@gmail.com>
Subject ServletTestRunner, multiple Web Applications
Date Mon, 18 Oct 2010 13:51:53 GMT
I seem to have the same problem as in 


plus maybe a different variation. The problem as stated in the old
message seems to persist.

This is on 1.8.1

What happens is the following

a) When running several instances of ServletTestRunner they will share
one cactus.contextURL. There seems to be no way to make them use
different urls.
b) We use some tests also on production systems (integrity tests). The
UI will be invoked using an https url (SSL!) but cactus computes a http
(no SSL!) URL as contextURL. That would be 
acceptable, if it would use localhost for that but ServletTestRunner

                        "http://" + theRequest.getServerName() + ":"
                        + theRequest.getServerPort()
                        + theRequest.getContextPath());

and hence uses the external name. 

It would be great, if

1. cactus.contextURL could be set as a servlet init param (avoiding the
system property problems alltogether)
2. ServletTestRunner could be configured to not create an HTTP request
at all but rather invoke the test cases directly.


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message