Hi, guys! I have a question but couldn't find a proper location to place it in. Would you be so kind to skim it though and, maybe, give me some links where I can get information I need?
As specified in Cactus documentation, running test from web-browser must be performed as follows: http://server:port/webapp/ServletTestRunner?suite=testcasename It would be extremely convinient to parametrize tests from such requests. I mean adding parameters list in a way as http GET request syntax specifies: http://server:port/webapp/ServletTestRunner?suite=testcasename¶m1=value1 ¶m2=value2 etc. Optional parameters are custom ones and must be passes to request (within test) without any modification. They must be accessible via WebRequest.getParameter(String) call. Default value must be provided. For example: public void beginXXX(WebRequest theRequest) throws Exception { String param1 = theRequest.getParameter("search_keyword"); if (param1 == null) theRequest.addParameter("search_keyword", "Cactus"); [...] } General benefit is test parametrization which doesn't require recompiling and redeploying web-application (you understand it may be time-consuming). Greetings, Ivan. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
