To generate a pom.xml file just run gradle writeNewPom
If you want to generate it as pom.xml in the root of the project, replace writeTo("$buildDir/newpom.xml") with writeTo("pom.xml")
To generate a pom.xml file just run gradle writeNewPom
If you want to generate it as pom.xml in the root of the project, replace writeTo("$buildDir/newpom.xml") with writeTo("pom.xml")
| package org.asafary.csv; | |
| import com.fasterxml.jackson.annotation.JsonPropertyOrder; | |
| @JsonPropertyOrder({ "name", "surname", "shoesize", "gender" }) | |
| public class Person { | |
| public String name; | |
| public String surname; | |
| public int shoesize; |
| package mobilepackage | |
| import io.gatling.core.Predef._ | |
| import io.gatling.core.session._ | |
| import io.gatling.http.Predef._ | |
| import scala.concurrent.duration._ | |
| import scala.util.parsing.json._ | |
| import general._ | |
| class LoginSimulation extends Simulation { |
| URL="http://stackoverflow.com/" | |
| # store the whole response with the status at the and | |
| HTTP_RESPONSE=$(curl --silent --write-out "HTTPSTATUS:%{http_code}" -X POST $URL) | |
| # extract the body | |
| HTTP_BODY=$(echo $HTTP_RESPONSE | sed -e 's/HTTPSTATUS\:.*//g') | |
| # extract the status | |
| HTTP_STATUS=$(echo $HTTP_RESPONSE | tr -d '\n' | sed -e 's/.*HTTPSTATUS://') |
| Ubuntu Desktop environment: | |
| * apt-get update && sudo apt-get upgrade | |
| * apt-get install ubuntu-desktop gnome-panel gnome-settings-daemon metacity nautilus gnome-terminal | |
| Setup VNC server environment: | |
| * apt-get install vnc4server | |
| * adduser sanity (passwd: c0ntrail123) | |
| * usermod -G sudo sanity | |
| As user sanity do the below | |
| * vncserver |
| package test | |
| import io.gatling.core.Predef._ | |
| import io.gatling.core.structure.PopulatedScenarioBuilder | |
| import io.gatling.core.controller.inject.InjectionStep | |
| import io.gatling.http.Predef._ | |
| import io.gatling.jdbc.Predef._ | |
| import scala.concurrent.duration._ | |
| import scala.collection.mutable.ArraySeq | |
| import org.json.JSONArray; | |
| import org.json.JSONObject; |