2011年7月9日
#
摘要: 一個(gè)完整的自動(dòng)化測試框架體系包含以下幾個(gè)部分:1、自動(dòng)化測試框架;2、測試腳本以及測試數(shù)據(jù)管理;3、測試腳本的執(zhí)行管理系統(tǒng);4、測試結(jié)果的顯示與分析系統(tǒng)。其中最重要的是自動(dòng)化測試框架部分。
閱讀全文
摘要: JUnit
JUnit是由 Erich Gamma 和 Kent Beck 編寫的一個(gè)回歸測試框架(regression testing framework)。Junit測試是程序員測試,即所謂白盒測試,因?yàn)槌绦騿T知道被測試的軟件如何(How)完成功能和完成什么樣(What)的功能。Junit是一套框架,繼承TestCase類,就可以用Junit進(jìn)行自動(dòng)測試了。
更多JUnit信息
閱讀全文
摘要: Have you wondered why certain programs are located under /bin, or /sbin, or /usr/bin, or /usr/sbin?
For example, less command is located under /usr/bin directory. Why not /bin, or /sbin, or /usr/sbin? What is the different between all these directories?
In this article, let us review the Linux filesystem structures and understand the meaning of individual high-level directories
閱讀全文
摘要: 當(dāng)今互聯(lián)網(wǎng)的發(fā)展,已不是大魚吃小魚的時(shí)代,而是快魚吃慢魚的時(shí)代。互聯(lián)網(wǎng)產(chǎn)品的制勝原則就是一個(gè)字——“快”。在各種形態(tài)的產(chǎn)品研發(fā)中,我們始終貫徹如一的價(jià)值觀之一就是“快”,我們應(yīng)該如何來理解和詮釋“快”?又會(huì)從哪些方面來執(zhí)行貫徹這個(gè)原則呢?
閱讀全文
摘要: 軟件測試的十二個(gè)誤區(qū)大體總結(jié)如下:
1) 測試人員不需要了解軟件開發(fā)的知識(shí):
這個(gè)很要命的,我們談到軟件測試人員未來的發(fā)展方向大致有:自動(dòng)化測試,性能測試,測試管理,項(xiàng)目經(jīng)理。這其中自動(dòng)化測試和性能測試包括項(xiàng)目管理,都會(huì)要求對軟件開發(fā)有深入的理解,如何能設(shè)計(jì)一個(gè)好的自動(dòng)化框架,好的性能測試用例,如何管理一個(gè)開發(fā)團(tuán)隊(duì),這都需要我們在軟件開發(fā)方面有所掌握。不單要掌握,而且要精通。此其一。
其二:如果不了解開發(fā)知識(shí),測試人員很容易被開發(fā)人員牽著鼻子走,因?yàn)殚_發(fā)人員隨便一忽悠,你如果不了解個(gè)中奧妙,你一個(gè)字也說不上來。(以前我們討論 Cookie和Session,由于GoAhead不支持Session,只能用Cookie來控制,差點(diǎn)別開發(fā)人員忽悠了)
閱讀全文
摘要: 寫在前面:寫Android程序有一個(gè)很重要的原則,不阻塞UI線程。因此Android提供了5種方法來,讓一些耗時(shí)的作業(yè)在其它線程中執(zhí)行,然后把結(jié)果返回給UI線程,以免阻塞UI線程。
閱讀全文
探討了軟件測試的可測試性,主要包括Controllability, Observability, Availability,Simplicity, Stability 和 Information.
HeuristicsOfSoftwareTestability.pdf
摘要: android的selector的用法:
首先android的selector是在drawable/xxx.xml中配置的。
先看一下listview中的狀態(tài):
把下面的XML文件保存成你自己命名的.xml文件(比如list_item_bg.xml),在系統(tǒng)使用時(shí)根據(jù)ListView中的列表項(xiàng)的狀態(tài)來使用相應(yīng)的背景圖片。drawable/list_item_bg.xml
閱讀全文
摘要: The Monkey is a command-line tool that that you can run on any emulator instance or on a device. It sends a pseudo-random stream of user events into the system, which acts as a stress test on the application software you are developing.
The Monkey includes a number of options, but they break down into four primary categories:
Basic configuration options, such as setting the number of events to attempt.
Operational constraints, such as restricting the test to a single packag
閱讀全文
摘要: Programmers can configure logging either by creating loggers, handlers, and formatters explicitly in a main module with the configuration methods listed above (using Python code), or by creating a logging config file. The following code is an example of configuring a very simple logger, a console handler, and a simple formatter in a Python module:
閱讀全文
摘要: Android系統(tǒng)中Looper負(fù)責(zé)管理線程的消息隊(duì)列和消息循環(huán),具體實(shí)現(xiàn)請參考Looper的源碼。 可以通過Loop.myLooper()得到當(dāng)前線程的Looper對象,通過Loop.getMainLooper()可以獲得當(dāng)前進(jìn)程的主線程的Looper對象。
閱讀全文
摘要: The list below defines some of the basic terminology of the Android platform.
.apk file
Android application package file. Each Android application is compiled and packaged in a single file that includes all of the application's code (.dex files), resources, assets, and manifest file. The application package file can have any name but must use the .apk extension. For example: myExampleAppname.apk. For convenience, an application package file is often referred to as an ".apk".
Re
閱讀全文
摘要: C.__init__(self[, arg1, ...] )
Constructor (with any optional arguments)
C.__new__(self[, arg1, ...] )[a]
Constructor (with any optional argu ments); usually used for setting up subclassing of immutable data types
C.__del__(self)
Destructor
C.__str__(self)
Printable string representation; str() built-in and print statement
C.__repr__(self)
Evaluatable string representation; repr() built-in and '' operator
閱讀全文
摘要: 本來這是個(gè)老生常談的問題,上周自成又分享了一些性能優(yōu)化的建議,我這里再做一個(gè)全面的Tips整理,謹(jǐn)作為查閱型的文檔,不妥之處,還請指正;
如果你已經(jīng)對yahoo這些優(yōu)化建議爛熟于心,果斷點(diǎn)這里
閱讀全文
Five test auomation framework are discussed in this paper.
1) The Test Script Modularity Framework
2) The Test Library Architecture Framework
3) The Keyword-Driven or Table-Driven Testing Framework
4) The Data-Driven Testing Framework
5) The Hybrid Test Automation
摘要: 一、ASE(Android Scripting Environment)為Android系統(tǒng)帶來了腳本語言的技術(shù),通過它我們可以編輯和執(zhí)行腳本,和腳本解釋交互。腳本可以訪問多數(shù)Android API,目前有一個(gè)開源項(xiàng)目叫做Scripting Layer for Android (SL4A) ,提供了對python,javaScript, Lua等腳本的支持。ASE主要通過兩種方式來訪問 Android API,一種是通過JSON-RPC來訪問,另外一種通過BeanShell(Java語言的動(dòng)態(tài)版本)直接訪問Android API。SL4AL架構(gòu)如下圖:
閱讀全文