Hello, Marc!
Checkbox was found, all steps passed, but... actually checkbox's state doesn't change in application. And there was nothing in the logexcept common information. DEBUG level log for this successfull step is below. AFAIU all seems correct. all other steps finished successfully.
setCheckbox
DEBUG (com.canoo.webtest.reporting.StepExecutionListener) - isToIgnore: [EMAIL PROTECTED], debug-test
DEBUG (com.canoo.webtest.reporting.StepResult) - In retrieveNestedText
INFO (com.canoo.webtest.steps.Step) - >>>> Start Step: setCheckbox (34/40)
DEBUG (com.canoo.webtest.steps.Step) - Executing setCheckbox (34/40)
DEBUG (com.canoo.webtest.util.FormUtil) - Looking for form with input field checkbox named "user[role_ids][]" DEBUG (com.canoo.webtest.util.FormUtil) - No given form or given form not suitable, trying others DEBUG (com.canoo.webtest.util.FormUtil) - Form '' has suitable field, using it DEBUG (com.canoo.webtest.steps.form.AbstractSetFieldStep) - Found matching form HtmlForm[<form action="/admin/user/create" method="post">] DEBUG (com.canoo.webtest.steps.form.AbstractSetFieldStep) - Considering element HtmlCheckBoxInput[<input class="check" id="user[role_ids][]" name="user[role_ids][]" type="checkbox" value="1">] DEBUG (com.canoo.webtest.steps.form.AbstractSetFieldStep) - Considering element HtmlCheckBoxInput[<input class="check" id="user[role_ids][]" name="user[role_ids][]" type="checkbox" value="2">] DEBUG (com.canoo.webtest.steps.form.AbstractSetFieldStep) - Considering element HtmlCheckBoxInput[<input class="check" id="user[role_ids][]" name="user[role_ids][]" type="checkbox" value="3">]
DEBUG (com.canoo.webtest.steps.form.AbstractSetFieldStep) - Found 1 field(s)
INFO (com.canoo.webtest.steps.form.AbstractSetFieldStep) - Found 1 suitable fields, considering only the first one DEBUG (com.gargoylesoftware.htmlunit.html.HtmlCheckBoxInput) - Firing Event change (Current Target: HTMLElement for HtmlCheckBoxInput[<input class="check" id="user[role_ids][]" name="user[role_ids][]" type="checkbox" value="2" checked="checked">]); DEBUG (com.gargoylesoftware.htmlunit.html.HtmlCheckBoxInput) - Firing Event click (Current Target: HTMLElement for HtmlCheckBoxInput[<input class="check" id="user[role_ids][]" name="user[role_ids][]" type="checkbox" value="2" checked="checked">]); DEBUG (com.canoo.webtest.steps.form.SetCheckbox) - checked checkbox HtmlCheckBoxInput[<input class="check" id="user[role_ids][]" name="user[role_ids][]" type="checkbox" value="2" checked="checked">]
DEBUG (com.canoo.webtest.steps.Step) - Finished setCheckbox (34/40)
DEBUG (com.canoo.webtest.steps.Step) - Completed Step: setCheckbox (34/40)
DEBUG (com.canoo.webtest.steps.AbstractBrowserAction) - Current response didn't change during step execution DEBUG (com.canoo.webtest.steps.Step) - Step didn't produce results, no need to notifying listeners DEBUG (com.canoo.webtest.steps.Step) - <<<< Successful Step: setCheckbox (34/40) DEBUG (com.canoo.webtest.reporting.StepExecutionListener) - isToIgnore: [EMAIL PROTECTED], debug-test DEBUG (com.canoo.webtest.reporting.StepExecutionListener) - isToIgnore: [EMAIL PROTECTED], debug-test DEBUG (com.canoo.webtest.ant.TestStepSequence) - Executing step [EMAIL PROTECTED]
ifStep
DEBUG (com.canoo.webtest.reporting.StepExecutionListener) - isToIgnore: [EMAIL PROTECTED], debug-test
DEBUG (com.canoo.webtest.reporting.StepResult) - In retrieveNestedText
DEBUG (com.canoo.webtest.ant.WebtestPropertyHelper) - Notifying listeners of properties expansion: ${user.disabled} -> false DEBUG (com.canoo.webtest.ant.WebtestPropertyHelper) - Notifying [EMAIL PROTECTED] of properties expansion: ${user.disabled} -> false DEBUG (com.canoo.webtest.ant.WebtestPropertyHelper) - Notifying listeners of properties expansion: ${user.disabled} -> false DEBUG (com.canoo.webtest.ant.WebtestPropertyHelper) - Notifying [EMAIL PROTECTED] of properties expansion: ${user.disabled} -> false
INFO (com.canoo.webtest.steps.Step) - >>>> Start Step: ifStep (35/40)
DEBUG (com.canoo.webtest.steps.Step) - Executing ifStep (35/40)
DEBUG (com.canoo.webtest.steps.Step) - Finished ifStep (35/40)
DEBUG (com.canoo.webtest.steps.Step) - Completed Step: ifStep (35/40)
DEBUG (com.canoo.webtest.steps.Step) - Step didn't produce results, no need to notifying listeners
DEBUG (com.canoo.webtest.steps.Step) - <<<< Successful Step: ifStep (35/40)
DEBUG (com.canoo.webtest.reporting.StepExecutionListener) - isToIgnore: [EMAIL PROTECTED], debug-test DEBUG (com.canoo.webtest.reporting.StepExecutionListener) - isToIgnore: [EMAIL PROTECTED], debug-test DEBUG (com.canoo.webtest.reporting.StepResult) - Constructing result for non executed task: setCheckbox
DEBUG (com.canoo.webtest.reporting.StepResult) - In retrieveNestedText
DEBUG (com.canoo.webtest.ant.TestStepSequence) - Executing step [EMAIL PROTECTED]
Hi Andrew,

what do you mean with "doesn't work"? Isn't the checkbox found or does a
problem occur when checking it? What says the log?

Marc.

begin:vcard
fn:Andrew Sickorsky
n:Sickorsky;Andrew
org:texunatech
adr;dom:;;Magistralnaya street, 5 - 33;Moscow
email;internet:[EMAIL PROTECTED]
title:Tester
tel;work:+7 495 9809067
tel;cell:+7 909 9070328
x-mozilla-html:TRUE
url:www.texunatech.com
version:2.1
end:vcard

Reply via email to