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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c7b0a489730d193f8c5bffcd60dfe8b3d7da3bdc
4
- data.tar.gz: 1de0ba72345bc6b04ef8b7b51b011934b9765e7e
3
+ metadata.gz: a92a15790745797e77ec3884a876852f1a4e2307
4
+ data.tar.gz: 842cabdd4079f312580e6f0a89377037daf1e9a6
5
5
  SHA512:
6
- metadata.gz: d8fd820b3ead55edbe520a4f2dbca6d8208402d38643def11e85ffb5057dcb01522e2b3ce7aa7688206f47cf21684a97bc5e0f12518e8eed8acbecb50a0de4e2
7
- data.tar.gz: e9014a2c7c424a93c6f4864e46e9deb607eb22ace0bee67216da77d5ccf77e33e078bc75b06d724010c94f5efc1836b9efcba6e1e031cf1cb09ebac65c41d5c2
6
+ metadata.gz: c5bc8e114dc1b32b95827c6af2f020a4fe36a3996b244f41a350b8b08aba5effeaa1e963d0ec9d9c3fb64ccd320dcd492389aed3619aaeb9f622b69280db3fd3
7
+ data.tar.gz: a0851eedd0a549e5ca68ca2c48a7c97fc3679172b9f7c143d61cf316e85ce6055435993bdcc4d79c1565580da4eaa7bffc43af9e69d24df5f9b7d026cadeb4df
data/README.md CHANGED
@@ -1,8 +1,6 @@
1
1
  # Actir
2
2
 
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/actir`. To experiment with that code, run `bin/console` for an interactive prompt.
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 -- 页面元素封装的方法.如果是Web页面,可以直接继承自Actir::WebPage,已经封装了部分公用方法
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/[my-github-username]/actir/fork )
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`)
@@ -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 = "http://git.qima-inc.com/qa/ants.git"
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)/}) }
@@ -15,7 +15,7 @@ require 'actir/version'
15
15
  module Actir
16
16
 
17
17
  #测试用例基础类,读取配置文件定义常量
18
- class Test < Test::Unit::TestCase
18
+ class TestCase < Test::Unit::TestCase
19
19
 
20
20
  #IP地址的正则表达式
21
21
  num = /\d|[01]?\d\d|2[0-4]\d|25[0-5]/
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Actir
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
@@ -62,7 +62,8 @@ class Browser
62
62
  else
63
63
  #若ENV为空,则读取配置文件,判断有无配置文件
64
64
  if File.exist?(config_file)
65
- args[:mode] = $config["config"]["test_mode"]["env"]
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
- args[:browser] = $config["config"]["test_mode"]["browser"]
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.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-06 00:00:00.000000000 Z
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: http://git.qima-inc.com/qa/ants.git
151
+ homepage: https://github.com/hub128/actir.git
152
152
  licenses:
153
153
  - MIT
154
154
  metadata: {}