How to set the option values for a RunConfiguration inside a test?

Hi,

i’m trying to create some tests for my plugin, specific for the RunConfigurations.
I was able to get the RunManager, create a Configuration from it and execute it using the ProgramRunnerUtil.
But I’m having a hard time about how to specify the values of the options for this Configuration. I have some fields that I need to be filled, but they came empty since I did not added any code to fill them.
So, how can I specify the values of my RunConfiguration to test it?

Solved.
You need to get the Configuration from the RunnerAndConfigurationSettings returned by the RunManager in the createConfiguration.
There you have access to the RunConfigurationBase and can call getOptions