Test itself (part):
<setFileField
xpath="//[EMAIL PROTECTED]'import-excel']//[EMAIL PROTECTED]'field']"
fileName="${analysis-test-web.dir}/testdata/${excel.name}"/>
<clickElement
xpath="//[EMAIL PROTECTED]'import-excel']//[EMAIL PROTECTED]'upload-button']"/>
And here is stacktrace (note, that I have replaced htmlunit from R1551
with recently downloaded)
2007-07-31 17:52:09,601 [INFO,Step,main] >>>> Start Step: setFileField
(17/31)
clickElement
2007-07-31 17:52:09,616 [INFO,Step,main] >>>> Start Step: clickElement
(18/31)
2007-07-31 17:52:09,616 [INFO,AbstractTargetAction,main] -> gotoTarget
by clickElement with xpath:
//[EMAIL PROTECTED]'import-excel']//[EMAIL PROTECTED]'upload-button']
2007-07-31 17:52:09,663 [INFO,WebClientContext,main] Content of window
changed to about:blank (text/html)
2007-07-31 17:52:09,663 [INFO,WebClientContext,main] Content of window
changed with javascript, it will NOT become current response
2007-07-31 17:52:09,726 [INFO,Step,main] Running with: Canoo Webtest:
R_1551.
2007-07-31 17:52:09,741 [INFO,Step,main] Exception thrown from this
class: java.lang.IllegalArgumentException
2007-07-31 17:52:09,741 [INFO,Step,main] Message was: Invalid 'value'
attribute: H:\texuna\services-new\analysis\test-web\testdata\excelfeed.xls
2007-07-31 17:52:09,741 [ERROR,Step,main] Cannot handle unexpected
exception in step ClickElement at
H:\texuna\services-new\analysis\test-web\use-cases\debug-test.xml:8:
with (taskName="clickElement")
java.lang.IllegalArgumentException: Invalid 'value' attribute:
H:\texuna\services-new\analysis\test-web\testdata\excelfeed.xls
at
com.gargoylesoftware.htmlunit.html.HtmlFileInput.getSubmitKeyValuePairs(HtmlFileInput.java:118)
at
com.gargoylesoftware.htmlunit.html.HtmlForm.getParameterListForSubmit(HtmlForm.java:259)
at com.gargoylesoftware.htmlunit.html.HtmlForm.submit(HtmlForm.java:189)
at
com.gargoylesoftware.htmlunit.html.HtmlImageInput.doClickAction(HtmlImageInput.java:150)
at
com.gargoylesoftware.htmlunit.html.ClickableElement.click(ClickableElement.java:129)
at
com.gargoylesoftware.htmlunit.html.ClickableElement.click(ClickableElement.java:87)
at
com.gargoylesoftware.htmlunit.html.HtmlImageInput.click(HtmlImageInput.java:176)
at
com.gargoylesoftware.htmlunit.html.HtmlImageInput.click(HtmlImageInput.java:132)
at
com.canoo.webtest.steps.request.ClickElement.findTarget(ClickElement.java:73)
at
com.canoo.webtest.steps.request.AbstractTargetAction$1.call(AbstractTargetAction.java:108)
at
com.canoo.webtest.steps.request.TargetHelper.protectedGoto(TargetHelper.java:88)
at
com.canoo.webtest.steps.request.AbstractTargetAction.gotoTarget(AbstractTargetAction.java:106)
at
com.canoo.webtest.steps.request.AbstractTargetAction.doExecute(AbstractTargetAction.java:78)
at com.canoo.webtest.steps.Step.execute(Step.java:104)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at
com.canoo.webtest.ant.TestStepSequence.executeSteps(TestStepSequence.java:43)
at
com.canoo.webtest.ant.TestStepSequence.doExecute(TestStepSequence.java:31)
at com.canoo.webtest.steps.Step.execute(Step.java:104)
at org.apache.tools.ant.Task.perform(Task.java:364)
at com.canoo.webtest.ant.WebtestTask.execute(WebtestTask.java:164)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:341)
at org.apache.tools.ant.Target.performTasks(Target.java:369)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
at
org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:37)
at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:382)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:341)
at org.apache.tools.ant.Target.performTasks(Target.java:369)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
at org.apache.tools.ant.Main.runBuild(Main.java:668)
at org.apache.tools.ant.Main.startAnt(Main.java:187)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.intellij.rt.ant.execution.AntMain2.main(AntMain2.java:17)
2007-07-31 17:52:09,757 [INFO,Step,main] Running with: Canoo Webtest:
R_1551.
2007-07-31 17:52:09,757 [INFO,Step,main] Exception thrown from this
class: com.canoo.webtest.engine.StepExecutionException
2007-07-31 17:52:09,757 [INFO,Step,main] Message was: Unexpected
exception caught: java.lang.IllegalArgumentException: Invalid 'value'
attribute: H:\texuna\services-new\analysis\test-web\testdata\excelfeed.xls
H:\texuna\services-new\analysis\test-web\use-cases\debug-test.xml:8:
Unexpected exception caught: java.lang.IllegalArgumentException: Invalid
'value' attribute:
H:\texuna\services-new\analysis\test-web\testdata\excelfeed.xls, Step:
ClickElement at
H:\texuna\services-new\analysis\test-web\use-cases\debug-test.xml:8:
with (taskName="clickElement")
2007-07-31 17:52:09,773 [INFO,Step,main] Running with: Canoo Webtest:
R_1551.
2007-07-31 17:52:09,773 [INFO,Step,main] Exception thrown from this
class: com.canoo.webtest.engine.StepExecutionException
2007-07-31 17:52:09,773 [INFO,Step,main] Message was: Unexpected
exception caught: java.lang.IllegalArgumentException: Invalid 'value'
attribute: H:\texuna\services-new\analysis\test-web\testdata\excelfeed.xls
H:\texuna\services-new\analysis\test-web\use-cases\debug-test.xml:8:
Unexpected exception caught: java.lang.IllegalArgumentException: Invalid
'value' attribute:
H:\texuna\services-new\analysis\test-web\testdata\excelfeed.xls, Step:
ClickElement at
H:\texuna\services-new\analysis\test-web\use-cases\debug-test.xml:8:
with (taskName="clickElement")
2007-07-31 17:52:09,788 [INFO,WebtestTask,main] Finished executing
webtest "debug-test"
(H:\texuna\services-new\analysis\test-web\use-cases\web-tests.xml:87: )
2007-07-31 17:52:10,538 [INFO,WebtestTask,main] Test report successfully
created.
H:\texuna\services-new\analysis\test-web\use-cases\web-tests.xml:87:
Canoo Webtest: R_1551.
Test failed.
Exception raised: java.lang.IllegalArgumentException: Invalid 'value'
attribute:
H:\texuna\services-new\analysis\test-web\testdata\excelfeed.xlsjava.lang.IllegalArgumentException:
Invalid 'value' attribute:
H:\texuna\services-new\analysis\test-web\testdata\excelfeed.xls
H:\texuna\services-new\analysis\test-web\use-cases\web-tests.xml:87:
Canoo Webtest: R_1551.
Test failed.
Exception raised: java.lang.IllegalArgumentException: Invalid 'value'
attribute:
H:\texuna\services-new\analysis\test-web\testdata\excelfeed.xlsjava.lang.IllegalArgumentException:
Invalid 'value' attribute:
H:\texuna\services-new\analysis\test-web\testdata\excelfeed.xls
H:\texuna\services-new\platform\build.xml:670: The following error
occurred while executing this line:
H:\texuna\services-new\platform\build.xml:670: The following error
occurred while executing this line:
H:\texuna\services-new\platform\build.xml:670: The following error
occurred while executing this line:
Ant build completed with 7 errors one warning in 33s at 17:52:11
can you provide the stacktrace of the exception you got with this htmlunit
build?
Marc.
begin:vcard
fn:Andrew Sickorsky
n:Sickorsky;Andrew
org:Texuna Technologies Ltd.
email;internet:[EMAIL PROTECTED]
title:Tester
tel;cell:+7 909 9070328
x-mozilla-html:TRUE
url:www.texunatech.com
version:2.1
end:vcard