In this post I will show you how to integrate and execute Junit test with Jmeter .
Junit test:
Here I have created two Junit test:
1. JunitFirstTest.java:
Junit test:
Here I have created two Junit test:
1. JunitFirstTest.java:
package com.test;
import org.junit.*;
public class JunitFirstTest {
@BeforeClass
public static void beforeClassAnnotation() {
System.out.println("@BeforeClass
- for junit class 1");
}
@AfterClass
public static void afterClassAnnotation() {
System.out.println("@AfterClass
- for junit class 1");
}
@Test
public void testAnnotation() {
System.out.println("@Test - first class test method");
}
}