Sha256: 5ff1788edc39b80c34eb6eb5a4122bc7fefa743fd084625a5200ab73d3098505

Contents?: true

Size: 870 Bytes

Versions: 1

Compression:

Stored size: 870 Bytes

Contents

def msg(title, &block)
  puts "\n" + "-"*10 + title + "-"*10
  block.call
  puts "-"*10 + "-------" + "-"*10 + "\n"
end


def print_usage
  puts <<EOF
  Usage Options:
  
    awetestlib regression_setup
      setup awetest regression and register autoitx3.dll

    awetestlib rubymine_setup
      setup a sample rubymine project

    awetestlib netbeans_setup
      setup a sample netbeans project

    awetestlib cucumber_setup
      setup cucumber regression and provide skeleton folder structure

    awetestlib <script_file> [parameters]
      run an awetest regression script

EOF
end

def check_script_type(options)
  script_options = ['Regression', 'Cucumber']
  if script_options.include? ARGV[0]
    options[:script_type] = ARGV[0]
    options[:script_file] = ARGV[1]
  else
    options[:script_type] = 'Regression'
    options[:script_file] = ARGV[0]
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
awetestlib-0.1.8 bin/awetestlib-helpers.rb