acceptance 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/acceptance.gemspec +4 -0
- data/features/_examples.feature +12 -0
- data/features/step_definitions/browser_steps.rb +15 -0
- data/features/support/capybara.rb +3 -0
- data/lib/acceptance/version.rb +1 -1
- metadata +51 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a132577b2a402d9a3bc827072d3a980625bf388f
|
4
|
+
data.tar.gz: c82ebe428c1971f0821a43cb68e27880f8dc4cf5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 682669380099a39fce946e51d47b257c5e06e6502a351d932acdb0597e8e893a524ac0877a6d1f4fec4ddfe6eccf6622fc1ce788f797bc82b8b1064067ebda85
|
7
|
+
data.tar.gz: 8a31424950c33be8ba6cea005955ad0322e217b35aa8eecb01a16687b3755dc452c5bb8880952b2aeeb815756622f95e0452982f6e7082b2791f05071c1a686a
|
data/acceptance.gemspec
CHANGED
@@ -20,4 +20,8 @@ Gem::Specification.new do |spec|
|
|
20
20
|
|
21
21
|
spec.add_development_dependency "bundler", "~> 1.6"
|
22
22
|
spec.add_development_dependency "rake"
|
23
|
+
|
24
|
+
spec.add_runtime_dependency "cucumber"
|
25
|
+
spec.add_runtime_dependency "capybara"
|
26
|
+
spec.add_runtime_dependency "selenium-webdriver"
|
23
27
|
end
|
@@ -0,0 +1,12 @@
|
|
1
|
+
# language: ru
|
2
|
+
|
3
|
+
Функционал: Демонстрация возможностей приёмочного тестирования и автоматизации браузера
|
4
|
+
Как разработчик приёмочных тестов
|
5
|
+
Чтобы узнать о возможностях инструментов Cucumber и Capybara
|
6
|
+
Я хочу выполнить несколько примеров
|
7
|
+
|
8
|
+
Сценарий: Эксплуатация пасхального яйца в поиске Google
|
9
|
+
Когда я открываю страницу по адресу "http://www.google.com"
|
10
|
+
И ввожу "do a barrel roll" в поле "q"
|
11
|
+
И кликаю по кнопке "gbqfb"
|
12
|
+
Тогда на странице должен быть текст "roll"
|
@@ -0,0 +1,15 @@
|
|
1
|
+
Допустим(/^я открываю страницу по адресу "(.*?)"$/) do |url|
|
2
|
+
visit url
|
3
|
+
end
|
4
|
+
|
5
|
+
Допустим(/^ввожу "(.*?)" в поле "(.*?)"$/) do |value, field|
|
6
|
+
fill_in field, with: value
|
7
|
+
end
|
8
|
+
|
9
|
+
Допустим(/^кликаю по кнопке "(.*?)"$/) do |button|
|
10
|
+
click_button button
|
11
|
+
end
|
12
|
+
|
13
|
+
Тогда(/^на странице должен быть текст "(.*?)"$/) do |content|
|
14
|
+
page.has_content? content
|
15
|
+
end
|
data/lib/acceptance/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: acceptance
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ilya Vassilevsky
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-07-
|
11
|
+
date: 2014-07-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -38,6 +38,48 @@ dependencies:
|
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: cucumber
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: capybara
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: selenium-webdriver
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
41
83
|
description: A tool for running acceptance tests against any external web app
|
42
84
|
email:
|
43
85
|
- vassilevsky@gmail.com
|
@@ -51,6 +93,9 @@ files:
|
|
51
93
|
- README.md
|
52
94
|
- Rakefile
|
53
95
|
- acceptance.gemspec
|
96
|
+
- features/_examples.feature
|
97
|
+
- features/step_definitions/browser_steps.rb
|
98
|
+
- features/support/capybara.rb
|
54
99
|
- lib/acceptance.rb
|
55
100
|
- lib/acceptance/version.rb
|
56
101
|
homepage: ''
|
@@ -77,4 +122,7 @@ rubygems_version: 2.2.2
|
|
77
122
|
signing_key:
|
78
123
|
specification_version: 4
|
79
124
|
summary: Acceptance testing framework for non-Ruby projects
|
80
|
-
test_files:
|
125
|
+
test_files:
|
126
|
+
- features/_examples.feature
|
127
|
+
- features/step_definitions/browser_steps.rb
|
128
|
+
- features/support/capybara.rb
|