-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update to perfana-java-client 1.6.0, and to events-gatling-maven-plug…
…in 3.1.2-events-1-SNAPSHOT, fixed IDEPathHelper for gatling highcharts update to 3.6.1
- Loading branch information
Showing
3 changed files
with
28 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 13 additions & 15 deletions
28
src/test/scala/io/perfana/afterburner/gatling/helpers/IDEPathHelper.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,25 @@ | ||
package io.perfana.afterburner.gatling.helpers | ||
|
||
import java.nio.file.Path | ||
|
||
import io.gatling.commons.util.PathHelper._ | ||
import java.nio.file.{Path, Paths} | ||
|
||
/** | ||
* Utility object to create the paths used throughout this loadtest script. | ||
*/ | ||
object IDEPathHelper { | ||
|
||
val gatlingConfUrl: Path = getClass.getClassLoader.getResource("gatling.conf").toURI | ||
val projectRootDir = gatlingConfUrl.ancestor(3) | ||
|
||
val mavenSourcesDirectory = projectRootDir / "src" / "test" / "scala" | ||
val mavenResourcesDirectory = projectRootDir / "src" / "test" / "resources" | ||
val mavenTargetDirectory = projectRootDir / "target" | ||
val mavenBinariesDirectory = mavenTargetDirectory / "test-classes" | ||
private val gatlingConfUrl: Path = Paths.get(getClass.getClassLoader.getResource("gatling.conf").toURI) | ||
private val projectRootDir = gatlingConfUrl.getParent.getParent.getParent | ||
private val mavenTargetDirectory = projectRootDir.resolve("target") | ||
|
||
val dataDirectory = mavenResourcesDirectory / "data" | ||
val bodiesDirectory = mavenResourcesDirectory / "request-bodies" | ||
private val mavenSrcTestDirectory = projectRootDir.resolve("src").resolve("test") | ||
|
||
val recorderOutputDirectory = mavenSourcesDirectory | ||
val resultsDirectory = mavenTargetDirectory / "results" | ||
val mavenSourcesDirectory = mavenSrcTestDirectory.resolve("scala") | ||
val mavenResourcesDirectory = mavenSrcTestDirectory.resolve("resources") | ||
val mavenBinariesDirectory = mavenTargetDirectory.resolve("test-classes") | ||
val resultsDirectory = mavenTargetDirectory.resolve("gatling") | ||
val recorderOutputDirectory = mavenSourcesDirectory | ||
val recorderConfigFile = mavenResourcesDirectory.resolve("recorder.conf") | ||
|
||
val recorderConfigFile = mavenResourcesDirectory / "recorder.conf" | ||
val dataDirectory = mavenResourcesDirectory.resolve("data") | ||
val bodiesDirectory = mavenResourcesDirectory.resolve("bodies") | ||
} |