class TestRailOperations::TestCase
Represents a test case in test rail.
Attributes
assigned_to[RW]
automatable[RW]
automated[RW]
file[RW]
id[RW]
metadata[RW]
priority[RW]
references[RW]
result_message[RW]
run_once[RW]
screen_size[RW]
skip[RW]
status[RW]
temp_id[RW]
title[RW]
Public Class Methods
new(id, title, priority, automated, screen_size, automatable, references, run_once)
click to toggle source
# File lib/files/TestCase.rb, line 12 def initialize(id, title, priority, automated, screen_size, automatable, references, run_once) @id = id @title = title @priority = priority @automated = automated @screen_size = screen_size @automatable = automatable @references = references @run_once = run_once @skip = [] end
Public Instance Methods
print()
click to toggle source
# File lib/files/TestCase.rb, line 29 def print puts "" puts "Test Case: #{@id}, #{@title}" puts "\tPriority: #{@priority}" puts "\tScreen Size: #{@screen_size}" puts "\tAutomated: #{@automated}" puts "\tSkips: #{skip}" end
set_status(status, message)
click to toggle source
# File lib/files/TestCase.rb, line 24 def set_status(status, message) @status = status @result_message = message # a string end