Slimdog

Using properties


Certain information may be the same in all testcases. Like the base url or the username and password you are using for your tests. In order to be able to switch such parmaters you can include them in property files and tell the testcase to include the properties.

Example


The following example assumes that you have your testcases in a directory called my_testcases.

1. create a property file

Create a property file called test.properties and save it in the same directory as your testcases. Put in the following line:

base_url=http://localhost/myapp

2. Use the property


Open one of your testcases and replace the following line:

get_html | http://localhost/myapp/test.page

with:

read_properties | my_testcases/test.properties
het_html | ${base_url}/test.page

Commands that support properties


Project

Home News

Documentation

Documentation Getting started Simple navigation Testing forms Testing tables Command reference Examples Future plans javadoc

Users

Changelog Downloads Users SourceForge.net Logo