actir 1.4.3.3 → 1.4.3.4

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: 1c8fc1246dfcb5828a1f226487f0ae9cfbb2981c
4
- data.tar.gz: 42082fe494562fb4ce522fa0aa226cf039a72583
3
+ metadata.gz: 1461e36e0d1f579d180b38891422f522791930f8
4
+ data.tar.gz: 3a99bfd61f3b201d099d10044f3487e6ce5a8d59
5
5
  SHA512:
6
- metadata.gz: a921875cbfe045de02835f8f0e5e0d92a8140376ce82c24846cbe3ad26a81a63f88b11e90533ebcf4da56e08ffa422e5a4f03dd1fe461d1fa57a5ac22d517a3a
7
- data.tar.gz: 227ded22a43392b8e73f0a1ed5dd0628408c800d25e398ef98f831cc2802a0becb2067bb9ff77241db6095f848973f4bbd7ab1518850da79dcded7dca690283f
6
+ metadata.gz: efedacf08c1872be573b6a2cc8508f8dbcbf4fb52c2873c18abb235556ba4c06058f46595c25c6296fd1d40ae9c2923f71a2e829a40a8d7d5dd981d3f040ba23
7
+ data.tar.gz: 6165c769d3bb70d3fe97201fd1ed726593b19b8e4967f11cdc672ab8ae288b6c52c5d341a3b610583df486129ef347f9e8a6a8ed12b66766f40efefdfc5ad50a
data/README.md CHANGED
@@ -19,6 +19,7 @@ Application Concurrence Test in Ruby.
19
19
 
20
20
  ## 使用须知
21
21
 
22
+
22
23
  ### 测试工程结构
23
24
  - **config**:配置文件
24
25
  --- config.yaml:总体配置文件,test_mode相关的配置项必须要填;
@@ -29,6 +30,7 @@ Application Concurrence Test in Ruby.
29
30
  - |--- `user`:根据系统业务抽象出的角色及其Action;
30
31
  - **testcode**: 测试用例, 文件和用例方法都要以`test`开头, 执行之前需要初始化`Actir::Initializer.new(project_path)`,`project_path`为测试工程根目录;
31
32
 
33
+
32
34
  ### 浏览器对象
33
35
  ``` ruby
34
36
  Browser.new(type, *args)
@@ -41,6 +43,7 @@ Browser重新封装了Watir以及Selenium的初始化浏览器的方法
41
43
  - `:mode`:启动模式,支持 :local/:remote, 默认为local
42
44
  - `:url`: 配合mode为remote的模式,指定远程机器的url,需要 IP+端口号
43
45
 
46
+
44
47
  ### Initializer自动加载工程文件
45
48
  ``` ruby
46
49
  Actir::Initializer.new(project_path)
@@ -36,7 +36,8 @@ module Actir
36
36
 
37
37
  def load_item
38
38
  @item_path = File.join(@elements_path, 'item')
39
- Dir.glob(File.join @item_path, '**', '*.rb').select {|p| p =~ /\.rb$/}.each do |i|
39
+ @list = Dir.glob(File.join @item_path, '**', '*.rb').select {|p| p =~ /\.rb$/}.sort
40
+ @list.each do |i|
40
41
  puts i if $debug
41
42
  require "#{i}"
42
43
  end #each
@@ -44,7 +45,8 @@ module Actir
44
45
 
45
46
  def load_user
46
47
  @user_path = File.join(@elements_path, 'user')
47
- Dir.glob(File.join @user_path, '**', '*.rb').select {|p| p =~ /\.rb$/}.each do |u|
48
+ @list = Dir.glob(File.join @user_path, '**', '*.rb').select {|p| p =~ /\.rb$/}.sort
49
+ @list.each do |u|
48
50
  puts u if $debug
49
51
  require "#{u}"
50
52
  end #each
@@ -52,7 +54,8 @@ module Actir
52
54
 
53
55
  def load_components
54
56
  @components_path = File.join(@elements_path, 'components')
55
- Dir.glob(File.join @components_path, '**', '*.rb').select {|p| p =~ /\.rb$/}.each do |c|
57
+ @list = Dir.glob(File.join @components_path, '**', '*.rb').select {|p| p =~ /\.rb$/}.sort
58
+ @list.each do |c|
56
59
  puts c if $debug
57
60
  require "#{c}"
58
61
  end #each
@@ -60,7 +63,8 @@ module Actir
60
63
 
61
64
  def load_pages
62
65
  @pages_path = File.join(@elements_path, 'pages')
