diff --git a/tools/jmeter/build.gradle b/tools/jmeter/build.gradle index 4a585a61e6..dae927c366 100644 --- a/tools/jmeter/build.gradle +++ b/tools/jmeter/build.gradle @@ -39,6 +39,9 @@ dependencies { runtime group: 'org.apache.jmeter', name: 'ApacheJMeter_config', version: "$jmVersion" runtime group: 'org.apache.jmeter', name: 'ApacheJMeter', version: "$jmVersion" runtime group: 'org.apache.jmeter', name: 'jorphan', version: "$jmVersion" + //For Azure SQL and SQL Server support in persistence + runtime group: 'com.microsoft.sqlserver', name: 'mssql-jdbc', version: '6.2.1.jre8' + testCompile project(':test-utils') testCompile project(':node-driver') diff --git a/tools/jmeter/src/main/resources/Testplans/SQL.jmx b/tools/jmeter/src/main/resources/Testplans/SQL.jmx new file mode 100644 index 0000000000..0014ad8f62 --- /dev/null +++ b/tools/jmeter/src/main/resources/Testplans/SQL.jmx @@ -0,0 +1,244 @@ + + + + + + false + false + + + + + + + + continue + + false + 40000 + + 3 + 1 + 1509455820000 + 1509455820000 + false + + + + + + true + + 5000 + testpool + jdbc:sqlserver://perfperformancetest.database.windows.net:1433;databaseName=perftesting + com.microsoft.sqlserver.jdbc.SQLServerDriver + true + yourStrong(!)Password + 0 + 10000 + TRANSACTION_REPEATABLE_READ + 60000 + perfnode1@perfperformancetest + + + + testpool + select dbtransact0_.tx_id as tx_id1_22_0_, dbtransact0_.transaction_value as transact2_22_0_ from perfnode1.node_transactions dbtransact0_ where dbtransact0_.tx_id='${__UUID()}' + + + + Select Statement + Store as String + + + + + + false + + saveConfig + + + true + true + true + + true + true + true + true + false + true + true + false + false + false + true + false + false + false + true + 0 + true + true + true + true + true + + + + + + + false + + saveConfig + + + true + true + true + + true + true + true + true + false + true + true + false + false + false + true + false + false + false + true + 0 + true + true + true + true + true + + + + + + + + false + + saveConfig + + + true + true + true + + true + true + true + true + false + true + true + false + false + false + true + false + false + false + true + 0 + true + true + true + true + true + + + + + + + false + + saveConfig + + + true + true + true + + true + true + true + true + false + true + true + false + false + false + true + false + false + false + true + 0 + true + true + true + true + true + + + + + + + false + + saveConfig + + + true + true + true + + true + true + true + true + false + true + true + false + false + false + true + false + false + false + true + 0 + true + true + true + true + true + + + + + + + + true + + + + diff --git a/tools/jmeter/src/main/resources/Testplans/SQL_parmeterized.jmx b/tools/jmeter/src/main/resources/Testplans/SQL_parmeterized.jmx new file mode 100644 index 0000000000..e287233d2e --- /dev/null +++ b/tools/jmeter/src/main/resources/Testplans/SQL_parmeterized.jmx @@ -0,0 +1,246 @@ + + + + + + false + false + + + + + + + + true + + 5000 + testpool + jdbc:sqlserver://perfperformancetest.database.windows.net:1433;databaseName=perftesting + com.microsoft.sqlserver.jdbc.SQLServerDriver + true + yourStrong(!)Password + 0 + 10000 + TRANSACTION_REPEATABLE_READ + 60000 + perfnode1@perfperformancetest + + + + continue + + false + 40000 + + 3 + 1 + 1509455820000 + 1509455820000 + false + + + + + + testpool + declare @sql nvarchar(4000) +set @sql = N'select dbtransact0_.tx_id as tx_id1_22_0_, dbtransact0_.transaction_value as transact2_22_0_ from perfnode1.node_transactions dbtransact0_ where dbtransact0_.tx_id=@P0' +exec sp_executesql @sql, N'@P0 nvarchar(4000)', '${__UUID()}' + + + + Select Statement + Store as String + + + + + + false + + saveConfig + + + true + true + true + + true + true + true + true + false + true + true + false + false + false + true + false + false + false + true + 0 + true + true + true + true + true + + + + + + + false + + saveConfig + + + true + true + true + + true + true + true + true + false + true + true + false + false + false + true + false + false + false + true + 0 + true + true + true + true + true + + + + + + + + false + + saveConfig + + + true + true + true + + true + true + true + true + false + true + true + false + false + false + true + false + false + false + true + 0 + true + true + true + true + true + + + + + + + false + + saveConfig + + + true + true + true + + true + true + true + true + false + true + true + false + false + false + true + false + false + false + true + 0 + true + true + true + true + true + + + + + + + false + + saveConfig + + + true + true + true + + true + true + true + true + false + true + true + false + false + false + true + false + false + false + true + 0 + true + true + true + true + true + + + + + + + + true + + + +