Martin Holz wrote:
Oliver Zeigermann <[EMAIL PROTECTED]> writes:
This is fairly easy when you have Windows. just cd into testsuite/bin and run TProcessor.CMD. At least when your server runs on 8888. Otherwise you will have to change some settings in the header of the script. If you are not on Windows ( and I suppose you are not ) you will have to write a script of your own (and maybe contribute it afterwards).
I wrote a ant target for testsuite/build.xml to run the functional tests. Its not very flexible for now, but it should work.
===================================================================================
<target name="functional-test" description="Run the functional tests">
<property name="xdav.home" value="${basedir}" /> <property name="xdav.host" value="localhost" /> <property name="xdav.port" value="8888" /> <property name="xdav.user" value="guest" /> <property name="xdav.password" value="guest" /> <property name="xdav.workdb" value="xdavtest" /> <property name="xdav.workhost" value="localhost" /> <property name="xdav.globalVariableDomainName" value="localhost" /> <property name="xdav.globalVariableServerName" value="slide" /> <property name="xdav.globalVariableIterationCount" value="10" /> <property name="xdav.globalVariableIterationCountSmall" value="5" />
<property name="xdav.globalVariablePerformanceIterations" value="5" />
<property name="xdav.globalVariableUsers" value="10" />
<property name="xdav.globalVariableGroup" value="group" /> <property name="xdav.globalVariableCollection" value="files" />
<!-- Depend on $DAV_AUTH, assume none for now -->
<property name="xdav.globalVariableRootUserPath" value="/${xdav.globalVariableServerName}/unauthenticated" /> <property name="xdav.globalVariableUserPath" value="${xdav.globalVariableRootUserPath}" />
<property name="tprocessor.exclude" value="-exclude *ACL* -exclude *groupFunctional*" />
<java classname="org.apache.slide.testsuite.testtools.walker.MultiTProcessorExecuter" fork="yes">
<sysproperty key="xdav.home" value="${xdav.home}" />
<sysproperty key="xdav.host" value="${xdav.host}" />
<sysproperty key="xdav.port" value="${xdav.port}" />
<sysproperty key="xdav.user" value="${xdav.user}" />
<sysproperty key="xdav.password" value="${xdav.password}" />
<sysproperty key="xdav.workdb" value="${xdav.workdb}" /> <sysproperty key="xdav.workhost" value="${xdav.workhost}" /> <sysproperty key="xdav.globalVariableDomainName" value="${xdav.globalVariableDomainName}" /> <sysproperty key="xdav.globalVariableServerName" value="${xdav.globalVariableServerName}" /> <sysproperty key="xdav.globalVariableIterationCount" value="${xdav.globalVariableIterationCount}" /> <sysproperty key="xdav.globalVariableIterationCountSmall" value="${xdav.globalVariableIterationCountSmall}" />
<sysproperty key="xdav.globalVariablePerformanceIterations" value="${xdav.globalVariablePerformanceIterations}" /> <sysproperty key="xdav.globalVariableUsers" value="${xdav.globalVariableUsers}" /> <sysproperty key="xdav.globalVariableGroupsColl" value="groups" /> <sysproperty key="xdav.globalVariableRolesColl" value="roles" /> <sysproperty key="xdav.globalVariableGroup" value="${xdav.globalVariableGroup}" /> <sysproperty key="xdav.globalVariableCollection" value="${xdav.globalVariableCollection}" /> <sysproperty key="xdav.globalVariableRootUserPath" value="${xdav.globalVariableRootUserPath}" /> <sysproperty key="xdav.globalVariableUserPath" value="${xdav.globalVariableUserPath}" /> <sysproperty key="xdav.urlencoding" value="UTF-8" />
<sysproperty key="httpclient.authentication.premptive" value="true" />
<arg line="${tprocessor.exclude} xmltestcases/functional/*.xml" />
<classpath>
<fileset dir="${lib}" >
<include name="*.jar" />
</fileset>
</classpath>
</java>
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
