You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Following on from #1395, I found that the presence of "Background" in a mock server feature file appears to affect the start up speed of a mock server
Using the HEAD of the develop branch (after #1395 had been resolved, PR #1408), I have the attached example files which should be added to karate-gatling/src/test/scala. example.zip
When running a basic Karate-Gatling simulation
class KarateSimulation extends Simulation {
val mock = Properties.propOrEmpty("mock")
val feature = "classpath:example/mockServer" + mock + ".feature"
val server = MockServer.feature(feature).build()
val serverUrl = "http://localhost:" + server.getPort
System.setProperty("server.url", serverUrl)
val example = scenario("example")
.exec(karateFeature("classpath:example/example.feature"))
setUp(
example.inject(rampUsers(100) during (10 seconds))
)
}
With example.feature
Feature:
Scenario:
* url karate.properties['server.url']
* path ''
* method get
* status 200
* match response == { success: true }
Following on from #1395, I found that the presence of "Background" in a mock server feature file appears to affect the start up speed of a mock server
Using the HEAD of the develop branch (after #1395 had been resolved, PR #1408), I have the attached example files which should be added to karate-gatling/src/test/scala.
example.zip
When running a basic Karate-Gatling simulation
With
example.feature
Against the mock server
mockServer1.feature
:And ran using:
Then there is a small (~1s) gap between the first users and first requests.
![Screenshot 2020-12-21 at 13 10 43](https://user-images.githubusercontent.com/72740450/102780557-0b5d1a00-438e-11eb-864a-a56202ebb44f.png)
For comparison, a pure Gatling simulation doesn't do this:
I found that this can be fixed by adding a non-empty "Background" to the mock server:
mockServer2.feature
Ran using:
However, an empty "Background" displays the original problem
mockServer3.feature
Ran using:
The text was updated successfully, but these errors were encountered: