Sha256: 04faefe176188746a44c76c80714c1a2719a6bff42a3373c3f5f339b351cb5e5
Contents?: true
Size: 1.09 KB
Versions: 4
Compression:
Stored size: 1.09 KB
Contents
require 'yaml' module SuiteHelper def self.exec(suite, junit=false, proxy=nil) base = File.expand_path(File.dirname(__FILE__)) cfg = YAML::load_file(suite) optional_options = '' if proxy optional_options += " --proxy=#{proxy}" end if junit optional_options += " --format=junit" end cfg[:suites].each { |test| puts "looking at test: #{test.inspect}" # if the current test for the suite has a browser use that # else take default browser if test.has_key?(:browser) browser = test[:browser] else browser = cfg[:default][:browser] end params = "--site=#{test[:site]} --file_name=#{test[:test_case_file]} --execute_methods=#{test[:methods_to_execute]} --browser=#{browser} --environment=#{test[:environment]} #{optional_options}" puts "executing test_runner with options: #{params}" out = `ruby #{base}/../test_runner.rb #{params}` puts out } end end suite = ARGV[0] raise ArgumentError unless File.exists? suite SuiteHelper.exec suite
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
qa_robusta-0.1.8 | qa_observer/suites/init.rb |
qa_robusta-0.1.5 | qa_observer/suites/init.rb |
qa_robusta-0.1.4 | qa_observer/suites/init.rb |
qa_robusta-0.1.3 | qa_observer/suites/init.rb |