Hi, have you tried to look at the posted content with your normal browser (for instance using liveHttpHeaders in Firefox) with the posted content from WebTest (activate the log4j.logger.httpclient.wire).
Marc. -- Blog: http://mguillem.wordpress.com Andrew Sickorsky wrote: > Hello! > According log in DEBUG mode: > DEBUG (com.gargoylesoftware.htmlunit.WebClient) - Get page for window > named '', using > WebRequestSettings[<url="http://localhost:3000/admin/user/create", > SubmitMethod[name=post], > EncodingType[name=application/x-www-form-urlencoded], > [KeyValuePair("user[name]", "Test Finance User"), > KeyValuePair("user[department_id]", "2"), > KeyValuePair("user[role_ids][]", "2"), KeyValuePair("user[disabled]", > "0"), KeyValuePair("user[login]", "_test_finance_userrr"), > KeyValuePair("user[password]", "changeme"), > KeyValuePair("user[password_confirmation]", "changeme"), > KeyValuePair("commit", "Create")], > {Referer=http://localhost:3000/admin/user/new}, null>] > > > especially KeyValuePair("user[role_ids][]", "2") - request contains > checkbox needed. > So, I have no idea why this checkbox is missing if test was performed by > WebTest. It so strange-if I set it manually all seems ok and POST > request contains the same data. > >> Andrew Sickorsky wrote: >> >>> Hello! >>> after logging into the system and checking corresponded record I see >>> that checkbox is unchecked. >>> >> >> not really: you see that your app reacted as if checkbox wasn't checked. >> Please check what for a request is sent to the server and if checkbox >> value is really missing there. >> >> Marc. >> > _______________________________________________ WebTest mailing list [email protected] http://lists.canoo.com/mailman/listinfo/webtest

