MCPcopy Create free account
hub / github.com/seleniumbase/SeleniumBase / addFailure

Method addFailure

seleniumbase/plugins/basic_test_info.py:32–39  ·  view source on GitHub ↗
(self, test, err, capt=None, tbinfo=None)

Source from the content-addressed store, hash-verified

30 basic_info_file.close()
31
32 def addFailure(self, test, err, capt=None, tbinfo=None):
33 test_logpath = self.options.log_path + "/" + test.id()
34 if not os.path.exists(test_logpath):
35 os.makedirs(test_logpath)
36 file_name = "%s/%s" % (test_logpath, self.logfile_name)
37 basic_info_file = open(file_name, mode="w+", encoding="utf-8")
38 self.__log_test_error_data(basic_info_file, test, err, "Error")
39 basic_info_file.close()
40
41 def __log_test_error_data(self, log_file, test, err, type):
42 data_to_save = []

Callers

nothing calls this directly

Calls 2

__log_test_error_dataMethod · 0.95
closeMethod · 0.80

Tested by

no test coverage detected