Пример #1
0
class TestSearch:
    def setup(self):
        basepage = BasePage()
        self.app = Main(basepage)

    def test_search(self):
        self.app.goto_market().goto_search().search()
Пример #2
0
class TestSearch:
    '''
    1.testcase目录下创建screenshot目录,存放黑名单blank截图.
    2.testcase目录下存放allure_result报表,
    pytest test_search.py --alluredir ./allure_result
    allure serve ./allure_result
    3.CMD命令行,执行scrcpy --record file.mp4开始录制,ctrl+c中断录制
    '''
    def setup(self):
        basepage = BasePage()
        self.app = Main(basepage)

    def test_search(self):
        self.app.goto_market().goto_search().search()

    def teardown(self):
        self.app.driver.quit()
Пример #3
0
 def setup(self):
     basepage = BasePage()
     self.app = Main(basepage)
Пример #4
0
 def goto_main(self) -> Main:
     return Main(self.driver)
Пример #5
0
 def setup(self):
     basepage = BasePage()
     Response
     self.app = Main(basepage)