I've just tried moving TelluriumConfig.groovy into src/test/resources however now firefox is unable to find my custom profile. What path is the telluriumserver.embeddedserver.profile setting relative to when TellurimConfig.groovy is in src/test/resources and I'm running maven from the parent project?
On 26 March 2010 19:23, Jian Fang <[email protected]> wrote: > Ok, I changed the configuration parser to load the configuration file from > the class path instead of from the project root. > > Please get the new core artifact from the following url, > > http://maven.kungfuters.org/content/repositories/snapshots/org/telluriumsource/tellurium-core/0.7.0-SNAPSHOT/tellurium-core-0.7.0-20100326.172032-112.jar > > or use Maven to pull it down. > > Now, you can move telluriumconfig.groovy to src/test/resources directory. > > Thanks, > > Jian > > On Fri, Mar 26, 2010 at 11:58 AM, Jian Fang <[email protected]> > wrote: >> >> Good question. I will take a look to see if we can load the configuration >> file from the class path. >> But be aware that the first one may always win if you have multiple files >> on the class path. >> >> Optionally, I thought of using a JSON string to represent the >> configuration so that you can pass in >> different configurations to your tests very easily. >> >> Thanks, >> >> Jian >> >> On Fri, Mar 26, 2010 at 11:40 AM, Jonathan Share <[email protected]> >> wrote: >>> >>> Hi, >>> >>> Is there a method of defining where tellurium will look for the >>> TelluriumConfig file? Or even better can you read it in from the >>> classpath (then we could drop it in src/test/resources)? >>> >>> The reason that I'm asking is that I'm using tellurium in a maven >>> multi-module project with the following structure; >>> >>> parent-project >>> \- commmon-tellurium-modules >>> \- smoke-tests >>> \- TelluriumConfig.groovy >>> \- excel-tests >>> \- TelluriumConfig.groovy >>> >>> In order to keep things as simple as possible for those running the >>> tests I want to allow them to run the tests in the following manner; >>> $ mvn clean test -Psmoke >>> or >>> $ mvn clean test -Pexcel >>> >>> where the build profile defines which test project gets pulled into >>> the build, however tellurium always tries to read the file from the >>> current working directory which fails when I'm standing in the >>> parent-project. >>> >>> Regards, >>> >>> Jonathan >>> >>> -- >>> You received this message because you are subscribed to the Google Groups >>> "tellurium-users" group. >>> To post to this group, send email to [email protected]. >>> To unsubscribe from this group, send email to >>> [email protected]. >>> For more options, visit this group at >>> http://groups.google.com/group/tellurium-users?hl=en. >>> >> > > -- > You received this message because you are subscribed to the Google Groups > "tellurium-users" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/tellurium-users?hl=en. > -- You received this message because you are subscribed to the Google Groups "tellurium-users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/tellurium-users?hl=en.
