繁体   English   中英

[Test Setup for Test Modules] CANoe中如何运行所有的TestModule

[英]How to run all TestModule in [Test Setup for Test Modules] CANoe

我的 [测试模块的测试设置] 同样在这里:

环境 1 (Test_Environment.tse)
-TestEnv1Folder(文件夹)

  • 测试模块环境 1-1
  • 测试模块环境 1-2
    -TestFolder(文件夹)
    • TestModuleInFolder1
    • 文件夹中的测试模块 2
      -TestFolder2(文件夹)
      • 测试模块环境 2-1
      • 测试模块环境 2-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 (index)" 才能运行测试模块。 (指数会逐渐增加)。

问题:如何在所有文件夹(TestEnv1Folder、TestFolder 和 TestFolder2)中运行所有 testModule?

您可以使用TestEnvironment object 下的ExecuteAll方法。这将执行该 TestEnvironment 下所有文件夹中的所有测试用例。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM