perfecto-reporting 1.1.3 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 0090a9b36b809a85c9d72f4cfa46177325d3622a
4
+ data.tar.gz: 2b9ca522dedd3f7e051965bdb678b5d914e3e0f1
5
+ SHA512:
6
+ metadata.gz: 8217dc82aa25324bd7f8b3bb2b83b309d4fe12796b1518e7d4e3396663f889f1eea8ff45220921118a6300fe9f058bb09eb890b79d60d1d4da3eddf2c3e78fe7
7
+ data.tar.gz: c464ca2202d04ef396d6e6d8ee94cea2cd75ac849765cc7e55e0fe733012a39aebdf44dea60df9b2afd2755d1fc398ce7290646d81510cb1704eb49fe047de9c
@@ -17,7 +17,7 @@ class PerfectoReportiumClient
17
17
  # context - test context instance
18
18
  #
19
19
  # returns - id of created test
20
- def testStart(name, context)
20
+ def testStart(name, context)
21
21
  params = {}
22
22
 
23
23
  unless @perfectoExecutionContext.job.nil?
@@ -35,20 +35,35 @@ class PerfectoReportiumClient
35
35
 
36
36
  executeScript($START_TEST_COMMAND, params)
37
37
  end
38
-
39
38
 
40
39
 
41
40
  # logging a logical test step.
42
41
  #
42
+ # ### DEPRECATED ###
43
+ #
43
44
  # description - step description, will be presented on reporting ui.
44
45
  #
45
46
  # returns - id of created step
46
47
  #
47
48
  # e.g. 'click on next button'
48
49
  def testStep(description)
50
+ warn 'testStep method is deprecated, please use stepStart and stepEnd commands instead.'
49
51
  executeScript($TEST_STEP_COMMAND, {:name => description})
50
52
  end
51
53
 
54
+ # logging a logical test step start
55
+ #
56
+ # description - step description
57
+ def stepStart(description)
58
+ executeScript($TEST_STEP_COMMAND, {:name => description})
59
+ end
60
+
61
+ # logging a logical test step end
62
+ #
63
+ # message - a possible message to attach
64
+ def stepEnd(message=nil)
65
+ executeScript($END_STEP_COMMAND, {:message => message})
66
+ end
52
67
 
53
68
  # Indicates that the test has stopped and its execution status.
54
69
  #
@@ -57,19 +72,30 @@ class PerfectoReportiumClient
57
72
  # returns - false if the method failed due to existing conditions such as a previous call to testStart that failed,
58
73
  # otherwise return true
59
74
  def testStop(testResult)
60
-
75
+
61
76
  params = {
62
- :success => testResult.isSuccessful
77
+ :success => testResult.isSuccessful
63
78
  }
64
-
79
+
65
80
  if !testResult.isSuccessful
66
81
  params['failureDescription'] = testResult.message
67
82
  end
68
83
 
69
84
  executeScript($END_TEST_COMMAND, params)
70
- return true
85
+ return true
86
+ end
87
+
88
+ # log a new assertion
89
+ #
90
+ # message - a message to be attached to the assertion
91
+ # status - true / false value
92
+ def reportiumAssert(message, status)
93
+ params = {
94
+ :message => message,
95
+ :status => status
96
+ }
97
+ executeScript($ASSERT_COMMAND, params)
71
98
  end
72
-
73
99
 
74
100
  # Returns the URL to the created online report in Perfecto's reporting solution.
75
101
  #
@@ -1,5 +1,6 @@
1
1
  # Test Commands
2
- $START_TEST_COMMAND = 'mobile:test:start';
3
- $TEST_STEP_COMMAND = 'mobile:test:step';
4
- $END_TEST_COMMAND = 'mobile:test:end';
5
-
2
+ $START_TEST_COMMAND = 'mobile:test:start'
3
+ $TEST_STEP_COMMAND = 'mobile:test:step'
4
+ $END_STEP_COMMAND = 'mobile:step:end'
5
+ $END_TEST_COMMAND = 'mobile:test:end'
6
+ $ASSERT_COMMAND = 'mobile:status:assert'
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Reporting
4
4
  module Perfecto
