Skip to content

Commit

Permalink
Merge pull request #36 from otus-load/feature/new-loops
Browse files Browse the repository at this point in the history
feat: loops
  • Loading branch information
Maksimall89 authored Oct 21, 2024
2 parents d6d5f82 + 76a4ab4 commit 379e7f8
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions src/test/scala/vc/CommonScenario.scala
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
package vc

import io.gatling.core.Predef._
import io.gatling.core.structure.{ChainBuilder, ScenarioBuilder}
import io.gatling.http.Predef._
import io.gatling.core.structure._
import vc.Feeders._

object CommonScenario{
Expand All @@ -26,7 +25,13 @@ class CommonScenario {
80.0 -> exec(Actions.getNew)
)
.exec(Actions.getCourses)
.exec(Actions.discovery)
.exec(loginGroup)
.repeat(3)(
exec(Actions.discovery)
)
.exec(
tryMax(2)(
loginGroup
)
)

}

0 comments on commit 379e7f8

Please sign in to comment.