コード例 #1
0
class TestReset:
    def setup(self):
        self.main = App()

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

    def test_reset(self):
        btn_clear = self.main.start().my().goto_cal().reset()
        assert btn_clear == "清空历史"
コード例 #2
0
ファイル: test_loan.py プロジェクト: ShirelyYang/yiche
class TestLoan:
    def setup(self):
        self.main = App()

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

    def test_loan(self):
        contains = self.main.start().my().goto_cal().loan()
        assert contains == "首付比例"
コード例 #3
0
class TestSalesList:
    def setup(self):
        self.main = App()

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

    def test_sales_list(self):
        type = self.main.start().my().more().goto_sales_ranking().sales_list()
        assert type == "国产/中大型SUV"
コード例 #4
0
class TestPopularityList:
    def setup(self):
        self.main = App()

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

    def test_popularity_list(self):
        type = self.main.start().my().more().goto_sales_ranking(
        ).popularity_list()
        assert type == "进口/中大型SUV"
コード例 #5
0
class TestCommentList:
    def setup(self):
        self.main = App()

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

    def test_comment_list(self):
        type = self.main.start().my().more().goto_sales_ranking().comment_list(
        )
        assert type == "进口/中大型SUV"
コード例 #6
0
class TestSwitchPosition:
    def setup(self):
        self.main = App()

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

    def test_switch_position(self):
        addr = self.main.start().my().more().goto_nearby_dealers(
        ).switch_position()
        assert "深圳" in addr
コード例 #7
0
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(
        ).four_steps()
        assert ask_price_btn == "获取底价"
コード例 #8
0
ファイル: test_compare.py プロジェクト: ShirelyYang/yiche
class TestCompare:
    def setup(self):
        self.main = App()

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

    def test_compare(self):
        dealer_price = self.main.start().my().goto_model_comparison(
        ).start_compare()
        assert dealer_price == "经销商报价"
コード例 #9
0
class TestNearbyDealers:
    def setup(self):
        self.main = App()

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

    def test_nearby_dealers(self):
        sales_title = self.main.start().my().more().goto_nearby_dealers(
        ).nearby_dealers()
        assert sales_title == "咨询销售顾问"
コード例 #10
0
class TestEditAllDel:
    def setup(self):
        self.main = App()

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

    def test_edit_all_del(self):
        empty_info = self.main.start().my().goto_model_comparison(
        ).edit_all_del()
        return empty_info == "暂无车款信息!快去添加车型对比吧"
コード例 #11
0
class TestMap:
    def setup(self):
        self.main = App()

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

    def test_map(self):
        addr = self.main.start().my().more().goto_nearby_dealers().map()
        # 模拟器
        # assert addr == "泉州展览城-东门"

        # OPPO
        assert addr == "泉州展览城"