5
- VERSION = "1.1.3"
5
+ VERSION = "2.0.0"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,8 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: perfecto-reporting
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.3
5
- prerelease:
4
+ version: 2.0.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - perfecto
@@ -14,64 +13,61 @@ dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: selenium-webdriver
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>='
17
+ - - ">="
20
18
  - !ruby/object:Gem::Version
21
19
  version: 2.53.0
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ! '>='
24
+ - - ">="
28
25
  - !ruby/object:Gem::Version
29
26
  version: 2.53.0
30
- description: ! "Perfecto Reporting is a multiple execution digital report, that enables
31
- quick navigation within your latest build execution.\n Get visibility of your test
32
- execution status and quickly identify potential problems with an aggregated report."
27
+ description: |-
28
+ Perfecto Reporting is a multiple execution digital report, that enables quick navigation within your latest build execution.
29
+ Get visibility of your test execution status and quickly identify potential problems with an aggregated report.
33
30
  email: daniela@perfectomobile.com
34
31
  executables: []
35
32
  extensions: []
36
33
  extra_rdoc_files: []
37
34
  files:
38
35
  - lib/perfecto-reporting.rb
39
- - lib/perfecto-reporting/exceptions/ReportiumException.rb
40
- - lib/perfecto-reporting/version.rb
41
- - lib/perfecto-reporting/model/Project.rb
42
- - lib/perfecto-reporting/model/Job.rb
43
- - lib/perfecto-reporting/model/PerfectoExecutionContext.rb
44
36
  - lib/perfecto-reporting/client/PerfectoReportiumClient.rb
45
37
  - lib/perfecto-reporting/client/ReportiumClientFactory.rb
46
38
  - lib/perfecto-reporting/client/constants.rb
39
+ - lib/perfecto-reporting/exceptions/ReportiumException.rb
40
+ - lib/perfecto-reporting/model/Job.rb
41
+ - lib/perfecto-reporting/model/PerfectoExecutionContext.rb
42
+ - lib/perfecto-reporting/model/Project.rb
47
43
  - lib/perfecto-reporting/test/TestContext.rb
48
- - lib/perfecto-reporting/test/result/TestResultSuccess.rb
49
- - lib/perfecto-reporting/test/result/TestResultFactory.rb
50
44
  - lib/perfecto-reporting/test/result/TestResult.rb
45
+ - lib/perfecto-reporting/test/result/TestResultFactory.rb
51
46
  - lib/perfecto-reporting/test/result/TestResultFailure.rb
47
+ - lib/perfecto-reporting/test/result/TestResultSuccess.rb
48
+ - lib/perfecto-reporting/version.rb
52
49
  homepage: http://rubygems.org/gems/Perfecto-Reporting
53
50
  licenses:
54
51
  - MIT
52
+ metadata: {}
55
53
  post_install_message:
56
54
  rdoc_options: []
57
55
  require_paths:
58
56
  - lib
59
57
  required_ruby_version: !ruby/object:Gem::Requirement
60
- none: false
61
58
  requirements:
62
- - - ! '>='
59
+ - - ">="
63
60
  - !ruby/object:Gem::Version
64
61
  version: '0'
65
62
  required_rubygems_version: !ruby/object:Gem::Requirement
66
- none: false
67
63
  requirements:
68
- - - ! '>='
64
+ - - ">="
69
65
  - !ruby/object:Gem::Version
70
66
  version: '0'
71
67
  requirements: []
72
68
  rubyforge_project:
73
- rubygems_version: 1.8.23
69
+ rubygems_version: 2.2.5
74
70
  signing_key:
75
- specification_version: 3
71
+ specification_version: 4
76
72
  summary: perfecto reporting sdk
77
73
  test_files: []