Sha256: a0f8686b342b3338b48cad829817a03ca8420f2cc942e90d2db84270fef07eed

Contents?: true

Size: 1.25 KB

Versions: 47

Compression:

Stored size: 1.25 KB

Contents

# stubs for documentation
require 'calabash-cucumber/core'
require 'calabash-cucumber/operations'
require 'calabash-cucumber/launcher'

# base module for Frank-Calabash
module Calabash
  module Cucumber
    module Map
      def raw_map(query, method_name, *method_args)
        operation_map = {
            :method_name => method_name,
            :arguments => method_args
        }
        res = http({:method => :post, :path => 'cal_map'},
                   {:query => query, :operation => operation_map})
        res = JSON.parse(res)
        if res['outcome'] != 'SUCCESS'
          screenshot_and_raise "map #{query}, #{method_name} failed because: #{res['reason']}\n#{res['details']}"
        end

        res
      end

    end
  end
end

module Frank
  module Calabash
    def launch(options={})
      launcher = ::Calabash::Cucumber::Launcher.launcher
      #noinspection RubyResolve
      options[:app] ||= File.expand_path('Frank/frankified_build/Frankified.app')
      ::Frank::Cucumber::FrankHelper.selector_engine = 'calabash_uispec'

      launcher.relaunch(options)
    end

    def calabash_client
      Client.new
    end

    module Operations
      include ::Calabash::Cucumber::Operations
    end

    class Client
      include Operations
    end

  end
end

Version data entries

47 entries across 47 versions & 1 rubygems

Version Path
calabash-cucumber-0.19.2 lib/frank-calabash.rb
calabash-cucumber-0.19.1 lib/frank-calabash.rb
calabash-cucumber-0.19.0 lib/frank-calabash.rb
calabash-cucumber-0.19.0.pre3 lib/frank-calabash.rb
calabash-cucumber-0.19.0.pre2 lib/frank-calabash.rb
calabash-cucumber-0.19.0.pre1 lib/frank-calabash.rb
calabash-cucumber-0.18.2 lib/frank-calabash.rb
calabash-cucumber-0.18.1 lib/frank-calabash.rb
calabash-cucumber-0.18.0 lib/frank-calabash.rb
calabash-cucumber-0.17.1 lib/frank-calabash.rb
calabash-cucumber-0.17.0 lib/frank-calabash.rb
calabash-cucumber-0.16.4 lib/frank-calabash.rb
calabash-cucumber-0.16.3 lib/frank-calabash.rb
calabash-cucumber-0.16.2 lib/frank-calabash.rb
calabash-cucumber-0.16.1 lib/frank-calabash.rb
calabash-cucumber-0.15.0 lib/frank-calabash.rb
calabash-cucumber-0.14.3 lib/frank-calabash.rb
calabash-cucumber-0.14.2 lib/frank-calabash.rb
calabash-cucumber-0.14.2.pre1 lib/frank-calabash.rb
calabash-cucumber-0.14.1 lib/frank-calabash.rb