This is not necessarily a problem PROVIDED WebTest correctly handles POST request redirects as described here:
http://jakarta.apache.org/commons/httpclient/3.0/redirects.html If you just feel irritated by HttpClient INFO messages, you can reduce the logging verbosity as described here http://jakarta.apache.org/commons/httpclient/3.0/logging.html Oleg On Thu, May 26, 2005 at 05:03:05PM +0530, Raju, Mahesh Kumar (Cognizant) wrote: > > > > > hi, > I'm working with canoo webtest. It is giving the following error: "INFO > (org.apache.commons.httpclient.HttpMethodDirector) - Redirect requested > but followRedirects is disabled > INFO (org.apache.commons.httpclient.HttpMethodDirector) - Redirect > requested but followRedirects is disabled" > can you brief me why this error occurred and tell me how to enable > FollowRedirects. For your information I have installed latest versions > of ant and canoo. > > > > > Following is the outcome when I executed redirect.xml. > > C:\canoo\gmac>ant -buildfile redirect.xml > Buildfile: redirect.xml > Trying to override old definition of task sleep > > main: > [testSpec] INFO (com.canoo.webtest.steps.Step) - Start Step: null > "[implict setup step]" (1/13) > [testSpec] INFO (com.canoo.webtest.steps.Setup) - Surfing with browser > Mozilla/4.0 (compatible; MSIE 6.0b; Windows 98) > [testSpec] INFO (com.canoo.webtest.steps.Step) - Start Step: invoke > "get link Page" (2/13) > [testSpec] INFO (com.canoo.webtest.steps.request.Target) - -> > gotoTarget(by url): https://ctsblrgmac1.cts.com:4949/dealer/i > ndex.html > [testSpec] INFO > (com.gargoylesoftware.htmlunit.javascript.host.Document) - Added cookie: > MasterCookie=MasterCookie > [testSpec] INFO > (com.gargoylesoftware.htmlunit.javascript.host.Document) - Added cookie: > ObSSOCookie= > [testSpec] INFO > (com.gargoylesoftware.htmlunit.javascript.host.Document) - Added cookie: > ObSSOCookie= > [testSpec] INFO > (com.gargoylesoftware.htmlunit.javascript.host.Document) - Added cookie: > Locale=en-us > [testSpec] INFO > (com.gargoylesoftware.htmlunit.javascript.host.Document) - Added cookie: > ObSSOCookie= > [testSpec] INFO > (com.gargoylesoftware.htmlunit.javascript.host.Document) - Added cookie: > ObSSOCookie= > [testSpec] INFO > (com.gargoylesoftware.htmlunit.javascript.host.Document) - Added cookie: > ObSSOCookie= > [testSpec] INFO > (com.gargoylesoftware.htmlunit.javascript.host.Document) - Added cookie: > ObSSOCookie= > [testSpec] INFO (com.canoo.webtest.engine.Context) - Current form set > to none > [testSpec] INFO (com.canoo.webtest.steps.Step) - Start Step: > verifytitle "check login page title" (3/13) > [testSpec] INFO (com.canoo.webtest.steps.Step) - Start Step: clicklink > "check fp link" (4/13) > [testSpec] INFO (com.canoo.webtest.engine.Context) - Current form set > to none > [testSpec] INFO (com.canoo.webtest.steps.Step) - Start Step: > verifytitle "check title" (5/13) > [testSpec] INFO (com.canoo.webtest.steps.Step) - Start Step: > verifytext "vrfy text" (6/13) > [testSpec] INFO (com.canoo.webtest.steps.Step) - Start Step: > storeCookie "store cookie" (7/13) > [testSpec] INFO (com.canoo.webtest.steps.Step) - Start Step: > verifyProperty "verify prpty" (8/13) > [testSpec] INFO (com.canoo.webtest.steps.Step) - Start Step: invoke > "<unknown>" (9/13) > [testSpec] INFO (com.canoo.webtest.steps.request.Target) - -> > gotoTarget(by url): https://ctsblrgmac1.cts.com:4949/dealer > [testSpec] INFO (org.apache.commons.httpclient.HttpMethodDirector) - > Redirect requested but followRedirects is disabled > [testSpec] INFO > (com.gargoylesoftware.htmlunit.javascript.host.Document) - Added cookie: > ObSSOCookie= > [testSpec] INFO > (com.gargoylesoftware.htmlunit.javascript.host.Document) - Added cookie: > ObSSOCookie= > [testSpec] INFO > (com.gargoylesoftware.htmlunit.javascript.host.Document) - Added cookie: > ObSSOCookie= > [testSpec] INFO > (com.gargoylesoftware.htmlunit.javascript.host.Document) - Added cookie: > ObSSOCookie= > [testSpec] INFO > (com.gargoylesoftware.htmlunit.javascript.host.Document) - Added cookie: > ObSSOCookie= > [testSpec] INFO > (com.gargoylesoftware.htmlunit.javascript.host.Document) - Added cookie: > ObSSOCookie= > [testSpec] INFO (com.canoo.webtest.engine.Context) - Current form set > to none > [testSpec] INFO (com.canoo.webtest.steps.Step) - Start Step: > setinputfield "get username" (10/13) > [testSpec] INFO (com.canoo.webtest.engine.Context) - Current form set > to (action=) > [testSpec] INFO (com.canoo.webtest.steps.Step) - Start Step: > setinputfield "get password" (11/13) > [testSpec] INFO (com.canoo.webtest.steps.Step) - Start Step: clicklink > "click login link" (12/13) > [testSpec] INFO (org.apache.commons.httpclient.HttpMethodDirector) - > Redirect requested but followRedirects is disabled > [testSpec] INFO (org.apache.commons.httpclient.HttpMethodDirector) - > Redirect requested but followRedirects is disabled > [testSpec] WARN (com.gargoylesoftware.htmlunit.html.HtmlPage) - > Expected content type of text/javascript or application/x-j > avascript for remotely loaded javascript element > https://ctsblrgmac1.cts.com:4949/gmacgdp/gmacscripts/running_clock.js > but go > t [] > [testSpec] WARN (com.gargoylesoftware.htmlunit.html.HtmlPage) - > Expected content type of text/javascript or application/x-j > avascript for remotely loaded javascript element > https://ctsblrgmac1.cts.com:4949/gmacgdp/gmacscripts/gmac-gdp.js but got > [] > [testSpec] INFO > (com.gargoylesoftware.htmlunit.javascript.host.Document) - Added cookie: > ObSSOCookie= > [testSpec] INFO > (com.gargoylesoftware.htmlunit.javascript.host.Document) - Added cookie: > ObSSOCookie= > [testSpec] INFO (com.canoo.webtest.engine.Context) - Current form set > to none > [testSpec] INFO (com.canoo.webtest.steps.Step) - Start Step: null > "[implicit tear down step]" (13/13) > [testSpec] INFO (com.canoo.webtest.ant.TestSpecificationTask) - > Writing report using Report class: com.canoo.webtest.report > ing.XmlReporter > [testSpec] INFO (com.canoo.webtest.ant.TestSpecificationTask) - Test > summary successfully created. > > BUILD SUCCESSFUL > > > > > > > > > This e-mail and any files transmitted with it are for the sole use of the > intended recipient(s) and may contain confidential and privileged information. > If you are not the intended recipient, please contact the sender by reply > e-mail and destroy all copies of the original message. > Any unauthorised review, use, disclosure, dissemination, forwarding, printing > or copying of this email or any action taken in reliance on this e-mail is > strictly > prohibited and may be unlawful. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
