关于CS169 BDD(Behavior Driven Design)

1. BDD (behavior driven design)
2. user story
3. SMART(specific,  measurable,  achievable,relevant,  time scope)
4. Cucumber 
5. Capybara    
6. 一个有用的命令, rake routes, 用来查rails route的路径,从而可以去path文件改cucumber要求的响应路径。
17. Ruby on rails 测试:  http://guides.rubyonrails.org/testing.html
18. 测试用的assert方法带例子: http://www.nullislove.com/wp-content/uploads/2008/02/test_assertions.pdf

15. 一篇简单的文章,说明了BDD的作用和cucumber的基本结构:  http://www.blogjava.net/wldandan/archive/2012/05/19/378557.html
11. Cucumber + watir的ruby中文教程,非常简单明了:  http://www.cnblogs.com/CloudTeng/archive/2012/02/03/2336293.html
12. Cucumber目录结构和执行过程: http://www.cnblogs.com/CloudTeng/archive/2011/10/16/2214293.html

Cucumber和Capybara的DSL(Domain Specific Language)
13. Cucumber backgournder (详细介绍cucumber的英文教程,包括cucumber DSL) : https://github.com/cucumber/cucumber/wiki/Cucumber-Backgrounder
14. Capybara DSL Github上的说明,较详细解释(用了很多xPath):  https://github.com/jnicklas/capybara
16. Capybara 详细的DSL, 比如 page.find 所有参数用法: http://rubydoc.info/github/jnicklas/capybara/master/Capybara


7.  一个cucumber的中文系列教程:   http://l404.blogspot.com.au/2009/02/cucumberrspec-1.html
8. 一篇关于cucumber + capybara的英文教程:  http://net.tutsplus.com/tutorials/ruby/ruby-for-newbies-testing-web-apps-with-capybara-and-cucumber/
8. Cucumber wiki:  https://github.com/cucumber/cucumber/wiki
9.  Capybara:  http://jnicklas.github.com/capybara/









Summary of steps to get started with hw3


Pasted below is summary of steps I carried out with the help of my discussion forum members. Hope it helps those who are yet to start.

1.Create an account on http://github.com with following:

username: enter username you want

email: enter your email

password: enter password you want

2.Next go to https://github.com/username created in step 1/hw3_rottenpotatoes link and click on Forked button on the top right hand side on the page. This reloads the browser page with below displayed:

username created in step 1 / hw3_rottenpotatoesforked from saasbook/hw3_rottenpotatoes

3.Next execute below command on local machine

saabbook@saasbook:~\(: git clone https://github.com/username created in step 1/hw3_rottenpotatoes.git

4.Execute following commands in this order:

4a.saasbook@saasbook:~\) cd hw3_rottenpotatoes

4b.saasbook@saasbook:~/hw3_rottenpotatoes\( git commit

On branch master

nothing to commit (working directory clean)

(Arti: above output as you have no changes made to any of the code files as yet)

4c.saasbook@saasbook:~/hw3_rottenpotatoes\) git tag hw3-part1b

4d.saasbook@saasbook:~/hw3_rottenpotatoes\( git diff hw3-part1b

4e.saasbook@saasbook:~/hw3_rottenpotatoes\) git push origin --tags

Username for 'https://github.com': username created in step 1

Password for 'https://artimehta@github.com': password supplied in step 1

4f.saasbook@saasbook:~/hw3_rottenpotatoes\( bundle install

4g.saasbook@saasbook:~/hw3_rottenpotatoes\) rake db:migrate

4h.saasbook@saasbook:~/hw3_rottenpotatoes\( rake db:seed

4i. 4h.saasbook@saasbook:~/hw3_rottenpotatoes\) rake db:test:prepare

4j.saasbook@saasbook:~/hw3_rottenpotatoes$ bundle exec cucumber

All set to go!


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值