From 0cce2559fca97242ee605ba958199ece106d9c6a Mon Sep 17 00:00:00 2001 From: zhaoyafan Date: Tue, 14 Mar 2023 18:04:25 +0800 Subject: [PATCH] Commit. --- Testcase/test_b.py | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 Testcase/test_b.py diff --git a/Testcase/test_b.py b/Testcase/test_b.py new file mode 100644 index 0000000..c19943e --- /dev/null +++ b/Testcase/test_b.py @@ -0,0 +1,22 @@ +from Common.Basic import * +from Po.Home.Signin import * + + +@ddt.ddt +class TestSigninSite(unittest.TestCase): + @classmethod + def setUpClass(cls) -> None: + cls.driver = WebDriver() + + @classmethod + def tearDownClass(cls) -> None: + cls.driver.quit() + + def test_screenshot(self): + self.driver.open('https://www.fanscloud.net/d/index.html') + self.driver.wait(2) + self.driver.screenshot_for_report() + + +if __name__ == '__main__': + unittest.main()