What context are we talking about? A Grails application with webtest plugin?
How do you start your tests? grails run-webtest? cheers Dierk | -----Original Message----- | From: [EMAIL PROTECTED] | [mailto:[EMAIL PROTECTED] On Behalf Of Flower, Martin | Sent: Freitag, 31. Oktober 2008 16:00 | To: webtest@lists.canoo.com | Subject: RE: [Webtest] Organising Groovy classes | | Yes, the package structure doesn't seem to be picked up | | Tests/tc002/R08002Test.groovy | Tests/tc004/R08001Test.groovy | | Class definition for each of these defines a package (tc002, tc004) | | Each uses Variables.groovy | | If I define | | tests/tc002/Variables.groovy and | tests/tc004/Variables.groovy | | then everything works ok. | | If I define tests/Variables.groovy (and amend all the imports) | | then the tests cannot find Variables.groovy. It seems that | another class can only be found in the same directory. | Obviously this is a classpath issue, so I wondered whether | src/main/groovy would be automatically on the classpath - but | it isn't. | | I hope this is enough information to move me forward, but if | not I'll put together a mini example. | | Thanks | | Martin | | | | -----Original Message----- | From: Dierk König [mailto:[EMAIL PROTECTED] | Sent: 31 October 2008 14:47 | To: webtest@lists.canoo.com; Flower, Martin | Subject: RE: [Webtest] Organising Groovy classes | | | What | | is the standard way of doing this ? Thanks. Martin. | | Hi Martin, | | remember that Groovy WebTests are just ordinary Groovy | classes. So if in subdirectories, they must have the | according package statement. | | For any further advice, I would need more detailed information. | | cheers | Dierk | | | This e-mail and any attachment is for authorised use by the | intended recipient(s) only. It may contain proprietary | material, confidential information and/or be subject to legal | privilege. It should not be copied, disclosed to, retained or | used by, any other party. If you are not an intended | recipient then please promptly delete this e-mail and any | attachment and all copies and inform the sender. Thank you. | | | _______________________________________________ | WebTest mailing list | WebTest@lists.canoo.com | http://lists.canoo.com/mailman/listinfo/webtest | _______________________________________________ WebTest mailing list WebTest@lists.canoo.com http://lists.canoo.com/mailman/listinfo/webtest