use of uk.co.automatictester.lightning.data.JMeterTransactions in project lightning by automatictester.
the class RespTimeStdDevTestTest method verifyExecuteFail.
@Test
public void verifyExecuteFail() {
RespTimeStdDevTest test = new RespTimeStdDevTest("Test #1", "respTimeStdDevTest", "Verify standard deviance", "Search", 24);
JMeterTransactions jmeterTransactions = new JMeterTransactions();
jmeterTransactions.add(SEARCH_198_SUCCESS);
jmeterTransactions.add(SEARCH_221_SUCCESS);
jmeterTransactions.add(SEARCH_249_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 RespTimeStdDevTestTest method verifyExecutePass.
@Test
public void verifyExecutePass() {
RespTimeStdDevTest test = new RespTimeStdDevTest("Test #1", "respTimeStdDevTest", "Verify standard deviance", "Search", 25);
JMeterTransactions jmeterTransactions = new JMeterTransactions();
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 RespTimeStdDevTestTest method verifyExecutePassOnNonDefaultLocale.
@Test
public void verifyExecutePassOnNonDefaultLocale() {
Locale.setDefault(Locale.FRANCE);
RespTimeStdDevTest test = new RespTimeStdDevTest("Test #1", "respTimeStdDevTest", "Verify standard deviance", "Search", 25);
JMeterTransactions jmeterTransactions = new JMeterTransactions();
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 RespTimeMaxTestTest method verifyExecutePass.
@Test
public void verifyExecutePass() {
RespTimeMaxTest test = new RespTimeMaxTest("Test #1", "avgRespTimeTest", "Verify response times", "Search", 800);
JMeterTransactions jmeterTransactions = new JMeterTransactions();
jmeterTransactions.add(TestData.SEARCH_800_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 RespTimeMaxTestTest method verifyExecuteAllTransactionsPass.
@Test
public void verifyExecuteAllTransactionsPass() {
RespTimeMaxTest test = new RespTimeMaxTest("Test #1", "avgRespTimeTest", "Verify response times", null, 1000);
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.PASS)));
}
Aggregations