• Target-audience: beginner-intermediate
  • Target-role: QA/Test
  • Target-release: 1.2.X
  • Doc-status: draft
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


First, download and 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">
      <fileset dir="${webtest.home}" includes="**/lib/*.jar"/>
  <target name="main">
    <testSpec name="myTest">
      <config host="localhost" port="8080" protocol="http" basepath="lenya"/>
        <invoke stepid="load welcome page" 
        <verifyTitle stepid="we should see the welcome page of lenya cms" 
         text="Apache Lenya - Content Management System"/>


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

Webtests for Lenya's TestCases


  • No labels