统计

留言簿(1)

DB

Others

QA

Tech Website

阅读排行榜

评论排行榜

2011年5月10日 #

【转载】自动化测试体系整体解决方案探讨

     摘要:  一个完整的自动化测试框架体系包含以下几个部分:1、自动化测试框架;2、测试脚本以及测试数据管理;3、测试脚本的执行管理系统;4、测试结果的显示与分析系统。其中最重要的是自动化测试框架部分。  阅读全文

posted @ 2011-08-30 18:59 XXXXXX 阅读(337) | 评论 (0)编辑 收藏

Java开源测试工具

     摘要: JUnit

JUnit是由 Erich Gamma 和 Kent Beck 编写的一个回归测试框架(regression testing framework)。Junit测试是程序员测试,即所谓白盒测试,因为程序员知道被测试的软件如何(How)完成功能和完成什么样(What)的功能。Junit是一套框架,继承TestCase类,就可以用Junit进行自动测试了。
更多JUnit信息  阅读全文

posted @ 2011-08-30 17:29 XXXXXX 阅读(339) | 评论 (0)编辑 收藏

Linux Directory Structure (File System Structure) Explained with Examples

     摘要: 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  阅读全文

posted @ 2011-08-29 11:41 XXXXXX 阅读(1835) | 评论 (1)编辑 收藏

【转】互联网产品开发中的“快”字诀

     摘要: 当今互联网的发展,已不是大鱼吃小鱼的时代,而是快鱼吃慢鱼的时代。互联网产品的制胜原则就是一个字——“快”。在各种形态的产品研发中,我们始终贯彻如一的价值观之一就是“快”,我们应该如何来理解和诠释“快”?又会从哪些方面来执行贯彻这个原则呢?  阅读全文

posted @ 2011-08-28 23:47 XXXXXX 阅读(318) | 评论 (0)编辑 收藏

【转载】软件测试的十二个误区

     摘要: 软件测试的十二个误区大体总结如下:

1) 测试人员不需要了解软件开发的知识:
这个很要命的,我们谈到软件测试人员未来的发展方向大致有:自动化测试,性能测试,测试管理,项目经理。这其中自动化测试和性能测试包括项目管理,都会要求对软件开发有深入的理解,如何能设计一个好的自动化框架,好的性能测试用例,如何管理一个开发团队,这都需要我们在软件开发方面有所掌握。不单要掌握,而且要精通。此其一。
其二:如果不了解开发知识,测试人员很容易被开发人员牵着鼻子走,因为开发人员随便一忽悠,你如果不了解个中奥妙,你一个字也说不上来。(以前我们讨论 Cookie和Session,由于GoAhead不支持Session,只能用Cookie来控制,差点别开发人员忽悠了)  阅读全文

posted @ 2011-08-23 13:25 XXXXXX 阅读(381) | 评论 (0)编辑 收藏

【转】Painless threading

     摘要: 写在前面:写Android程序有一个很重要的原则,不阻塞UI线程。因此Android提供了5种方法来,让一些耗时的作业在其它线程中执行,然后把结果返回给UI线程,以免阻塞UI线程。  阅读全文

posted @ 2011-08-23 09:25 XXXXXX 阅读(348) | 评论 (0)编辑 收藏

Heuristics of Software Testability

探讨了软件测试的可测试性,主要包括Controllability, Observability, Availability,Simplicity, Stability 和 Information.


HeuristicsOfSoftwareTestability.pdf

posted @ 2011-08-19 23:24 XXXXXX 阅读(1377) | 评论 (0)编辑 收藏

【转】selector in Android

     摘要: android的selector的用法:
首先android的selector是在drawable/xxx.xml中配置的。
先看一下listview中的状态:
把下面的XML文件保存成你自己命名的.xml文件(比如list_item_bg.xml),在系统使用时根据ListView中的列表项的状态来使用相应的背景图片。drawable/list_item_bg.xml  阅读全文

posted @ 2011-08-16 23:12 XXXXXX 阅读(277) | 评论 (0)编辑 收藏

UI/Application Exerciser Monkey

     摘要: 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  阅读全文

