import pytest
import yaml

from test_ui.page.app import App
from test_ui.test_case.test_case import TestBase


class TestMain(TestBase):
    #使用pytest的参数化方式  声明2个变量 value1和value2
    @pytest.mark.parametrize("value1,value2",yaml.safe_load(open("./test_main.yaml")))
    def test_main(self, value1, value2):
        # print(value1)
        # print(value2)
        #app = App()
        self.app.start().main().goto_search()

    def test_windows(self):
        #app = App()
        self.app.start().main().goto_windows()
2c34091672fc9e7d1f662b822b2b7b2091e3451b
<mask token>


class TestMain(TestBase):
    <mask token>
    <mask token>

<mask token>


class TestMain(TestBase):

    @pytest.mark.parametrize('value1,value2', yaml.safe_load(open(
        './test_main.yaml')))
    def test_main(self, value1, value2):
        self.app.start().main().goto_search()
    <mask token>

<mask token>


class TestMain(TestBase):

    @pytest.mark.parametrize('value1,value2', yaml.safe_load(open(
        './test_main.yaml')))
    def test_main(self, value1, value2):
        self.app.start().main().goto_search()

    def test_windows(self):
        self.app.start().main().goto_windows()

import pytest
import yaml
from test_ui.page.app import App
from test_ui.test_case.test_case import TestBase


class TestMain(TestBase):

    @pytest.mark.parametrize('value1,value2', yaml.safe_load(open(
        './test_main.yaml')))
    def test_main(self, value1, value2):
        self.app.start().main().goto_search()

    def test_windows(self):
        self.app.start().main().goto_windows()

import pytest
import yaml

from test_ui.page.app import App
from test_ui.test_case.test_case import TestBase


class TestMain(TestBase):
    #使用pytest的参数化方式  声明2个变量 value1和value2
    @pytest.mark.parametrize("value1,value2",yaml.safe_load(open("./test_main.yaml")))
    def test_main(self, value1, value2):
        # print(value1)
        # print(value2)
        #app = App()
        self.app.start().main().goto_search()

    def test_windows(self):
        #app = App()
        self.app.start().main().goto_windows()