Personal tools
You are here: Home   Documentation (new section)   Tutorials   KSS testing how-to for Plone 3.1   Running the tests  
 
Document Actions

Running the tests

How to run the tests that are already present inside Plone KSS.

beppe

This tutorial will show how to setup your enviroment and to run and create tests for KSS on Plone 3.1 using Selenium IDE.
Page 2 of 4.

Now we have to go to the Zope root and click on demo (demo)

Running the KSS demo

You have now the KSS demo page where you can run tests, run demos and change the mode on the fly.

You can see that the KSS demo at start is in production mode and you can also switch it to development mode through the "setup" button.

You can see that under the Tests section there are two input boxes and two buttons: the input boxes must be filled with the username and password of your Zope manager account: this is required since some tests need to create content inside your Zope without leaving you logged in until the browser closes. It defaults to admin / admin.

Also, the list under Run Selenium tests shows also all the Applications which have tests registered for: currently, only kss.core (which isn't really an application since it's always there) and Plone.

By clicking the Run button next to the list item you will run the test suites registered for that application.

If this paragraph confused you, just click the Run button near Application Plone: we guarantee it will not make your system explode.

We will see the meaning of Application, registration of tests suites et al later on.

KSS demo homepage

Now you have to change the final part of the path in the address bar to /plone-static-suite.html (for ex. http://localhost:8080/zuite/core/TestRunner.html?test=http://localhost:8080/demo/plone-static-suite.html)

Now you can notice there are three frame in the top of the page. The first at left contains the tests suite that you can run, in the middle you can see the steps of the current test and at the right there is the Selenium TestRunner tool.

In the Selinium TestRunner the first button (1) work to run all tests. The second button (2) work to run the test that you have selected.

Selenium test runner

 
by Beppe Zizza last modified 2008-04-08 13:27
Contributors: shywolf9982