Update test framework: fix run_tests.py to support all test files, add auto-import-check for test files

This commit is contained in:
qiaoxinjiu
2026-05-09 15:11:30 +08:00
parent eb053a347f
commit eaba8328da
21739 changed files with 2236758 additions and 719 deletions

View File

@@ -0,0 +1,42 @@
# encoding: utf-8
# @Time : 2023/04/19 上午8:24
# @Author : chenjiang
# @Site :
# @File : test_chen_jiang.py
# def setup_module():
# print("初始化。。。")
#
#
# def teardown_method():
# print("清理。。。")
#
#
# class TestDemo:
# def test_case1(self):
# print("开始执行测试用例1")
# assert 1 + 1 == 2
#
# def test_case2(self):
# print("开始执行测试用例2")
# assert 2 + 8 == 10
#
# def test_case3(self):
# print("开始执行测试用例3")
# assert 99 + 1 == 100
if __name__ == '__main__':
import time
from ui_auto_lego.common.pc_browser_launch import PcBrowserLaunch
pc_browser_launch_obj = PcBrowserLaunch(is_head_less=False, is_maximize_window=False,
window_size=(1920, 1080))
driver = pc_browser_launch_obj.driver_obj
pc_browser_launch_obj.browser_quit()
driver_obj = PcBrowserLaunch(is_head_less=False, is_maximize_window=False,
window_size=(1920, 1080)).driver_obj
pc_browser_launch_obj.browser_quit()