Code Search for Developers
 
 
  

fineGrainedTests.xml from Jameleon at Krugle


Show fineGrainedTests.xml syntax highlighted

<?xml version="1.0"?>
<!--
      Jameleon - An automation testing tool..
    Copyright (C) 2003 Christian W. Hargraves (engrean@hotmail.com)
    
    This library is free software; you can redistribute it and/or
    modify it under the terms of the GNU Lesser General Public
    License as published by the Free Software Foundation; either
    version 2.1 of the License, or (at your option) any later version.

    This library is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
    Lesser General Public License for more details.

    You should have received a copy of the GNU Lesser General Public
    License along with this library; if not, write to the Free Software
    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-->
<testcase xmlns="jelly:jameleon">
  <test-case-author>Christian Hargraves</test-case-author>
  <test-case-level>FUNCTIONAL</test-case-level>
  <application-tested>htmlunit plug-in</application-tested>
  <junit-session>
    <postcondition>
      <execute-jameleon-script 
          functionId="htmlunit-click will fail when an non-existent link is passed"
          script="tst/xml/framework/htmlunit-click-fail01.xml"
          checkOutcomeFailed="true"
          htmlLineNumFailed="37"
          testCaseName="click on non-existent link"
          htmlLineFailedReason="No element found to click on that matches the given XPath '//form[@id='formfields']/input[@value='no field']'"
          htmlLineFailedFunctionId="Click on a non-existent field"
          />

      <execute-jameleon-script 
          functionId="htmlunit-click will fail when a non-clickable element is passed"
          script="tst/xml/framework/htmlunit-click-fail02.xml"
          checkOutcomeFailed="true"
          htmlLineNumFailed="37"
          testCaseName="click on non-clickable element"
          htmlLineFailedReason="The element returned (head) can not be clicked on"
          htmlLineFailedFunctionId="Click on a non-clickable html element"
          />

      <execute-jameleon-script 
          functionId="htmlunit-navigate will fail when attempting to go to a non-existent place"
          script="tst/xml/framework/htmlunit-navigate-bad-path.xml"
          checkOutcomeFailed="true"
          htmlLineNumFailed="30"
          testCaseName="htmlunit-navigate-bad-path"
          htmlLineFailedReason="Could not coneect to 'file:./tst/html/nonexistentfile.html'."
          htmlLineFailedFunctionId="Navigate to a bad path 'file:./tst/html/nonexistentfile.html'"
          />

      <execute-jameleon-script 
          functionId="htmlunit-navigate will fail when attempting to go to an invalid URL"
          script="tst/xml/framework/htmlunit-navigate-bad-url.xml"
          checkOutcomeFailed="true"
          htmlLineNumFailed="30"
          testCaseName="htmlunit-navigate-bad-url"
          htmlLineFailedReason="The provided url 'foo://some_strange_url' is not valid."
          htmlLineFailedFunctionId="Navigate to bad url 'foo://some_strange_url'"
          />

      <execute-jameleon-script 
          functionId="htmlunit-set-file-field will fail when attempting to set a non-file field"
          script="tst/xml/framework/htmlunit-set-file-field-non-file-field.xml"
          checkOutcomeFailed="true"
          htmlLineNumFailed="37"
          testCaseName="htmlunit-set-file-field-non-file-field"
          htmlLineFailedReason="Input type expected:&lt;[file]&gt; but was:&lt;[text]&gt;"
          htmlLineFailedFunctionId="Set a text field with the file-field tag"
          />

      <execute-jameleon-script 
          functionId="htmlunit-set-file-field will fail when attempting to set a non-existent field"
          script="tst/xml/framework/htmlunit-set-file-field-non-existent.xml"
          checkOutcomeFailed="true"
          htmlLineNumFailed="37"
          testCaseName="htmlunit-set-file-field-non-existent"
          htmlLineFailedReason="Could not find the input element defined by '//form[@name='testform1']/input[@name='lkjljkl']'"
          htmlLineFailedFunctionId="Set a the value on a non-existent field"
          />
      
      <execute-jameleon-script 
          functionId="htmlunit-validate will fail when trying to validate non-existing textPresent"
          script="tst/xml/framework/htmlunit-validate-textPresent-fail.xml"
          checkOutcomeFailed="true"
          htmlLineNumFailed="31"
          testCaseName="htmlunit-validate-textPresent-fail"
          htmlLineFailedReason="good that text wasn't found!"
          htmlLineFailedFunctionId="Validate that 'blah blah no way defined!' exists on the page"
          />

      <execute-jameleon-script 
          functionId="htmlunit-validate will fail when trying to validate a non-matching title"
          script="tst/xml/framework/htmlunit-validate-title-fail.xml"
          checkOutcomeFailed="true"
          htmlLineNumFailed="30"
          testCaseName="htmlunit-validate-title-fail"
          htmlLineFailedFunctionId="Validate with a bad title"
          />

      <execute-jameleon-script 
          functionId="htmlunit-validate will fail when trying to validate a non-matching title"
          script="tst/xml/framework/htmlunit-validate-xpath-fail.xml"
          checkOutcomeFailed="true"
          htmlLineNumFailed="32"
          testCaseName="validate xpath fail"
          htmlLineFailedReason="XPath '/html/head[title='tables pag']' not found on current page"
          htmlLineFailedFunctionId="Validate '/html/head[title='tables page']'"
          />
    </postcondition>
  </junit-session>
</testcase>




See more files for this project here

Jameleon

Jameleon is a data-driven automated testing tool that is easily extensible via plug-ins. Features of applications are automated in Java and tied together independently in XML, creating self-documenting automated test cases.

Project homepage: http://sourceforge.net/projects/jameleon
Programming language(s): Java,XML
License: other

  fineGrainedTests.xml
  htmlunit-click-success.xml
  htmlunit-custom-tag-test.xml
  htmlunit-navigate-success.xml
  htmlunit-record-alerts.xml
  htmlunit-set-checkbox-success.xml
  htmlunit-set-file-field-success.xml
  htmlunit-set-hidden-field-success.xml
  htmlunit-set-password-field-success.xml
  htmlunit-set-radio-button-success.xml
  htmlunit-set-select-field-success.xml
  htmlunit-set-text-area-success.xml
  htmlunit-set-text-field-success.xml
  htmlunit-test-on-load.xml
  htmlunit-validate-textPresent-success.xml
  htmlunit-validate-title-success.xml
  htmlunit-validate-xpath-success.xml
  sampleTest.xml