Forum Discussion

sunilbabu's avatar
sunilbabu
Occasional Contributor
8 years ago

Can I run a specific Test in a keyword test via CMD -TestExecute

I have a keyword test suite wiht 10 individual tests. Can I run any specific test /Run from specific tests via command line(TestExecute)?   Thanks!   Sunil  
  • tristaanogre's avatar
    tristaanogre
    8 years ago

    Oh, I see.,.. you're using the "Run Test" operation.  Well, if you look at those tests, each one matches up to something else... most of them appear to be script units.  In which case you will need to use either the method that karthick7 posted or the one that I posted depending upon the contents of the test.  You can't specifically say "Run the third line of a keyword test" from the command line.

  • karthick7's avatar
    karthick7
    8 years ago

    Use some if else statement in keyword

     

    if  this = that

    {

    run.test3

    run.test4

    run.test5

     

    }

     

    Please Refer Attached screenshot