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/telluriumsource/tellurium-core/0.8.0-SNAPSHOT/tellurium-core-0.8.0-20110419.221755-47.jar

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.
>
>

-- 
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.

Reply via email to