Commit 20cb57ca authored by Tom Käsler's avatar Tom Käsler

add a basic tutor to the simulation

parent 17dd7f73
Pipeline #7902 failed with stages
in 3 minutes and 2 seconds
package de.thm.arsnova
import de.thm.arsnova.auditor.BasicAuditorSimulation
import de.thm.arsnova.tutor.BasicTutorSimulation
import io.gatling.core.Predef._ // 2
import io.gatling.http.Predef._
......@@ -29,5 +30,12 @@ class Stresstest extends Simulation {
val tutorScn = scenario("Basic Tutor").exec(
\ No newline at end of file
package de.thm.arsnova.tutor
import de.thm.arsnova.models.Session
import io.gatling.core.Predef._ // 2
import io.gatling.http.Predef._
import scala.concurrent.duration._
import spray.json._
import akka.http.scaladsl.marshallers.sprayjson.SprayJsonSupport._
import java.util.Calendar
object BasicTutorSimulation {
import de.thm.arsnova.mappings.SessionJsonProtocol._
val now = Calendar.getInstance.getTime.toString
val newSession = Session(None, "12312312", 1, "A new Session", "ans", now, now, true, false, false, None)
val createSession = exec(http("Tutor creates session")
.header("Content-Type", "application/json")
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment