Advertisement
Guest User

Untitled

a guest
Jun 22nd, 2017
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Scala 0.84 KB | None | 0 0
  1.   val scn =
  2.      feed(Common.feeder)
  3.        .exec(
  4.         http("GetDecisionTree")
  5.        .exec(
  6.             http("CalculatePriceFromDefaultModel") )
  7.           .pause(2 seconds)
  8.           .exec(
  9.             (s: Session) => {
  10.                val config = parse((s("result").as[String]))
  11.                config.model.configuration.name = Utils.getNewUuid
  12.                s.set("calculationResult", render(config))
  13.              })
  14.           .exec( http("SaveConfiguration"))
  15.           .pause(1 seconds)
  16.           .exec( http("Add Group"))
  17.           .exec(http("Add config to group"))
  18.           .pause(2)
  19.           .exec(http("DeleteConfiguration"))
  20.           .pause(1)
  21.           .exec(http("Delete Group"))
  22.  
  23.          
  24.    val sr=scenario("test").during(60 seconds) {  scn   }
  25.    setUp(sr.inject( atOnceUsers(3)).protocols(Common.decTreeConf))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement