简体   繁体   中英

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

My [Test Setup for Test Modules] same here:

Environment1 (Test_Environment.tse)
-TestEnv1Folder (Folder)

  • TestModuleEnv1-1
  • TestModuleEnv1-2
    -TestFolder (Folder)
    • TestModuleInFolder1
    • TestModuleInFolder2
      -TestFolder2 (Folder)
      • TestModuleEnv2-1
      • TestModuleEnv2-2

I understand use:

 test_environment = self.application.Configuration.TestSetup.TestEnvironments.Item("Environment1")
 test_environment = win32.CastTo(test_environment, "ITestEnvironment2")
 testM = test_environment.Folders.Item("TestFolder")

and I run Test Module in [TestFolder] folder... I understand that I have to use p"Folders.Item (index)" in order to run the test Module. (Index will increase gradually).

Question: How can I run the all testModule in all folders(TestEnv1Folder, TestFolder and TestFolder2)?

You can use the ExecuteAll method under the TestEnvironment object. This will execute all the test cases in all the folders under that TestEnvironment.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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