perfecto-reporting 3.0.1 → 3.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,14 +1,14 @@
1
- # Test result
2
- #
3
- # This class define a basic TestResult instance structure
4
- class TestResult
5
-
6
- def isSuccessful
7
- raise 'Not Implemented Method'
8
- end
9
-
10
- def status
11
- raise 'Not Implemented Method'
12
- end
13
-
1
+ # Test result
2
+ #
3
+ # This class define a basic TestResult instance structure
4
+ class TestResult
5
+
6
+ def isSuccessful
7
+ raise 'Not Implemented Method'
8
+ end
9
+
10
+ def status
11
+ raise 'Not Implemented Method'
12
+ end
13
+
14
14
  end
@@ -1,36 +1,36 @@
1
- require_relative 'TestResultSuccess'
2
- require_relative 'TestResultFailure'
3
-
4
- # TestResultFactory
5
- #
6
- # Generates a new test result instance.
7
- class TestResultFactory
8
-
9
- # create a successful test execution result
10
- #
11
- # return - instance denoting a successful test execution
12
- def self.createSuccess
13
- return TestResultSuccess.new
14
- end
15
-
16
- # Creates a failed test execution result
17
- #
18
- # reason - string representation of the reason for the test failure
19
- # error - the exception caused the failure
20
- #
21
- # return - instance denoting a failed test execution
22
- def self.createFailure reason, error
23
- return TestResultFailure.new(reason, error)
24
- end
25
-
26
- # Creates a failed test execution result
27
- #
28
- # reason - string representation of the reason for the test failure
29
- # error - the exception caused the failure
30
- # failureReason - string that represents one of the catalogued failure reasons
31
- #
32
- # return - instance denoting a failed test execution
33
- def self.createFailure reason, error, failureReason
34
- return TestResultFailure.new(reason, error, failureReason)
35
- end
36
- end
1
+ require_relative 'TestResultSuccess'
2
+ require_relative 'TestResultFailure'
3
+
4
+ # TestResultFactory
5
+ #
6
+ # Generates a new test result instance.
7
+ class TestResultFactory
8
+
9
+ # create a successful test execution result
10
+ #
11
+ # return - instance denoting a successful test execution
12
+ def self.createSuccess
13
+ return TestResultSuccess.new
14
+ end
15
+
16
+ # Creates a failed test execution result
17
+ #
18
+ # reason - string representation of the reason for the test failure
19
+ # error - the exception caused the failure
20
+ #
21
+ # return - instance denoting a failed test execution
22
+ def self.createFailure reason, error
23
+ return TestResultFailure.new(reason, error)
24
+ end
25
+
26
+ # Creates a failed test execution result
27
+ #
28
+ # reason - string representation of the reason for the test failure
29
+ # error - the exception caused the failure
30
+ # failureReason - string that represents one of the catalogued failure reasons
31
+ #
32
+ # return - instance denoting a failed test execution
33
+ def self.createFailure reason, error, failureReason
34
+ return TestResultFailure.new(reason, error, failureReason)
35
+ end
36
+ end
@@ -1,39 +1,39 @@
1
- require_relative 'TestResult'
2
-
3
- # TestResultFailure
4
- #
5
- # Define a failure test result.
6
- class TestResultFailure < TestResult
7
-
8
- attr_accessor :message, :failureReason
9
-
10
- @@STATUS = 'FAILED'
11
-
12
- # Create a new instance
13
- #
14
- # reason - string representation of the failure reason
15
- # error - exception caused to the failure
16
- # failureReason - one of the failure reasons in the catalogue
17
- def initialize(reason, error, failureReason=nil)
18
- if error.is_a? Exception
19
- @message = reason + '. Stack Trace:' + error.backtrace.to_s
20
- else
21
- @message = reason
22
- end
23
- ## Validate that the reason + error stacktrace are not longer then 4096 charcters
24
- if @message.length > 4096
25
- @message = @message[0,4096]
26
- end
27
- @failureReason = failureReason
28
-
29
- end
30
-
31
- def isSuccessful
32
- return false
33
- end
34
-
35
- def status
36
- @@STATUS
37
- end
38
-
39
- end
1
+ require_relative 'TestResult'
2
+
3
+ # TestResultFailure
4
+ #
5
+ # Define a failure test result.
6
+ class TestResultFailure < TestResult
7
+
8
+ attr_accessor :message, :failureReason
9
+
10
+ @@STATUS = 'FAILED'
11
+
12
+ # Create a new instance
13
+ #
14
+ # reason - string representation of the failure reason
15
+ # error - exception caused to the failure
16
+ # failureReason - one of the failure reasons in the catalogue
17
+ def initialize(reason, error, failureReason=nil)
18
+ if error.is_a? Exception
19
+ @message = reason + '. Stack Trace:' + error.backtrace.to_s
20
+ else
21
+ @message = reason
22
+ end
23
+ ## Validate that the reason + error stacktrace are not longer then 4096 charcters
24
+ if @message.length > 4096
25
+ @message = @message[0,4096]
26
+ end
27
+ @failureReason = failureReason
28
+
29
+ end
30
+
31
+ def isSuccessful
32
+ return false
33
+ end
34
+
35
+ def status
36
+ @@STATUS
37
+ end
38
+
39
+ end
@@ -1,18 +1,18 @@
1
- require_relative 'TestResult'
2
-
3
- # TestResultSuccess
4
- #
5
- # Define a successful test result
6
- class TestResultSuccess < TestResult
7
-
8
- @@STATUS = 'PASSED'
9
-
10
- def isSuccessful
11
- return true
12
- end
13
-
14
- def status
15
- @@STATUS
16
- end
17
-
1
+ require_relative 'TestResult'
2
+
3
+ # TestResultSuccess
4
+ #
5
+ # Define a successful test result
6
+ class TestResultSuccess < TestResult
7
+
8
+ @@STATUS = 'PASSED'
9
+
10
+ def isSuccessful
11
+ return true
12
+ end
13
+
14
+ def status
15
+ @@STATUS
16
+ end
17
+
18
18
  end
