This is the simple login test case script:
<webtest name="Valid - Login to PFW's website"> <config basepath="">
<header name="User-Agent" value="Mozilla/4.0 (compatible; MSIE 7.0;
Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.1)"/>
</config> &Login; <setInputField
name="username" value="joe" /> <setInputField name="password"
value="welcome" /> <clickButton label="Submit" /></webtest>
Upon execution I get an WARN: "Script is not JavaScript (type: , language:
VBScript). Skipping execution" that seems to indicate I have VBScript code.
The page uses VBScript code to load an acrobat plugin. One day we'll make this
javascript code, but at the moment I need it to **ignore VBScript**.
[steps] INFO (com.canoo.webtest.steps.Step) - >>>> Start Step: steps
"Implicit <steps> task" (1/5)
[invoke] INFO (com.canoo.webtest.steps.Step) - >>>> Start Step: invoke "Login
page" (1/5)
[invoke] INFO (com.canoo.webtest.steps.request.TargetHelper) - getting
response for url: https://mywebsite.com
[invoke] WARN (com.gargoylesoftware.htmlunit.html.HtmlScript) - Script is not
JavaScript (type: , language: VBScript). Skipping execution.
INFO (com.canoo.webtest.engine.WebClientContext) - Responses restored
The test fails with this error:
JavaScript error loading page
https://mywebsite.com/login?login:username=:
ReferenceError: "VBgetAcrobat" is not defined.
(https://mywebsite.com/login.js#108)
Is there anyway around this? I looked at the documentation and could not find
any flags or other information to ignore embedded VBScript.
Thanks!