Re: any assistance is appreciated...

[email protected]
Newsgroups gmane.comp.web.canoo.webtest
Message-ID <OFAFBCDC97.39EAC32C-ON85257B2C.00719BB8-85257B2C.0071B0D6@uscmail.uscourts.gov>
This test fails at the submit with a javascript error. 
application/x-javascript     - just not sure how to address it.  I have 
tried with/ without javascript enabled.


The xmltest.

  <target name="wt.testInWork">
    <webtest name="ijenieLandingPage.xml">
      <config host="ijenie.ao.dcn/jenie/iwps/myportal" port="443" 
protocol="https" showhtmlparseroutput="true" />
      <steps>
                <invoke url="https://ijenie.ao.dcn/jenie/iwps/myportal" 
description="get Login Page" />
                <verifyTitle text="JENIE Log-in" />
                <selectForm description="pkmslogin" name="form" />
                <setInputField description="user" name="usernameEntered" 
value="James Saxton" />
                <setInputField description="pw" name="password" 
value="Watch413" />
        <!-- enableJavaScript enable="false" -->
                <clickButton name="SUBMIT2" />
        <!-- /enableJavaScript -->
       </steps>
    </webtest>
  </target>
</project>


The result:



wt.webtestMonitor:
     [echo] /opt/canoo/tools/WebTestMonitor.groovy

wt.defineMacros:
     [echo] No macro to define

wt.generateDtd:
[groovyScript] Scanning for entities...
[groovyScript] 0 entities found
[groovyScript] Already uptodate: 
/opt/canoo/myWebTestProject/tests/JeniePortal/tests/dtd/Project.dtd

wt.generateDefinitions:
[groovyScript] Definitions dir not found: 
/opt/canoo/myWebTestProject/tests/JeniePortal/tests/definitions. Ignoring.

wt.createReportsFolder:

wt.deleteReports:

wt.parallel.init:

wt.before.testInWork:

wt.testInWork:
  [webtest]  INFO (com.canoo.webtest.ant.WebtestTask) - Starting webtest 
"ijenieLandingPage.xml" 
(/opt/canoo/myWebTestProject/tests/JeniePortal/tests/ijenieLandingPage.xml:7: 
)
  [webtest]  INFO (com.canoo.webtest.ant.WebtestTask) - Canoo Webtest: 
R_1758.
   [config]  INFO (com.canoo.webtest.engine.Configuration) - Using 
haltonerror from project property wt.config.haltonerror: false
   [config]  INFO (com.canoo.webtest.engine.Configuration) - Using 
haltonfailure from project property wt.config.haltonfailure: false
   [config]  INFO (com.canoo.webtest.engine.Configuration) - Using 
resultpath from project property wt.config.resultpath: 
/opt/canoo/myWebTestProject/tests/JeniePortal/tests/results
   [config]  INFO (com.canoo.webtest.engine.Configuration) - Using 
saveresponse from project property wt.config.saveresponse: true
   [config]  INFO (com.canoo.webtest.engine.Configuration) - Using summary 
from project property wt.config.summary: true
   [config]  INFO (com.canoo.webtest.engine.Configuration) - Creating 
result directory: 
/opt/canoo/myWebTestProject/tests/JeniePortal/tests/results/001_IjenieLandingPag
   [config]  INFO (com.canoo.webtest.engine.Configuration) - Surfing with 
default browser Mozilla/4.0 (compatible; MSIE 6.0; Windows 98)
    [steps]  INFO (com.canoo.webtest.steps.Step) - >>>> Start Step: steps 
(1/6)
   [invoke]  INFO (com.canoo.webtest.steps.Step) - >>>> Start Step: invoke 
"get Login Page" (1/6)
   [invoke]  INFO (com.canoo.webtest.steps.request.TargetHelper) - getting 
response for url: https://ijenie.ao.dcn/jenie/iwps/myportal
   [invoke]  INFO (com.canoo.webtest.engine.WebClientContext) - Content of 
window changed to https://ijenie.ao.dcn/jenie/iwps/myportal (text/html)
   [invoke]  INFO (com.canoo.webtest.engine.WebClientContext) - Content 
loaded in newly opened window, its content will become current response
   [invoke]  INFO (com.canoo.webtest.engine.WebClientContext) - Current 
form set to none
   [invoke]  INFO (com.canoo.webtest.engine.WebClientContext) - Current 
