Class: Gitlab::QA::Report::TestResult::JsonTestResult
Instance Attribute Summary
#failures, #report
Instance Method Summary
collapse
from_json, from_junit, #initialize, #stage
Instance Method Details
#ci_job_url ⇒ Object
59
60
61
|
# File 'lib/gitlab/qa/report/test_result.rb', line 59
def ci_job_url
report['ci_job_url']
end
|
#failure_issue ⇒ Object
75
76
77
|
# File 'lib/gitlab/qa/report/test_result.rb', line 75
def failure_issue
report['failure_issue']
end
|
#failure_issue=(new_failure_issue) ⇒ Object
79
80
81
|
# File 'lib/gitlab/qa/report/test_result.rb', line 79
def failure_issue=(new_failure_issue)
report['failure_issue'] = new_failure_issue
end
|
#failure_screenshot ⇒ Object
102
103
104
|
# File 'lib/gitlab/qa/report/test_result.rb', line 102
def failure_screenshot
report['screenshot']['image'] if screenshot?
end
|
#file ⇒ Object
51
52
53
|
# File 'lib/gitlab/qa/report/test_result.rb', line 51
def file
report['file_path']
end
|
#name ⇒ Object
47
48
49
|
# File 'lib/gitlab/qa/report/test_result.rb', line 47
def name
report['full_description']
end
|
#quarantine? ⇒ Boolean
83
84
85
86
87
88
|
# File 'lib/gitlab/qa/report/test_result.rb', line 83
def quarantine?
report['quarantine'].present?
end
|
#quarantine_issue ⇒ Object
94
95
96
|
# File 'lib/gitlab/qa/report/test_result.rb', line 94
def quarantine_issue
report['quarantine']['issue'] if quarantine?
end
|
#quarantine_type ⇒ Object
90
91
92
|
# File 'lib/gitlab/qa/report/test_result.rb', line 90
def quarantine_type
report['quarantine']['type'] if quarantine?
end
|
#screenshot? ⇒ Boolean
98
99
100
|
# File 'lib/gitlab/qa/report/test_result.rb', line 98
def screenshot?
report['screenshot'].present?
end
|
#skipped ⇒ Object
63
64
65
|
# File 'lib/gitlab/qa/report/test_result.rb', line 63
def skipped
status == 'pending'
end
|
#status ⇒ Object
55
56
57
|
# File 'lib/gitlab/qa/report/test_result.rb', line 55
def status
report['status']
end
|
#testcase ⇒ Object
67
68
69
|
# File 'lib/gitlab/qa/report/test_result.rb', line 67
def testcase
report['testcase']
end
|
#testcase=(new_testcase) ⇒ Object
71
72
73
|
# File 'lib/gitlab/qa/report/test_result.rb', line 71
def testcase=(new_testcase)
report['testcase'] = new_testcase
end
|