arucard17 / robotium

Automatically exported from code.google.com/p/robotium
0 stars 0 forks source link

Cannot run program "${adb}" (in directory "C:\Users\prerna\workspace\LauncherActivityTest"): CreateProcess error=2, The system cannot find the file specified #575

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.i am creating an ant build file
2.i want to run my robotium test classes through it
2.when i run the file it produces this error

What is the expected output? What do you see instead?
i want to get my test report from build file

What version of the product are you using? On what operating system?
i am using robotium 5.0.1 on windows 7 

Please provide any additional information below.
here a snippet of my build file:
<!-- Ant targets for Robotium testing -->
            <target name="robotium">
                <echo>Running all tests...</echo>
                <antcall target="robotium-test"/>
            </target>

            <!-- Ant targets for each Robotium test package.
            Each test-class line is done in sequence.-->
            <target name="robotium-test">
            <test-class class="com.robotium.test.alltest" package="com.robotium.test"/>
            </target>

            <!-- Macro definitions for Robotium testing -->
            <macrodef name="test-class">
                <attribute name="package"/>
                <attribute name="class"/>

                <sequential>
                        <echo level="info">Running tests for @{class}</echo>
                        <exec executable="${adb}" failonerror="false">
                        <arg line="${adb.device.arg}"/>
                        <arg value="shell"/>
                        <arg value="am"/>
                        <arg value="instrument"/>
                        <arg value="-w"/>
                        <arg value="-e"/>
                        <arg value="class"/>
                        <arg value="@{class}"/>
                        <arg value="com.robotium.test/${test.runner}"/>
                        </exec>
                    </sequential>

            </macrodef>

Original issue reported on code.google.com by prerna....@gmail.com on 8 Feb 2014 at 7:45

GoogleCodeExporter commented 9 years ago
We're not using Ant our selves so unfortunately this is not something that we 
can help you with. Id suggest that you ask this question in the Ant email 
group. 

Original comment by renasr...@gmail.com on 9 Feb 2014 at 9:00