Tags » Code Coverage

测试的策略 1 - 名词解释

两种人

说到软件的测试,开发员(Developer,简称dev了)是得有的,测试员(Quality Assurance,QA)也是必需的。成熟的软件开发团队里还有有别得角色比如Product Manager (PM)和Business Analyst (BA)。他们在一定程度上也会帮助软件测试,但从职能来说dev和QA是技术流的,PM和BA是商业流的。测试策略这一系列文章的面向观众是技术流的,所以下面的文章里我们会大量提到的两种人指得是技术流得dev和QA。

花开两朵,各表一枝。

自打有了面向对象的编程方法,软件就再也不是铁板一块。由大到小,软件可以被拆成一个一个的类。类里面有方法(method)或者说函数(function)。每个方法或者函数里包含的是实现某个功能的基本逻辑。针对不同的范畴,软件的测试也可以这样由地方到中央地划分为单元测试、综合测试和系统测试。

单元测试 (Unit Test)

维基百科里对单元测试有一段及其拗口的定义,我试着翻译一下。

在计算机程序里,单元测试是一个方法,一个可以配合可控的数据,使用流程或操作流程检测源代码,一个或多个软件模块的独立单元是否满足使用需求的方法。

英文好的朋友可以看看原文,看看能不能有更好更深入的了解:

In computer programming, unit testing is a method by which individual units of source code, sets of one or more computer program modules together with associated control data, usage procedures, and operating procedures are tested to determine if they are fit for use…

37 more words
测试策略

程式碼涵蓋率 100% 這樣夠了嗎?

在看 model-based testing 時,我們會用各種測試路徑來設計測試案例,然後期望能夠把所有的路徑都考慮進去,這麼一來就會達成涵蓋率百分之百的成就。以下面的 Finite State Machine 來說,要想涵蓋所有路徑,需要設計 3 條路徑,會從 A 出發到達終點 F 或 E。

Posted@KKBOXSQA

Building with Ant

Ant has been around for a while now (first released in 2000) and it can be compared with a scripting language written in XML. XML tags are translated to Java objects and executed calling methods in the objects created. 1,239 more words

Ant

Code Coverage for BPMN by Mark Foster

Introduction

I visited a customer recently who asked a very interesting question…. they’d been performing a series of stress tests of their Business Process Management project made up of many & complex Business Process Management processes and they wanted to know if there were any activities/paths in any of their processes which they hadn’t traversed… sort of like “Clover” for Business Process Management, This led me to thinking about Business Process Management auditing and cross-referencing this with the Business Process Management activities. 289 more words

Soa Community