class ATM::Services::TestPlan

ATM::Services::TestPlan

Public Instance Methods

find(plan_key) click to toggle source

Retrives data for specific test plan

@param [String] plan_key

@example Retrive data for a plan_key plan_data = ATM::CLinet.new.TestPlan.find('RR-P20')

# File lib/atm_ruby/services/test_plan.rb, line 11
def find(plan_key)
  self.class.get("/rest/kanoahtests/1.0/testplan/#{plan_key.upcase}", headers: auth_header).tap do |res|
    set_response(res)
    raise ATM::TestPlanError, response unless response.code == 200
  end
end