1

I wish to run multiple feature files through karate UI through code only. Karate UI gives feature to execute cucumber feature files one after another but I wish to open UI through code which is fine using app.run(arg1, arg2) but there I can not use three arguments.

If i put multiple app.run(feature1, arg1), app.run(feature2, arg2) in the code then it picks up only the first feature1 file.

8
  • I think this one is still pending. Tried it with the suggestion that you gave but no luck so far. Will work on that soon. Commented Apr 11, 2018 at 12:33
  • Deleted as of now. will bug you once I start working on that :) Commented Apr 11, 2018 at 12:38
  • just answered below. I really think you are un-necessary going in the wrong direction. just use the parallel runner or tags or @CucumberOptions pointing to a package. why are you trying to do this !! Commented Apr 11, 2018 at 12:50
  • As of now, I am using @CucumberOptions but I think the motive of using Karate UI should be the same. Commented Apr 11, 2018 at 13:03
  • 1
    you do know that the UI is experimental right ? read the docs. please contribute missing features for the ui, this is open source Commented Apr 11, 2018 at 13:05

1 Answer 1

1

Currently the scope of the UI is for developers to work on one test at a time. It sounds like you are planning to use it as a test-runner and for multiple files.

Currently this is not supported but thanks for bringing it up, I've opened a feature request here: https://github.com/intuit/karate/issues/370

That said are you sure you are not missing an easier way to do what you want which is to simply use the Karate runners that can run multiple features and that too with rich reporting ?

EDIT: This has been implemented in Karate 0.8.0

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.