Note that there are some explanatory texts on larger screens.

plurals
  1. POUnable to find images when running selenium/sikuli scripts using Ant
    primarykey
    data
    text
    <p>I've written a couple selenium scripts (Java) and use sikuli to verify the images exist. It worked fine when I ran the tests through Eclipse/TestNG but with Ant I'm getting the following error:</p> <p>[testng] [error] resources/x.png looks like a file, but can't be found on the disk. Assume it's text.</p> <p>The following is my build.xml, please let me know if there's more information I can provide.</p> <pre><code>&lt;project name="test" default="test"&gt; &lt;property name="src.dir" location="src" /&gt; &lt;property name="build.dir" location="build" /&gt; &lt;property name="dist.dir" location="dist" /&gt; &lt;property name="lib.dir" location="lib" /&gt; &lt;path id="build.classpath"&gt; &lt;fileset dir="${lib.dir}"&gt; &lt;include name="**/*.jar" /&gt; &lt;/fileset&gt; &lt;/path&gt; &lt;target name="clean"&gt; &lt;delete dir="${build.dir}" /&gt; &lt;/target&gt; &lt;target name="makedir" depends="clean"&gt; &lt;mkdir dir="${build.dir}" /&gt; &lt;/target&gt; &lt;!-- Compiles the java code --&gt; &lt;target name="compile" depends="clean, makedir"&gt; &lt;javac srcdir="${src.dir}" destdir="${build.dir}" classpathref="build.classpath"/&gt; &lt;/target&gt; &lt;!--Creates the deployable jar file --&gt; &lt;target name="jar" depends="compile"&gt; &lt;jar destfile="${dist.dir}\build.test.ant.jar" basedir="${build.dir}"&gt; &lt;manifest&gt; &lt;attribute name="Main-Class" value="test.Main" /&gt; &lt;/manifest&gt; &lt;/jar&gt; &lt;/target&gt; &lt;taskdef resource="testngtasks" classpath="${lib.dir}/testng-6.5.2.jar"/&gt; &lt;target name="test" depends="jar"&gt; &lt;testng classpath="${build.dir}:${lib.dir}/selenium-java-2.24.1.jar:${lib.dir}/selenium-server-standalone-2.24.1.jar:${lib.dir}/sikuli-script.jar" outputDir="${testng.report.dir}" testname="test1"&gt; &lt;xmlfileset dir="." includes="testng.xml" /&gt; &lt;/testng&gt; &lt;fail message="BUILD FAILURE" if="failed" /&gt; &lt;/target&gt; &lt;/project&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload