Class: QAT::Reporter::Xray::Test

Inherits:
Issue
  • Object
show all
Defined in:
lib/qat/reporter/xray/test.rb

Overview

QAT::Reporter::Xray::TestExecution represents a Xray Test Execution object

Instance Attribute Summary

Attributes inherited from Issue

#jira_id

Instance Method Summary collapse

Methods inherited from Issue

#initialize

Constructor Details

This class inherits a constructor from QAT::Reporter::Xray::Issue

Instance Method Details

#create(options = {}) ⇒ Object

Creates a Test issue in Jira



11
12
13
14
15
16
# File 'lib/qat/reporter/xray/test.rb', line 11

def create(options = {})
  data     = defaults.merge(options)
  response = super(data)
  test_key = JSON.parse(response)['key']
  puts "Created test with key: '#{test_key}'."
end