Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Jubula » (how) can I use env vars in a test?
(how) can I use env vars in a test? [message #720337] Tue, 30 August 2011 11:57 Go to next message
Tom Brus is currently offline Tom Brus
Messages: 25
Registered: February 2011
Junior Member
Hi list,

I would like to use environment vars in my test. Can it be done? If yes, how?
I could not find anything on this in the documentation.

Background:
I want my AUT to do an export to a certain directory. To do that I need to enter a directory in a dialog. Our tester's machine is set up to export to the D: disk. My CI test machine has no D: disk and the export needs to be done to the C: disk. Of course I would like to use the same test in both environments. The logical thing would be to setup an environment variable (EXPORT_DIR=xxxxx) that is set differently in both environments. But I need to get this env var into my jubula test. I would expect there to be some kind of syntax for this (e.g. ${EXPORT_DIR} (I did not try this!))....

Regards,
Tom
Re: (how) can I use env vars in a test? [message #720344 is a reply to message #720337] Tue, 30 August 2011 12:09 Go to previous messageGo to next message
Alexandra Schladebeck is currently offline Alexandra Schladebeck
Messages: 1152
Registered: July 2009
Senior Member
Hi,

The part of the documentation you need to look at is here:
http://help.eclipse.org/indigo/topic/org.eclipse.jubula.client.ua.help/html/manual/node111.html#TasksSystemVariables

Cheers,
Alex
Re: (how) can I use env vars in a test? [message #720347 is a reply to message #720344] Tue, 30 August 2011 12:13 Go to previous message
Tom Brus is currently offline Tom Brus
Messages: 25
Registered: February 2011
Junior Member
Great!

Thanks Alex.
Previous Topic:Put character "=" in a textarea
Next Topic:How can I check wether a Figure is selected or not?
Goto Forum:
  


Current Time: Sun Sep 21 22:20:19 GMT 2014

Powered by FUDForum. Page generated in 0.03461 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software