Class: AutoTest::Configuration
- Inherits:
-
Object
- Object
- AutoTest::Configuration
- Defined in:
- lib/auto_test.rb
Instance Method Summary collapse
-
#always_present(class_name, key, value) ⇒ Object
add an array of the classname, key and value of the object to be checked every cycle.
- #fixtures(*fixtures) ⇒ Object
- #get_users_from_db(user_class_name, bool) ⇒ Object
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
- #links_to_exclude(*links) ⇒ Object
-
#set_input(input, *values) ⇒ Object
for the name or part of the name of an input field, decide, which values to use if not set, random values matching the input type are used.
-
#set_login_attribute_names(logins, fields) ⇒ Object
set the attribute_names and fields that are needed to login the argument is a list of pairs [attribute_name, field].
- #set_login_button(text) ⇒ Object
- #set_login_data(*data) ⇒ Object
-
#set_login_path(path) ⇒ Object
set the login path.
- #set_logout_path(path) ⇒ Object
- #set_max_depth(value) ⇒ Object
- #set_max_number_of_session_links(no) ⇒ Object
- #set_no_auth ⇒ Object
- #set_number_of_sessions(number) ⇒ Object
- #set_number_of_test_runs(number) ⇒ Object
-
#set_object_dependency(child, parent, attribute_name) ⇒ Object
for all objects of class child, there has to be one object of class parent attribute_name is the column that joins the two tables.
- #set_unique_login_attribute_name(name) ⇒ Object
- #stop_at_first_error(stop_at_first_error) ⇒ Object
-
#use_fixtures(bool) ⇒ Object
define all user functions.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
32 33 34 35 36 37 38 |
# File 'lib/auto_test.rb', line 32 def initialize Test.initialize_test Rails.logger.level = 1 DatabaseCleaner.strategy = :truncation DatabaseCleaner.start DatabaseCleaner.clean end |
Instance Method Details
#always_present(class_name, key, value) ⇒ Object
add an array of the classname, key and value of the object to be checked every cycle
67 68 69 |
# File 'lib/auto_test.rb', line 67 def always_present(class_name, key, value) Dsl.always_present(class_name, key, value) end |
#fixtures(*fixtures) ⇒ Object
46 47 48 |
# File 'lib/auto_test.rb', line 46 def fixtures(*fixtures) Test.fixtures(fixtures) end |
#get_users_from_db(user_class_name, bool) ⇒ Object
71 72 73 |
# File 'lib/auto_test.rb', line 71 def get_users_from_db(user_class_name, bool) Dsl.get_users_from_db(user_class_name, bool) end |
#links_to_exclude(*links) ⇒ Object
50 51 52 |
# File 'lib/auto_test.rb', line 50 def links_to_exclude(*links) Dsl.links_to_exclude(*links) end |
#set_input(input, *values) ⇒ Object
for the name or part of the name of an input field, decide, which values to use if not set, random values matching the input type are used
85 86 87 |
# File 'lib/auto_test.rb', line 85 def set_input(input, *values) Dsl.set_input(input, *values) end |
#set_login_attribute_names(logins, fields) ⇒ Object
set the attribute_names and fields that are needed to login the argument is a list of pairs [attribute_name, field]
102 103 104 |
# File 'lib/auto_test.rb', line 102 def set_login_attribute_names(logins, fields) Dsl.set_login_attribute_names(logins, fields) end |
#set_login_button(text) ⇒ Object
54 55 56 |
# File 'lib/auto_test.rb', line 54 def (text) Dsl.(text) end |
#set_login_data(*data) ⇒ Object
79 80 81 |
# File 'lib/auto_test.rb', line 79 def set_login_data(*data) Dsl.set_login_data(*data) end |
#set_login_path(path) ⇒ Object
set the login path
96 97 98 |
# File 'lib/auto_test.rb', line 96 def set_login_path(path) Dsl.set_login_path(path) end |
#set_logout_path(path) ⇒ Object
114 115 116 |
# File 'lib/auto_test.rb', line 114 def set_logout_path(path) Dsl.set_logout_path(path) end |
#set_max_depth(value) ⇒ Object
58 59 60 |
# File 'lib/auto_test.rb', line 58 def set_max_depth(value) Dsl.set_max_depth(value) end |
#set_max_number_of_session_links(no) ⇒ Object
106 107 108 |
# File 'lib/auto_test.rb', line 106 def set_max_number_of_session_links(no) Dsl.set_max_number_of_session_links(no) end |
#set_no_auth ⇒ Object
110 111 112 |
# File 'lib/auto_test.rb', line 110 def set_no_auth Dsl.set_no_auth end |
#set_number_of_sessions(number) ⇒ Object
62 63 64 |
# File 'lib/auto_test.rb', line 62 def set_number_of_sessions(number) Dsl.set_number_of_sessions(number) end |
#set_number_of_test_runs(number) ⇒ Object
122 123 124 |
# File 'lib/auto_test.rb', line 122 def set_number_of_test_runs(number) Dsl.set_number_of_test_runs(number) end |
#set_object_dependency(child, parent, attribute_name) ⇒ Object
for all objects of class child, there has to be one object of class parent attribute_name is the column that joins the two tables
91 92 93 |
# File 'lib/auto_test.rb', line 91 def set_object_dependency(child, parent, attribute_name) Dsl.set_object_dependency(child, parent, attribute_name) end |
#set_unique_login_attribute_name(name) ⇒ Object
75 76 77 |
# File 'lib/auto_test.rb', line 75 def set_unique_login_attribute_name(name) Dsl.set_unique_login_attribute_name(name) end |
#stop_at_first_error(stop_at_first_error) ⇒ Object
118 119 120 |
# File 'lib/auto_test.rb', line 118 def stop_at_first_error(stop_at_first_error) Dsl.stop_at_first_error(stop_at_first_error) end |
#use_fixtures(bool) ⇒ Object
define all user functions
42 43 44 |
# File 'lib/auto_test.rb', line 42 def use_fixtures(bool) Test.use_fixtures(bool) end |