posted @ 2011-08-13 10:14 XXXXXX 阅读(494) | 评论 (0)编辑 收藏

【转】Python的标准logging模块

     摘要: 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:

  阅读全文

posted @ 2011-08-12 14:49 XXXXXX 阅读(1203) | 评论 (0)编辑 收藏

Android Debug Bridge

     摘要:   阅读全文

posted @ 2011-08-11 13:22 XXXXXX 阅读(885) | 评论 (0)编辑 收藏

【转】Linux IPC


一)Linux环境进程间通信(一)管道及有名管道
http://www.ibm.com/developerworks/cn/linux/l-ipc/part1/

二)Linux环境进程间通信(二): 信号
上:http://www.ibm.com/developerworks/cn/linux/l-ipc/part2/index1.html
下:http://www.ibm.com/developerworks/cn/linux/l-ipc/part2/index2.html

三)Linux环境进程间通信(三)消息队列
http://www.ibm.com/developerworks/cn/linux/l-ipc/part3/

四)Linux环境进程间通信(四)信号灯
http://www.ibm.com/developerworks/cn/linux/l-ipc/part4/

五)Linux环境进程间通信(五): 共享内存
上:http://www.ibm.com/developerworks/cn/linux/l-ipc/part5/index1.html
下:http://www.ibm.com/developerworks/cn/linux/l-ipc/part5/index2.html

posted @ 2011-07-31 08:53 XXXXXX 阅读(237) | 评论 (0)编辑 收藏

【转】深入理解Android消息处理系统

     摘要: Android系统中Looper负责管理线程的消息队列和消息循环,具体实现请参考Looper的源码。 可以通过Loop.myLooper()得到当前线程的Looper对象,通过Loop.getMainLooper()可以获得当前进程的主线程的Looper对象。  阅读全文

posted @ 2011-07-29 11:53 XXXXXX 阅读(253) | 评论 (0)编辑 收藏

Glossary of Android

     摘要: 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  阅读全文

posted @ 2011-07-25 11:42 XXXXXX 阅读(301) | 评论 (0)编辑 收藏

Manifest.permission Summary

     摘要:   阅读全文

posted @ 2011-07-24 15:15 XXXXXX 阅读(692) | 评论 (0)编辑 收藏

Special Methods for Customizing Classes

     摘要: 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

  阅读全文

posted @ 2011-07-21 23:25 XXXXXX 阅读(243) | 评论 (0)编辑 收藏

【转】再谈Yahoo关于性能优化的N条军规

     摘要: 本来这是个老生常谈的问题,上周自成又分享了一些性能优化的建议,我这里再做一个全面的Tips整理,谨作为查阅型的文档,不妥之处,还请指正;
如果你已经对yahoo这些优化建议烂熟于心,果断点这里

  阅读全文

posted @ 2011-07-21 09:21 XXXXXX 阅读(205) | 评论 (0)编辑 收藏

【转】Choosing a test automation framework


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 

posted @ 2011-07-15 22:30 XXXXXX 阅读(305) | 评论 (0)编辑 收藏

ASE入门

     摘要: 一、ASE(Android Scripting Environment)为Android系统带来了脚本语言的技术,通过它我们可以编辑和执行脚本,和脚本解释交互。脚本可以访问多数Android API,目前有一个开源项目叫做Scripting Layer for Android (SL4A) ,提供了对python,javaScript, Lua等脚本的支持。ASE主要通过两种方式来访问 Android API,一种是通过JSON-RPC来访问,另外一种通过BeanShell(Java语言的动态版本)直接访问Android API。SL4AL架构如下图:  阅读全文

posted @ 2011-07-10 10:08 XXXXXX 阅读(2601) | 评论 (0)编辑 收藏

获取Android的Java源代码并在Eclipse中关联查看的最新方法

感谢一网友做出的努力,具体请看:http://618119.com/archives/2011/01/01/201.html

posted @ 2011-07-09 09:38 XXXXXX 阅读(229) | 评论 (0)编辑 收藏

【转】Android 2.1 源码结构分析

     摘要:   阅读全文

posted @ 2011-07-09 09:37 XXXXXX 阅读(242) | 评论 (0)编辑 收藏

