-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: batch don't execute all queries with pgJdbc driver (#70)
* feat: add java-kotlin support * feat: refactoring * feat: move javaapi scala classes * fix: change import JdbcDsl * fix: fix Dependencies and readme * fix: fix Dependencies * fix: batch don't execute all queries with pgJdbc driver * feat: add batch test for all queries * feat: add batch check queries for java and kotlin --------- Co-authored-by: a.v.muratova <[email protected]>
- Loading branch information
1 parent
3ef4b21
commit dc27145
Showing
10 changed files
with
129 additions
and
36 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import io.gatling.app.Gatling | ||
import io.gatling.core.config.GatlingPropertiesBuilder | ||
import ru.tinkoff.load.jdbc.test.JdbcDebugTest; | ||
|
||
object GatlingRunner { | ||
|
||
def main(args: Array[String]): Unit = { | ||
|
||
// this is where you specify the class you want to run | ||
val simulationClass = classOf[JdbcDebugTest].getName | ||
|
||
val props = new GatlingPropertiesBuilder | ||
props.simulationClass(simulationClass) | ||
|
||
Gatling.fromMap(props.build) | ||
} | ||
|
||
} |
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
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import io.gatling.app.Gatling | ||
import io.gatling.core.config.GatlingPropertiesBuilder | ||
import ru.tinkoff.load.jdbc.test.KtJdbcDebugTest; | ||
|
||
object GatlingRunner { | ||
|
||
def main(args: Array[String]): Unit = { | ||
|
||
// this is where you specify the class you want to run | ||
val simulationClass = classOf[KtJdbcDebugTest].getName | ||
|
||
val props = new GatlingPropertiesBuilder | ||
props.simulationClass(simulationClass) | ||
|
||
Gatling.fromMap(props.build) | ||
} | ||
|
||
} |
16 changes: 8 additions & 8 deletions
16
src/test/kotlin/ru/tinkoff/load/jdbc/test/KtJdbcDebugTest.kt
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,13 +1,13 @@ | ||
package ru.tinkoff.load.jdbc.test | ||
|
||
import io.gatling.javaapi.core.CoreDsl.* | ||
import io.gatling.javaapi.core.* | ||
import io.gatling.javaapi.core.OpenInjectionStep.atOnceUsers | ||
import io.gatling.javaapi.core.Simulation | ||
import ru.tinkoff.load.jdbc.test.scenarios.KtJdbcBasicSimulation.scn | ||
|
||
class KtJdbcDebugTest : Simulation() { | ||
init{ | ||
setUp( | ||
scn.injectOpen(atOnceUsers(1)) | ||
).protocols(KtJdbcProtocol.dataBase) | ||
class KtJdbcDebugTest : Simulation() { | ||
init { | ||
setUp( | ||
scn.injectOpen(atOnceUsers(1)) | ||
).protocols(KtJdbcProtocol.dataBase) | ||
} | ||
} | ||
} |
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
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