我对测试模块的测试设置与这里相同:
Environment1 (Test_Environment.tse)
-TestEnv1Folder (文件夹)
-TestFolder2 (文件夹)
- TestModuleEnv2-1
- TestModuleEnv2-2
我理解使用:
test_environment = self.application.Configuration.TestSetup.TestEnvironments.Item("Environment1")
test_environment = win32.CastTo(test_environment, "ITestEnvironment2")
testM = test_environment.Folders.Item("TestFolder")我在TestFolder文件夹中运行测试模块..。我知道我必须使用p"Folders.Item (索引)“来运行测试模块。(指数将逐渐上升)。
问:如何在所有文件夹(TestEnv1Folder、TestFolder和TestFolder2)中运行all TestEnv1Folder?
发布于 2021-01-27 08:55:24
可以在ExecuteAll对象下使用TestEnvironment方法。这将在该TestEnvironment下的所有文件夹中执行所有测试用例。
https://stackoverflow.com/questions/64534616
复制相似问题