I need to test a scenario that should not be possible in a web page conventionally. What I basically need to do is to select an option from a select list that doesn't exist. For instance, the select box has options with values 100,101,102,103,etc. and I need to be able to set that parameter to the value 1. HttpUnit will not allow me to set this parameter to 1, even if I use form.getScriptableObject().setParameterValue().
The way I see it there are two possibilities here:
1. Somehow force the parameter to the value 1.
2. Rewrite one of the options in the form to have the value 1 on the client side.
Does anyone have any clue how I can accomplish this?
Thanks,
Brian
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I need to test a scenario that should not be possible in a web page conventionally. What I basically need to do is to select an option from a select list that doesn't exist. For instance, the select box has options with values 100,101,102,103,etc. and I need to be able to set that parameter to the value 1. HttpUnit will not allow me to set this parameter to 1, even if I use form.getScriptableObject().setParameterValue().
The way I see it there are two possibilities here:
1. Somehow force the parameter to the value 1.
2. Rewrite one of the options in the form to have the value 1 on the client side.
Does anyone have any clue how I can accomplish this?
Thanks,
Brian
set
HttpUnitOptions.setParameterValuesValidated(false);
reset it back to true afterwards