Skip to content

Commit

Permalink
[project-base] fixed ProductsQuery Gatling simulation to wait for htt…
Browse files Browse the repository at this point in the history
…p response (#2908)
  • Loading branch information
TomasLudvik authored Nov 2, 2023
1 parent 7d00fa3 commit 892bd36
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions gatling/gatling/simulations/graphql/ProductsQuery.scala
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,15 @@ class ProductsQuery extends Simulation {
val scn = scenario("ProductsQuery")
.exec(
http(f"page__$users%s__products_query")
.post("graphql/")
.post("/graphql/")
.header("Content-Type","application/graphql")
.body(RawFileBody("productsQuery.graphql"))
)
.check(status.is(200))
)

setUp(
scn.inject(
constantConcurrentUsers(users.toInt) during (duration.toInt.seconds),
).protocols(httpProtocol)
scn.inject(
constantConcurrentUsers(users.toInt) during (duration.toInt.seconds),
).protocols(httpProtocol)
)
}
}

0 comments on commit 892bd36

Please sign in to comment.