Hi,
We've tried to run our ACT scripts with the new
framework, but to us it looks like there something wrong?
Our ant target which runs the tests looks like this:
<target
name="test"
depends="commands.jar"
description="Runs all the acceptance tests. If you
what to run only one test, specify with
-Dact.file='NameOfFileToRun.act'"
>
<echo message="Testing against
COS${COS.version} on
${cosserver.cluster1.hostname}..."/>
<java dir=".."
classname="com.exoftware.act.MainEntry" fork="yes">
<classpath>
<path location="${etc.dir}"/>
<path refid="commands.compile.path"/>
<path location="$\{build.dir\}/commands.jar"/>
<path
location="${cos.lib.dir}/${cosclient.lib.dir}/${cosmos.lib.name}"/>
<path
location="${cos.lib.dir}/${cosclient.lib.dir}/${log4j.lib.name}"/>
<path
location="${cos.lib.dir}/${cosclient.lib.dir}/${gnu-regexp.lib.name}"/>
<path location="${lib.dir}/xerces.jar"/>
<path
location="${COS.home}/lib/jconn2.jar"/>
<path
location="${lib.dir}/${httpunit.lib.name}"/>
</classpath>
<arg
file="${src.scripts}/${run.type}/${act.file}" />
</java>
</target>
src.scripts - point to a base directory which contains
different sets of tests (automatic, manual, etc.)
run.type - is by default defined as automatic
When running one ACT script with Ant command 'ant test
-Dact.file=MyActFile.act' the test MyActFile.act is
executed and thats good!
But when we're trying to execute all ACT files in one
directory ('ant test'), no test scripts are executed.
If I try to run the tests using Ant command 'ant test
-Dact.file='*.act'', the first test script
alphabetically in my base directory is executed.
Does our problem has anything to do with the
RecursiveFileListFactory or AcceptanceTestFileFilter?
Can you tell us if we're doing something wrong here?
I'm not sure, but I think this might be a framework
error since we've runned our test several times with no
problems using earlier versions of the Actor.
Regards,
Rune