FluintAIRTestRunner Fails in ANT, Works Under Command-prompt

3 views
Skip to first unread message

Scott S.

unread,
Sep 18, 2009, 10:36:31 AM9/18/09
to Fluint Discussions
If I run the FluintAIRTestRunner from ant, either by using the
<fluint> task or by just using the built-in <exec> task, the runner
launches and the returns error #2. The error message from the fluint
task says it's a problem with the SWF not implementing the ITestModule
(I've read this reference is wrong and it should be ITestSuiteModule),
but the module does correctly implement the appropriate
ITestSuiteModule interface.

Strange thing is this work just fine if I run the
FluintAIRTestRunner.exe from a command line and pass in the same
parameters that are defined in the ANT script. I've gone over the
params numerous times, and even created a stub exe that I switch the
exec task to point to, just to ensure the correct param were getting
passed.

Stranger still, I had a sample project that was created under FB which
would work from both the command-line, and from ANT. However, I wiped
the bin-debug folder and rebuilt it and now it doesn't work under ANT
now, but still works from the command-prompt.

Any thoughts on what I might want to look at would be very much
appreciated. Thanks.

Following is my ANT target that is currently failing. Pretty similar
to example code:

<target name="test.run">
<property name="fluint.home" value="c:/Fluint"/>
<path id="libraries">
<fileset dir="c:\Fluint\fluint">
<include name="**/*.jar"/>
</fileset>
</path>

<taskdef name="fluint"
classname="net.digitalprimates.ant.tasks.fluint.Fluint"
classpathref="libraries" />
<fluint
debug="true"
headless="true"
failonerror="true"
workingDir="c:/FlexDev/FluintTest/bin-debug"
testRunner='${fluint.home}/AIRTestRunner/FluintAIRTestRunner/
FluintAIRTestRunner.exe'
outputDir="c:/FlexDev/FluintTest/bin-debug">

<fileset dir="bin-debug">
<include name="FluintTest.swf"/>
</fileset>
</fluint>
</target>

Scott S.

unread,
Sep 18, 2009, 1:43:05 PM9/18/09
to Fluint Discussions
Figured it out finally...

Being a long time Win32 dev, I know Flex and Java were case-sensitive
languages, but I didn't expect that case sensitivity to carry over to
how they access the file system.

My flex apps had upper case SWF extensions on them. By default the
ANT filesets are case sensitive, which was my first problem. The
second problem I had was that the AIRTestRunner source looks for lower-
case "swf" extensions, which I'm not sure is 100% correct to do, but
I'll just go with the flow on that since everything is working
correctly.
Reply all
Reply to author
Forward
0 new messages