acceptance_test 1.0.2 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +8 -8
- data/.idea/.rakeTasks +7 -0
- data/.idea/acceptance_test.iml +146 -37
- data/.idea/jenkinsSettings.xml +9 -0
- data/.idea/misc.xml +1 -0
- data/CHANGES +4 -0
- data/LICENSE +1 -1
- data/lib/acceptance_test/acceptance_shared_context.rb +11 -4
- data/lib/acceptance_test/acceptance_test.rb +37 -20
- data/lib/acceptance_test/version.rb +1 -1
- data/spec/features/features_spec_helper.rb +1 -3
- data/spec/features/selenium.yml +2 -2
- data/spec/features/with_selenium_conf_spec.rb +9 -0
- metadata +4 -2
checksums.yaml
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
---
|
|
2
2
|
!binary "U0hBMQ==":
|
|
3
3
|
metadata.gz: !binary |-
|
|
4
|
-
|
|
4
|
+
ZDkzYWE0NTdjNzU0OGI2ZGU1NWZlMDExZmI2ZGJiN2MxODU0NGVkYg==
|
|
5
5
|
data.tar.gz: !binary |-
|
|
6
|
-
|
|
6
|
+
MTVjNGE4YWFiYzFjZDJkYzY0MzhjMjBlZmRjOTFjZWNjNjgyMzg3NQ==
|
|
7
7
|
SHA512:
|
|
8
8
|
metadata.gz: !binary |-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
ZGQ3YjBjMDM0ZWFiM2UyMDQ5NGRmNDkxZWQ0ODZlY2NlNGYzMTZiM2NkYzE1
|
|
10
|
+
YTUyM2I1MDg0NzRkZDNhNTg1MDVlMWI0OGNjZjYwMzY1MTM4Njc4MmNkN2Iz
|
|
11
|
+
MGU3NTQ1MDQ3M2I2ZWRjYTYxOTQyODZiZTM0MjRlMWU5OTRkZjU=
|
|
12
12
|
data.tar.gz: !binary |-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
NDRjNzhlMzI2NGY3ZTVkZWZhZGMzMGFlMDBkNzEzMjRkOWFkMjNmNGRmMTMy
|
|
14
|
+
ZjhhNzVkYzlhMWY5NWJkNjI3ZTA3MzUwMDQzNWM2YzVhODhkMDFiOWE2OTVm
|
|
15
|
+
ZDM5MGFjMWFlZjkyYWM2YmZkYmIxYzExNzhmZjQ3NWQ3ZTI5NTM=
|
data/.idea/.rakeTasks
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<Settings><!--This file was automatically generated by Ruby plugin.
|
|
3
|
+
You are allowed to:
|
|
4
|
+
1. Remove rake task
|
|
5
|
+
2. Add existing rake tasks
|
|
6
|
+
To add existing rake tasks automatically delete this file and reload the project.
|
|
7
|
+
--><RakeGroup description="" fullCmd="" taksId="rake"><RakeTask description="Run RSpec code examples" fullCmd="spec" taksId="spec" /><RakeTask description="" fullCmd="build" taksId="build" /><RakeTask description="" fullCmd="fix_debug" taksId="fix_debug" /><RakeTask description="" fullCmd="gen" taksId="gen" /><RakeTask description="" fullCmd="install" taksId="install" /><RakeTask description="" fullCmd="release" taksId="release" /><RakeTask description="" fullCmd="uninstall" taksId="uninstall" /></RakeGroup></Settings>
|
data/.idea/acceptance_test.iml
CHANGED
|
@@ -9,46 +9,155 @@
|
|
|
9
9
|
</configuration>
|
|
10
10
|
</facet>
|
|
11
11
|
</component>
|
|
12
|
+
<component name="ModuleRunConfigurationManager">
|
|
13
|
+
<configuration default="false" name="Google Search uses selenium driver" type="RSpecRunConfigurationType" factoryName="RSpec" temporary="true">
|
|
14
|
+
<predefined_log_file id="RUBY_RSPEC" enabled="true" />
|
|
15
|
+
<module name="acceptance_test" />
|
|
16
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
|
17
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="$MODULE_DIR$" />
|
|
18
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
|
|
19
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
|
|
20
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
|
|
21
|
+
<envs>
|
|
22
|
+
<env name="JRUBY_OPTS" value="-X+O" />
|
|
23
|
+
</envs>
|
|
24
|
+
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="true" />
|
|
25
|
+
<EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
|
|
26
|
+
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
|
|
27
|
+
<COVERAGE_PATTERN ENABLED="true">
|
|
28
|
+
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
|
29
|
+
</COVERAGE_PATTERN>
|
|
30
|
+
</EXTENSION>
|
|
31
|
+
<EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
|
|
32
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
|
|
33
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/spec/features/google_search_spec.rb" />
|
|
34
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
|
|
35
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
|
|
36
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="Google Search uses selenium driver" />
|
|
37
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
|
|
38
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
|
|
39
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
|
|
40
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="USE_CUSTOM_SPEC_RUNNER" VALUE="false" />
|
|
41
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
|
|
42
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
|
|
43
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
|
|
44
|
+
<RunnerSettings RunnerId="RubyDebugRunner" />
|
|
45
|
+
<RunnerSettings RunnerId="RubyRunner" />
|
|
46
|
+
<ConfigurationWrapper RunnerId="RubyDebugRunner" />
|
|
47
|
+
<ConfigurationWrapper RunnerId="RubyRunner" />
|
|
48
|
+
<method />
|
|
49
|
+
</configuration>
|
|
50
|
+
<configuration default="false" name="Google Search" type="RSpecRunConfigurationType" factoryName="RSpec" temporary="true">
|
|
51
|
+
<predefined_log_file id="RUBY_RSPEC" enabled="true" />
|
|
52
|
+
<module name="acceptance_test" />
|
|
53
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
|
54
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="$MODULE_DIR$" />
|
|
55
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
|
|
56
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
|
|
57
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
|
|
58
|
+
<envs>
|
|
59
|
+
<env name="JRUBY_OPTS" value="-X+O" />
|
|
60
|
+
</envs>
|
|
61
|
+
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="true" />
|
|
62
|
+
<EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
|
|
63
|
+
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
|
|
64
|
+
<COVERAGE_PATTERN ENABLED="true">
|
|
65
|
+
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
|
66
|
+
</COVERAGE_PATTERN>
|
|
67
|
+
</EXTENSION>
|
|
68
|
+
<EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
|
|
69
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
|
|
70
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/spec/features/google_search_spec.rb" />
|
|
71
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
|
|
72
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
|
|
73
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="Google Search" />
|
|
74
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
|
|
75
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
|
|
76
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
|
|
77
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="USE_CUSTOM_SPEC_RUNNER" VALUE="false" />
|
|
78
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
|
|
79
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
|
|
80
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
|
|
81
|
+
<RunnerSettings RunnerId="RubyRunner" />
|
|
82
|
+
<ConfigurationWrapper RunnerId="RubyRunner" />
|
|
83
|
+
<method />
|
|
84
|
+
</configuration>
|
|
85
|
+
<configuration default="false" name="google_search_spec" type="RSpecRunConfigurationType" factoryName="RSpec" temporary="true">
|
|
86
|
+
<predefined_log_file id="RUBY_RSPEC" enabled="true" />
|
|
87
|
+
<module name="acceptance_test" />
|
|
88
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
|
89
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="$MODULE_DIR$" />
|
|
90
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
|
|
91
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
|
|
92
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
|
|
93
|
+
<envs>
|
|
94
|
+
<env name="JRUBY_OPTS" value="-X+O" />
|
|
95
|
+
</envs>
|
|
96
|
+
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="true" />
|
|
97
|
+
<EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
|
|
98
|
+
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
|
|
99
|
+
<COVERAGE_PATTERN ENABLED="true">
|
|
100
|
+
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
|
101
|
+
</COVERAGE_PATTERN>
|
|
102
|
+
</EXTENSION>
|
|
103
|
+
<EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
|
|
104
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
|
|
105
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/spec/features/google_search_spec.rb" />
|
|
106
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
|
|
107
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
|
|
108
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="" />
|
|
109
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
|
|
110
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
|
|
111
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
|
|
112
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="USE_CUSTOM_SPEC_RUNNER" VALUE="false" />
|
|
113
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
|
|
114
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
|
|
115
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
|
|
116
|
+
<RunnerSettings RunnerId="RubyRunner" />
|
|
117
|
+
<ConfigurationWrapper RunnerId="RubyRunner" />
|
|
118
|
+
<method />
|
|
119
|
+
</configuration>
|
|
120
|
+
</component>
|
|
12
121
|
<component name="NewModuleRootManager">
|
|
13
122
|
<content url="file://$MODULE_DIR$" />
|
|
14
|
-
<orderEntry type="
|
|
123
|
+
<orderEntry type="jdk" jdkName="RVM: ruby-1.9.3-p448 [acceptance_test]" jdkType="RUBY_SDK" />
|
|
15
124
|
<orderEntry type="sourceFolder" forTests="false" />
|
|
16
|
-
<orderEntry type="library" scope="PROVIDED" name="activesupport (v3.2.14, RVM: ruby-1.9.3-p448 [
|
|
17
|
-
<orderEntry type="library" scope="PROVIDED" name="bundler (v1.3.5, RVM: ruby-1.9.3-p448 [
|
|
18
|
-
<orderEntry type="library" scope="PROVIDED" name="capybara (v2.1.0, RVM: ruby-1.9.3-p448 [
|
|
19
|
-
<orderEntry type="library" scope="PROVIDED" name="capybara-firebug (v1.3.0, RVM: ruby-1.9.3-p448 [
|
|
20
|
-
<orderEntry type="library" scope="PROVIDED" name="capybara-webkit (v1.0.0, RVM: ruby-1.9.3-p448 [
|
|
21
|
-
<orderEntry type="library" scope="PROVIDED" name="childprocess (v0.3.9, RVM: ruby-1.9.3-p448 [
|
|
22
|
-
<orderEntry type="library" scope="PROVIDED" name="cliver (v0.2.1, RVM: ruby-1.9.3-p448 [
|
|
23
|
-
<orderEntry type="library" scope="PROVIDED" name="debugger-ruby_core_source (v1.2.3, RVM: ruby-1.9.3-p448 [
|
|
24
|
-
<orderEntry type="library" scope="PROVIDED" name="diff-lcs (v1.2.4, RVM: ruby-1.9.3-p448 [
|
|
25
|
-
<orderEntry type="library" scope="PROVIDED" name="ffi (v1.9.0, RVM: ruby-1.9.3-p448 [
|
|
26
|
-
<orderEntry type="library" scope="PROVIDED" name="file_utils (v1.0.7, RVM: ruby-1.9.3-p448 [
|
|
27
|
-
<orderEntry type="library" scope="PROVIDED" name="gemcutter (v0.7.1, RVM: ruby-1.9.3-p448 [
|
|
28
|
-
<orderEntry type="library" scope="PROVIDED" name="gemspec_deps_gen (v1.1.2, RVM: ruby-1.9.3-p448 [
|
|
29
|
-
<orderEntry type="library" scope="PROVIDED" name="i18n (v0.6.5, RVM: ruby-1.9.3-p448 [
|
|
30
|
-
<orderEntry type="library" scope="PROVIDED" name="json (v1.8.0, RVM: ruby-1.9.3-p448 [
|
|
31
|
-
<orderEntry type="library" scope="PROVIDED" name="metaclass (v0.0.1, RVM: ruby-1.9.3-p448 [
|
|
32
|
-
<orderEntry type="library" scope="PROVIDED" name="mime-types (v1.25, RVM: ruby-1.9.3-p448 [
|
|
33
|
-
<orderEntry type="library" scope="PROVIDED" name="mini_portile (v0.5.1, RVM: ruby-1.9.3-p448 [
|
|
34
|
-
<orderEntry type="library" scope="PROVIDED" name="mocha (v0.14.0, RVM: ruby-1.9.3-p448 [
|
|
35
|
-
<orderEntry type="library" scope="PROVIDED" name="multi_json (v1.8.0, RVM: ruby-1.9.3-p448 [
|
|
36
|
-
<orderEntry type="library" scope="PROVIDED" name="nokogiri (v1.6.0, RVM: ruby-1.9.3-p448 [
|
|
37
|
-
<orderEntry type="library" scope="PROVIDED" name="poltergeist (v1.4.1, RVM: ruby-1.9.3-p448 [
|
|
38
|
-
<orderEntry type="library" scope="PROVIDED" name="rack (v1.5.2, RVM: ruby-1.9.3-p448 [
|
|
39
|
-
<orderEntry type="library" scope="PROVIDED" name="rack-test (v0.6.2, RVM: ruby-1.9.3-p448 [
|
|
40
|
-
<orderEntry type="library" scope="PROVIDED" name="rake (v10.1.0, RVM: ruby-1.9.3-p448 [
|
|
41
|
-
<orderEntry type="library" scope="PROVIDED" name="rspec (v2.14.1, RVM: ruby-1.9.3-p448 [
|
|
42
|
-
<orderEntry type="library" scope="PROVIDED" name="rspec-core (v2.14.5, RVM: ruby-1.9.3-p448 [
|
|
43
|
-
<orderEntry type="library" scope="PROVIDED" name="rspec-expectations (v2.14.2, RVM: ruby-1.9.3-p448 [
|
|
44
|
-
<orderEntry type="library" scope="PROVIDED" name="rspec-mocks (v2.14.3, RVM: ruby-1.9.3-p448 [
|
|
45
|
-
<orderEntry type="library" scope="PROVIDED" name="ruby-debug-base19x (v0.11.30.pre12, RVM: ruby-1.9.3-p448 [
|
|
46
|
-
<orderEntry type="library" scope="PROVIDED" name="ruby-debug-ide (v0.4.17, RVM: ruby-1.9.3-p448 [
|
|
47
|
-
<orderEntry type="library" scope="PROVIDED" name="rubyzip (v0.9.9, RVM: ruby-1.9.3-p448 [
|
|
48
|
-
<orderEntry type="library" scope="PROVIDED" name="selenium-webdriver (v2.35.1, RVM: ruby-1.9.3-p448 [
|
|
49
|
-
<orderEntry type="library" scope="PROVIDED" name="websocket (v1.0.7, RVM: ruby-1.9.3-p448 [
|
|
50
|
-
<orderEntry type="library" scope="PROVIDED" name="websocket-driver (v0.3.0, RVM: ruby-1.9.3-p448 [
|
|
51
|
-
<orderEntry type="library" scope="PROVIDED" name="xpath (v2.0.0, RVM: ruby-1.9.3-p448 [
|
|
125
|
+
<orderEntry type="library" scope="PROVIDED" name="activesupport (v3.2.14, RVM: ruby-1.9.3-p448 [acceptance_test]) [gem]" level="application" />
|
|
126
|
+
<orderEntry type="library" scope="PROVIDED" name="bundler (v1.3.5, RVM: ruby-1.9.3-p448 [acceptance_test]) [gem]" level="application" />
|
|
127
|
+
<orderEntry type="library" scope="PROVIDED" name="capybara (v2.1.0, RVM: ruby-1.9.3-p448 [acceptance_test]) [gem]" level="application" />
|
|
128
|
+
<orderEntry type="library" scope="PROVIDED" name="capybara-firebug (v1.3.0, RVM: ruby-1.9.3-p448 [acceptance_test]) [gem]" level="application" />
|
|
129
|
+
<orderEntry type="library" scope="PROVIDED" name="capybara-webkit (v1.0.0, RVM: ruby-1.9.3-p448 [acceptance_test]) [gem]" level="application" />
|
|
130
|
+
<orderEntry type="library" scope="PROVIDED" name="childprocess (v0.3.9, RVM: ruby-1.9.3-p448 [acceptance_test]) [gem]" level="application" />
|
|
131
|
+
<orderEntry type="library" scope="PROVIDED" name="cliver (v0.2.1, RVM: ruby-1.9.3-p448 [acceptance_test]) [gem]" level="application" />
|
|
132
|
+
<orderEntry type="library" scope="PROVIDED" name="debugger-ruby_core_source (v1.2.3, RVM: ruby-1.9.3-p448 [acceptance_test]) [gem]" level="application" />
|
|
133
|
+
<orderEntry type="library" scope="PROVIDED" name="diff-lcs (v1.2.4, RVM: ruby-1.9.3-p448 [acceptance_test]) [gem]" level="application" />
|
|
134
|
+
<orderEntry type="library" scope="PROVIDED" name="ffi (v1.9.0, RVM: ruby-1.9.3-p448 [acceptance_test]) [gem]" level="application" />
|
|
135
|
+
<orderEntry type="library" scope="PROVIDED" name="file_utils (v1.0.7, RVM: ruby-1.9.3-p448 [acceptance_test]) [gem]" level="application" />
|
|
136
|
+
<orderEntry type="library" scope="PROVIDED" name="gemcutter (v0.7.1, RVM: ruby-1.9.3-p448 [acceptance_test]) [gem]" level="application" />
|
|
137
|
+
<orderEntry type="library" scope="PROVIDED" name="gemspec_deps_gen (v1.1.2, RVM: ruby-1.9.3-p448 [acceptance_test]) [gem]" level="application" />
|
|
138
|
+
<orderEntry type="library" scope="PROVIDED" name="i18n (v0.6.5, RVM: ruby-1.9.3-p448 [acceptance_test]) [gem]" level="application" />
|
|
139
|
+
<orderEntry type="library" scope="PROVIDED" name="json (v1.8.0, RVM: ruby-1.9.3-p448 [acceptance_test]) [gem]" level="application" />
|
|
140
|
+
<orderEntry type="library" scope="PROVIDED" name="metaclass (v0.0.1, RVM: ruby-1.9.3-p448 [acceptance_test]) [gem]" level="application" />
|
|
141
|
+
<orderEntry type="library" scope="PROVIDED" name="mime-types (v1.25, RVM: ruby-1.9.3-p448 [acceptance_test]) [gem]" level="application" />
|
|
142
|
+
<orderEntry type="library" scope="PROVIDED" name="mini_portile (v0.5.1, RVM: ruby-1.9.3-p448 [acceptance_test]) [gem]" level="application" />
|
|
143
|
+
<orderEntry type="library" scope="PROVIDED" name="mocha (v0.14.0, RVM: ruby-1.9.3-p448 [acceptance_test]) [gem]" level="application" />
|
|
144
|
+
<orderEntry type="library" scope="PROVIDED" name="multi_json (v1.8.0, RVM: ruby-1.9.3-p448 [acceptance_test]) [gem]" level="application" />
|
|
145
|
+
<orderEntry type="library" scope="PROVIDED" name="nokogiri (v1.6.0, RVM: ruby-1.9.3-p448 [acceptance_test]) [gem]" level="application" />
|
|
146
|
+
<orderEntry type="library" scope="PROVIDED" name="poltergeist (v1.4.1, RVM: ruby-1.9.3-p448 [acceptance_test]) [gem]" level="application" />
|
|
147
|
+
<orderEntry type="library" scope="PROVIDED" name="rack (v1.5.2, RVM: ruby-1.9.3-p448 [acceptance_test]) [gem]" level="application" />
|
|
148
|
+
<orderEntry type="library" scope="PROVIDED" name="rack-test (v0.6.2, RVM: ruby-1.9.3-p448 [acceptance_test]) [gem]" level="application" />
|
|
149
|
+
<orderEntry type="library" scope="PROVIDED" name="rake (v10.1.0, RVM: ruby-1.9.3-p448 [acceptance_test]) [gem]" level="application" />
|
|
150
|
+
<orderEntry type="library" scope="PROVIDED" name="rspec (v2.14.1, RVM: ruby-1.9.3-p448 [acceptance_test]) [gem]" level="application" />
|
|
151
|
+
<orderEntry type="library" scope="PROVIDED" name="rspec-core (v2.14.5, RVM: ruby-1.9.3-p448 [acceptance_test]) [gem]" level="application" />
|
|
152
|
+
<orderEntry type="library" scope="PROVIDED" name="rspec-expectations (v2.14.2, RVM: ruby-1.9.3-p448 [acceptance_test]) [gem]" level="application" />
|
|
153
|
+
<orderEntry type="library" scope="PROVIDED" name="rspec-mocks (v2.14.3, RVM: ruby-1.9.3-p448 [acceptance_test]) [gem]" level="application" />
|
|
154
|
+
<orderEntry type="library" scope="PROVIDED" name="ruby-debug-base19x (v0.11.30.pre12, RVM: ruby-1.9.3-p448 [acceptance_test]) [gem]" level="application" />
|
|
155
|
+
<orderEntry type="library" scope="PROVIDED" name="ruby-debug-ide (v0.4.17, RVM: ruby-1.9.3-p448 [acceptance_test]) [gem]" level="application" />
|
|
156
|
+
<orderEntry type="library" scope="PROVIDED" name="rubyzip (v0.9.9, RVM: ruby-1.9.3-p448 [acceptance_test]) [gem]" level="application" />
|
|
157
|
+
<orderEntry type="library" scope="PROVIDED" name="selenium-webdriver (v2.35.1, RVM: ruby-1.9.3-p448 [acceptance_test]) [gem]" level="application" />
|
|
158
|
+
<orderEntry type="library" scope="PROVIDED" name="websocket (v1.0.7, RVM: ruby-1.9.3-p448 [acceptance_test]) [gem]" level="application" />
|
|
159
|
+
<orderEntry type="library" scope="PROVIDED" name="websocket-driver (v0.3.0, RVM: ruby-1.9.3-p448 [acceptance_test]) [gem]" level="application" />
|
|
160
|
+
<orderEntry type="library" scope="PROVIDED" name="xpath (v2.0.0, RVM: ruby-1.9.3-p448 [acceptance_test]) [gem]" level="application" />
|
|
52
161
|
</component>
|
|
53
162
|
</module>
|
|
54
163
|
|
data/.idea/misc.xml
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
2
|
<project version="4">
|
|
3
|
+
<component name="CppTools.Loader" reportImplicitCastToBool="false" reportNameReferencedOnce="false" version="3" compilerSelect="AUTO" />
|
|
3
4
|
<component name="ProjectRootManager" version="2" project-jdk-name="RVM: ruby-1.9.3-p448 [acceptance_tests_support]" project-jdk-type="RUBY_SDK" />
|
|
4
5
|
</project>
|
|
5
6
|
|
data/CHANGES
CHANGED
data/LICENSE
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
acceptance_test_lambda = lambda do
|
|
3
2
|
attr_reader :acceptance_test
|
|
4
3
|
|
|
5
4
|
before :all do
|
|
@@ -7,11 +6,19 @@ shared_context "AcceptanceTest" do
|
|
|
7
6
|
end
|
|
8
7
|
|
|
9
8
|
before do
|
|
10
|
-
|
|
9
|
+
acceptance_test.before self
|
|
11
10
|
end
|
|
12
11
|
|
|
13
12
|
after do
|
|
14
|
-
|
|
13
|
+
acceptance_test.after self
|
|
15
14
|
end
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
shared_context "AcceptanceTest" do
|
|
18
|
+
self.define_singleton_method(:include_context, acceptance_test_lambda)
|
|
16
19
|
|
|
20
|
+
include_context
|
|
17
21
|
end
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
@@ -10,7 +10,7 @@ class AcceptanceTest
|
|
|
10
10
|
def initialize project_root="."
|
|
11
11
|
@project_root = project_root
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
#@app_host = default_app_host
|
|
14
14
|
|
|
15
15
|
set_defaults
|
|
16
16
|
|
|
@@ -25,15 +25,11 @@ class AcceptanceTest
|
|
|
25
25
|
|
|
26
26
|
select_driver driver
|
|
27
27
|
|
|
28
|
-
if driver.to_s =~ /selenium/
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
puts "Environment: #{@selenium_config[:env]}"
|
|
34
|
-
puts "Application: #{@selenium_config[:webapp_url]}"
|
|
35
|
-
puts "Selenium: #{@selenium_config[:selenium_host]}:#{@selenium_config[:selenium_port]}"
|
|
36
|
-
end
|
|
28
|
+
if driver.to_s =~ /selenium/ and selenium_config_exist?
|
|
29
|
+
puts "\nSelenium Configuration: #{@selenium_config[:name]}"
|
|
30
|
+
puts "Environment: #{@selenium_config[:env]}"
|
|
31
|
+
puts "Application: #{@selenium_config[:webapp_url]}"
|
|
32
|
+
puts "Selenium: #{@selenium_config[:selenium_host]}:#{@selenium_config[:selenium_port]}"
|
|
37
33
|
end
|
|
38
34
|
end
|
|
39
35
|
|
|
@@ -72,8 +68,12 @@ class AcceptanceTest
|
|
|
72
68
|
end
|
|
73
69
|
|
|
74
70
|
def configure
|
|
75
|
-
|
|
76
|
-
|
|
71
|
+
run_server = (ENV['RUN_SERVER'] == "true")
|
|
72
|
+
|
|
73
|
+
if run_server and defined? Rails
|
|
74
|
+
require 'rspec/rails'
|
|
75
|
+
require "capybara/rails"
|
|
76
|
+
end
|
|
77
77
|
|
|
78
78
|
#require 'rspec/autorun'
|
|
79
79
|
|
|
@@ -93,7 +93,7 @@ class AcceptanceTest
|
|
|
93
93
|
|
|
94
94
|
Capybara.configure do |config|
|
|
95
95
|
config.default_wait_time = ENV['WAIT_TIME'].to_i
|
|
96
|
-
config.run_server =
|
|
96
|
+
config.run_server = run_server
|
|
97
97
|
|
|
98
98
|
#config.always_include_port = false
|
|
99
99
|
#config.server {|app, port| Capybara.run_default_server(app, port)}
|
|
@@ -177,16 +177,19 @@ class AcceptanceTest
|
|
|
177
177
|
def select_driver driver
|
|
178
178
|
if [:js, :javascript].include? driver
|
|
179
179
|
Capybara.current_driver = Capybara.javascript_driver
|
|
180
|
-
elsif [:webkit, :
|
|
180
|
+
elsif [:webkit, :poltergeist].include? driver
|
|
181
181
|
Capybara.current_driver = driver
|
|
182
182
|
Capybara.javascript_driver = driver
|
|
183
|
-
elsif [:
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
183
|
+
elsif [:selenium, :selenium, :selenium_with_firebug, :selenium_chrome].include? driver
|
|
184
|
+
if selenium_config_exist?
|
|
185
|
+
setup_driver_from_config driver
|
|
186
|
+
else
|
|
187
|
+
Capybara.current_driver = driver
|
|
188
|
+
Capybara.javascript_driver = driver
|
|
189
|
+
end
|
|
188
190
|
|
|
189
|
-
|
|
191
|
+
elsif [:selenium_remote].include? driver
|
|
192
|
+
setup_driver_from_config driver
|
|
190
193
|
else
|
|
191
194
|
Capybara.current_driver = Capybara.default_driver
|
|
192
195
|
end
|
|
@@ -232,5 +235,19 @@ class AcceptanceTest
|
|
|
232
235
|
puts full_description + "\n Screenshot: #{screenshot_url}"
|
|
233
236
|
end
|
|
234
237
|
|
|
238
|
+
def selenium_config_exist?
|
|
239
|
+
not @selenium_config.nil? and @selenium_config.size > 0
|
|
240
|
+
end
|
|
241
|
+
|
|
242
|
+
def setup_driver_from_config driver
|
|
243
|
+
selenium_app_host = app_host_from_url(@selenium_config[:webapp_url])
|
|
244
|
+
#setup_app_host selenium_app_host
|
|
245
|
+
@app_host = selenium_app_host
|
|
246
|
+
|
|
247
|
+
Rails.env = @selenium_config[:env] if defined? Rails.env
|
|
248
|
+
|
|
249
|
+
Capybara.current_driver = driver
|
|
250
|
+
Capybara.javascript_driver = driver
|
|
251
|
+
end
|
|
235
252
|
end
|
|
236
253
|
|
data/spec/features/selenium.yml
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
development:
|
|
2
2
|
env: 'development'
|
|
3
|
-
webapp_url: 'http://
|
|
3
|
+
webapp_url: 'http://www.google.com'
|
|
4
4
|
selenium_host: 'localhost'
|
|
5
5
|
selenium_port: 4444
|
|
6
6
|
browser: 'firefox'
|
|
@@ -8,7 +8,7 @@ development:
|
|
|
8
8
|
|
|
9
9
|
test:
|
|
10
10
|
env: 'test'
|
|
11
|
-
webapp_url: 'http://
|
|
11
|
+
webapp_url: 'http://www.google.com'
|
|
12
12
|
selenium_host: 'localhost'
|
|
13
13
|
selenium_port: 4444
|
|
14
14
|
browser: 'firefox'
|
|
@@ -14,4 +14,13 @@ describe 'Google Search' do
|
|
|
14
14
|
puts "Using driver: #{Capybara.current_driver}."
|
|
15
15
|
end
|
|
16
16
|
|
|
17
|
+
it "uses selenium driver", driver: :selenium_remote do
|
|
18
|
+
visit('/')
|
|
19
|
+
|
|
20
|
+
fill_in "q", :with => "Capybara"
|
|
21
|
+
|
|
22
|
+
find("#gbqfbw button").click
|
|
23
|
+
|
|
24
|
+
all(:xpath, "//li[@class='g']/h3/a").each { |a| puts a[:href] }
|
|
25
|
+
end
|
|
17
26
|
end
|
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.0.
|
|
4
|
+
version: 1.0.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Alexander Shvets
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2013-09
|
|
11
|
+
date: 2013-10-09 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: gemspec_deps_gen
|
|
@@ -45,8 +45,10 @@ extensions: []
|
|
|
45
45
|
extra_rdoc_files: []
|
|
46
46
|
files:
|
|
47
47
|
- .gitignore
|
|
48
|
+
- .idea/.rakeTasks
|
|
48
49
|
- .idea/acceptance_test.iml
|
|
49
50
|
- .idea/encodings.xml
|
|
51
|
+
- .idea/jenkinsSettings.xml
|
|
50
52
|
- .idea/misc.xml
|
|
51
53
|
- .idea/modules.xml
|
|
52
54
|
- .idea/scopes/scope_settings.xml
|