I think I fixed the session issue. Could you try with the new artifact? http://maven.kungfuters.org/content/repositories/snapshots/org/telluriumsource/tellurium-core/0.8.0-SNAPSHOT/tellurium-core-0.8.0-20110420.224311-49.jar
On Wed, Apr 20, 2011 at 5:40 PM, Jian Fang <[email protected]> wrote: > Seems to be the session initalization issue. I will take a look tonight. > > Thanks, > > Jian > > > On Wed, Apr 20, 2011 at 9:03 AM, ADJ <[email protected]> wrote: > >> Hi, >> >> I've updated my project with the latest snapshot. >> If the output property of the TelluriumConfig.groovy is set to "File", >> I've got a java error. >> >> java.lang.ExceptionInInitializerError >> at java.lang.Class.forName0(Native Method) >> at java.lang.Class.forName(Unknown Source) >> at org.telluriumsource.test.report.FileOutput.class$ >> (FileOutput.groovy) >> at org.telluriumsource.test.report.FileOutput.$get$$class$org >> $telluriumsource$framework$TelluriumInjector(FileOutput.groovy) >> at >> org.telluriumsource.test.report.FileOutput.<init>(FileOutput.groovy) >> >> If the output property of the TelluriumConfig.groovy is set to >> "Console", I can read and set the value of the filename property of >> the TelluriumConfig.groovy >> And now after each test, I've got this error >> >> No such property: expected for class: >> org.telluriumsource.test.report.AssertionResult >> >> org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java: >> 49) >> groovy.lang.GroovyObject$setProperty.call(Unknown Source) >> >> Thanks for your help. >> Regards. >> >> On 20 avr, 00:18, Jian Fang <[email protected]> wrote: >> > Sorry for the delay. >> > >> > The internal code for the filename was >> "tellurium.test.result.fileName". I >> > changed it back to "tellurium.test.result.filename" >> > >> > I created the following test case and it works now. >> > >> > @Test >> > public void testEnvironment(){ >> > String fileName = (String) >> > getEnvironment("tellurium.test.result.filename"); >> > assertNotNull(fileName); >> > System.out.println("Default test result file name " + fileName); >> > >> > setEnvironment("tellurium.test.result.filename", >> > "/tmp/TestResult.output"); >> > fileName = (String) >> > getEnvironment("tellurium.test.result.filename"); >> > assertEquals("/tmp/TestResult.output", fileName); >> > System.out.println("New file name " + fileName); >> > } >> > >> > Please update your project to use the latest 0.8.0 snapshot and let us >> know >> > if it works for you. >> > >> > http://maven.kungfuters.org/content/repositories/snapshots/org/tellur. >> .. >> > >> > Thanks, >> > >> > Jian >> > >> > >> > >> > On Thu, Apr 14, 2011 at 3:16 AM, ADJ <[email protected]> wrote: >> > > Hi, >> > >> > > I've tried your solution but it doesn't work. >> > >> > > String output = "" >> > > output = getEnvironment("tellurium.test.result.filename") => output = >> > > null >> > > setEnvironment ("tellurium.test.result.filename", "D:\\Dev\\output\ >> > > \TestResult2.xml") >> > > output = getEnvironment("tellurium.test.result.filename") => output = >> > > D:\\Dev\\output\\TestResult2.xml >> > > output = getEnvironment("tellurium.connector.serverHost") => output = >> > > null >> > >> > > The tests results are still written in the file defined in the >> > > TelluriumConfig.groovy >> > >> > > Thanks for your help. >> > >> > > On Apr 13, 6:08 pm, Jian Fang <[email protected]> wrote: >> > > > What timestamp? >> > >> > > > On Wed, Apr 13, 2011 at 12:00 PM, Hari <[email protected]> wrote: >> > > > > We have to add timestamp to the program >> > >> > > > > On 13 April 2011 18:53, ADJ <[email protected]> wrote: >> > >> > > > >> Hi. >> > >> > > > >> How can I change the value of some fields located in the >> > > > >> TelluriumConfig at runtime ? >> > > > >> Example : >> > > > >> Add the date and time to the the filename used for the output. >> > >> > > > >> Thanks for your help. >> > >> > > > >> -- >> > > > >> 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.-Hide quoted >> text >> > > - >> > >> > > > - Show quoted text - >> > >> > > -- >> > > 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.- Masquer le >> texte des messages précédents - >> > >> > - Afficher le texte des messages précédents - >> >> -- >> 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.
