Newer
Older
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE project [
<!ENTITY time SYSTEM "../modules/time.xml">
<!ENTITY checkForErrors SYSTEM "../modules/errors.xml">
<!ENTITY verifyLinksAndImages SYSTEM "../modules/common_pages.xml">
]>
<project name="Smoke test level0 - deploy test" basedir="." default="webtest">
&time;
<target name="webtest">
<webtest name="unit tests">
<steps>
<echo>Piwik install - dbsetup: db.name: ${db.name}</echo>
<sql
driver="com.mysql.jdbc.Driver"
url="jdbc:mysql://${db.host}:${db.port}/"
userid="${db.username}"
password="${db.password}"
>
<classpath>
<pathelement location="${basedir}/../lib/java/mysql-connector-java-5.1.7.jar" />
</classpath>
<transaction>
DROP DATABASE IF EXISTS ${db.name};
</transaction>
<transaction>
CREATE DATABASE IF NOT EXISTS ${db.name};
</transaction>
</sql>
<antWrapper>
<replace file="${basedir}/../../build/config/config.ini.php" token="[database]" value="[database_tests]"/>
</antWrapper>
<invoke description="get account index" url="/tests/all_tests.php" />
<verifyTitle description="check the title is parsed correctly" text="Piwik - running all tests" />
<verifyText description="check page text" text="Piwik unit tests" />
<not description="total failure">
<verifyText description="check for 0 passes" text="<strong>0</strong> passes" />
</not>
<verifyText description="no failures" text="<strong>0</strong> fails" />
<verifyText description="no exceptions" text="<strong>0</strong> exceptions" />
</steps>
</webtest>
</target>
</project>