Method: Allure#add_link

Defined in:
lib/allure-ruby-commons.rb

This method returns an undefined value.

Add link to current test case

Parameters:

  • url (String)
  • name (String) (defaults to: nil)
  • type (String) (defaults to: "custom")

    type of the link used to display link icon

[View source]

148
149
150
151
152
# File 'lib/allure-ruby-commons.rb', line 148

def add_link(url:, name: nil, type: "custom")
  lifecycle.update_test_case do |test_case|
    test_case.links.push(Link.new(type, name || url, url))
  end
end