// sampler samples (e.g. http request)
@Test
	public void testJMeterJtlFileWithTransactionsAndTransactionsBug() throws Exception {
		String[] runArgs = {
			"--report.dir",
			temporaryFolder.getRoot().getPath(),
			"jmeter",
			"--report-logline-type",
			"transaction",
			"-gt",
			"-gh",
			"-gr",
			"-gp",
			"-group-by-http-status",
			"src/test/resources/jmeter/result_with_url_and_sample_transaction_lines_with_bug.jtl"
		};
		String result = LogRaterRunTestUtil.getOutputFromLogRater(runArgs);
		System.out.printf("[%s]%n", result);
		// sampler samples (e.g. http request)
		assertFalse("Contains 1 GET Jaw Kat", result.contains("GET Jaw Kat,200,1"));
		assertFalse("Contains 1 GET Jaw Yaw", result.contains("GET Jaw Yaw,200,1"));
		// transaction controller samples
		assertTrue("Contains 1 cog", result.contains("cog,200,1"));
		assertTrue("Contains 1 som", result.contains("som,200,1"));
		// buggy transaction controller samples, are classified as transactions because URL column is available
		assertTrue("Contains 3 ane transactions", result.contains("ane,204,3"));
		assertTrue("The files contain 5 lines of which 0 failure lines.", result.contains("total-counter-success-total,5,0"));
	}
String result = LogRaterRunTestUtil.getOutputFromLogRater(runArgs);
System.out.printf("[%s]%n", result);
// sampler samples (e.g. http request)
assertFalse("Contains 1 GET Jaw Kat", result.contains("GET Jaw Kat,200,1"));
assertFalse("Contains 1 GET Jaw Yaw", result.contains("GET Jaw Yaw,200,1"));
"transaction",
"-gt",
"-gh",
"-gr",
"-gp",
"-group-by-http-status",
"src/test/resources/jmeter/result_with_url_and_sample_transaction_lines_with_bug.jtl"
};
String result = LogRaterRunTestUtil.getOutputFromLogRater(runArgs);
System.out.printf("[%s]%n", result);
// sampler samples (e.g. http request)
assertFalse("Contains 1 GET Jaw Kat", result.contains("GET Jaw Kat,200,1"));
assertFalse("Contains 1 GET Jaw Yaw", result.contains("GET Jaw Yaw,200,1"));
// transaction controller samples
assertTrue("Contains 1 cog", result.contains("cog,200,1"));
assertTrue("Contains 1 som", result.contains("som,200,1"));
// buggy transaction controller samples, are classified as transactions because URL column is available
assertTrue("Contains 3 ane transactions", result.contains("ane,204,3"));
assertTrue("The files contain 5 lines of which 0 failure lines.", result.contains("total-counter-success-total,5,0"));
}
@Test
public void testJMeterJtlFileWithTransactionsAndTransactionsBug() throws Exception {
String[] runArgs = {
"--report.dir",
temporaryFolder.getRoot().getPath(),
"jmeter",
"--report-logline-type",
"transaction",
"-gt",
"-gh",
"-gr",
"-gp",
"-group-by-http-status",
"src/test/resources/jmeter/result_with_url_and_sample_transaction_lines_with_bug.jtl"
};
String result = LogRaterRunTestUtil.getOutputFromLogRater(runArgs);
System.out.printf("[%s]%n", result);
// sampler samples (e.g. http request)
assertFalse("Contains 1 GET Jaw Kat", result.contains("GET Jaw Kat,200,1"));
assertFalse("Contains 1 GET Jaw Yaw", result.contains("GET Jaw Yaw,200,1"));
// transaction controller samples
assertTrue("Contains 1 cog", result.contains("cog,200,1"));
assertTrue("Contains 1 som", result.contains("som,200,1"));
// buggy transaction controller samples, are classified as transactions because URL column is available
assertTrue("Contains 3 ane transactions", result.contains("ane,204,3"));
assertTrue("The files contain 5 lines of which 0 failure lines.", result.contains("total-counter-success-total,5,0"));
}