Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Jubula » AUT Configuration environment variable
AUT Configuration environment variable [message #1727010] Fri, 18 March 2016 09:18 Go to next message
Gabriel Budau is currently offline Gabriel BudauFriend
Messages: 6
Registered: March 2016
Junior Member
Hi,

I was wondering if there is a way to configure an AUT using environment variables, like setting the AUT working directory or the executable file name.
e.g. AUT working Directory: %AUT_HOME% , where AUT_HOME is C\jubula-workspace\app

Thanks in advance, Gabriel
Re: AUT Configuration environment variable [message #1727022 is a reply to message #1727010] Fri, 18 March 2016 10:18 Go to previous messageGo to next message
Sylvain EVEILLARD is currently offline Sylvain EVEILLARDFriend
Messages: 556
Registered: July 2009
Senior Member
On a similar use case I modified the jubula database with a SQL script to make the replacement before launching and revert the modification after the test.
Re: AUT Configuration environment variable [message #1727026 is a reply to message #1727022] Fri, 18 March 2016 10:39 Go to previous messageGo to next message
Gabriel Budau is currently offline Gabriel BudauFriend
Messages: 6
Registered: March 2016
Junior Member
This is a very dirty workaround and it will be a last resort solution.

The best solution is to pass an environment variable in the configuration, this way by setting the system variable the same exported test cases can be executed on multiple machines that have the same RCP application but at different locations with no prior modifications made to the AUT Configuration.
Re: AUT Configuration environment variable [message #1727029 is a reply to message #1727026] Fri, 18 March 2016 10:59 Go to previous messageGo to next message
Sylvain EVEILLARD is currently offline Sylvain EVEILLARDFriend
Messages: 556
Registered: July 2009
Senior Member
Yes of course but it's not possible atm.
Re: AUT Configuration environment variable [message #1727035 is a reply to message #1727029] Fri, 18 March 2016 12:16 Go to previous messageGo to next message
Oliver Goetz is currently offline Oliver GoetzFriend
Messages: 219
Registered: May 2011
Senior Member
Hi,

there are several places where you can adjust the settings how the AUT should be started:

* AUT Dialog: Here you can define properties for the AUT
index.php/fa/25348/0/

*AUT configuration Dialog: Here you can add AUT Arguments, JRE Arguments and System Environment Variables which are active for the AUT as soon as it has been started
index.php/fa/25349/0/

Hope this helps
Oliver
Re: AUT Configuration environment variable [message #1727049 is a reply to message #1727035] Fri, 18 March 2016 13:02 Go to previous messageGo to next message
Gabriel Budau is currently offline Gabriel BudauFriend
Messages: 6
Registered: March 2016
Junior Member
I could not find any documentation on how to use the System environment Variables in AUT Advanced configuration. Maybe you could provide me some examples or use cases.
Re: AUT Configuration environment variable [message #1727328 is a reply to message #1727049] Tue, 22 March 2016 08:19 Go to previous message
Oliver Goetz is currently offline Oliver GoetzFriend
Messages: 219
Registered: May 2011
Senior Member
Hi,

you can find some information on how to use Environment variables in your tests here.
Regards
Oliver
Previous Topic:SOLVED Table - row remove
Next Topic:Writing code using Jubula
Goto Forum:
  


Current Time: Thu Apr 25 21:26:21 GMT 2024

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

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

Back to the top