Top Level Namespace
Defined Under Namespace
Modules: CukeHelper, EmailHelper, HookHelper, Kernel, ModelHelper, RSpec, Selenium, SmokeTest, Watir, Watirmark Classes: Array, FalseClass, Hash, Integer, ModelOpenStruct, Object, Profiler, Regexp, String, TrueClass
Constant Summary collapse
- Page =
Watirmark::Page
- DataModels =
This is a globally accessible static hash to store all models declared by the test automation. Making it available allows us to use the models values as table parameters in the gherkin!
Marshal::load(file.read)
- NEW_MODEL =
Create a new models and add it to the DataModels hash
Transform /^\[new (\S+) (\S+)\]$/ do |model_name, user_defined_name| model_name.chop! if model_name.end_with?(':') Watirmark::Transforms.new_model model_name, user_defined_name end
- OLD_STYLE_MODEL =
Transform /^\[new ([^:]+): (\S+)\]$/ do |model_name, user_defined_name| model_name = model_name.camelize model_name.chop! if model_name.end_with?(':') Watirmark::Transforms.new_model model_name, user_defined_name end
- MODEL =
Return the models from the collection of existing models
Transform /^\[(\S+)\]$/ do |model_name| DataModels[model_name] ||= ModelOpenStruct.new(:model_name => model_name) end