503 error with Functional Test?

View: New views
2 Messages — Rating Filter:   Alert me  

503 error with Functional Test?

by snagiel :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello.  I am trying to run a functional test (using the plugin).  Unfortunately, I keep getting 503 (service unavailable) errors when running "grails functional-tests".  (I don't have any other instance of the app running when I execute the tests.)

How do I verify the tests actually start up an app server instance? Should the console give some indication thereof (as it does when running "grails run-app")?

TIA.

Re: 503 error with Functional Test?

by Marc Palmer Local :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


On 2 Nov 2009, at 19:13, snagiel wrote:

>
> Hello.  I am trying to run a functional test (using the
> http://grails.org/plugin/functional-test plugin ).  Unfortunately, I  
> keep
> getting 503 (service unavailable) errors when running "grails
> functional-tests".  (I don't have any other instance of the app  
> running when
> I execute the tests.)
>
> How do I verify the tests actually start up an app server instance?  
> Should
> the console give some indication thereof (as it does when running  
> "grails
> run-app")?

It sounds like you have a problem with your "test" environment settings.

First, do:

grails test run-app

Does it run? can you browse to it?

If you can, then add a Thread.sleep(100000000) into one of your  
functional tests, run the tests and while it is sleeping try to  
connect to it.

Hope that helps you find why the app is not starting.
Marc



~ ~ ~
Marc Palmer
Blog         > http://www.anyware.co.uk
Twitter      > http://twitter.com/wangjammer5
Grails Rocks > http://www.grailsrocks.com







---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email