`
shappy1978
  • 浏览: 700305 次
  • 性别: Icon_minigender_1
  • 来自: 广州
社区版块
存档分类
最新评论

Chaining of TDD

 
阅读更多

* Checklist
1 Pucharm
2 Firefox
3 Cmd:  pip list, hehave selenium


MDD
ATDD
TDD
nnp>test>implement>refactor>test

* Feature
Cost of development
1 Cost of communication(
2 Wall between dep
3 Time zone
4 Language
5 Vendor

* Test tools
jbehave
Concordition
Jasmine
Cucomber
PyCHarm Community Edition

* BDD/TDD/Code review/Verify

* Test case
Give I'm using the system as a call center user
when I type a phone num on th search field
and I click on search
then I see the results contains the client anme and address base on my search.
Example:
Phone num |name |address
10000  Tom New York

* Dont's in test case
1 make test auto the end goal
2 focus on a tool
3 have y/n answer in ur examples
4 have absract class of equivalence
5 explore every conbinatorial possibility
6 over specify exam

Exercise: Black Jack
Story 1
As a player
I want to know the card points of mine, so that I can tell if I need more card(select an option)

Requirement
Given I'm a player
When I have some <cards>
then I should know the <points>
Example:
cards |points
10, A BJ
A,A,8 20
7,5,9 over flow
...
-----
When he has Ace,
and only 2 cards and the other is 10
then his total points is BJ
when treate Ace as 11 and sum is less then 21
then treate this sum as total points
when other case, treate ace as 1

Story 2
As a play
I want to know if I win or lost

Given I"m a player
When the game is over and I have some <cards>
then I should know the <result>
Example:
player |holder  |result
give up na  give up
 

when user give up
then he lost

when user buy insurance
and dealer get black jack,
then user win

when the player's points is larger than dealer
then he win

when the player's points is less or equals than dealer
then player lost

Story 3: Opetion to player:
when dealer's first card is Ace
and he has only 2 cards
player has option to buy insurance

when dealer's points is large
====================================== Day 2
Group: BA,QA,Dev
 domain, Technical

Prastic case
Source code:  Ruby: 4905
  js:   1982533
Unit test: Ruby: 3217
  js:   3279
Scenario Ruby: 598
  js:  

 


 

分享到:
评论

相关推荐

    Service Function Chaining (SFC) Architecture

    Service Function Chaining (SFC) Architecture

    Effective JavaScript: 68 Specific Ways to Harness the Power of JavaScript[EPUB版]

    Useful JavaScript programming patterns and idioms, such as options objects and method chaining In-depth guidance on using JavaScript’s unique “run-to-completion” approach to concurrency

    使用Antlr+Stringtemplate生成method chaining

    正文 使用Antlr+Stringtemplate生成method chaining 在这里 http://blog.csdn.net/younggift/article/details/7028932

    Javascript中的方法链(Method Chaining)介绍

    方法链(Method Chaining)是JavaScript中一种常见的编程技巧,特别是在使用像jQuery这样的库时,它使得连续调用对象的方法变得更加简洁和优雅。方法链的基本原理是,每个方法在执行后返回当前对象(通常是`this`)...

    使用Antlr+Stringtemplate生成method chaining 源代码

    使用Antlr+Stringtemplate生成method chaining,一个不太简单的案例(1) 因为一直上传失败,猜是因为附件太小,所以包含了antlr-3.4-complete-no-antlrv2.jar和antlrworks-1.4.3.jar。对浪费你的带宽抱歉。

    7. Network Service Chaining

    INE出品的SDN视频教程

    Struts Chaining-开源

    Struts Chaining是一种开源技术,它是Apache Jakarta Struts框架的一个扩展,主要目的是为了实现Action之间的平滑链接。在传统的Struts框架中,每个用户请求通常对应一个特定的Action,然后这个Action负责处理请求并...

    FM175XX_STM32_CPU_READER_Chaining.zip

    在提供的"FM175XX_STM32_CPU_READER_Chaining.zip"压缩包中,包含了一个基于STM32F103的DEMO程序源码,这个源码可以帮助我们理解如何将FM17550与STM32进行有效集成,实现CPU卡的读取功能。Keil MDK是常用的嵌入式...

    js代码-ES11的Optional Chaining示例代码。

    JavaScript是Web开发中不可或缺的一部分,而ES11(ECMAScript 2018)引入了许多新特性,其中Optional Chaining(可选链)是一项重要更新。它允许开发者更安全地访问深层嵌套的对象属性,即使这些属性路径可能存在...

    jQuery – 链(Chaining)

    jQuery – 链(Chaining) 通过 jQuery,可以把动作/方法链接在一起。 Chaining 允许我们在一条语句中运行多个 jQuery 方法(在相同的元素上)。 jQuery 方法链接 直到现在,我们都是一次写一条 jQuery 语句(一条...

    vue-template-babel-compiler:为基于 Babel 的 Vue.js SFC 启用 Optional Chaining 和许多新的 ES 特性

    vue-template-babel-compiler 为基于启用Optional Chaining和许多新的 ES 功能。特征所有特性Optional Chaining和更多新的 ES 功能 Bigint nullish coalescing 定制......演示用法 # 1: Install in your Vue project...

    underscore之Chaining_动力节点Java学院整理

    其中,Chaining是Underscore.js的一个重要特性,它使得我们可以像jQuery那样优雅地进行连续操作,极大地提高了代码的可读性和简洁性。 链式调用(Chaining)的概念源于面向对象编程中的方法调用,jQuery将其引入到...

    Fuzzy Control Systems

    5 Chaining of Fuzzy Rules 6 Decoupled Inputs 7 Hierarchical Representation of Rules 8 Conclusion References Part B—Methodologies and Algorithms Chapter 6—Dynamic Analysis of Fuzzy ...

    NIST SP800-38C.pdf

    This Recommendation specifies an algorithm, Counter with Cipher Block Chaining-Message Authentication Code [1], abbreviated CCM, that can provide assurance of the confidentiality and authenticity of ...

    The Art of Assembly Language Programming

    You are visitor as of October 17, 1996. The Art of Assembly Language Programming &lt;br&gt;Forward Why Would Anyone Learn This Stuff? 1 What's Wrong With Assembly Language 2 What's Right With ...

Global site tag (gtag.js) - Google Analytics