Sha256: 9e2883d810e4a7f4cf34c99b4dc32e4ce282be237d9b8e4af52bd10c53e9a34a
Contents?: true
Size: 1.05 KB
Versions: 1
Compression:
Stored size: 1.05 KB
Contents
require 'rspec/expectations' require 'appium_lib' require 'cucumber/ast' require 'selenium-webdriver' require 'open-uri' require 'rbconfig' require 'rubygems' require 'yaml' require 'cucumber' require 'rack/utf8_sanitizer' require 'net/https' require 'Ifd_Mobile' $current_dir = File.expand_path(File.dirname(__FILE__)) $base_dir = File.expand_path(File.dirname(__FILE__) + '/../..') $_CONFIG = Hash.new PROJECT_CONFIG = YAML.load_file("#{$current_dir}/project_config.yml") $_CONFIG['Print Log'] = true $_CONFIG['Wait Time'] = PROJECT_CONFIG["wait_time"] $OBJECT = YAML.load_file("#{$base_dir}/features/step_definitions/repositories/project_object.yml") $test_data_dir = $base_dir + '/features/TestData/' $globalData = YAML.load_file("#{$test_data_dir}/globalData.yml") class AppiumWorld end Appium::Driver.new({caps: PROJECT_CONFIG['capabilities'], appium_lib: {server_url: PROJECT_CONFIG["server_url"]}}).start_driver Appium.promote_appium_methods AppiumWorld World do AppiumWorld.new end def selenium return $driver end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
Ifd_Mobile-1.2.0 | project/features/support/env.rb |