View on GitHub

RED - Robot Editor

Eclipse based editor for RobotFramework testcases

RED - Robot Editor User Guide > User guide > Project configuration >

Variable mappings

Whenever parameterized import is used in suite/resource file:

	
    *** Settings ***
    Library      ${libs_dir}/library.py
    Resource     ${res_dir}/resource.robot
    Variables    ${vars_dir}/variables.py
	
	

RED is not able to evaluate parameters value by itself (since those parameters are resolved during Robot runtime when the value is known):



Variables mappings is a way to deal with such situation by statically assigning values to parameters so that RED can use those values in order to resolve parameterized imports.

Note
Variables provided in red.xml are used only by RED for validation purpose and are not added to Robot run command line when launching execution. During test execution variables have to be provided by Robot.

To resolve parameterized imports open red.xml -> Variables and assign static value for desired parameter in Variable mappings section:



When successful the imports should be be recognized and validation will take place: