-
Notifications
You must be signed in to change notification settings - Fork 2
Datasets
Toseter edited this page Sep 2, 2011
·
1 revision
Selenium runner supports datasets. Dataset is start state of the variables of test. For each dataset creates clone of the test. So if you have test , than link dataSets file with 5 datasets, after parsing you will have 5 different tests.
To link dataSet to test simply add link tag:
<link rel="dataSet" href="dataSet.ds"/>
Example dataSets file, in one file can be several datasets , for each dataset use one table:
<?xml version="1.0" encoding="UTF-8"?>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head profile="http://selenium-ide.openqa.org/profiles/test-case">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title>dataSets</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr>
<td rowspan="1" colspan="3">first data set</td>
</tr>
</thead>
<tbody>
<tr>
<td>name</td>
<td>some value</td>
</tr>
<tr>
<td>other_name</td>
<td>some value</td>
</tr>
</tbody>
</table>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr>
<td rowspan="1" colspan="3">second data set</td>
</tr>
</thead>
<tbody>
<tr>
<td>name</td>
<td>some value</td>
</tr>
<tr>
<td>other_name</td>
<td>some value</td>
</tr>
</tbody>
</table>
</body>
</html>