Your browser was unable to load all of the resources. They may have been blocked by your firewall, proxy or browser configuration.
Press Ctrl+F5 or Ctrl+Shift+R to have your browser try again.

Chained build option. #1782

jeonghoon-jeon ·
Hi, robin.

I checked v4.0.30's release contents, and tested.
I think dynamic build option is very useful <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) -->
Then, how about you patch the another variable also to be possible dynamic change?
For example, "prompt as text input" type variable and all of variable's description.
If it possible, I can suggest the suitable advice by description when user input the value of build variables.

Regards,
Jeon
  • replies 3
  • views 1921
  • stars 0
robinshen ADMIN ·
Hi Jeon,

To achieve this level of dynamic, you may consider write a customer bean input plugin as demonstrated here:
http://wiki.pmease.com/display/QB40/Com ... ld+Options

This allows you to switch to different set of UI controls (of course with different descriptions) when a different option is chosen from a selection box. Please let me know if this is suffice for your use case.

Regards
Robin
jeonghoon-jeon ·
hmm... I tested your suggestion.
But I couldn't see the input value when finished build. <!-- s:( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":(" title="Sad" /><!-- s:( -->

I hope that variable's description also can be dynamic changed like a value of "prompt as selection box".
If it possible, I can provide a dynamic description depends on user's input.
Then, I can reduce the build error by user's wrong input.

Regards,
Jeon
robinshen ADMIN ·
Hi Jeon,

You may access input value of the bean via:
vars.get("varName").asBean()

The return value will be a bean defined by your custom plugin and you may traverse the bean object graph to get any value you are interested as demonstrated in the test step in the tutorial. Also it is possible to change description based on user input: in the example plugin, user can select smoke test mode to display the smoke test setting, or select acceptance test to display the acceptance test setting, if you annotate different description (via Editable annotation) to fields of smoke test setting and acceptance test setting, the effect will be that description changes based on another variable.

Regards
Robin