Open dprevost-LMI opened 1 year ago
@dprevost-LMI thanks for your feedback.
If the variable is statically defined, perhaps it's possible to resolve the file path.
Will consider add this feature in the future.
@dprevost-LMI thanks for your feedback.
If the variable is statically defined, perhaps it's possible to resolve the file path.
Will consider add this feature in the future.
FYI: It is always the same for my local usage, but it's dynamic for pipeline usage
Hi, is there a workaround to pass global variable values like the --variable
option does?
The variable
is set in robot runtime, which means plugin will never know the exact resource path, what the plugin can do is to predict the variable
based on your static code context. This could be complex and not implemented yet.
In my project, we are doing iOS and Android tests, so we include resources depending on which platform's device we are testing. To do so, when using the
Resource
to import a file, we use aplatform
variable.However, even if I fixed the platform's value in the variables section, the plugin cannot import the Keywords included in the resource. So the navigation when clicking on the keyword from my test case does not work (i.e. Go To > Declaration or Usage).
Like shown below, if I use
./Resources/Android/Login.robot
it works, but not with./Resources/${platform}/Login.robot