I see from the code in com.sun.faban.harness.engine.FlatMix.configure() that modifying this mix in run.xml is supported.
However, I am not clear on how exactly to setup the config.xhtml to get the form to support it.
Here are the relevant entries for a driver with 2 operations:
<xforms:bind id='bind-runConfig-driverConfig-operationMix' xforms:nodeset='fd:operationMix'>
<xforms:bind id='bind-runConfig-driverConfig-operationMix-name' xforms:nodeset='fd:name'>
</xforms:bind>
<xforms:bind id='bind-runConfig-driverConfig-operationMix-r' xforms:nodeset='fd:r>
</xforms:bind>
</xforms:bind>
<xforms:bind id='bind-runConfig-driverConfig-operationMix_1' xforms:nodeset='fd:operationMix'>
<xforms:bind id='bind-runConfig-driverConfig-operationMix_1-name' xforms:nodeset='fd:name'>
</xforms:bind>
<xforms:bind id='bind-runConfig-driverConfig-operationMix_1-r' xforms:nodeset='fd:r'>
</xforms:bind>
</xforms:bind>
The above is in fact auto-generated. What I'm having trouble with is the input elements below. What happens is that the form displays only the values for the 1st operation repeated again for the 2nd operation i.e. it is ignoring the 2nd <operationMix> entry in the run.xml.
What am I doing wrong?
<xforms:group id='group-operationMix'>
<xforms:label xforms:model='benchmark-labels' xforms:ref='/labels/operationMix'/>
<xforms:input id='input-runConfig-driverConfig-operationMix-name'
xforms:bind='bind-runConfig-driverConfig-operationMix-name'>
<xforms:label xforms:model='benchmark-labels' xforms:ref='/labels/opname'/>
</xforms:input>
<xforms:input id='input-runConfig-driverConfig-operationMix-r'
xforms:bind='bind-runConfig-driverConfig-operationMix-r'>
<xforms:label xforms:model='benchmark-labels' xforms:ref='/labels/r'/>
</xforms:input>
<xforms:input id='input-runConfig-driverConfig-operationMix_1-name'
xforms:bind='bind-runConfig-driverConfig-operationMix_1-name'>
<xforms:label xforms:model='benchmark-labels' xforms:ref='/labels/opname'/>
</xforms:input>
<xforms:input id='input-runConfig-driverConfig-operationMix_1-r'
xforms:bind='bind-runConfig-driverConfig-operationMix_1-r'>
<xforms:label xforms:model='benchmark-labels' xforms:ref='/labels/r'/>
</xforms:input>