Android CTS出现的l问题解决

 

此篇为原创转载请注明出处与作者信息:

author:fanfq  mail:fangqing.fan#gmail.com

link:http://fanfq.iteye.com/admin/blogs/876355

 



在编译cts之前我就安装了sdk,并且创建的模拟器,添加的环境变量,模拟器启动好后,可以直接adb shell。

当我在运行cts之前,我先将模拟器打开,然后
fanfq@fanfq-Lenovo:~/android/out/host/linux-x86/cts/android-cts/tools$ ./startcts
Android CTS version 2.2_r1
01:31:46 E/ddms: Could not open Selected VM debug port (8700). Make sure you do not have another instance of DDMS or of the eclipse plugin running. If it's being used by something else, choose a new port number in the preferences.
01:31:46 E/ddms: Can't bind to local 8600 for debugger
01:31:46 E/ddms: Can't bind to local 8601 for debugger
01:31:47 E/ddms: Can't bind to local 8602 for debugger
01:31:47 E/ddms: Can't bind to local 8603 for debugger
Device(emulator-5554) connected
cts_host > 01:31:47 E/ddms: Can't bind to local 8605 for debugger
01:31:47 E/ddms: Can't bind to local 8606 for debugger
01:31:47 E/ddms: Can't bind to local 8607 for debugger
01:31:47 E/ddms: Can't bind to local 8608 for debugger
01:31:47 E/ddms: Can't bind to local 8609 for debugger
01:31:47 E/ddms: Can't bind to local 8610 for debugger
01:31:47 E/ddms: Can't bind to local 8611 for debugger

最终的测试报告,全都fail了。

我用在unbuntu10.10-64bit,ubuntu10.04-32bit都试过,都出现了这样的问题。

》》原因总结,是因为我在eclipse中启动模拟器的,可能是eclipse把8700端口给占用了,所以会出现这样的问题,但是还是可以进行cts测试的,不过测试用例全都fail了。
用shell命令启动就不会出现这样的问题了
fanfq@fanfq-Lenovo:~/software/android-sdk-linux_86/tools$ ./emulator -avd 2.2
虽然不再出现端口号被占用的问题,但是测试用例还是不通过。
在未知原因的情况下我下面使用真机测试,moto的里程碑,还有G7.

在ubuntu下首先是安装adb的驱动,还算走运在网上很快就找到了怎么去安装驱动的问题,这里是我根据网上现有的帖子然后自己再加以总结后的。

 

 

fanfq@fanfq-Lenovo:~/android/out/host/linux-x86/bin$ ./cts

Listening for transport dt_socket at address: 1337

Android CTS version 2.2_r1

Device(0403A5191300E01A) connected

cts_host > cts_host > ls --plan

List of plans (8 in total):

RefApp

AppSecurity

Performance

Java

VM

CTS

Android

Signature

cts_host > start --plan Signature

There are 2 existing session(s) for plan Signature.

Create a new session or choose an existing one?

  Create a new session [0]

  Choose a session     [1]

0

install met failure [install_failed_older_sdk]

start test plan Signature

install met failure [install_failed_older_sdk]

 

CTS_INFO >>> Checking API... 

 

CTS_INFO >>> This might take several minutes, please be patient...

uninstall met failure

API Check TIMEOUT.

(timeout)

 

Test summary:   pass=0   fail=0   timeOut=1   omitted=0   notExecuted=0   Total=1

Time: 4.20s

 

uninstall met failure

cts_host > ls --plan    

List of plans (8 in total):

RefApp

AppSecurity

Performance

Java

VM

CTS

Android

Signature

cts_host > start --plan CTS

install met failure [install_failed_older_sdk]

start test plan CTS

install met failure [install_failed_older_sdk]

 

CTS_INFO >>> Checking API... 

 

CTS_INFO >>> This might take several minutes, please be patient...

uninstall met failure

API Check TIMEOUT.

(timeout)

 

 

CTS_INFO >>> Max ADB operations reached. Restarting ADB...

 

CTS_INFO >>> Restarting device ...

Device(0403A5191300E01A) disconnected



未完,待续。。。。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值