如何使用马拉松测试工具 (MarathonITE) 从命令行 运行 几个测试用例或一个测试套件?

How to run few testcases or a testsuite from commandline using marathontesting tool (MarathonITE)?

我想 运行 使用马拉松测试工具通过命令行或批处理模式运行 多个测试套件或测试用例。

Marathon/Marathonite 可以在命令行上接受测试列表。假设您有如下测试结构(在 TestCases 文件夹下):

test_1
test_2
folder_1
folder_1/test_1
folder_1/test_2

您可以运行马拉松如下:

marathon -batch <project-folder> # Runs all tests
marathon -batch <project-folder> test_1 # Runs only test_1
marathon -batch <project-folder> test_1 test_2 # Runs test_1 and test_2
marathon -batch <project-folder> folder_1.test_1 # Runs only folder_1/test_1
marathon -batch <project-folder> folder_1.AllTests # Runs all tests from folder_1

有关详细信息,请参阅 http://marathontesting.com/documentation/?section=executing-tests-in-batch-mode。虽然用户指南适用于 marathonite,但也适用于 marathon。