Skip to content

Instantly share code, notes, and snippets.

@groovybayo
groovybayo / TarzanSimulation.scala
Created January 11, 2013 17:07
Gatling: debugging session
package org.aamc.pdws
import com.excilys.ebi.gatling.core.Predef._
import com.excilys.ebi.gatling.http.Predef._
import com.excilys.ebi.gatling.jdbc.Predef._
import com.excilys.ebi.gatling.http.Headers.Names._
import akka.util.duration._
import bootstrap._
import assertions._
class TarzanSimulation extends Simulation {
@groovybayo
groovybayo / TarzanSimulation-Output.txt
Created January 11, 2013 17:09
Gatling: output from tarzan simulation
Simulation org.aamc.pdws.TarzanSimulation started...
scenarioName='Scenario Name' userId='1' data='Map(gatling.http.referer -> http://localhost:9090/tarzan1/j_spring_security_check, gatling.http.cookies -> CookieStore=Map(//localhost:9090 -> List(Cookie: domain=localhost:9090, name=JSESSIONID, value=9909E2C91EF09316EA551FED7A7B0293, path=/tarzan1/, maxAge=-1, secure=false)), gatling.core.timeShift -> 18)'
================================================================================
2013-01-11 11:57:02 0s elapsed
---- Scenario Name -------------------------------------------------------------
Users : [#################################################################]100%
waiting:0 / running:0 / done:1
---- Requests ------------------------------------------------------------------
> request_1 OK=1 KO=0
> request_1 Redirect 1 OK=1 KO=0
@groovybayo
groovybayo / TarzanSimulation-ExceptedOutput.txt
Created January 11, 2013 17:25
Gatling: output from web application
Session Content: time_now = Fri Jan 11 12:23:25 EST 2013 SPRING_SECURITY_CONTEXT = org.springframework.security.core.context.SecurityContextImpl@e8d3ec6: Authentication: org.springframework.security.authentication.UsernamePasswordAuthenticationToken@e8d3ec6: Principal: org.codehaus.groovy.grails.plugins.springsecurity.GrailsUser@6a68dc5: Username: user0; Password: [PROTECTED]; Enabled: true; AccountNonExpired: true; credentialsNonExpired: true; AccountNonLocked: true; Granted Authorities: ROLE_ADMIN; Credentials: [PROTECTED]; Authenticated: true; Details: org.springframework.security.web.authentication.WebAuthenticationDetails@1c07a: RemoteIpAddress: 127.0.0.1; SessionId: 687BC474698E8CE0E94274B9B49079D5; Granted Authorities: ROLE_ADMIN org.codehaus.groovy.grails.FLASH_SCOPE = org.codehaus.groovy.grails.web.servlet.GrailsFlashScope@2fcff8c3
@groovybayo
groovybayo / step-by-step-gatling-idea.md
Last active November 7, 2022 06:47
Gatling: Step by step guide to IntelliJ integration

Step by step guide to setting up IDEA to write gatling simulations

Prerequisites:

Have [SBT plugin][sbt-plugin] installed

Begin

  • [Create a new project][create-project] in IDEA ( File > New Project ...)
    • Make sure you select a maven module