cucumber学习笔记6

上一篇 / 下一篇  2013-08-26 19:06:33

Booting the Cucumber Environment:

1、use features/support & feature/support/evn.rb
When Cucumber first starts a test run, before it loads the step definitions, it loads the files in a directory called features/support.

But the precise order in which files are loaded is hard to control.The file features/support/env.rb is always the very first file to be loaded when Cucumber starts a test run. Use it to prepare the environment for the rest of your support and step definition code to operate.

2、Create a file called features/support/transforms.rb and move all the transform. out of steps.rb and into there.

3、 As we add more methods to our World, we would split them into multiple modules, each in their own file


TAG:

 

评分:0

我来说两句

我的栏目

日历

« 2024-04-30  
 123456
78910111213
14151617181920
21222324252627
282930    

数据统计

  • 访问量: 31853
  • 日志数: 22
  • 建立时间: 2013-08-19
  • 更新时间: 2014-04-01

RSS订阅

Open Toolbar