@@ -1,7 +1,7 @@
1
- # Modified by Perfecto Mobile Ltd.
2
-
3
- module Reporting
4
- module Perfecto
5
- VERSION = "3.0.1"
6
- end
7
- end
1
+ # Modified by Perfecto Mobile Ltd.
2
+
3
+ module Reporting
4
+ module Perfecto
5
+ VERSION = "3.0.2"
6
+ end
7
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: perfecto-reporting
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.1
4
+ version: 3.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - perfecto
@@ -33,11 +33,14 @@ executables: []
33
33
  extensions: []
34
34
  extra_rdoc_files: []
35
35
  files:
36
+ - LICENSE.txt
37
+ - README.md
36
38
  - lib/perfecto-reporting.rb
37
39
  - lib/perfecto-reporting/client/PerfectoReportiumClient.rb
38
40
  - lib/perfecto-reporting/client/ReportiumClientFactory.rb
39
41
  - lib/perfecto-reporting/client/constants.rb
40
42
  - lib/perfecto-reporting/exceptions/ReportiumException.rb
43
+ - lib/perfecto-reporting/license.txt
41
44
  - lib/perfecto-reporting/model/CustomField.rb
42
45
  - lib/perfecto-reporting/model/Job.rb
43
46
  - lib/perfecto-reporting/model/PerfectoExecutionContext.rb
@@ -68,7 +71,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
68
71
  version: '0'
69
72
  requirements: []
70
73
  rubyforge_project:
71
- rubygems_version: 2.4.5.4
74
+ rubygems_version: 2.4.5.5
72
75
  signing_key:
73
76
  specification_version: 4
74
77
  summary: perfecto reporting sdk