Selenium 0.4 with Grails 1.0.3?

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

Selenium 0.4 with Grails 1.0.3?

by Michael Berg-6 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi all,
 
Is there a problem with selenium 0.4 with Grails 1.0.3?
 
I'm following the short tutorial on http://grails.org/Selenium+plugin, but it does not appear to be possible to create tests:
 
C:\selenium-test\> grails create-selenium-test mytest.gsp
(...usual blabla from Grails...)
Could not execute method appContext.
No such property: appContext for class: CreateSeleniumTest_groovy
 
Anyone have an idea what might be wrong?
 
/Mike
 
 

RE: Selenium 0.4 with Grails 1.0.3?

by Erik Slagter-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

I reported the same problem last week. Nobody responded….

Van: Michael Berg [mailto:michael.berg@...]
Verzonden: woensdag 16 juli 2008 13:11
Aan: user@...
Onderwerp: [grails-user] Selenium 0.4 with Grails 1.0.3?

 

Hi all,

 

Is there a problem with selenium 0.4 with Grails 1.0.3?

 

I'm following the short tutorial on http://grails.org/Selenium+plugin, but it does not appear to be possible to create tests:

 

C:\selenium-test\> grails create-selenium-test mytest.gsp

(...usual blabla from Grails...)

Could not execute method appContext.
No such property: appContext for class: CreateSeleniumTest_groovy

 

Anyone have an idea what might be wrong?

 

/Mike

 

 


SV: Selenium 0.4 with Grails 1.0.3?

by Michael Berg-6 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
Well, looking at the release notes for http://www.javathinking.com/?p=81, and in particular the comments below, one can read the following:
 
--------------------------------------------------
Gerd, I think I know the problem - I have been using a slightly modified version of grails - see here http://jira.codehaus.org/browse/GRAILS-2534
 
This modification defines appContext in Init.groovy and allows you to define a custom context path in several ways. Hopefully this will make it into the next release of grails.
 
I’m sorry for the confusion - I’d completely forgotten about this dependency. If you don’t want to apply the complete patch, then adding
 
appContext=grailsAppName
 
to /scripts/Init.groovy at approx line 113, just before
 
configSlurper = new ConfigSlurper(grailsEnv)
 
might get it working for now.
-------------------------------------------------------
 
I guess that explains it. The developer is assuming we all are using a "slightly modified version of grails". Great.
 
/Mike


Fra: Erik Slagter [mailto:erik.slagter@...]
Sendt: 16. juli 2008 13:33
Til: user@...
Emne: RE: [grails-user] Selenium 0.4 with Grails 1.0.3?

I reported the same problem last week. Nobody responded….

Van: Michael Berg [mailto:michael.berg@...]
Verzonden: woensdag 16 juli 2008 13:11
Aan: user@...
Onderwerp: [grails-user] Selenium 0.4 with Grails 1.0.3?

 

Hi all,

 

Is there a problem with selenium 0.4 with Grails 1.0.3?

 

I'm following the short tutorial on http://grails.org/Selenium+plugin, but it does not appear to be possible to create tests:

 

C:\selenium-test\> grails create-selenium-test mytest.gsp

(...usual blabla from Grails...)

Could not execute method appContext.
No such property: appContext for class: CreateSeleniumTest_groovy

 

Anyone have an idea what might be wrong?

 

/Mike

 

 


Parent Message unknown Re: Selenium 0.4 with Grails 1.0.3?

by Deepak Mittal-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I think it is a minor problem with the plug-in scripts which generate selenium tests.  If you are going to write your own selenium tests, then this error is really not a pain and can be ignored.

But, if you want to scaffold the selenium tests, then you can follow the following steps to get rid of this error (workaround):

* Go to plugins/selenium-0.4/scripts directory in your grails project
* Replace ${appContext} with "selenium-test" or whaterver is the name of your grails app

There are only 5-6 occurrences in 3 files or so.

Even better, use the following command (if you are on bash shell & have perl installed) to do the replacements. You should be in plugins/selenium-0.4/scripts directory when running this.

for i in `ls *.groovy`; do perl -pi -e's/\${appContext}/selenium-test/' $i ; done

Hope this helps,

Regards,

-Deepak

http://www.IntelliGrape.com


On Wed, Jul 16, 2008 at 5:02 PM, Erik Slagter <erik.slagter@...> wrote:

I reported the same problem last week. Nobody responded….

Van: Michael Berg [mailto:michael.berg@...]
Verzonden: woensdag 16 juli 2008 13:11
Aan: user@...
Onderwerp: [grails-user] Selenium 0.4 with Grails 1.0.3?

 

Hi all,

 

Is there a problem with selenium 0.4 with Grails 1.0.3?

 

I'm following the short tutorial on http://grails.org/Selenium+plugin, but it does not appear to be possible to create tests:

 

C:\selenium-test\> grails create-selenium-test mytest.gsp

(...usual blabla from Grails...)

Could not execute method appContext.
No such property: appContext for class: CreateSeleniumTest_groovy

 

Anyone have an idea what might be wrong?

 

/Mike

 

 



SV: Selenium 0.4 with Grails 1.0.3?

by Michael Berg-6 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Or even better:
 
Replace all occurrences of ${appContext} with ${grailsAppName} :-)
 
It's such a minor thing I hope the developer will release an update soon.
 
/Mike
 

Fra: Deepak Mittal [mailto:dmittal@...]
Sendt: 16. juli 2008 14:06
Til: user@...
Emne: Re: [grails-user] Selenium 0.4 with Grails 1.0.3?

I think it is a minor problem with the plug-in scripts which generate selenium tests.  If you are going to write your own selenium tests, then this error is really not a pain and can be ignored.

But, if you want to scaffold the selenium tests, then you can follow the following steps to get rid of this error (workaround):

* Go to plugins/selenium-0.4/scripts directory in your grails project
* Replace ${appContext} with "selenium-test" or whaterver is the name of your grails app

There are only 5-6 occurrences in 3 files or so.

Even better, use the following command (if you are on bash shell & have perl installed) to do the replacements. You should be in plugins/selenium-0.4/scripts directory when running this.

for i in `ls *.groovy`; do perl -pi -e's/\${appContext}/selenium-test/' $i ; done

Hope this helps,

Regards,

-Deepak

http://www.IntelliGrape.com


On Wed, Jul 16, 2008 at 5:02 PM, Erik Slagter <erik.slagter@...> wrote:

I reported the same problem last week. Nobody responded….

Van: Michael Berg [mailto:michael.berg@...]
Verzonden: woensdag 16 juli 2008 13:11
Aan: user@...
Onderwerp: [grails-user] Selenium 0.4 with Grails 1.0.3?

 

Hi all,

 

Is there a problem with selenium 0.4 with Grails 1.0.3?

 

I'm following the short tutorial on http://grails.org/Selenium+plugin, but it does not appear to be possible to create tests:

 

C:\selenium-test\> grails create-selenium-test mytest.gsp

(...usual blabla from Grails...)

Could not execute method appContext.
No such property: appContext for class: CreateSeleniumTest_groovy

 

Anyone have an idea what might be wrong?

 

/Mike

 

 



Re: Selenium 0.4 with Grails 1.0.3?

by prule :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Sorry for the delay - This should be resolved now in grails-selenium-0.5
http://www.javathinking.com/?p=104
------------------------------------------------------------------------------
http://www.myonlineprofile.net/profile/prule
http://www.filmsuggestions.com/ - Catalogue your favourite films
http://www.javathinking.com/ - Thoughts on Java