Android Coding for Life-Battery Life

关于Android编程中如果省电的讲解

可以作为开发者的参考 :)

posted @ 2011-07-08 09:37 XXXXXX 阅读(1562) | 评论 (0)编辑 收藏

【转】Java学习的30个目标以及系统架构师推荐的书

     摘要: 2.你需要学习JAVA语言的基础知识以及它的核心类库 (collections,serialization,streams,networking, multithreading,reflection,event,handling,NIO,localization,以及其他)。  阅读全文

posted @ 2011-06-18 15:25 XXXXXX 阅读(679) | 评论 (1)编辑 收藏

学习Python的好网站

1)http://www.pythonchallenge.com/
  提供了不同level的Python题目,非常有趣的题目。做完一题后,把URL中的pc改为pcc可以看到上一题的答案

2)http://projecteuler.net/
  里面有200多道题目,不要要求提交代码,只要最终答案,提供用各种语言来解决问题。这里(http://dcy.is-programmer.com/posts/8750.html)有部分题目的答案

非常好玩,有兴趣的朋友,快来试试吧

看看 project euler 的第一道题:

If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23. Find the sum of all the multiples of 3 or 5 below 1000.

用 python 语言写出来是:

 

print sum(i for i in xrange(11000if i % 3 == 0 or i % 5 == 0)

 


 

posted @ 2011-06-17 20:26 XXXXXX 阅读(4374) | 评论 (2)编辑 收藏

Dom4j解释XML示例

     摘要:   阅读全文

posted @ 2011-06-15 17:53 XXXXXX 阅读(358) | 评论 (0)编辑 收藏

【转】《InfoQ Explores: REST》介绍

This is the first edition of what is expected to become a recurring series on InfoQ. The idea behind this minibook is that a number of InfoQ articles and interviews which deal with a particular topic (in this case, REpresentational State Transfer, or REST) are combined together to provide a detailed exploration suitable for both beginners and advanced practitioners.

Read More: http://www.infoq.com/minibooks/emag-03-2010-rest;jsessionid=1E2375E822D980824403DAD46588FAFE

posted @ 2011-06-15 12:39 XXXXXX 阅读(240) | 评论 (0)编辑 收藏

Python中的Closure


#定义:如果在一个内部函数里,对在外部作用域(但不是在全局作用域)的变量进行引用,那么内部函数就被认为是闭包(closure)
分解来说,包含下面3个条件:
1) 需要函数嵌套, 就是一个函数里面再写一个函数.
2) 外部函数需要返回一个内部函数的引
3) 外部函数中有一些局部变量, 并且, 这些局部变量在内部函数中有使用
一些概念:
1)自由变量: 外部函数中定义的局部变量, 并且在内部函数中被使用
2) 闭包: 那个使用了自由变量并被返回的内部函数就称为闭包

#支持闭包的语言有这样的特性:
1)函数是一阶值(First-class value),即函数可以作为另一个函数的返回值或参数,还可以作为一个变量的值
2)函数可以嵌套定义,即在一个函数内部可以定义另一个函数

#代码示例

 1def counter(start_at=0):
 2    count = [start_at]
 3    def incr():
 4        count[0] += 1   #对局部变量的引用
 5        return count[0]
 6    return incr  #返回一个函数对象
 7
 8
 9if __name__ == '__main__':
10    c = counter(3)
11    print type(c)
12    print c()
13    print c()
14


 

posted @ 2011-06-15 07:31 XXXXXX 阅读(1299) | 评论 (0)编辑 收藏

Trie Tree

     摘要: #Trie Tree的基本特点
1)根节点不包含字符,除根节点外每个节点只包含一个字符
2)从根节点到某一个节点,路径上经过的字符连接起来,为该节点对应的字符串

3)每个节点的所有子节点包含的字符串不相同
  阅读全文

posted @ 2011-06-14 16:57 XXXXXX 阅读(1074) | 评论 (0)编辑 收藏

Bloom Filter

     摘要: The Bloom filter, conceived by Burton Howard Bloom in 1970, is a space-efficient probabilistic data structure that is used to test whether an element is a member of a set.False positivesare possible, but false negatives are not. Elements can be added to the set, but not removed (though this can be addressed with a counting filter). The more elements that are added to the set, the larger the probability of false positives
  阅读全文

