Do you use the Grails WebTest plugin? If yes, then the problem may have
been already fixed since the plugin uses an old WebTest version with an
old HtmlUnit release.

The problem you have is that HtmlUnit tries to load from url "http://:";
which is not a valid url.

Cheers,
Marc.
-- 
Blog: http://mguillem.wordpress.com


Scott Walter wrote:
> hi,
> 
> First of all I am testing via Groovy and my app is a Grails app in case
> that matters.  It seems to be related just to my extjs javascript
> files.  If I remove all the includes for extjs then my page will test
> properly.  I did notice the following on the console:
> 
>   [java]  INFO (com.canoo.webtest.steps.request.TargetHelper) - getting
> response for url: http://localhost:8080/siteproducer/admin
> 2008-03-12 11:03:49.232:/siteproducer:INFO:  GSP servlet initialized
>      [java] ERROR (com.gargoylesoftware.htmlunit.html.HtmlPage) - Error
> loading javascript from [http://:]:
>      [java] java.net.ConnectException: Connection refused
> 
> 
> The message "Error loading javascript from [http://:]: " seems weird.
> 
> Below is the head section of the page to see if you notice anything weird.
> 
> scott.
> 
> 
> 
>     <head>
>         <title>Siteproducer Admin Console</title>
> 
>         <link rel="shortcut icon"
> href="/siteproducer/images/favicon.ico" type="image/x-icon" />
> 
>         <link rel="stylesheet" type="text/css"
> href="/siteproducer/css/appstyles2.css"/>
>         <link rel="stylesheet" type="text/css"
> href="/siteproducer/css/pages/dashboard.css"/>
> 
>         <link rel="stylesheet" type="text/css"
> href="/siteproducer/resources/css/ext-all.css"/>
>         <link rel="stylesheet" type="text/css"
> href="/siteproducer/resources/css/xtheme-gray.css"/>
> 
>         <script type="text/javascript"
> src="/siteproducer/js/core/swx.js"></script>
> 
>         <script type="text/javascript"
> src="/siteproducer/js/ext-core/adapter/ext/ext-base.js"></script>
> 
>         <script type="text/javascript"
> src="/siteproducer/js/ext-core/ext-all-debug.js"></script>
> 
> 
>         <meta name="layout" content="adminlayout"></meta>
> 
> 
>         <script type="text/javascript"
> src="/siteproducer/js/ext-ux/simple-combo.js"></script>
> 
>         <script type="text/javascript"
> src="/siteproducer/js/ext-ux/datetime.js"></script>
> 
>         <script type="text/javascript"
> src="/siteproducer/js/ext-ux/staticfield.js"></script>
> 
> 
>         <script type="text/javascript"
> src="/siteproducer/js/pages/contentUI.js"></script>
>     </head>
> 
> 
> 
> 
> On Mar 12, 2008, at 10:47 AM, Marc Guillemot wrote:
> 
>> does it appear systematically for this js file? Connection refused
>> normally indicates just that your server is not responding correctly.
>>
>> Cheers,
>> Marc.
>> -- 
>> Blog: http://mguillem.wordpress.com
>>
>>
>> Scott Walter wrote:
>>> I am trying to do a very basic test with a page that uses the Ext JS
>>> framework.  I get this error:
>>>
>>> ErrorMessage
>>> JavaScript error loading page http://localhost:8080/siteproducer/admin:
>>> Wrapped com.gargoylesoftware.htmlunit.ScriptException: Connection
>>> refused
>>> (http://localhost:8080/siteproducer/js/ext-core/ext-all-debug.js#1552)
>>>
>>> Location
>>> (line: 0)
>>>
>>> Details
>>> javascript error
>>> Wrapped com.gargoylesoftware.htmlunit.ScriptException: Connection
>>> refused
>>> (http://localhost:8080/siteproducer/js/ext-core/ext-all-debug.js#1552)
>>>
>>> At this point I don't know what I can do to get around this error.  Any
>>> ideas?
>>>
>>> scott.
>>> _______________________________________________
>>> WebTest mailing list
>>> [email protected]
>>> http://lists.canoo.com/mailman/listinfo/webtest
>>>
>>
>> _______________________________________________
>> WebTest mailing list
>> [email protected]
>> http://lists.canoo.com/mailman/listinfo/webtest
>>
> 
> _______________________________________________
> WebTest mailing list
> [email protected]
> http://lists.canoo.com/mailman/listinfo/webtest
> 


_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest

Reply via email to