Q:

Karate-Gatling: Add List of uriPatterns into karateProtocol()

I have a Collection[String] of uriPatterns to include in karateProtocol(). Is there a way to iterate through the collection and add the MethodPause (in this case is Nil) without hard coding it?

A:

If you see the internal code PreDef.scala - karateProtocol() is just a helper that in Scala terms - wraps new KarateProtocol(Map[String, Seq]).
So just build a Scala Map that has entries of the form String -> Nil and construct a KarateProtocol.