posted @ 2011-06-12 23:58 XXXXXX 阅读(290) | 评论 (0)编辑 收藏

【转】How Google Tests Software - A Brief Interlude

     摘要: These posts have garnered a number of interesting comments. I want to address two of the negative ones in this post. Both are of the same general opinion that I am abandoning testers and that Google is not a nice place to ply this trade. I am puzzled by these comments because nothing could be further from the truth. One such negative comment I can take as a one-off but two smart people (hey they are reading this blog, right?) having this impression requires a rebuttal. Here are the comments:  阅读全文

posted @ 2011-06-06 16:03 XXXXXX 阅读(324) | 评论 (0)编辑 收藏

【转】How Google Tests Software - Part Six

     摘要:   阅读全文

posted @ 2011-06-04 16:08 XXXXXX 阅读(232) | 评论 (0)编辑 收藏

【转】How Google Tests Software - Part Seven

     摘要:   阅读全文

posted @ 2011-06-04 16:08 XXXXXX 阅读(254) | 评论 (0)编辑 收藏

【转】How Google Tests Software - Part Five

     摘要:   阅读全文

posted @ 2011-06-04 15:54 XXXXXX 阅读(281) | 评论 (0)编辑 收藏

【转】How Google Tests Software - Part Four

     摘要: One of the key ways Google achieves good results with fewer testers than many companies is that we rarely attempt to ship a large set of features at once. In fact, the exact opposite is often the goal: build the core of a product and release it the moment it is useful to as large a crowd as feasible, then get their feedback and iterate. This is what we did with Gmail, a product that kept its beta tag for four years. That tag was our warning to users that it was still being perfected. We removed   阅读全文

posted @ 2011-06-04 15:43 XXXXXX 阅读(249) | 评论 (0)编辑 收藏

【转】How Google Tests Software - Part Three

     摘要: Lots of questions in the comments to the last two posts. I am not ignoring them. Hopefully many of them will be answered here and in following posts. I am just getting started on this topic.  阅读全文

posted @ 2011-06-04 10:44 XXXXXX 阅读(278) | 评论 (0)编辑 收藏

【转】How Google Tests Software - Part Two

     摘要:   阅读全文

posted @ 2011-06-02 11:00 XXXXXX 阅读(261) | 评论 (0)编辑 收藏

Android好文章

     摘要:   阅读全文

posted @ 2011-06-01 15:17 XXXXXX 阅读(209) | 评论 (0)编辑 收藏

【转】Avoiding Memory Leaks

     摘要: Android applications are, at least on the T-Mobile G1, limited to 16 MB of heap. It's both a lot of memory for a phone and yet very little for what some developers want to achieve. Even if you do not plan on using all of this memory, you should use as little as possible to let other applications run without getting them killed. The more applications Android can keep in memory, the faster it will be for the user to switch between his apps. As part of my job, I ran into memory leaks issues in Andr  阅读全文

posted @ 2011-06-01 14:52 XXXXXX 阅读(332) | 评论 (0)编辑 收藏

【转】Android = Java ?

     摘要: The Java community is now swamped with discussions about Oracle's patent suit against Google's Android platform. I've been contributing my opinion in several places, but there is one critical topic that needs repeating the same comments everywhere... so, this blog spills the beans once and completely.  阅读全文

posted @ 2011-05-31 11:06 XXXXXX 阅读(541) | 评论 (0)编辑 收藏

Activity Lifecycle

     摘要: Activities in the system are managed as an activity stack. When a new activity is started, it is placed on the top of the stack and becomes the running activity -- the previous activity always remains below it in the stack, and will not come to the foreground again until the new activity exits.  阅读全文

posted @ 2011-05-31 09:31 XXXXXX 阅读(278) | 评论 (0)编辑 收藏

【转】How google test software-part one

     摘要: The one question I get more than any other is "How does Google test?" It's been explained in bits and pieces on this blog but the explanation is due an update  阅读全文

posted @ 2011-05-30 08:10 XXXXXX 阅读(693) | 评论 (0)编辑 收藏

