Sha256: 078773a83e3c07b25b4cdc2ed2ea3a6f5a64c816b77a4a5e922cc22de380da66
Contents?: true
Size: 1.66 KB
Versions: 5
Compression:
Stored size: 1.66 KB
Contents
base = File.expand_path(File.dirname(__FILE__)) # If the user is executing the test case stand alone # without an agent we need to set a reference to # for where to find the qa_observer_client as well as let # the qa_observer_client know where the test case directory is # URGENT: DO NOT MODIFY unless $qa_observer_client TEST_CASE_DIR = "#{base}" $qa_observer_client = File.expand_path("#{base}/../../..") end # END OF DO NOT MODIFY require "#{$qa_observer_client}/lib/system_test" require "#{$qa_observer_client}/lib/env_details.rb" class <%= class_name.camelize %> < SystemTest def setup # if the user hasn't provided the environment as an input # parameter to the interpreter default to :test $test_environment ||= :test super @<%= app_name %>_flows = <%= app_name.camelize %>Flows.new end def teardown # NOTE: Place all items you wish to do at after each test method # in the unless @skip section before the $browser.close. DO NOT # remove this section as it's critical if the test class is executed # by an agent. unless @skip begin $browser.close rescue => e end end super end # TODO: add test methods # don't forget to update the documentation associated with each test method, # by placing an rdoc style comment in plain text. The documentation will be # included in the report for each execution. =begin rdoc Test Purpose After the user arrives on the home page verify the following links exists: * some link 1 * some link 2 * some link 3 =end def test_home_links @<%= app_name %>_flows.home # TODO add asserts for testing home page links end end
Version data entries
5 entries across 5 versions & 1 rubygems