Data Driven Testing Peter Niederwieser, The Spock Framework TeamVersion 1.1 Oftentimes, it is useful to exercise the same test code multiple times, with varying inputs and expected results. Spock’s data driven testing support makes this a first class…
Interaction Based Testing Peter Niederwieser, The Spock Framework TeamVersion 1.1 Interaction-based testing is a design and testing technique that emerged in the Extreme Programming (XP) community in the early 2000’s. Focusing on the behavior of obje…
Test Design Techniques - STATE BASED TESTING -Test note of “Essential Software Test Design” 2015-08-19 Content: 13.1 The Model  13.1.1 The ATM Machine13.2 Creating Base Test Cases  13.2.1 Ways of Covering the Graph  13.2.2 Coverage According to Chow …
Spock Primer Peter Niederwieser, The Spock Framework TeamVersion 1.1 This chapter assumes that you have a basic knowledge of Groovy and unit testing. If you are a Java developer but haven’t heard about Groovy, don’t worry - Groovy will feel very fami…
Extensions Peter Niederwieser, The Spock Framework TeamVersion 1.1 Spock comes with a powerful extension mechanism, which allows to hook into a spec’s lifecycle to enrich or alter its behavior. In this chapter, we will first learn about Spock’s built…
Introduction Peter Niederwieser, The Spock Framework TeamVersion 1.1 Spock is a testing and specification framework for Java and Groovy applications. What makes it stand out from the crowd is its beautiful and highly expressive specification language…
原文:http://forums.esri.com/Thread.asp?c=93&f=989&t=289930 ----------------- I ran into this problem today and discovered that, for me, the solution was in how I opened the .mxt document that I wanted to modify. Originally I was double clicking on t…
Modules Peter Niederwieser, The Spock Framework TeamVersion 1.1 Guice Module Integration with the Guice IoC container. For examples see the specs in the codebase. Spring Module The Spring module enables integration with Spring TestContext Framework.…
目录 Spock测试套件 核心概念 整体认识 前置.后置 同junit的类比 Feature 方法 blocks 典型的用法 异常condition then和expect的区别 cleanup block的用法 测试用例中的文本描述 Extension 数据驱动测试 数据表 另外的写法 更清晰的测试结果展示 更丰富的数据准备方式 基于交互的测试(Interaction Based Testing) 对依赖Mock的调用期望,其结构如下 一些通配符 严格模式(Strict Mocking) 调用…
Software Testing Part I:The Big Picture 1.Software Testing Background Bug's formal definition 1.The software doesn't do something that the product specification says it should do. 2.The software does something that the product specification says it s…