use of uk.co.automatictester.lightning.data.JMeterTransactions in project lightning by automatictester.
the class ThroughputTestTest method testExecuteMethodAllTransactionsFail.
@Test
public void testExecuteMethodAllTransactionsFail() {
ThroughputTest test = new ThroughputTest("Test #1", "throughputTest", "", null, 3);
JMeterTransactions jmeterTransactions = new JMeterTransactions();
jmeterTransactions.add(TRANSACTION_0);
jmeterTransactions.add(TRANSACTION_1);
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 ThroughputTestTest method testExecuteMethodPass.
@Test
public void testExecuteMethodPass() {
ThroughputTest test = new ThroughputTest("Test #1", "throughputTest", "", "Login", 1);
JMeterTransactions jmeterTransactions = new JMeterTransactions();
jmeterTransactions.add(TRANSACTION_0);
jmeterTransactions.add(TRANSACTION_2);
test.execute(jmeterTransactions);
assertThat(test.getResult(), is(equalTo(TestResult.PASS)));
}
Aggregations