acceptance_test 1.9.1 → 1.9.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.idea/acceptance_test.iml +72 -0
- data/CHANGES +5 -1
- data/lib/acceptance_test/acceptance_test.rb +1 -1
- data/lib/acceptance_test/driver_manager.rb +2 -2
- data/lib/acceptance_test/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f264d1137e8b7a999cd718f908fbd9c3241ecc29
|
4
|
+
data.tar.gz: 6efe8f3e0562ff87800b2f65a3d9923196bdade6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4f4a4e83ed69b812a32216a11b0e24b96ba616ef1b29831fb58e6f6fb7ab5da27d0e57a283ff28f2b0b1eb7e38049aafe37b954414c1c57619445b2af5e7fd96
|
7
|
+
data.tar.gz: d71f7cf645176f437c569f251abb15b0b9c3b7d0a739bb38ec073cf365b5a8f6791b7fab3f935951eba55a474086da79bf5478a147f458326715e803f9a96f1c
|
data/.idea/acceptance_test.iml
CHANGED
@@ -292,6 +292,78 @@
|
|
292
292
|
<ConfigurationWrapper RunnerId="RubyRunner" />
|
293
293
|
<method />
|
294
294
|
</configuration>
|
295
|
+
<configuration default="false" name="Run spec 'search_with_config_spec': acceptance_test" type="RSpecRunConfigurationType" factoryName="RSpec" temporary="true">
|
296
|
+
<predefined_log_file id="RUBY_RSPEC" enabled="true" />
|
297
|
+
<module name="acceptance_test" />
|
298
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
299
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="$MODULE_DIR$" />
|
300
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
|
301
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
|
302
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
|
303
|
+
<envs>
|
304
|
+
<env name="JRUBY_OPTS" value="-X+O" />
|
305
|
+
</envs>
|
306
|
+
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="true" />
|
307
|
+
<EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
|
308
|
+
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
|
309
|
+
<COVERAGE_PATTERN ENABLED="true">
|
310
|
+
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
311
|
+
</COVERAGE_PATTERN>
|
312
|
+
</EXTENSION>
|
313
|
+
<EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
|
314
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
|
315
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/spec/acceptance/search_with_config_spec.rb" />
|
316
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
|
317
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
|
318
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="" />
|
319
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
|
320
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
|
321
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
|
322
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="USE_CUSTOM_SPEC_RUNNER" VALUE="false" />
|
323
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
|
324
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
|
325
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
|
326
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
|
327
|
+
<RunnerSettings RunnerId="RubyRunner" />
|
328
|
+
<ConfigurationWrapper RunnerId="RubyRunner" />
|
329
|
+
<method />
|
330
|
+
</configuration>
|
331
|
+
<configuration default="false" name="Run spec 'search_with_drivers_spec': acceptance_test" type="RSpecRunConfigurationType" factoryName="RSpec" temporary="true">
|
332
|
+
<predefined_log_file id="RUBY_RSPEC" enabled="true" />
|
333
|
+
<module name="acceptance_test" />
|
334
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
335
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="$MODULE_DIR$" />
|
336
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
|
337
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
|
338
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
|
339
|
+
<envs>
|
340
|
+
<env name="JRUBY_OPTS" value="-X+O" />
|
341
|
+
</envs>
|
342
|
+
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="true" />
|
343
|
+
<EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
|
344
|
+
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
|
345
|
+
<COVERAGE_PATTERN ENABLED="true">
|
346
|
+
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
347
|
+
</COVERAGE_PATTERN>
|
348
|
+
</EXTENSION>
|
349
|
+
<EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
|
350
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
|
351
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/spec/acceptance/search_with_drivers_spec.rb" />
|
352
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
|
353
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
|
354
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="" />
|
355
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
|
356
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
|
357
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
|
358
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="USE_CUSTOM_SPEC_RUNNER" VALUE="false" />
|
359
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
|
360
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
|
361
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
|
362
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
|
363
|
+
<RunnerSettings RunnerId="RubyRunner" />
|
364
|
+
<ConfigurationWrapper RunnerId="RubyRunner" />
|
365
|
+
<method />
|
366
|
+
</configuration>
|
295
367
|
</component>
|
296
368
|
<component name="NewModuleRootManager">
|
297
369
|
<content url="file://$MODULE_DIR$" />
|
data/CHANGES
CHANGED
@@ -34,7 +34,7 @@ class AcceptanceTest
|
|
34
34
|
driver = driver(metadata)
|
35
35
|
browser = browser(metadata)
|
36
36
|
|
37
|
-
driver_name = driver_manager.register_driver(driver, browser, config[:selenium_url])
|
37
|
+
driver_name = driver_manager.register_driver(driver, browser, config[:selenium_url], config[:capabilities])
|
38
38
|
|
39
39
|
driver_manager.use_driver(driver_name, page)
|
40
40
|
|
@@ -29,7 +29,7 @@ class DriverManager
|
|
29
29
|
[:firefox, :chrome]
|
30
30
|
end
|
31
31
|
|
32
|
-
def register_driver(driver, browser=:firefox, selenium_url=nil)
|
32
|
+
def register_driver(driver, browser=:firefox, selenium_url=nil, capabilities=nil)
|
33
33
|
driver_name = build_driver_name(driver, browser, selenium_url)
|
34
34
|
|
35
35
|
case driver
|
@@ -61,7 +61,7 @@ class DriverManager
|
|
61
61
|
if selenium_url
|
62
62
|
properties[:browser] = :remote
|
63
63
|
properties[:url] = selenium_url
|
64
|
-
|
64
|
+
properties[:desired_capabilities] = capabilities if capabilities
|
65
65
|
|
66
66
|
# profile = Selenium::WebDriver::Firefox::Profile.new
|
67
67
|
# profile.enable_firebug
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: acceptance_test
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.9.
|
4
|
+
version: 1.9.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alexander Shvets
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-11
|
11
|
+
date: 2014-12-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gemspec_deps_gen
|