actir 1.0.0 → 1.0.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 +3 -9
- data/actir.gemspec +1 -1
- data/lib/actir.rb +1 -1
- data/lib/actir/script/cookies_baidu.rb +1 -1
- data/lib/actir/version.rb +1 -1
- data/lib/actir/webdriver/browser.rb +4 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a92a15790745797e77ec3884a876852f1a4e2307
|
4
|
+
data.tar.gz: 842cabdd4079f312580e6f0a89377037daf1e9a6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c5bc8e114dc1b32b95827c6af2f020a4fe36a3996b244f41a350b8b08aba5effeaa1e963d0ec9d9c3fb64ccd320dcd492389aed3619aaeb9f622b69280db3fd3
|
7
|
+
data.tar.gz: a0851eedd0a549e5ca68ca2c48a7c97fc3679172b9f7c143d61cf316e85ce6055435993bdcc4d79c1565580da4eaa7bffc43af9e69d24df5f9b7d026cadeb4df
|
data/README.md
CHANGED
@@ -1,8 +1,6 @@
|
|
1
1
|
# Actir
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
TODO: Delete this and the text above, and describe your gem
|
3
|
+
Application Concurrence Test in Ruby.
|
6
4
|
|
7
5
|
## Installation
|
8
6
|
|
@@ -22,7 +20,7 @@ Or install it yourself as:
|
|
22
20
|
  |-config.yaml -- 总体配置文件,test_mode相关的配置项必须要填
|
23
21
|
 elements
|
24
22
|
  |-components -- 公用页面元素方法
|
25
|
-
  |-pages --
|
23
|
+
  |-pages -- 页面元素封装的方法,可以继承自Actir::BasicPage,已经封装了部分公用方法
|
26
24
|
 testcode -- 测试用例,执行之前需要初始化 Actir::Initializer.new(project_path)
|
27
25
|
|
28
26
|
2.project_path:测试工程根目录
|
@@ -43,13 +41,9 @@ Or install it yourself as:
|
|
43
41
|
 如:browser = Browser.new(type, *args)
|
44
42
|
   browser.login_page.xxx (xxx为LoginPage中定义的方法)
|
45
43
|
|
46
|
-
## Development
|
47
|
-
|
48
|
-
.
|
49
|
-
|
50
44
|
## Contributing
|
51
45
|
|
52
|
-
1. Fork it ( https://github.com/
|
46
|
+
1. Fork it ( https://github.com/hub128/actir.git )
|
53
47
|
2. Create your feature branch (`git checkout -b my-new-feature`)
|
54
48
|
3. Commit your changes (`git commit -am 'Add some feature'`)
|
55
49
|
4. Push to the branch (`git push origin my-new-feature`)
|
data/actir.gemspec
CHANGED
@@ -12,7 +12,7 @@ Gem::Specification.new do |spec|
|
|
12
12
|
|
13
13
|
spec.summary = %q{Application Concurrence Test in Ruby.}
|
14
14
|
spec.description = %q{Distribut automated testing framework for Web or App.}
|
15
|
-
spec.homepage = "
|
15
|
+
spec.homepage = "https://github.com/hub128/actir.git"
|
16
16
|
spec.license = "MIT"
|
17
17
|
|
18
18
|
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
data/lib/actir.rb
CHANGED
@@ -83,7 +83,7 @@ module Actir
|
|
83
83
|
address = Actir::Remote.get_remote_address(1)
|
84
84
|
end
|
85
85
|
end
|
86
|
-
@browser = Browser.new(:www, :url => address[0], :mode => $mode)
|
86
|
+
@browser = Browser.new(:www, :url => address[0], :mode => $mode, :browser => :chrome)
|
87
87
|
@browser.goto "baifubao.com"
|
88
88
|
@browser
|
89
89
|
end
|
data/lib/actir/version.rb
CHANGED
@@ -62,7 +62,8 @@ class Browser
|
|
62
62
|
else
|
63
63
|
#若ENV为空,则读取配置文件,判断有无配置文件
|
64
64
|
if File.exist?(config_file)
|
65
|
-
|
65
|
+
env = $config["config"]["test_mode"]["env"]
|
66
|
+
args[:mode] = (env == nil) ? :local : env
|
66
67
|
else
|
67
68
|
args[:mode] = :local
|
68
69
|
end
|
@@ -70,7 +71,8 @@ class Browser
|
|
70
71
|
end
|
71
72
|
unless args.has_key?(:browser)
|
72
73
|
if File.exist?(config_file)
|
73
|
-
|
74
|
+
browser_type = $config["config"]["test_mode"]["browser"]
|
75
|
+
args[:browser] = (browser_type == nil) ? :chrome : browser_type
|
74
76
|
else
|
75
77
|
args[:browser] = :chrome
|
76
78
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: actir
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- hub
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-06-
|
11
|
+
date: 2015-06-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -148,7 +148,7 @@ files:
|
|
148
148
|
- lib/actir/webdriver/config/devices.yaml
|
149
149
|
- lib/actir/webdriver/devices.rb
|
150
150
|
- lib/actir/webdriver/driver.rb
|
151
|
-
homepage:
|
151
|
+
homepage: https://github.com/hub128/actir.git
|
152
152
|
licenses:
|
153
153
|
- MIT
|
154
154
|
metadata: {}
|