mirror of
https://github.com/httprunner/httprunner.git
synced 2026-06-13 19:59:37 +08:00
fix #104: popup ids are the same in default template
This commit is contained in:
@@ -12,12 +12,14 @@ class TestCase(unittest.TestCase):
|
||||
super(TestCase, self).__init__()
|
||||
self.test_runner = test_runner
|
||||
self.testcase_dict = testcase_dict
|
||||
self.meta_data = {}
|
||||
|
||||
def runTest(self):
|
||||
""" run testcase and check result.
|
||||
"""
|
||||
self.meta_data = self.test_runner.run_test(self.testcase_dict)
|
||||
try:
|
||||
self.test_runner.run_test(self.testcase_dict)
|
||||
finally:
|
||||
self.meta_data = getattr(self.test_runner.http_client_session, "meta_data", {})
|
||||
|
||||
class TestSuite(unittest.TestSuite):
|
||||
""" create test suite with a testset, it may include one or several testcases.
|
||||
|
||||
Reference in New Issue
Block a user