Performance Tool(5)Upgrade to 2.0.x
But not finished at last.
Just successfully set up the Build.scala an etc as follow:
build.properties
sbt.version=0.13.5
plugins.sbt
addSbtPlugin("io.spray" % "sbt-revolver" % "0.7.2")
addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "0.11.2")
addSbtPlugin("com.typesafe.sbt" % "sbt-scalariform" % "1.3.0")
resolvers += "Sonatype snapshots" at "https://oss.sonatype.org/content/repositories/snapshots/"
addSbtPlugin("com.github.mpeltonen" % "sbt-idea" % "1.7.0-SNAPSHOT")
addSbtPlugin("io.gatling" % "sbt-plugin" % "1.0-RC1")
Dependency.scala
import sbt._
object Dependencies {
val gatling_version = "2.0.0-RC2"
val log4j = "log4j" % "log4j" % "1.2.17"
val gatling = "io.gatling.highcharts" % "gatling-charts-highcharts" % gatling_version
val baseDeps = Seq (
log4j,
gatling
)
}
Resolvers.scala
import sbt._
object Resolvers {
val local = Resolver.defaultLocal
val local_maven = "Local Maven repo" at "file://"+Path.userHome.absolutePath+"/.m2/repository"
val maven = "MAVEN repo" at "http://repo1.maven.org/maven2"
val sonatype = "sonatype releases" at "https://oss.sonatype.org/content/repositories/releases/"
val sona_snap = "sonatype snapshots" at "https://oss.sonatype.org/content/repositories/snapshots/"
val typsafe = "typesafe repo" at "http://repo.typesafe.com/typesafe/releases/"
val spary = "spray repo" at "http://repo.spray.io/"
val spary2 = "Spray repo second" at "http://repo.spray.cc/"
val akka = "Akka repo" at "http://repo.akka.io/releases/"
val scala_tools = "Scala Tools" at "http://scala-tools.org/repo-releases/"
val excilys = "Excilys" at "http://repository.excilys.com/content/groups/public"
val excilys_snap ="Excilys Snapshot" at "http://repository-gatling.forge.cloudbees.com/snapshot"
val spray_nightly="spray nightlies" at "http://nightlies.spray.io"
val myResolvers = Seq (
local,
local_maven,
maven,
sonatype,
sona_snap,
typsafe,
spary,
spary2,
akka,
scala_tools,
excilys_snap,
spray_nightly
)
}
Build.scala
import sbt._
import sbt.Keys._
import Resolvers._
import Dependencies._
import sbtassembly.Plugin._
import sbtassembly.AssemblyUtils._
import AssemblyKeys._
import BuildSettings._
import io.gatling.sbt.GatlingPlugin
object BuildSettings {
val projectName = "sillycat-gatling"
val buildSettings = Seq(
organization := "org.sillycat",
version := "1.0.0",
scalaVersion := "2.10.4",
crossScalaVersions := Seq("2.10.2", "2.10.3", "2.10.4", "2.11.0", "2.11.1", "2.11.2"),
scalacOptions ++= Seq()
)
}
object ApplicationBuild extends Build {
lazy val main = Project(
BuildSettings.projectName,
file("."),
settings = BuildSettings.buildSettings ++ assemblySettings
++
Seq(resolvers := myResolvers,
libraryDependencies ++= baseDeps,
mergeStrategy in assembly := mergeFirst
)
)
.enablePlugins(GatlingPlugin)
.settings(
mainClass in assembly := Some("com.sillycat.gatling.app.ExecutorApp"),
excludedJars in assembly <<= (fullClasspath in assembly) map { cp =>
cp filter {_.data.getName == "compile-0.1.0.jar"}
},
artifact in (Compile, assembly) ~= { art =>
art.copy(`classifier` = Some("assembly"))
}
)
lazy val mergeFirst: String => MergeStrategy = {
case PathList("javax", "servlet", xs @ _*) => MergeStrategy.first
case PathList("org", "apache", "jasper", xs @ _*) => MergeStrategy.first
case PathList("org", "fusesource", xs @ _*) => MergeStrategy.first
case PathList("org", "apache", "commons", xs @ _*) => MergeStrategy.first
case PathList("org", "apache", "commons", "beanutils", xs @ _*) => MergeStrategy.first
case PathList("org", "apache", "commons", "collections", xs @ _*) => MergeStrategy.first
case PathList("com", "esotericsoftware", "minlog", xs @ _*) => MergeStrategy.first
case PathList("org", "eclipse", xs @ _*) => MergeStrategy.first
case PathList("META-INF", xs @ _*) =>
(xs map {_.toLowerCase}) match {
case ("changes.txt" :: Nil ) =>
MergeStrategy.discard
case ("manifest.mf" :: Nil) | ("eclipsef.rsa" :: Nil) | ("index.list" :: Nil) | ("dependencies" :: Nil) =>
MergeStrategy.discard
case ps @ (x :: xs) if ps.last.endsWith(".sf") || ps.last.endsWith(".dsa") || ps.last.endsWith("pom.properties") || ps.last.endsWith("pom.xml") =>
MergeStrategy.discard
case "plexus" :: xs =>
MergeStrategy.discard
case "services" :: xs =>
MergeStrategy.filterDistinctLines
case ("spring.schemas" :: Nil) | ("spring.handlers" :: Nil) =>
MergeStrategy.filterDistinctLines
case ps @ (x :: xs) if ps.last.endsWith(".jnilib") || ps.last.endsWith(".dll") =>
MergeStrategy.first
case ps @ (x :: xs) if ps.last.endsWith(".txt") =>
MergeStrategy.discard
case ("notice" :: Nil) | ("license" :: Nil) | ("mailcap" :: Nil )=>
MergeStrategy.discard
case _ => MergeStrategy.deduplicate
}
case "application.conf" => MergeStrategy.concat
case "about.html" => MergeStrategy.discard
case "plugin.properties" => MergeStrategy.first
case _ => MergeStrategy.first
}
}
References:
http://sillycat.iteye.com/blog/1829699
http://sillycat.iteye.com/blog/1994160
http://sillycat.iteye.com/blog/2096198
http://sillycat.iteye.com/blog/2108460
https://github.com/gatling/gatling-sbt
gatling Source codes
https://github.com/gatling/gatling/blob/2.0.0-M3X/gatling-app/src/main/scala/io/gatling/app/Gatling.scala
plugins Source codes
https://github.com/gatling/gatling-sbt/blob/master/test-framework/src/main/scala/io/gatling/sbt/GatlingTask.scala
- 浏览: 2578535 次
- 性别:
- 来自: 成都
-
文章分类
最新评论
-
nation:
你好,在部署Mesos+Spark的运行环境时,出现一个现象, ...
Spark(4)Deal with Mesos -
sillycat:
AMAZON Relatedhttps://www.godad ...
AMAZON API Gateway(2)Client Side SSL with NGINX -
sillycat:
sudo usermod -aG docker ec2-use ...
Docker and VirtualBox(1)Set up Shared Disk for Virtual Box -
sillycat:
Every Half an Hour30 * * * * /u ...
Build Home NAS(3)Data Redundancy -
sillycat:
3 List the Cron Job I Have>c ...
Build Home NAS(3)Data Redundancy
发表评论
-
RESTful JSON Mock Server
2015-03-19 11:58 811RESTful JSON Mock Server C ... -
Performance Tool(7)Improve Lua and Wrk
2015-01-17 06:37 1050Performance Tool(7)Improve Lua ... -
Performance Tool(6)Gatling Upgrade to 2.1.2 Version Or wrk
2015-01-10 01:15 992Performance Tool(6)Gatling Upg ... -
Performance Tool(4)CSV File Data Feeder
2014-08-25 10:50 1054Performance Tool(4)CSV File Dat ... -
wrk with LuaJIT
2014-08-19 06:30 1358wrk with LuaJITHere is an exa ... -
Performance Tool(3)Gatling Upgrade and Cluster
2014-07-25 02:32 1352Performance Tool(3)Gatling Upgr ... -
WRK a HTTP Benchmarking Tool
2014-03-07 04:42 1164WRK a HTTP Benchmarking Tool1 ... -
Performance Tool(1)Gatling
2013-03-15 05:28 1317Performance Tool(1)Gatling 1. ... -
Jenkins Configuration(4)Improve Shell Script Debug/Info Message
2013-01-07 06:32 1352Jenkins Configuration(4)Improve ... -
Jenkins Configuration(3)Shell Script
2012-12-28 01:17 2708Jenkins Configuration(3)Shell S ... -
Eclipse Plugin(2)SOAP UI
2012-06-08 10:48 1367Eclipse Plugin(2)SOAP UI Plugi ... -
Spring3 and REST Integeration(VII)Controller JUnit Test and Mock/Spring Test MVC
2012-04-06 15:57 1926Spring3 and REST Integeration(V ... -
Spring3 and REST Integration(VI)Controller JUnit Test and Mock/Spring HandlerAda
2012-04-06 15:51 1839Spring3 and REST Integration(VI ... -
Spring3 and REST Integration(V)Controller JUnit Test and Mock/HandlerAdapter
2012-04-06 15:41 2853Spring3 and REST Integration(V) ... -
Spring3 and REST Integration(IV)Controller JUnit Test and Mock/Servlet
2012-04-06 15:13 2014Spring3 and REST Integration(IV ... -
Jbehave(2)Some Improvement and POM changes
2012-03-28 23:11 1448Jbehave(2)Some Improvement and ... -
buildr(1)Introduce and Install
2011-12-23 16:37 2211buildr(1)Introduce and Install ... -
Jbehave(1) First Web Page Sample
2011-10-26 15:00 2226Jbehave(1) First Web Page Sampl ... -
WarcraftIII Problem on English Win7
2011-07-25 10:18 1966WarcraftIII Problem on English ... -
Web Performance Test Tool
2011-05-10 15:37 1485Web Performance Test Tool 1. F ...
相关推荐
5)....Added: Exception2HRESULT in EAppDLL to simplify developing DLLs with "DLL" profile 6)....Added: Use ShellExecute option for mailto send method 7)....Added: "Mandatory e-mail only when sending" ...
1.11. Apache License Version 2.0, January 2004 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxxvii 1.12...
He currently leads the SQL Server enterprise <br>marketing efforts including high availability, scalability, and performance. <br>DIMA SONKIN is development lead in the SQL Server Tools group ...
Making 1.x Descriptors 2.0-compliant 114 Detecting the Speed of a Dual-Speed Device 116 Contents vi 5. Control Transfers: Structured Requests for Critical Data 117 Elements of a Control Transfer 117 ...
**This is THE perfect tool to manage perfectly your WP terms for any taxonomy** It was written with this philosophy : best performances, more secured and brings a lot of new functions This plugin is...
SCGCQ00319423 Defect FreeBSD MegaCLI v8.05.02 does not detect controller when driver 5.504.05.00 is loaded SCGCQ00324031 Defect MegaCLI 8.04.07 output typos SCGCQ00324525 Defect MegaCLI: MFI_STAT_NOT_...