<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<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" />
<link rel="selenium.base" href="https://apps.enda.eu/e-kommu/" />
<title>21CSV-Import</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">21CSV-Import</td></tr>
</thead><tbody>
<!--Öffne Seite-->
<tr>
	<td>click</td>
	<td>id=menu-csv-import</td>
	<td></td>
</tr>
<tr>
	<td>waitForPageToLoad</td>
	<td>300000</td>
	<td></td>
</tr>
<!--Schiebe ein paar MB hoch-->
<tr>
	<td>click</td>
	<td>xpath=(//input[@name='mode'])[3]</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>id=sfile_uploaded_file</td>
	<td>/home/tlu/devel/e-kommu/testsuite/big-import.csv</td>
</tr>
<tr>
	<td>click</td>
	<td>name=commit</td>
	<td></td>
</tr>
<!--Prüfe ein paar Texte-->
<tr>
	<td>waitForPageToLoad</td>
	<td>900000</td>
	<td></td>
</tr>
<tr>
	<td>assertElementPresent</td>
	<td>xpath=//div[@id='fehlerliste' and contains(text(), 'Es traten keine Fehler auf')]</td>
	<td></td>
</tr>
<tr>
	<td>assertElementPresent</td>
	<td>xpath=//div[@id='meldungen' and contains(text(), 'Es wurden 5 Tabellen gefunden')]</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>xpath=//input[@name='commit' and @value='Import durchführen']</td>
	<td></td>
</tr>
<tr>
	<td>waitForPageToLoad</td>
	<td>900000</td>
	<td></td>
</tr>
<tr>
	<td>assertElementPresent</td>
	<td>xpath=//div[@id='fehlerliste' and contains(text(), 'Es traten keine Fehler auf')]</td>
	<td></td>
</tr>
</tbody></table>
</body>
</html>
