def attach_log(request, case_run_id, name, url): """Add new log link to TestCaseRun :param int case_run_id: case run ID. :param str name: link name. :param str url: link URL. """ test_case_run = TestCaseRun.objects.get(pk=case_run_id) create_link(name=name, url=url, link_to=test_case_run)
def attach_log(request, case_run_id, name, url): """ Description: Add new log link to TestCaseRun Params: $caserun_id - Integer $name - String: A short description to this new link, and accept 64 characters at most. $url - String: The actual URL. """ test_case_run = TestCaseRun.objects.get(pk=case_run_id) create_link(name=name, url=url, link_to=test_case_run)
def attach_log(request, case_run_id, name, url): """ Description: Add new log link to TestCaseRun Params: $caserun_id - Integer $name - String: A short description to this new link, and accept 64 characters at most. $url - String: The actual URL. """ try: test_case_run = TestCaseRun.objects.get(pk=case_run_id) except ObjectDoesNotExist: raise create_link(name=name, url=url, link_to=test_case_run) return
def attach_log(request, case_run_id, name, url): """ Description: Add new log link to TestCaseRun Params: $caserun_id - Integer $name - String: A short description to this new link, and accept 64 characters at most. $url - String: The actual URL. """ try: test_case_run = TestCaseRun.objects.get(pk=case_run_id) except ObjectDoesNotExist, error: raise create_link(name=name, url=url, link_to=test_case_run) return def detach_log(request, case_run_id, link_id): """ Description: Remove log link to TestCaseRun Params: $case_run_id - Integer $link_id - Integer: Id of LinkReference instance """ try: test_case_run = TestCaseRun.objects.get(pk=case_run_id) except ObjectDoesNotExist, error: raise