-
Notifications
You must be signed in to change notification settings - Fork 4
Project Directory Structure
bfaloona edited this page Sep 13, 2010
·
4 revisions
This is the basic structure of a new WatirCraft test project.
- \config – contains the files for configuring Watir and WatirCraft.
- config.yml – used to configure Watir. Set your browser to IE or Firefox in this file.
-
environments.yml – used to indicate the root URL of your site. Note that you can set up
multiple sites and then use environment variables to control which one is in use. - \lib – contains the files to support your tests.
- \lib\init – for advanced users only
-
\lib\methods – contains any files created by script\generate method commands.
-
\lib\pages – contains any files created by script\generate page commands. Can also
copy and paste to create copies of existing files to modify. - \lib\steps – contains any files created by script\generate step commands. For Cucumber integration.
- \lib\initialize.rb – do not modify.
- \lib\projectname.rb – do not modify.
- \script – contains the three script commands
-
\script\console.cmd – starts up the Interactive Ruby console to allow line by line Ruby commands in
a specialized command window. - \script\destroy.cmd – deletes a script, spec or page file. Not really used much.
-
\script\generate.cmd – generates a skeleton file for page, spec or step and places it in the
appropriate directory. - \test – contains test code.
- \test\features – contains .feature files for use with Cucumber
-
\test\specs – contains rspec test specs generated using script\generate spec command.
Can also copy and paste to create copies of existing files to modify.