gatling/gatling-funspec-demo

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

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Gatling functional tests example project

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

Example code

From GatlingFunSpecExample

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")

Running the example.

All you need to do to run the example is clone this repository and then in the project root

Note: 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"
)

Building from SNAPSHOTs

# 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

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.