How to run a single test case using mvn robotframework?

后端 未结 1 1851
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-26 18:55

I am trying to run a test case in robot framework using mvn robotframework. But when i do it runs all the testcases in the suite rather than a single testcase. I also tried to

1条回答
  •  终归单人心
    2021-01-26 19:06

    You can assign run a test case by this command

    Lets say we have a directory called Tests inside that directory we have Test.robot which contains 5 different test cases "Login" "Register" "Delete User" "Update User" "Random Test"

    Tests
       |
       |_ Test.robot
    

    You can use the following command the execute a single test cases

    robot Tests/Test.robot -t "Login"
    

    This command will only execute the Login test case

    0 讨论(0)
提交回复
热议问题