예제 #1
0
class TestTwoStepCarSelection:
    def setup(self):
        self.main = App()

    def teardown(self):
        self.main.base_quit()

    def test_two_step_car_selection(self):
        btn = self.main.start().my().goto_four_step_car_selection().two_step()
        assert "初步确定意向" in btn
class TestFourStepCarSelection:
    def setup(self):
        self.main = App()

    def teardown(self):
        self.main.base_quit()

    def test_four_step_car_selection(self):
        ask_price_btn = self.main.start().my().goto_four_step_car_selection(
        ).one_step()
        assert "符合要求" in ask_price_btn
예제 #3
0
 def setup(self):
     self.main = App()
예제 #4
0
    def test_param_conf(self):
        info = App().start().main().goto_search_brand().select_Model().goto_paramconf()
        assert info == ("参数概述", "动力")

    # def test_quit(self):
    #     App().quit()
예제 #5
0
 def test_dalers_ask_price(self):
     btn = App().start().main().goto_search_brand().select_Model(
     ).goto_model().goto_dealers_ask_price()
     assert btn == "获取底价"
예제 #6
0
 def test_red_envelope(self):
     content = App().start().main().goto_search_brand().select_Model().goto_red_envelope()
     assert content == "购车红包1000元"
예제 #7
0
 def test_install_car(self):
     title = App().start().main().goto_search_brand().select_Model(
     ).goto_Install_car()
     assert title == "金融分期"
예제 #8
0
 def test_second_hand_car(self):
     res_title = App().start().main().goto_search_brand().select_Model(
     ).goto_second_hand_car()
     assert res_title == "宝马5系 2018款 改款 530Li 尊享版 M运动套装"
예제 #9
0
 def test_model_compared(self):
     result = App().start().main().goto_search_brand().select_Model().goto_model().goto_model_compared()
     assert result == "已加"
예제 #10
0
 def test_video(self):
     child_title = App().start().main().goto_search_brand().select_Model().goto_video()
     assert child_title == "2021款宝马5系升级了哪些"
예제 #11
0
 def test_model_change(self):
     result = App().start().main().goto_search_brand().select_Model(
     ).goto_model().goto_model_change()
     assert result == "2018款 525Li 豪华设计套装"
예제 #12
0
 def test_model_staging(self):
     btn = App().start().main().goto_search_brand().select_Model(
     ).goto_model().goto_model_staging()
     assert btn == "申请贷款"
예제 #13
0
 def test_latest_trans_price(self):
     info = App().start().main().goto_search_brand().select_Model(
     ).goto_latest_trans_price()
     assert info == ("本地最新成交价", "4*.59万")