Environment1 (Test_Environment.tse)
-TestEnv1Folder (Folder)
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.