Python 3.x 如何在selenium python中运行多个测试用例?

Python 3.x 如何在selenium python中运行多个测试用例?,python-3.x,selenium-webdriver,automation,Python 3.x,Selenium Webdriver,Automation,导入单元测试 从selenium导入webdriver 从日期时间导入日期时间 类索引(unittest.TestCase): 如果name==“main”: unittest.main() 我无法在selenium中运行多个测试用例,您可以在称为xml文件的单个文件中运行多个测试类。 [![See this xml file sample][1]][1] 您可以从项目文件夹创建xml文件 我在这里提到了我的xml文件(类名是每个测试用例的测试类) 在selenium中,您可以在称为xml文件

导入单元测试

从selenium导入webdriver

从日期时间导入日期时间

类索引(unittest.TestCase):

如果name==“main”: unittest.main()


我无法在selenium中运行多个测试用例,您可以在称为xml文件的单个文件中运行多个测试类。
[![See this xml file sample][1]][1]
您可以从项目文件夹创建xml文件 我在这里提到了我的xml文件(类名是每个测试用例的测试类)


在selenium中,您可以在称为xml文件的单个文件中运行多个测试类。 您可以从项目文件夹创建xml文件 我在这里提到了我的xml文件(类名是每个测试用例的测试类)

[![See this xml file sample][1]][1]