actir 1.4.3.1 → 1.4.3.2

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: a2e634f0e5f5dfcf857c0077bbb5969e3b7eac6e
4
- data.tar.gz: a6b1b491c350309cc143af835e8f78b273477b62
3
+ metadata.gz: ed2bcd7522cb3cbc325a7084a145cd386a02c611
4
+ data.tar.gz: 9b8bfef0719b3e2254b40239549c4b19d8a3e001
5
5
  SHA512:
6
- metadata.gz: c4cfe4d148b8857bd576518115da9669d63cfa33dbbcbd09aa3de752cbaeb2ad8299fc237e62c52891807b8cd228f47b06a485def665c956ff332b4baf591920
7
- data.tar.gz: 7bde615a9561f603710ee0cf2422d7d0d4115459380ca03faee55a529de202ff38b58d1c9319e10b768f7813f27637175c256d34c9cb1662e9923e669022400f
6
+ metadata.gz: 7981c426b71d1348d2957e8ea4c355ccb6d0d819e57d65f312567e620f48c8ad91a2b7b25cf925ca9d6868a8802a0654f846690279e2336ed262fb8a97b0020b
7
+ data.tar.gz: 2e17594368582fbdc7e3c5cd647868f5d136e4f06fcbd270e4e5540fa915f61c1f4ed8f259a5384e82b82a5e3556e651fedb39017bc05d0e46a69e1036510512
data/README.md CHANGED
@@ -19,7 +19,7 @@ Application Concurrence Test in Ruby.
19
19
 
20
20
  ## 使用须知
21
21
 
22
- ###测试工程结构
22
+ ### 测试工程结构
23
23
  - **config**:配置文件
24
24
  --- config.yaml:总体配置文件,test_mode相关的配置项必须要填;
25
25
  - **elements**:页面元素
@@ -29,7 +29,7 @@ Application Concurrence Test in Ruby.
29
29
  - |--- `user`:根据系统业务抽象出的角色及其Action;
30
30
  - **testcode**: 测试用例, 文件和用例方法都要以`test`开头, 执行之前需要初始化`Actir::Initializer.new(project_path)`,`project_path`为测试工程根目录;
31
31
 
32
- ###浏览器对象
32
+ ### 浏览器对象
33
33
  ``` ruby
34
34
  Browser.new(type, *args)
35
35
  ```
@@ -41,7 +41,7 @@ Browser重新封装了Watir以及Selenium的初始化浏览器的方法
41
41
  - `:mode`:启动模式,支持 :local/:remote, 默认为local
42
42
  - `:url`: 配合mode为remote的模式,指定远程机器的url,需要 IP+端口号
43
43
 
44
- ###Initializer自动加载工程文件
44
+ ### Initializer自动加载工程文件
45
45
  ``` ruby
46
46
  Actir::Initializer.new(project_path)
47
47
  ```
@@ -55,7 +55,7 @@ browser.login_page.login("xxx")
55
55
  browser.refresh
56
56
  ```
57
57
 
58
- ###执行测试用例
58
+ ### 执行测试用例
59
59
 
60
60
  $ actir [switches] [--] [files & folders]
61
61
  $ actir testcode/test_refund/test_full_refund.rb
@@ -139,7 +139,8 @@ module Actir
139
139
  end
140
140
  end
141
141
  @browser = Browser.new(:www, :url => address[0], :mode => $mode, :browser => :chrome, :window_size => nil)
142
- @browser.goto "baifubao.com"
142
+ # @browser.goto "baifubao.com"
143
+ @browser.goto "https://www.baifubao.com/user/0/login/0"
143
144
  @browser
144
145
  end
145
146
 
@@ -219,9 +220,6 @@ module Actir
219
220
  end
220
221
 
221
222
 
222
- private
223
-
224
-
225
223
  def baifubao_BDUSS
226
224
  "BDUSS"
227
225
  end
@@ -1,3 +1,3 @@
1
1
  module Actir
2
- VERSION = "1.4.3.1"
2
+ VERSION = "1.4.3.2"
3
3
  end
@@ -1,4 +1,5 @@
1
1
  require 'actir/webdriver/driver'
2
+ require 'timeout'
2
3
 
3
4
  #
4
5
  # 初始化测试用浏览器
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.4.3.1
4
+ version: 1.4.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - hub
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-05-10 00:00:00.000000000 Z
11
+ date: 2016-06-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: test-unit