[Webtest] setselectfield help

Marc Guillemot webtest@lists.canoo.com
Mon, 15 Mar 2004 09:21:39 +0100


Hi Conan,

it comes from the way Webtest currently set form fields: values are temporary stored and only set when clicking on the 
submit button.

Marc.

chan conan wrote:
> Hi Mettie,
> 
> My question is select fields whose values changed by
> javascript, webtest seems to not support javascript.
> 
> The webpage has two select fields:
> strProvince,strCity, strCity options will changed
> according to strProvince, 
> 
> here I want to setselectfield directly to workaround
> javascript limit, the webtest script as :
> <setselectfield  stepid="set[strProvince]"
> name="strProvince" value="province1"/>
> <setselectfield  stepid="set[strCity]" name="strCity"
> value="city11"/>
> 
> but webtest always complain:
> 
> Test step clickbutton named "submit[Write]" failed
> with message "Illegal parameter
>  strCity in form [form1, POST,
> /asp/usercenter/User_Register_Result.asp, , , _to
> p, , POST request for
> (http://www1.soufun.com:80/asp/usercenter/User_Register.as
> p) /asp/usercenter/User_Register_Result.asp] with
> message <May not set parameter
>  'strCity' to 'ÉîÛÚ'. Value must be one of: {  }> "
>  .
> 
> Thanks.
> Conan
> 
> 
> __________________________________
> Do you Yahoo!?
> Yahoo! Mail - More reliable, more storage, less spam
> http://mail.yahoo.com
> _______________________________________________
> WebTest mailing list
> WebTest@lists.canoo.com
> http://lists.canoo.com/mailman/listinfo/webtest
>