Hello everyone, I'm trying to use the installTest.xml that was provided
with the WebTest build R_1812 and needed to change the browser to the
version I have installed (this is on a W7 box if that matters).
In the installTest.xml, I have these configs defined:
<config
host="vmware4-2"
port="8080"
basepath="/"
browser="IE8"
haltonfailure="true"
protocol="http"/>
But in running the test, I get this error(java.lang.NoSuchFieldError:
INTERNET_EXPLORER_8). I also tried specifying the value as
InternetExplorer8 per the canoo website but got the same error. I realize
this is really htmlunit running underneath but wonder why it's not working?
Thanks in advance.
c:\Webtest\myWebTestProject\tests>webtest -f installtest.xml
"C:\Program Files\Java\jdk1.6.0_26\bin\java.exe" -Xms64M -Xmx256M -cp
"C:\Users\enguyen\WebTest\bin\..\lib\ant-launcher-
1.7.0.jar" -Dant.library.dir="C:\Users\enguyen\WebTest\bin\..\lib"
"-Dlog4j.configuration=file:/C:\Users\enguyen\WebTest
\bin\..\lib/log4j.properties" org.apache.tools.ant.launch.Launcher
-nouserlib -lib "C:\Users\enguyen\WebTest\bin\..\lib\
build;C:\Users\enguyen\WebTest\bin\..\lib\build\clover.jar" -f
installtest.xml
Buildfile: installtest.xml
checkANT:
mayPrintANTError:
wt.init:
wt.defineTasks.init:
~wt.defineTasks.defineClasspath:
wt.defineTasks:
checkWebTest:
[echo] webtest.home is c:\Webtest\myWebTestProject\tests\..\..
[webtest] INFO (com.canoo.webtest.ant.WebtestTask) - Starting webtest
"check calling and parsing a local file" (c:\We
btest\myWebTestProject\tests\installtest.xml:10: )
[webtest] INFO (com.canoo.webtest.ant.WebtestTask) - Canoo Webtest:
R_1812.
[config] INFO (com.canoo.webtest.engine.Configuration) - Using
haltonerror from project property wt.config.haltonerr
or: false
[config] INFO (com.canoo.webtest.engine.Configuration) - Using
resultpath from project property wt.config.resultpath
: c:\Webtest\myWebTestProject\tests\results
[config] INFO (com.canoo.webtest.engine.Configuration) - Using
saveresponse from project property wt.config.saveresp
onse: true
[config] INFO (com.canoo.webtest.engine.Configuration) - Creating
result directory: c:\Webtest\myWebTestProject\test
s\results\013_CheckCallingAndParsingALocalFile
BUILD FAILED
c:\Webtest\myWebTestProject\tests\installtest.xml:17:
java.lang.NoSuchFieldError: INTERNET_EXPLORER_8
Total time: 1 second