Hi
Is it possible to clear the authentication cache while performing tests?
Or simply force the 'invoke' step to use the specified username/password?
As an example...I use "Admin:pw" to get access to the specified website,
<invoke url="config/index.asp" username="Admin" password="pw"/>
... do some steps, ex. add another user and then try invoke with the new
user...
<invoke url="config/index.asp" username="noneuser"
password="otherpw"/>
On the second invoke, it will also use the credentials of the first call.
I've checked it with ethereal.
Webtest: R_1347
Best regards,
Martin
- - - - some output - - - -
test:
[webtest] INFO (com.canoo.webtest.ant.WebtestTask) - Canoo Webtest:
R_1347.
[config] INFO (com.canoo.webtest.engine.Configuration) - Surfing with
browser Mozilla/4.0 (compatible; MSIE 6.0b; Windows 98)
[steps] INFO (com.canoo.webtest.steps.Step) - >>>> Start Step: steps
(1/2)
[invoke] INFO (com.canoo.webtest.steps.Step) - >>>> Start Step: invoke
(1/2)
[invoke] INFO (com.canoo.webtest.steps.request.AbstractTargetAction) -
-> gotoTarget by URL: config/index.asp
[invoke] INFO (com.canoo.webtest.steps.request.TargetHelper) - getting
response for url: http://<ip(CHANGED)>/config/index.asp
[invoke] INFO (com.canoo.webtest.steps.request.TargetHelper) - Setting
password for username: Admin
[invoke] INFO (org.apache.commons.httpclient.HttpMethodBase) - Response
content length is not known
[invoke] INFO
(org.apache.commons.httpclient.auth.AuthChallengeProcessor) - basic
authentication scheme selected
[invoke] INFO (com.canoo.webtest.engine.Context) - Content of window
changed to http://<ip>/config/index.asp
[invoke] INFO (com.canoo.webtest.engine.Context) - Content loaded in
newly opened window, its content will become current response
[invoke] INFO (com.canoo.webtest.engine.Context) - Current form set to
none
[invoke] INFO (com.canoo.webtest.engine.Context) - Current response
now: http://<ip>/config/index.asp
[invoke] INFO (com.canoo.webtest.steps.Step) - >>>> Start Step: invoke
(2/2)
[invoke] INFO (com.canoo.webtest.steps.request.AbstractTargetAction) -
-> gotoTarget by URL: config/index.asp
[invoke] INFO (com.canoo.webtest.steps.request.TargetHelper) - getting
response for url: http://<ip>/config/index.asp
[invoke] INFO (com.canoo.webtest.steps.request.TargetHelper) - Setting
password for username: noneuser
[invoke] INFO (org.apache.commons.httpclient.HttpMethodBase) - Response
content length is not known
[invoke] INFO
(org.apache.commons.httpclient.auth.AuthChallengeProcessor) - basic
authentication scheme selected
[invoke] INFO (com.canoo.webtest.engine.Context) - Content of window
changed to http://<ip>/config/index.asp
[invoke] INFO (com.canoo.webtest.engine.Context) - Content of current
window changed, it will become current response
[invoke] INFO (com.canoo.webtest.engine.Context) - Current form set to
none
[invoke] INFO (com.canoo.webtest.engine.Context) - Current response
now: http://<ip>config/index.asp
_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest