[Webtest] [webtest][JIRA] Created: (WT-47) Problem with enabling FollowRedirects

Mahesh Kumar Raju D (JIRA) webtest@lists.canoo.com
Fri, 27 May 2005 07:08:07 +0200 (CEST)


Problem with enabling FollowRedirects
-------------------------------------

         Key: WT-47
         URL: http://webtest-community.canoo.com/jira/browse/WT-47
     Project: WebTest
        Type: Task
    Reporter: Mahesh Kumar Raju D


hi,

i'm working with  canoo version 1.6. I've got problem while working, related to redirection in javascript. It is giving the following error message:-

" [testSpec]  INFO (org.apache.commons.httpclient.HttpMethodDirector) - Redirect requested but followRedirects is disabled ".

can anybody help me to come out of this problem.
Following is the outcome while executing 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] ERROR (com.gargoylesoftware.htmlunit.ScriptEngine) - error: message=[unterminated string literal] sourceName=[Emb
edded script] line=[19] lineSource=[                    appFrame.location.href = "https://ctsblrgmac1.cts.com:4949/portal/dt?
provider=SmartCashLogoutChannel&targetedURL="+url";] lineOffset=[123]
 [testSpec] ERROR (com.canoo.webtest.steps.request.Target) - ScriptException: enclosed exception was "Wrapped com.gargoylesof
tware.htmlunit.ScriptException: Wrapped com.gargoylesoftware.htmlunit.ScriptException: unterminated string literal (Embedded
script#19)"
 [testSpec]  INFO (com.canoo.webtest.steps.Step) - Exception thrown from this class: com.canoo.webtest.engine.StepFailedExcep
tion
 [testSpec]  INFO (com.canoo.webtest.steps.Step) - Message was: Step "clicklink "click login link" (12/13): Script error exec
uting at: link href=#
 [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 FAILED
Test step clicklink (C:\canoo\gmac\redirect.xml:90: )  named "click login link" failed with message "Step "clicklink "click l
ogin link" (12/13): Script error executing at: link href=#"

Total time: 22 seconds

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://webtest-community.canoo.com/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira