itms_automation 1.4 → 1.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,92 @@
1
+ GEM
2
+ remote: http://rubygems.org/
3
+ specs:
4
+ addressable (2.7.0)
5
+ public_suffix (>= 2.0.2, < 5.0)
6
+ backports (3.15.0)
7
+ builder (3.2.3)
8
+ capybara (3.29.0)
9
+ addressable
10
+ mini_mime (>= 0.1.3)
11
+ nokogiri (~> 1.8)
12
+ rack (>= 1.6.0)
13
+ rack-test (>= 0.6.3)
14
+ regexp_parser (~> 1.5)
15
+ xpath (~> 3.2)
16
+ childprocess (3.0.0)
17
+ colorize (0.8.1)
18
+ cucumber (3.1.2)
19
+ builder (>= 2.1.2)
20
+ cucumber-core (~> 3.2.0)
21
+ cucumber-expressions (~> 6.0.1)
22
+ cucumber-wire (~> 0.0.1)
23
+ diff-lcs (~> 1.3)
24
+ gherkin (~> 5.1.0)
25
+ multi_json (>= 1.7.5, < 2.0)
26
+ multi_test (>= 0.1.2)
27
+ cucumber-core (3.2.1)
28
+ backports (>= 3.8.0)
29
+ cucumber-tag_expressions (~> 1.1.0)
30
+ gherkin (~> 5.0)
31
+ cucumber-expressions (6.0.1)
32
+ cucumber-tag_expressions (1.1.1)
33
+ cucumber-wire (0.0.1)
34
+ cucumber_priority (0.3.2)
35
+ cucumber
36
+ diff-lcs (1.3)
37
+ gherkin (5.1.0)
38
+ itms_automation (1.5)
39
+ capybara (~> 3.29.0)
40
+ colorize (~> 0.8.1)
41
+ cucumber (~> 3.1)
42
+ cucumber_priority (~> 0.3.2)
43
+ parallel_tests (~> 2.7, >= 2.7.1)
44
+ report_builder (~> 1.8, >= 1.8)
45
+ rspec (~> 3.8, >= 3.8.0)
46
+ selenium-webdriver (~> 3.6, >= 3.6.0)
47
+ json (2.3.0)
48
+ mini_mime (1.0.2)
49
+ mini_portile2 (2.4.0)
50
+ multi_json (1.14.0)
51
+ multi_test (0.1.2)
52
+ nokogiri (1.10.7)
53
+ mini_portile2 (~> 2.4.0)
54
+ parallel (1.19.1)
55
+ parallel_tests (2.29.2)
56
+ parallel
57
+ public_suffix (4.0.3)
58
+ rack (2.0.7)
59
+ rack-test (1.1.0)
60
+ rack (>= 1.0, < 3)
61
+ regexp_parser (1.6.0)
62
+ report_builder (1.8)
63
+ json (>= 1.8.1)
64
+ rspec (3.9.0)
65
+ rspec-core (~> 3.9.0)
66
+ rspec-expectations (~> 3.9.0)
67
+ rspec-mocks (~> 3.9.0)
68
+ rspec-core (3.9.1)
69
+ rspec-support (~> 3.9.1)
70
+ rspec-expectations (3.9.0)
71
+ diff-lcs (>= 1.2.0, < 2.0)
72
+ rspec-support (~> 3.9.0)
73
+ rspec-mocks (3.9.1)
74
+ diff-lcs (>= 1.2.0, < 2.0)
75
+ rspec-support (~> 3.9.0)
76
+ rspec-support (3.9.2)
77
+ rubyzip (2.0.0)
78
+ selenium-webdriver (3.142.6)
79
+ childprocess (>= 0.5, < 4.0)
80
+ rubyzip (>= 1.2.2)
81
+ xpath (3.2.0)
82
+ nokogiri (~> 1.8)
83
+
84
+ PLATFORMS
85
+ ruby
86
+
87
+ DEPENDENCIES
88
+ itms_automation
89
+ report_builder
90
+
91
+ BUNDLED WITH
92
+ 2.0.2
@@ -2,4 +2,4 @@
2
2
  Feature: demo
3
3
 
4
4
  Scenario: new scenario
5
- Given test select execute
5
+ Given Go to Test Cycle Sumary of iTMS project
@@ -3,11 +3,20 @@ And /I open the page "(.*)"/ do |url_site|
3
3
  end
4
4
 
5
5
  Given /^test select execute$/ do
6
- execute_openbrowser("http://www.yopmail.com/en/")
7
- execute_settext("username", "cuong")
8
- execute_click("okbutton")
9
- switch_to_iframe("iframe")
6
+
7
+ execute_openbrowser("https://infodation.atlassian.net/plugins/servlet/ac/Infodation-tms/test-summary?project.key=IFDTMS&project.id=17400")
8
+ # execute_settext("username", "cuong")
9
+ # execute_click("okbutton")
10
+ switch_to_iframe("iframe1")
10
11
 
11
12
  execute_click("verify")
12
13
  sleep(5)
13
14
  end
15
+
16
+ When /^Go to Test Cycle Sumary of iTMS project$/ do
17
+ execute_openbrowser("https://infodation.atlassian.net/plugins/servlet/ac/Infodation-tms/test-summary?project.key=IFDTMS&project.id=17400")
18
+ sleep(5)
19
+ switch_to_iframe("iframe1")
20
+ execute_click("itms_cyclesumarylink")
21
+ sleep(3)
22
+ end
@@ -1,7 +1,8 @@
1
1
  username: { xpath_selector: '//input[@id="login"]' }
2
2
  okbutton: { xpath_selector: '//input[@value="Check Inbox"]' }
3
- iframe: { xpath_selector: '//iframe[@id="ifmail"]' }
4
- verify: { xpath_selector: '//div[@id="mailmillieu"]/div[2]//tbody/tr[3]/td/p/strong/a[@class="campaign-sale-link"]' }
3
+ iframe: { xpath_selector: '//*[@class="ap-iframe-container iframe-init"]' }
4
+ iframe1: { xpath_selector: '//iframe[contains(@id,"Infodation-tms__test-summary_")]' }
5
+ verify: { xpath_selector: '//*[@id="aui-uid-1"]' }
5
6
  firstname:
6
7
  {
7
8
  xpath_selector: '/html/body/div[2]/table/tbody/tr/td[2]/table/tbody/tr[4]/td/table/tbody/tr/td[2]/table/tbody/tr[5]/td/form/table/tbody/tr[2]/td[2]',
@@ -14,3 +15,12 @@ selectcountry:
14
15
  {
15
16
  xpath_selector: '/html/body/div[2]/table/tbody/tr/td[2]/table/tbody/tr[4]/td/table/tbody/tr/td[2]/table/tbody/tr[5]/td/form/table/tbody/tr[11]/td[2]/select',
16
17
  }
18
+ loginjira_continuebutton: {xpath_selector: "//button[@id=\"login-submit\"]/span/span/span"}
19
+ loginjira_password: {xpath_selector: "//input[@id=\"password\"]"}
20
+ loginjira_username: {xpath_selector: "//input[@id=\"username\"]"}
21
+ itms_cyclesumarylink: {xpath_selector: "//section[@id=\"content\"]//li[@class=\"menu-item\"]/a"}
22
+ itms_createnewtestcyclebutton: {xpath_selector: "//button[@id=\"itms-sidebar-addnew-button\"]"}
23
+ itms_createtestcycle_savebutton: {xpath_selector: "//button[@id=\"itms-dialog-confirm\"]"}
24
+ itms_createtestcyle_alertmessage: {xpath_selector: "//section[@id=\"ITMS-dialog-cycle\"]//strong"}
25
+ itms_clickheretocreatetestcycle: {xpath_selector: "//section[@class=\"aui-buttons\"]/button[3]/span"}
26
+ itms_iframe_testsumary: { xpath_selector: '//iframe[contains(@id,"Infodation-tms__test-summary_")]' }
@@ -1,12 +1,10 @@
1
1
  STDOUT.sync = true
2
- require 'rubygems'
3
- require 'capybara'
4
- require 'capybara/cucumber'
5
- require 'cucumber'
6
- require 'yaml'
7
- require 'selenium-webdriver'
8
- # require 'itms_automation'
9
- require 'report_builder'
10
-
11
- require_relative "../../../lib/itms_automation.rb"
12
- # Selenium::WebDriver::Driver.for(:remote).logger.level = :debug
2
+ require "rubygems"
3
+ require "capybara"
4
+ require "capybara/cucumber"
5
+ require "cucumber"
6
+ require "yaml"
7
+ require "selenium-webdriver"
8
+ require "colorize"
9
+ require "itms_automation"
10
+ require "report_builder"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: itms_automation
3
3
  version: !ruby/object:Gem::Version
4
- version: '1.4'
4
+ version: '1.5'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Anh Pham
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-02-07 00:00:00.000000000 Z
11
+ date: 2020-02-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: selenium-webdriver
@@ -132,6 +132,34 @@ dependencies:
132
132
  - - "~>"
133
133
  - !ruby/object:Gem::Version
134
134
  version: 0.3.2
135
+ - !ruby/object:Gem::Dependency
136
+ name: colorize
137
+ requirement: !ruby/object:Gem::Requirement
138
+ requirements:
139
+ - - "~>"
140
+ - !ruby/object:Gem::Version
141
+ version: 0.8.1
142
+ type: :runtime
143
+ prerelease: false
144
+ version_requirements: !ruby/object:Gem::Requirement
145
+ requirements:
146
+ - - "~>"
147
+ - !ruby/object:Gem::Version
148
+ version: 0.8.1
149
+ - !ruby/object:Gem::Dependency
150
+ name: activerecord
151
+ requirement: !ruby/object:Gem::Requirement
152
+ requirements:
153
+ - - "~>"
154
+ - !ruby/object:Gem::Version
155
+ version: 6.0.2.1
156
+ type: :runtime
157
+ prerelease: false
158
+ version_requirements: !ruby/object:Gem::Requirement
159
+ requirements:
160
+ - - "~>"
161
+ - !ruby/object:Gem::Version
162
+ version: 6.0.2.1
135
163
  description: Behavior driven development (BDD) approach to write automation test script
136
164
  to test GUI, RESTful, SOAP, Database, eMail.
137
165
  email:
@@ -155,6 +183,7 @@ files:
155
183
  - lib/itms_automation/version.rb
156
184
  - lib/itms_automation/web_steps_helper.rb
157
185
  - project/Gemfile
186
+ - project/Gemfile.lock
158
187
  - project/README.md
159
188
  - project/Rakefile
160
189
  - project/config/chrome_headless_options.yaml