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: