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

Method addError

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

Source from the content-addressed store, hash-verified

21 self.options = options
22
23 def addError(self, test, err, capt=None):
24 test_logpath = self.options.log_path + "/" + test.id()
25 if not os.path.exists(test_logpath):
26 os.makedirs(test_logpath)
27 file_name = "%s/%s" % (test_logpath, self.logfile_name)
28 basic_info_file = open(file_name, mode="w+", encoding="utf-8")
29 self.__log_test_error_data(basic_info_file, test, err, "Error")
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()

Callers

nothing calls this directly

Calls 2

__log_test_error_dataMethod · 0.95
closeMethod · 0.80

Tested by

no test coverage detected