Module: Endpoints

Included in:
TestRail::APIClient
Defined in:
lib/endpoints.rb

Overview

This space left blank intentionally

Instance Method Summary collapse

Instance Method Details

#add_case(section_id, opts = {}) ⇒ Object



30
31
32
# File 'lib/endpoints.rb', line 30

def add_case(section_id, opts = {})
  self.send_post("add_case/#{section_id}", opts)
end

#add_milestone(project_id, opts = {}) ⇒ Object



109
110
111
# File 'lib/endpoints.rb', line 109

def add_milestone(project_id, opts = {})
  self.send_post("add_milestone/#{project_id}", opts)
end

#add_plan(project_id, opts = {}) ⇒ Object



89
90
91
# File 'lib/endpoints.rb', line 89

def add_plan(project_id, opts = {})
  self.send_post("add_plan/#{project_id}", opts)
end

#add_plan_entries(plan_id, opts = {}) ⇒ Object



93
94
95
# File 'lib/endpoints.rb', line 93

def add_plan_entries(plan_id, opts = {})
  self.send_post("add_plan_entries/#{plan_id}", opts)
end

#add_result(test_id, opts = {}) ⇒ Object



6
7
8
# File 'lib/endpoints.rb', line 6

def add_result(test_id, opts = {})
  self.send_post("add_result/#{test_id}", opts)
end

#add_result_for_case(run_id, case_id, opts = {}) ⇒ Object



10
11
12
# File 'lib/endpoints.rb', line 10

def add_result_for_case(run_id, case_id, opts = {})
  self.send_post("add_result_for_case/#{run_id}/#{case_id}", opts)
end

#add_run(suite_id, opts = {}) ⇒ Object



73
74
75
# File 'lib/endpoints.rb', line 73

def add_run(suite_id, opts = {})
  self.send_post("add_run/#{suite_id}", opts)
end

#add_section(suite_id, opts = {}) ⇒ Object



61
62
63
# File 'lib/endpoints.rb', line 61

def add_section(suite_id, opts = {})
  self.send_post("add_section/#{suite_id}", opts)
end

#add_suite(project_id, opts = {}) ⇒ Object



57
58
59
# File 'lib/endpoints.rb', line 57

def add_suite(project_id, opts = {})
  self.send_post("add_suite/#{project_id}", opts)
end

#close_plan(plan_id, opts = {}) ⇒ Object



97
98
99
# File 'lib/endpoints.rb', line 97

def close_plan(plan_id, opts = {})
  self.send_post("close_plan/#{plan_id}", opts)
end

#close_run(run_id, opts = {}) ⇒ Object



77
78
79
# File 'lib/endpoints.rb', line 77

def close_run(run_id, opts = {})
  self.send_post("close_run/#{run_id}", opts)
end

#delete_case(case_id, opts = {}) ⇒ Object



38
39
40
# File 'lib/endpoints.rb', line 38

def delete_case(case_id, opts = {})
  self.send_post("delete_case/#{case_id}", opts)
end

#get_case(case_id, opts = {}) ⇒ Object



22
23
24
# File 'lib/endpoints.rb', line 22

def get_case(case_id, opts = {})
  self.send_get("get_case/#{case_id}", opts)
end

#get_cases(suite_id, section_id, opts = {}) ⇒ Object



26
27
28
# File 'lib/endpoints.rb', line 26

def get_cases(suite_id, section_id, opts = {})
  self.send_get("get_cases/#{suite_id}/#{section_id}", opts)
end

#get_milestone(milestone_id, opts = {}) ⇒ Object



101
102
103
# File 'lib/endpoints.rb', line 101

def get_milestone(milestone_id, opts = {})
  self.send_get("get_milestone/#{milestone_id}", opts)
end

#get_milestones(project_id, opts = {}) ⇒ Object



105
106
107
# File 'lib/endpoints.rb', line 105

def get_milestones(project_id, opts = {})
  self.send_get("get_milestones/#{project_id}", opts)
end

#get_plan(plan_id, opts = {}) ⇒ Object



81
82
83
# File 'lib/endpoints.rb', line 81

def get_plan(plan_id, opts = {})
  self.send_get("get_plan/#{plan_id}", opts)
end

#get_plans(project_id, opts = {}) ⇒ Object



85
86
87
# File 'lib/endpoints.rb', line 85

def get_plans(project_id, opts = {})
  self.send_get("get_plans/#{project_id}", opts)
end

#get_project(project_id, opts = {}) ⇒ Object



113
114
115
# File 'lib/endpoints.rb', line 113

def get_project(project_id, opts = {})
  self.send_get("get_project/#{project_id}", opts)
end

#get_projects(opts = {}) ⇒ Object



117
118
119
# File 'lib/endpoints.rb', line 117

def get_projects(opts = {})
  self.send_get("get_projects", opts)
end

#get_run(run_id, opts = {}) ⇒ Object



65
66
67
# File 'lib/endpoints.rb', line 65

def get_run(run_id, opts = {})
  self.send_get("get_run/#{run_id}", opts)
end

#get_runs(project_id, plan_id, opts = {}) ⇒ Object



69
70
71
# File 'lib/endpoints.rb', line 69

def get_runs(project_id, plan_id, opts = {})
  self.send_get("get_runs/#{project_id}/#{plan_id}", opts)
end

#get_section(section_id, opts = {}) ⇒ Object



49
50
51
# File 'lib/endpoints.rb', line 49

def get_section(section_id, opts = {})
  self.send_get("get_section/#{section_id}", opts)
end

#get_sections(suite_id, opts = {}) ⇒ Object



53
54
55
# File 'lib/endpoints.rb', line 53

def get_sections(suite_id, opts = {})
  self.send_get("get_sections/#{suite_id}", opts)
end

#get_suite(suite_id, opts = {}) ⇒ Object



41
42
43
# File 'lib/endpoints.rb', line 41

def get_suite(suite_id, opts = {})
  self.send_get("get_suite/#{suite_id}", opts)
end

#get_suites(project_id, opts = {}) ⇒ Object



45
46
47
# File 'lib/endpoints.rb', line 45

def get_suites(project_id, opts = {})
  self.send_get("get_suites/#{project_id}", opts)
end

#get_test(test_id, opts = {}) ⇒ Object



14
15
16
# File 'lib/endpoints.rb', line 14

def get_test(test_id, opts = {})
  self.send_get("get_test/#{test_id}", opts)
end

#get_tests(run_id, opts = {}) ⇒ Object



18
19
20
# File 'lib/endpoints.rb', line 18

def get_tests(run_id, opts = {})
  self.send_get("get_tests/#{run_id}", opts)
end

#update_case(case_id, opts = {}) ⇒ Object



34
35
36
# File 'lib/endpoints.rb', line 34

def update_case(case_id, opts = {})
  self.send_post("update_case/#{case_id}", opts)
end