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
def setup(self): self.main = App()
def test_param_conf(self): info = App().start().main().goto_search_brand().select_Model().goto_paramconf() assert info == ("参数概述", "动力") # def test_quit(self): # App().quit()
def test_dalers_ask_price(self): btn = App().start().main().goto_search_brand().select_Model( ).goto_model().goto_dealers_ask_price() assert btn == "获取底价"
def test_red_envelope(self): content = App().start().main().goto_search_brand().select_Model().goto_red_envelope() assert content == "购车红包1000元"
def test_install_car(self): title = App().start().main().goto_search_brand().select_Model( ).goto_Install_car() assert title == "金融分期"
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运动套装"
def test_model_compared(self): result = App().start().main().goto_search_brand().select_Model().goto_model().goto_model_compared() assert result == "已加"
def test_video(self): child_title = App().start().main().goto_search_brand().select_Model().goto_video() assert child_title == "2021款宝马5系升级了哪些"
def test_model_change(self): result = App().start().main().goto_search_brand().select_Model( ).goto_model().goto_model_change() assert result == "2018款 525Li 豪华设计套装"
def test_model_staging(self): btn = App().start().main().goto_search_brand().select_Model( ).goto_model().goto_model_staging() assert btn == "申请贷款"
def test_latest_trans_price(self): info = App().start().main().goto_search_brand().select_Model( ).goto_latest_trans_price() assert info == ("本地最新成交价", "4*.59万")