如何构建Android CTS?以及如何添加和运行测试用例? [英] How to build android cts? And how to add and run your test case?

查看:644
本文介绍了如何构建Android CTS?以及如何添加和运行测试用例?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

2.0的CTS是自由地从Android的资源库免费下载。

但没有文件了。

有没有人可以告诉我:

  1. 如何建立CTS?是否有一个标准的程序?
  2. 如何运行CTS?
  3. 如何添加自定义测试用例?

在这里,分享我的经验。 回购同步所有的源代码后,不能直接运行make来构建所有源。 你会得到一些错误。

现在,我'试图首先建立Android源没有CTS,然后再单独建设CTS。

另外,这里有对运行CTS一些参考:

  1. <一个href="http://i-miss-erin.blogspot.com/2010/05/how-to-add-test-plan-package-to-android.html">http://i-miss-erin.blogspot.com/2010/05/how-to-add-test-plan-package-to-android.html
  2. www.mentby.com/chenny/how-does-cts-work-where-can-i-get-the-test-streams.html
  3. www.jxva.com/?act=blog!article&articleId=157

第1次更新@ 5-13 18:39 +8:00

我做以下步骤:

  

1.build Android源无CTS(移动CTS出的$ SDK_R​​OOT)。

     

2.build CTS(CTS招回)。

无论JDK1.5和1.6有以下错误:

1,第1次使CTS报告:

  

产生的原因:   java.io.FileNotFoundException:...(太   许多打开文件)

2,第二次使CTS报告:

  

ACP:文件   出/主机/ Linux的-86 / OBJ可执行/文件/ VM-tests_intermediates /测试/数据   不存在

3,第三次使CTS报告:

  

/斌/ bash的:行0:CD:   输出/主机/ Linux的-86 / OBJ可执行/文件/ VM-tests_intermediates / hostjunit_files /类:   没有这样的文件或目录

4.最后一次让CTS报告:

  

压缩错误:无关(尝试:拉链   -q -r ../../android.core.vm-tests.jar。 -i)。

解决方案

您也必须请访问以下站点约CTS帮助:

CTS介绍

和下载学习本PDF文件吧:

CTS R4手动

From 2.0 the cts is freely downloadable from android's repository.

But there is no documents about it.

Does anyone can tell me:

  1. how to build cts? Is there a standard procedure?
  2. How to run cts?
  3. How to add customized test case?

Here, share my experience. After repo sync all source, you can't directly run "make" to build all source. You will get some errors.

Now, I'am trying to first build android source without cts, and then build cts alone.

Also, here are some reference for run cts:

  1. http://i-miss-erin.blogspot.com/2010/05/how-to-add-test-plan-package-to-android.html
  2. www.mentby.com/chenny/how-does-cts-work-where-can-i-get-the-test-streams.html
  3. www.jxva.com/?act=blog!article&articleId=157

1st time Update @ 5-13 18:39 +8:00

I do the following steps:

1.build android source without cts (move cts out of the $SDK_ROOT).

2.build cts (move cts back).

both jdk1.5 and 1.6 have the following errors:

1.The 1st time "make cts" report:

"Caused by: java.io.FileNotFoundException: ...(Too many open files)"

2.The 2nd time "make cts" report:

"acp: file 'out/host/linux-x86/obj/EXECUTABLES/vm-tests_intermediates/tests/data' does not exist"

3.The 3rd time "make cts" report:

"/bin/bash: line 0: cd: out/host/linux-x86/obj/EXECUTABLES/vm-tests_intermediates/hostjunit_files/classes: No such file or directory"

4.The last time "make cts" report:

"zip error: Nothing to do! (try: zip -q -r ../../android.core.vm-tests.jar . -i .)"

解决方案

You have to also visit on the following site for help about CTS:

CTS Intro

and Download this pdf file for study about it:

CTS R4 manual

这篇关于如何构建Android CTS?以及如何添加和运行测试用例?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