【问题标题】:How to run few testcases or a testsuite from commandline using marathontesting tool (MarathonITE)?如何使用马拉松测试工具(MarathonITE)从命令行运行少量测试用例或测试套件?
【发布时间】:2018-08-07 06:02:59
【问题描述】:

我想使用 marathontesting 工具通过命令行或批处理模式运行多个 testSuit 或 testCases。

【问题讨论】:

    标签: testing jruby gui-testing marathontesting


    【解决方案1】:

    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。虽然用户指南适用于马拉松运动员,但也适用于马拉松。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2015-05-09
      • 2015-08-27
      • 1970-01-01
      • 2011-04-29
      • 1970-01-01
      • 1970-01-01
      • 2011-01-15
      相关资源
      最近更新 更多