63
- Dir.glob(File.join @pages_path, '**', '*.rb').select { |p| p =~ /\.rb$/ }.each do |page|
66
+ @list = Dir.glob(File.join @pages_path, '**', '*.rb').select { |p| p =~ /\.rb$/ }.sort
67
+ @list.each do |page|
64
68
  puts "#{page}"if $debug
65
69
  require "#{page}"
66
70
  end #each
@@ -8,7 +8,7 @@ module Actir
8
8
 
9
9
  class CLI
10
10
  def run(argv)
11
- $env = "online"
11
+ $env = "qatest"
12
12
  options = parse_options!(argv)
13
13
  num_processes = Actir::ParallelTests.determine_number_of_processes(options[:count])
14
14
  $mode = Actir::ParallelTests.determine_run_mode(options[:mode])
@@ -199,8 +199,8 @@ module Actir
199
199
  # 通过whoami命令获取当前账户名称
200
200
  # 暂时存放在/User/xx/目录下
201
201
  def directory
202
- user_name = `whoami`
203
- return "/Users/" + user_name.chomp + "/cookies/"
202
+ user_home = `echo ~`
203
+ return user_home.chomp + "/cookies/"
204
204
  end
205
205
 
206
206
  def file_name
@@ -1,3 +1,3 @@
1
1
  module Actir
2
- VERSION = "1.4.3.3"
2
+ VERSION = "1.4.3.4"
3
3
  end
@@ -1,5 +1,4 @@
1
1
  require 'actir/webdriver/driver'
2
- require 'timeout'
3
2
 
4
3
  #
5
4
  # 初始化测试用浏览器
metadata CHANGED
@@ -1,111 +1,111 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: actir
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.3.3
4
+ version: 1.4.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - hub
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-06-13 00:00:00.000000000 Z
11
+ date: 2016-09-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: test-unit
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ~>
18
18
  - !ruby/object:Gem::Version
19
19
  version: '3.0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ~>
25
25
  - !ruby/object:Gem::Version
26
26
  version: '3.0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: watir-webdriver
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ~>
32
32
  - !ruby/object:Gem::Version
33
33
  version: 0.6.11
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - "~>"
38
+ - - ~>
39
39
  - !ruby/object:Gem::Version
40
40
  version: 0.6.11
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: selenium-webdriver
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - "~>"
45
+ - - ~>
46
46
  - !ruby/object:Gem::Version
47
47
  version: '2.45'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - "~>"
52
+ - - ~>
53
53
  - !ruby/object:Gem::Version
54
54
  version: '2.45'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: parallel
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - "~>"
59
+ - - ~>
60
60
  - !ruby/object:Gem::Version
61
61
  version: '1.4'
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - "~>"
66
+ - - ~>
67
67
  - !ruby/object:Gem::Version
68
68
  version: '1.4'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: facets
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - "~>"
73
+ - - ~>
74
74
  - !ruby/object:Gem::Version
75
75
  version: '2.9'
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - "~>"
80
+ - - ~>
81
81
  - !ruby/object:Gem::Version
82
82
  version: '2.9'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: bundler
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - "~>"
87
+ - - ~>
88
88
  - !ruby/object:Gem::Version
89
89
  version: '1.7'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - "~>"
94
+ - - ~>
95
95
  - !ruby/object:Gem::Version
96
96
  version: '1.7'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: rake
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - "~>"
101
+ - - ~>
102
102
  - !ruby/object:Gem::Version
103
103
  version: '10.0'
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - "~>"
108
+ - - ~>
109
109
  - !ruby/object:Gem::Version
110
110
  version: '10.0'
111
111
  description: Distribut automated testing framework for Web or App.
@@ -117,8 +117,8 @@ executables:
117
117
  extensions: []
118
118
  extra_rdoc_files: []
119
119
  files:
120
- - ".gitignore"
121
- - ".travis.yml"
120
+ - .gitignore
121
+ - .travis.yml
122
122
  - CODE_OF_CONDUCT.md
123
123
  - Gemfile
124
124
  - README.md
@@ -160,17 +160,17 @@ require_paths:
160
160
  - lib
161
161
  required_ruby_version: !ruby/object:Gem::Requirement
162
162
  requirements:
163
- - - ">="
163
+ - - '>='
164
164
  - !ruby/object:Gem::Version
165
165
  version: '0'
166
166
  required_rubygems_version: !ruby/object:Gem::Requirement
167
167
  requirements:
168
- - - ">="
168
+ - - '>='
169
169
  - !ruby/object:Gem::Version
170
170
  version: '0'
171
171
  requirements: []
172
172
  rubyforge_project:
173
- rubygems_version: 2.4.3
173
+ rubygems_version: 2.6.4
174
174
  signing_key:
175
175
  specification_version: 4
176
176
  summary: Application Concurrence Test in Ruby.