zander 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +72 -1
- data/bin/zander +2 -3
- data/lib/zander/version.rb +2 -1
- data/zander.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b7ed884c854d2335b55ddceb457eddfd47bcb6d3
|
4
|
+
data.tar.gz: 03ec92f1d09d11bffc1d8c9c2943915383fb8bce
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 23d168264e10a75fde3ea92c707d499249ca03f88e5abe274f72b10020e1391dc5f3d28d3381ab825826974823cbb73b2d392871b3d328f2ffb124d2e1629930
|
7
|
+
data.tar.gz: 9e5fcdae8e70ee644d6049fb55c97c16c92ab9d909477af3ea70c68e65d9853aa19deaa5ce1d5b74de97f91168e4782ba175edcbd869479693e813c17a6db160
|
data/README.md
CHANGED
@@ -1,2 +1,73 @@
|
|
1
1
|
Streamline Selenium WebDriver Testing with Zander
|
2
|
-
---
|
2
|
+
---
|
3
|
+
There is a problem with fron-end testing. Websites are always changing. **Zander** audaciously
|
4
|
+
attempts to provid a solution. Give zander two files `sites.yaml` and `actions.yaml`, and
|
5
|
+
it will do all the work. `sites.yaml` will hold a list of URLs and any variables like user_name or password
|
6
|
+
that are assocaited to a URL. `actions.yaml` is a list of actions to take.
|
7
|
+
actions contain attributes like action_type and identifier where you specify
|
8
|
+
the action to preform and how to identifie the DOM element.
|
9
|
+
See Custom Input Example below.
|
10
|
+
|
11
|
+
Setup
|
12
|
+
---
|
13
|
+
#### Instilation
|
14
|
+
$ gem install zander
|
15
|
+
|
16
|
+
Usage
|
17
|
+
---
|
18
|
+
#### Demo
|
19
|
+
$ irb
|
20
|
+
irb(main):001:0> require 'zander'
|
21
|
+
irb(main):002:0> Zander.run
|
22
|
+
|
23
|
+
`$ rbenv exec zander`
|
24
|
+
|
25
|
+
#### Example file
|
26
|
+
$ gem environment | grep "INSTALLATION DIRECTORY" | less \
|
27
|
+
"$(cut -d ' ' -f 6)/gems/zander-$(gem list | grep zander | \
|
28
|
+
cut -d '(' -f 2 | sed 's/)//g')/bin/zander"
|
29
|
+
|
30
|
+
#### Custom Input Example
|
31
|
+
`require 'zander'
|
32
|
+
Zander.run(sites: "sites.yaml", actions: "actions.yaml")`
|
33
|
+
|
34
|
+
sites.yaml
|
35
|
+
WEBSITES:
|
36
|
+
- url: https://www.google.com/
|
37
|
+
user_name: "Replace this with your username"
|
38
|
+
password: "Replace this with your password"
|
39
|
+
|
40
|
+
|
41
|
+
actions.yaml
|
42
|
+
WEBSITES:
|
43
|
+
- URL: https://www.google.com/
|
44
|
+
ACTIONS:
|
45
|
+
- action:
|
46
|
+
action_type: click_element
|
47
|
+
identifier:
|
48
|
+
id: gb_70
|
49
|
+
- action:
|
50
|
+
action_type: print_element
|
51
|
+
identifier:
|
52
|
+
class: tagline
|
53
|
+
- action:
|
54
|
+
action_type: input_variable
|
55
|
+
identifier:
|
56
|
+
id: Email
|
57
|
+
variable: user_name
|
58
|
+
- action:
|
59
|
+
action_type: input_variable
|
60
|
+
identifier:
|
61
|
+
id: Passwd
|
62
|
+
variable: password
|
63
|
+
- action:
|
64
|
+
action_type: click_element
|
65
|
+
identifier:
|
66
|
+
id: signIn
|
67
|
+
- manual:
|
68
|
+
- action:
|
69
|
+
action_type: done
|
70
|
+
|
71
|
+
Documentation
|
72
|
+
---
|
73
|
+
source documentation [http://bit.ly/zanderdoc](http://bit.ly/zanderdoc)
|
data/bin/zander
CHANGED
@@ -27,8 +27,7 @@
|
|
27
27
|
# a full example is shown at the bottom #
|
28
28
|
# #
|
29
29
|
#######################################################################################################
|
30
|
-
|
31
|
-
require '/Users/sc/projects/ruby/appeals/lib/zander'
|
30
|
+
require 'zander'
|
32
31
|
#######################################################################################################
|
33
32
|
### 1.) Demo - Uses share/sites.yaml and shre/actions.yaml ###
|
34
33
|
Zander.run ###
|
@@ -59,4 +58,4 @@ Zander.run ###
|
|
59
58
|
# end #
|
60
59
|
# end #
|
61
60
|
# Zander.run #
|
62
|
-
#######################################################################################################
|
61
|
+
#######################################################################################################
|
data/lib/zander/version.rb
CHANGED
data/zander.gemspec
CHANGED
@@ -6,7 +6,7 @@ require 'zander/version'
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = 'zander'
|
8
8
|
s.version = Zander::VERSION
|
9
|
-
s.date
|
9
|
+
s.date = '2014-11-13'
|
10
10
|
s.licenses = ['MIT']
|
11
11
|
s.summary = "Simple Web Automation"
|
12
12
|
s.description = "Zabner will help automate web testing using Selenium::WebDriver"
|