Service Virtualization

Re : Lisa 8 Test invoke from ANT throwing file not found exception

  • 1.  Re : Lisa 8 Test invoke from ANT throwing file not found exception

    Posted Dec 10, 2014 01:16 PM

    Getting the file not found exception while running the lisa 8 test from ANT. Even though  the file is existing in the specified directory, It is saying some thing like could not stage.

     

    Capture.PNG

     

    my build.xml is :

     

    <?xml version="1.0"?>

    <project name="${vs.project.name}" default="lisaTests" basedir=".">

              <loadproperties>

                                 <file file="build.properties"/>

              </loadproperties>

        <echo message="${LISA_HOME}"/>

        <echo message="the base directory is ${vs.project.base.dir}"/>

              <taskdef resource="AntTasks.properties">

                            <classpath>

                                              

     

      <fileset dir="${LISA_HOME}\lib\shared" includes="**/*.jar"></fileset>

     

                                               <fileset dir="${LISA_HOME}\lib\core" includes="**/*.jar">

                

                                                </fileset>

                              </classpath>

                </taskdef>

                <target name="lisaTests" description="Executes a LISA Test Suite as JUnit tests.">

                               <echo message="Executes a LISA Test Suite as JUnit tests.( make sure old reports are deleted)"/>

                               <delete dir="${vs.project.build.report.dir}"/>

                               <mkdir dir="${vs.project.build.report.dir}"/>

                               <echo message="Run the lisa test in junit mode in base dir:${basedir}"/>

                        

       <junitlisa test="Tests\ReadXMLFile.tst" toDir="${vs.project.build.report.dir}" registry="${vs.sandbox.registry.url}" haltOnError="no" errorProperty="test.failure" user="admin" password="admin">

      <jvmarg value="-Dlisa.tmpdir=${vs.project.build.temp.dir}"/></junitlisa>

                               <echo message="Generate junit style html report."/>

                               <junitlisareport toDir="${vs.project.build.report.dir}"/>

                               <echo message="The JUnit report is available at ${vs.project.build.report.dir}/index.html"/>

                   </target>

    </project>

     

    build.properties:

     

    # This is the properties file defining build properties for ant tasks

    LISA_HOME=C:/Program Files/CA/DevTest

    vs.sandbox.registry.url=tcp://usilasd00301:2010/devRegistry

    vs.sandbox.vse.name=sandbox

    vs.project.name=DevOps

    #vs.project.version=v1.0

    #vs.project.path=workspace/sandbox_soap

    #vs.project.test.suite.dir=${vs.project.build.dir}/${vs.project.path}/Suites/AllTestsSuite.ste

    vs.project.base.dir=${basedir}

    vs.project.build.dir=${basedir}/build/

    vs.project.build.report.dir=${vs.project.build.dir}/report/

    vs.project.build.temp.dir=${basedir}/build/tmp

     

    Does any one has the same issue ?