use of uk.co.automatictester.lightning.data.JMeterTransactions in project lightning by automatictester.
the class RespTimeNthPercentileTestTest method testExecutePass.
@Test
public void testExecutePass() {
RespTimeNthPercentileTest test = new RespTimeNthPercentileTest("Test #1", "nthPercRespTimeTest", "Verify 90th percentile", "Search", 90, 246);
JMeterTransactions jmeterTransactions = new JMeterTransactions();
jmeterTransactions.add(SEARCH_121_SUCCESS);
jmeterTransactions.add(SEARCH_125_SUCCESS);
jmeterTransactions.add(SEARCH_129_SUCCESS);
jmeterTransactions.add(SEARCH_135_SUCCESS);
jmeterTransactions.add(SEARCH_143_SUCCESS);
jmeterTransactions.add(SEARCH_148_SUCCESS);
jmeterTransactions.add(SEARCH_178_SUCCESS);
jmeterTransactions.add(SEARCH_198_SUCCESS);
jmeterTransactions.add(SEARCH_221_SUCCESS);
jmeterTransactions.add(SEARCH_249_SUCCESS);
test.execute(jmeterTransactions);
assertThat(test.getResult(), is(equalTo(TestResult.PASS)));
}
use of uk.co.automatictester.lightning.data.JMeterTransactions in project lightning by automatictester.
the class RespTimeAvgTestTest method verifyExecuteAllTransactionsFail.
@Test
public void verifyExecuteAllTransactionsFail() {
RespTimeAvgTest test = new RespTimeAvgTest("Test #1", "avgRespTimeTest", "Verify response times", null, 899);
JMeterTransactions jmeterTransactions = new JMeterTransactions();
jmeterTransactions.add(TestData.SEARCH_800_SUCCESS);
jmeterTransactions.add(TestData.LOGIN_1000_SUCCESS);
test.execute(jmeterTransactions);
assertThat(test.getResult(), is(equalTo(TestResult.FAIL)));
}
use of uk.co.automatictester.lightning.data.JMeterTransactions in project lightning by automatictester.
the class RespTimeMaxTestTest method verifyExecuteError.
@Test
public void verifyExecuteError() {
RespTimeMaxTest test = new RespTimeMaxTest("Test #1", "avgRespTimeTest", "Verify response times", "nonexistent", 800);
JMeterTransactions jmeterTransactions = new JMeterTransactions();
jmeterTransactions.add(TestData.SEARCH_11221_SUCCESS);
test.execute(jmeterTransactions);
assertThat(test.getResult(), is(equalTo(TestResult.ERROR)));
}
use of uk.co.automatictester.lightning.data.JMeterTransactions in project lightning by automatictester.
the class ThroughputTestTest method testExecuteMethodPassNonInteger.
@Test
public void testExecuteMethodPassNonInteger() {
ThroughputTest test = new ThroughputTest("Test #1", "throughputTest", "", "Login", 0.6);
JMeterTransactions jmeterTransactions = new JMeterTransactions();
jmeterTransactions.add(TRANSACTION_0);
jmeterTransactions.add(TRANSACTION_3);
test.execute(jmeterTransactions);
assertThat(test.getResult(), is(equalTo(TestResult.PASS)));
}
use of uk.co.automatictester.lightning.data.JMeterTransactions in project lightning by automatictester.
the class RespTimeMaxTestTest method verifyExecuteAllTransactionsFail.
@Test
public void verifyExecuteAllTransactionsFail() {
RespTimeMaxTest test = new RespTimeMaxTest("Test #1", "avgRespTimeTest", "Verify response times", null, 999);
JMeterTransactions jmeterTransactions = new JMeterTransactions();
jmeterTransactions.add(TestData.SEARCH_800_SUCCESS);
jmeterTransactions.add(TestData.LOGIN_1000_SUCCESS);
test.execute(jmeterTransactions);
assertThat(test.getResult(), is(equalTo(TestResult.FAIL)));
}
Aggregations