robot-testing-framework icon indicating copy to clipboard operation
robot-testing-framework copied to clipboard

Provide a way to set an enviroment variable for just a test

Open traversaro opened this issue 8 years ago • 1 comments

For some application, it is convenient to set a specific environmental variable for just a test, and do not have this environmental variable set to the rest of the fixture in the suite or for other tests.

traversaro avatar Oct 30 '17 18:10 traversaro

@traversaro hi back :)

Well, technically yes. But, just to make up my mind, if a test need another environment, it should not be organized in a separate test suite?

The main purpose of using environment should be to know in which setup (e.g., simulation, real world environment) the test case is employed. Although as it is, we use it also as a generic parameter setting for the whole tests (e.g., --context icubGazeboSim).

Alternative solution?

  • using separate test suite
  • using test param='...'
    <environment>--robotname icubSim  --context icubGazeboSim</environment>
    <test type="dll" param="--from robinterface_stream.ini"> PortsFrequency </test> -->

apaikan avatar Nov 14 '17 18:11 apaikan