response now: https://ijenie.ao.dcn/jenie/iwps/myportal
[verifyTitle]  INFO (com.canoo.webtest.steps.Step) - >>>> Start Step: 
verifyTitle (2/6)
[selectForm]  INFO (com.canoo.webtest.steps.Step) - >>>> Start Step: 
selectForm "pkmslogin" (3/6)
[selectForm]  INFO (com.canoo.webtest.engine.WebClientContext) - Current 
form set to (action=/pkmslogin.form)
[setInputField]  INFO (com.canoo.webtest.steps.Step) - >>>> Start Step: 
setInputField "user" (4/6)
[setInputField]  INFO (com.canoo.webtest.steps.form.AbstractSetFieldStep) 
- Found 1 suitable fields, considering only the first one
[setInputField]  INFO (com.canoo.webtest.steps.Step) - >>>> Start Step: 
setInputField "pw" (5/6)
[setInputField]  INFO (com.canoo.webtest.steps.form.AbstractSetFieldStep) 
- Found 1 suitable fields, considering only the first one
[clickButton]  INFO (com.canoo.webtest.steps.Step) - >>>> Start Step: 
clickButton (6/6)
[clickButton]  INFO (com.canoo.webtest.steps.request.ClickButton) - -> 
findTarget(by input): name=SUBMIT2 value=Log-in
[clickButton]  WARN (com.gargoylesoftware.htmlunit.html.HtmlPage) - 
Expected content type of 'application/javascript' or 
'application/ecmascript' for remotely loaded JavaScript element at 
'https://ijenie.ao.dcn/jenie/portal_dojo/v1.4.3/dojo/dojo.js', but got 
'application/x-javascript'.
[clickButton]  WARN 
(com.gargoylesoftware.htmlunit.javascript.host.HTMLDocument) - Nothing 
done for execCommand(BackgroundImageCache, ...) (feature not implemented)
 INFO (com.canoo.webtest.engine.WebClientContext) - Responses restored
 INFO (com.canoo.webtest.ant.WebtestTask) - Finished executing webtest 
"ijenieLandingPage.xml" 
(/opt/canoo/myWebTestProject/tests/JeniePortal/tests/ijenieLandingPage.xml:7: 
)
 INFO (com.canoo.webtest.reporting.XmlReporter) - Writing report to 
/opt/canoo/myWebTestProject/tests/JeniePortal/tests/results/001_IjenieLandingPag/WebTestReport.xml
 INFO (com.canoo.webtest.ant.WebtestTask) - Test report successfully 
created.

wt.groovyTests:
[groovyScript] Test dir for Groovy WebTest doesn't exist

wt.parallel.waitForCompletion:

wt.htmlReports.init:

wt.htmlReports:
    [mkdir] Created dir: 
/opt/canoo/myWebTestProject/tests/JeniePortal/tests/results/resources
     [copy] Copying 20 files to 
/opt/canoo/myWebTestProject/tests/JeniePortal/tests/results/resources
     [xslt] Transforming into 
/opt/canoo/myWebTestProject/tests/JeniePortal/tests/results
     [xslt] Processing 
/opt/canoo/myWebTestProject/tests/JeniePortal/tests/results/001_IjenieLandingPag/WebTestReport.xml 
to 
/opt/canoo/myWebTestProject/tests/JeniePortal/tests/results/001_IjenieLandingPag/WebTestReport.html
     [xslt] Loading stylesheet /opt/canoo/resources/WebTestReport.xsl
     [xslt] Transforming into 
/opt/canoo/myWebTestProject/tests/JeniePortal/tests/results
     [xslt] Processing 
/opt/canoo/myWebTestProject/tests/JeniePortal/tests/results/001_IjenieLandingPag/WebTestReport.xml 
to 
/opt/canoo/myWebTestProject/tests/JeniePortal/tests/results/001_IjenieLandingPag/WebTestSummary.xml
     [xslt] Loading stylesheet 
/opt/canoo/resources/WebTestReportSummaryExtractor.xsl
[groovyScript] Reading 
/opt/canoo/myWebTestProject/tests/JeniePortal/tests/results/001_IjenieLandingPag/WebTestSummary.xml
[groovyScript] Writing 
/opt/canoo/myWebTestProject/tests/JeniePortal/tests/results/WebTestOverview.xml
     [xslt] Processing 
/opt/canoo/myWebTestProject/tests/JeniePortal/tests/results/WebTestOverview.xml 
to /opt/canoo/myWebTestProject/tests/JeniePortal/tests/results/index.html
     [xslt] Loading stylesheet 
/opt/canoo/resources/WebTestReportOverview.xsl

wt.openResultFile.init:

wt.openResultFile:
     [echo] Opening result file 
/opt/canoo/myWebTestProject/tests/JeniePortal/tests/results/index.html 
with firefox

wt.junitLikeReports:
     [xslt] Processing 
/opt/canoo/myWebTestProject/tests/JeniePortal/tests/results/WebTestOverview.xml 
to 
/opt/canoo/myWebTestProject/tests/JeniePortal/tests/results/WebTestOverview.junit.xml
     [xslt] Loading stylesheet 
/opt/canoo/resources/WebTestOverview2JUnit.xsl

wt.countWebtestResults:

BUILD FAILED
/opt/canoo/webtest.xml:431: 1 of 1 webtests have failed (0 successful)!






James Saxton
OIT-SDSD
Administrative Office of the United States Courts 
Remote: 908-910-5566
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.