【转】To new or not to new

     摘要: Dependency injection asks us to separate the new operators from the application logic. This separation forces your code to have factories which are responsible for wiring your application together. However, better than writing factories, we want to use automatic dependency injection such as GUICE to do the wiring for us. But can DI really save us from all of the new operators?  阅读全文

posted @ 2011-05-29 10:20 XXXXXX 阅读(251) | 评论 (1)编辑 收藏

【转】How to think about OO

     摘要: Everyone seems to think that they are writing OO after all they are using OO languages such as Java, Python or Ruby. But if you exam the code it is often procedural in nature  阅读全文

posted @ 2011-05-29 09:48 XXXXXX 阅读(274) | 评论 (1)编辑 收藏

【转】The SET Career Path

By James Whittaker

I’ve had a number of questions about the SET role and it seems I have confused folks when I say that the SWE is a tester and the SET is a tester and at the same time the SWE is a developer and the SET is a developer. What could possibly be confusing about that?

Oh, yeah. Right.

My next series of posts are going to detail the role of the SET and all will eventually be clear but some clarification on career path seems worthwhile.

SETs are developers who write test code and automation as their primary task. They are in every sense of the word a developer. When we interview SETs, SWEs are on the interview loop and SWE questions are asked. They are not all of the interview, but they are part of it.

This means that the skill set that our SETs possess makes them perfect candidates for switching to the SWE role. There is neither incentive nor deterrent to do so. SETs and SWEs are on the same pay scale and bonus structure (I have both roles reporting to me so I have real visibility into salary data) and their promotion velocity (again based on actual data) is roughly equivalent. This means that SETs have no outside influences to prompt them one way or the other.

The key factor is really the type of work you are doing. SETs who find themselves involved in SWE work usually convert to SWE. SWEs are also drawn in the opposite direction. Much of this happens through our 20% time work. Any SET interested in SWE work can take on a 20% task doing feature development. Any SWE interested in automation can find a group and sign up for a 20%. Right now I have both SWEs and SETs involved in such cross pollination.

The ideal situation is that the title reflects the actual work that you are involved in. So if an SET starts doing more feature dev work than automation, he or she should convert, same for SWEs doing automation work. In my time here, conversions in both directions have happened, but it is not all that common. The work of both roles is engaging, interesting and intense. Few Googlers are walking around bored.

Bottom line: do the work you are passionate about and capable of and the right job title will find you.

posted @ 2011-05-25 00:04 XXXXXX 阅读(271) | 评论 (0)编辑 收藏

Visitor模式和Double Dispatch


一、概念
  静态分派(Static Dispatch),发生在编译时期,分派是根据静态类型信息发生的,方法重载就是静态分派。
  动态分派(Dynamic Dispatch),发生在运行时期,动态分派动态地置换掉某个方法。面向对象的语言用动态分派实现多态性。
  Java语言支持静态多分派和动态的单分派,利用设计模式Java可以实现Double Dispatch,即访问者模式。

二、Visitor Pattern
  目的:封装一些施加于某种数据结构元素之上的操作。
  UML图:
 
   主要原理:“反传球”,Element来Visitor之间二轮调用,调用过程中用sinlge dispatch确定类型


    

posted @ 2011-05-24 16:54 XXXXXX 阅读(1613) | 评论 (1)编辑 收藏

【转】性能测试指标的基本概念

     摘要:   阅读全文

posted @ 2011-05-21 15:04 XXXXXX 阅读(327) | 评论 (0)编辑 收藏

REST-表象化状态转变


记录关于REST的一些技术:

1、REST简介:http://zh.wikipedia.org/zh/REST
2、InfoQ 深入浅出REST:  http://www.infoq.com/cn/articles/rest-introduction

posted @ 2011-05-10 22:07 XXXXXX 阅读(309) | 评论 (0)编辑 收藏

【转】架构就是关注点分离

     摘要: 要设计良好的架构,必须做到关注点分离,这样可以产生高内聚、低耦合的系统,这是美丽架构的终极原则  阅读全文

posted @ 2011-05-10 22:02 XXXXXX 阅读(407) | 评论 (0)编辑 收藏