Exported jar file is not visible in JUnit request sampler

We have tried to select class file in jmeter junit request sampler. How can we choose our class file in junit request sampler?
We have exported the package and stored that in apache lib->junit folder then restarted the jmeter.
But we can see that our class file is not visible in junit request sampler.
We import all the selenium jar files into the project including selenium standalone jar.
@Test
public void performence()
{
WebDriver driver=new HtmlUnitDriver();
driver.get("https://www.xxxxxx.xxxx/");
System.out.println( driver.getTitle());
}
}
Please suggest so that we can resolve the issue.
Thanks in advance.

Comments

  • I think your main issue is probably you didn't put dependencies (Webdriver) of your JUnit classes in lib folder.
    Check jmeter.log to see what the error

Sign In or Register to comment.