Sha256: 261352aefbe16c9f3bb52597e7f40a404239d4afdc5be49a732dba9f61f35793

Contents?: true

Size: 1.36 KB

Versions: 16

Compression:

Stored size: 1.36 KB

Contents

module Calabash
  module IOS

    # Constants that describe the iOS test environment.
    class Environment < Calabash::Environment

      # A URI that points to the embedded Calabash server in the app under test.
      #
      # The default value is 'http://localhost:37265'.
      #
      # You can control the value of this variable by setting the `CAL_ENDPOINT`
      # variable.
      #
      # @todo Maybe rename this to CAL_SERVER_URL or CAL_SERVER?
      DEVICE_ENDPOINT = URI.parse((variable('CAL_ENDPOINT') || 'http://localhost:37265'))

      # The strategy use when interacting with UIAutomation.  Calabash iOS
      # supports 3 strategies:
      #
      # 1. preferences: Fast, but only works on simulators and on devices < 8.0.
      # 2. shared:  Fast, but has limited functionality.  For example, you
      #             can't send apps to the background.
      # 3. host: Slow, but the only option for devices >= 8.0.
      #
      # Calabash and run-loop will work together to figure out the fastest,
      # most feature complete strategy to use at runtime.
      #
      # This is an advanced feature.  Don't set this variable unless you know
      # what you are doing.
      UIA_STRATEGY = lambda do
        strategy = variable('CAL_UIA_STRATEGY')
        if strategy
          strategy.to_sym
        else
          nil
        end
      end.call
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
calabash-2.0.0.pre11 lib/calabash/ios/environment.rb
calabash-2.0.0.pre10 lib/calabash/ios/environment.rb
calabash-2.0.0.pre9 lib/calabash/ios/environment.rb
calabash-2.0.0.prelegacy4 lib/calabash/ios/environment.rb
calabash-2.0.0.prelegacy3 lib/calabash/ios/environment.rb
calabash-2.0.0.prelegacy2 lib/calabash/ios/environment.rb
calabash-2.0.0.prelegacy lib/calabash/ios/environment.rb
calabash-2.0.0.pre6 lib/calabash/ios/environment.rb
calabash-2.0.0.pre5 lib/calabash/ios/environment.rb
calabash-2.0.0.pre4 lib/calabash/ios/environment.rb
calabash-2.0.0.pre3 lib/calabash/ios/environment.rb
calabash-2.0.0.pre2 lib/calabash/ios/environment.rb
calabash-2.0.0.pre1 lib/calabash/ios/environment.rb
calabash-1.9.9.pre3 lib/calabash/ios/environment.rb
calabash-1.9.9.pre2 lib/calabash/ios/environment.rb
calabash-1.9.9.pre1 lib/calabash/ios/environment.rb