Hi,


I am trying to run the CTS test on the Android emulator.

But I am facing the following issues:

        -      I ran the individual CTS test plans on emulator as below

                *cts_host** **> cts_host > startcts.bat*

*C:\CTS\android-cts-2.2_r4-x86\android-cts\tools>Echo Off*

*Android CTS version 2.2_r4*

*      Device(emulator-5554) connected*

      *cts_host** **> cts_host > start –plan java*



-          But in the results I see that the maximum of the test plans have
been skipped and are shown as “not Executed” as follows:

 failed="0"* notExecuted="13967"* omitted="0" pass="1426" timeout="14"



-          I  analyzed the logs and test results.xml files for the test
cases which were “notExecuted” in the following approach:

o   I tried to execute the *single test package* from the *Java test plan* by
executing the following command:

*cts_host** **>** **cts_host** **> start --plan java --package** **
android.core.tests.dom** *

o   But the following error is shown:

The specific test package does not exist: android.core.tests.dom

-          But when I execute the command *ls – p* to see the list of
available packages, I can see the package in the list.



Please let us know if we are missing something at our end.


As of now, in order to run all the packages from the test plan , I am
following the approach as follows:

- I delete the url entry of the package(that did not execute in the complete
run) from the plan and then execute the command : * start –plan java .*

*- *In this way I will have maximum of the test cases executed - either fail
or pass.


*My Query is:*

Why are the maximum of the test plans(packages and testcases) are skipped
and not executed while running CTS?



For your reference I would like to tell you that

-          I am using the Windows XP machine

-          I have modified the startcts.bat file(modified .bat is attached
with this mail)



Could you please help us me this.



Your early reply will be highly appreciated.



Thanks in Advance,

Kamaljeet Singh

-- 
You received this message because you are subscribed to the Google Groups 
"Android Discuss" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/android-discuss?hl=en.

Echo Off

SET SDK_ROOT=C:\android-sdk-windows
SET CTS_ROOT=C:\android-cts-2.2_r4-x86\android-cts\

if not exist %SDK_ROOT% GOTO showError
if not exist %CTS_ROOT% GOTO showError

PATH=%PATH%%SDK_ROOT%\platform-tools;

java -Xmx512M -cp 
%SDK_ROOT%\tools\lib\ddmlib.jar;%CTS_ROOT%\tools\cts.jar;%CTS_ROOT%\tools\junit.jar;%CTS_ROOT%\tools\hosttestlib.jar;
 com.android.cts.TestHost %CTS_ROOT%\repository\host_config.xml

GOTO End

:showError
Echo.
Echo "Either SDK_ROOT/CTS_ROOT not configued properly;
Echo off


:End
Echo Off

Reply via email to