Setup And TearDown

Hello,

I want to test an API REST. Here the scenario i want to do:

  • I would like to create 1 customer (POST /customer) with to example ID=42424242,
  • Then perform a scenerio where I create several users on this customer (POST /customer/1/users)
  • And when its done I want to delete this customer (DELETE /customer/1).

At the moment, I did this:

`

there are couple things you can do: either you create the user as part as your tests and use .silent on that request which will hide the call or you create a custom feeder which would use Http client such as Scalaj or Akka-Http to make same Rest calls to create users and format them to IndexedSeq[Map[String, String] format