Module: QAT::Web::Hooks::Common

Defined in:
lib/qat/web/hooks/common.rb

Overview

Since:

  • 1.0.0

Class Method Summary collapse

Class Method Details

.scenario_tag(scenario) ⇒ Object

Since:

  • 1.0.0



5
6
7
8
9
10
11
# File 'lib/qat/web/hooks/common.rb', line 5

def scenario_tag(scenario)
  tag = QAT[:current_test_run_id] if QAT.respond_to?(:[])

  tag ||= Time.now.strftime("%H%M%S%L")

  "#{scenario.name.parameterize}_#{tag}"
end