Name: gatling-funspec-demo
Owner: Gatling
Description: null
Created: 2016-08-23 11:58:55.0
Updated: 2017-11-09 20:44:22.0
Pushed: 2017-12-12 16:36:09.0
Homepage: null
Size: 16
Language: Scala
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Example project setup for using the new functional testing functionality coming in Gatling 2.2.0.
Using it you can writing functional tests in Gatling even easier then before.
Use sbt test
to run the example
s GatlingFunSpecExample extends GatlingHttpFunSpec {
l baseURL = "http://example.com"
ec {
http("Example index.html test")
.get("/index.html")
.check(h1.exists)
ct GatlingFunSpecExample {
f h1 = css("h1")
All you need to do to run the example is clone this repository and then in the project root
sbt test
runs io.gatling.funspec.example.TraditionalUnitTest
in src/test
with Scalatestsbt gatling:test
runs io.gatling.funspec.example.GatlingFunSpecExample
in src/test
with Gatlingsbt it:test
runs io.gatling.funspec.example.TraditionalUnitTest
in src/it
with Scalatestsbt gatling-it:test
runs io.gatling.funspec.example.GatlingFunSpecExampleIT
in src/it
with GatlingNote: you need to put the it
scope into the Ivy projectDependencies
definition in order to make the it tests compile:
lazy val projectDependencies = Seq(
"org.scalatest" %% "scalatest" % "3.0.4" % "test,it",
"io.gatling.highcharts" % "gatling-charts-highcharts" % "2.3.0" % "test,it",
"io.gatling" % "gatling-test-framework" % "2.3.0" % "test,it"
)
# from the gatling-funspec-example directory
cd ..
git clone git@github.com:gatling/gatling.git
cd gatling
sbt publish-local
cd ..
git clone git@github.com:gatling/gatling-sbt.git
cd gatling-sbt
sbt publish-local