30 lines
865 B
Python
30 lines
865 B
Python
# -*- coding: utf-8 -*-
|
||
# -------------------------------
|
||
# @文件:test_demo_ui.py
|
||
# @时间:2024/4/12 下午4:15
|
||
# @作者:caiweichao
|
||
# @功能描述:ui自动化 demo
|
||
# -------------------------------
|
||
import time
|
||
|
||
from page_object.page_baidu_demo import PageBaidu
|
||
|
||
import pytest
|
||
import allure
|
||
|
||
|
||
# @pytest.mark.usefixtures('login_class')
|
||
@allure.feature('访问百度demo')
|
||
class TestDemo:
|
||
def test_baidu_demo1(self,login_fixture):
|
||
PageBaidu(login_fixture).get_baidu()
|
||
PageBaidu(login_fixture).input_keyword(keyword="gitee")
|
||
PageBaidu(login_fixture).click_baidu_button()
|
||
time.sleep(30)
|
||
|
||
def test_baidu_demo2(self, login_fixture):
|
||
PageBaidu(login_fixture).get_baidu()
|
||
PageBaidu(login_fixture).input_keyword(keyword="github")
|
||
PageBaidu(login_fixture).click_baidu_button()
|
||
time.sleep(3)
|