Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Lenya Wiki" for change 
notification.

The following page has been changed by RenaudRichardet:
http://wiki.apache.org/lenya/WebTest

The comment on the change is:
started a new page for webtest

New page:
- Target-audience: '''beginner-intermediate''' [[BR]]
- Target-role: '''QA/Test'''  [[BR]]
- Target-release: 1.2.X[[BR]]
- Doc-status: '''draft''' [[BR]]

===== What you will get from this page =====

A quick intro to Canoo Webtest, how the basic tests for lenya works and how to 
make your own tests

----

== Setup ==

First, [http://webtest.canoo.com/webtest/manual/Downloads.html download] and 
[http://webtest.canoo.com/webtest/manual/install.html install] webtest.

== How Canoo WebTest works ==

Canoo WebTest lets you specify test steps like
 * get the lenya welcome page
 * validate the page title to be Login Page
 * get the publication and login page
 * fill lenya in the username text field and levi in the password field
 * hit the ok button
 * validate the page title to be Home Page

This is how the first steps look in a webtest test (lenya_welcome.xml):

{{{
<?xml version="1.0" encoding="UTF-8"?>
<project name="SimpleTest" basedir="." default="main">
  
   <property webtest.home=/YOUR_WEBTEST_HOME/>
  
  <taskdef file="${webtest.home}/webtestTaskdefs.properties">
    <classpath>
      <fileset dir="${webtest.home}" includes="**/lib/*.jar"/>
    </classpath>
  </taskdef>
  
  <target name="main">
    <testSpec name="myTest">
      <config host="localhost" port="8080" protocol="http" basepath="lenya"/>
      <steps>
        <invoke stepid="load welcome page" 
         url="index.html"/>
        <verifyTitle stepid="we should see the welcome page of lenya cms" 
         text="Apache Lenya - Content Management System"/>
      </steps>
    </testSpec>
  </target>

</project>
}}}
You can invoke it by typing "sh bin/webtest.sh -buildfile 
/home/ren/src/myStuff/webtest/lenya_welcome.xml"

== Webtests for Lenya's TestCases ==

TODO


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to