I need to run my Selenium scripts in Jmeter. I would like to use Junit request. To reach this I need to make a .jar file from my test file. But I dont know how.
This is my class with the test:
When I try to make a .jar using: File -> Project Structure -> Artifacts -> + -> Jar from modules with dependencies -> here I am trying to choose class:
but it is not possible because my Login class is "Unit test class".
Is it possible to make .jar file from Unit test class somehow? And will the depedendecies in my pom.xml be preserved?
I tried to make it under Main class, but there is a problem with a JUnit annotations.
I wasnt able to achieve this with these tips unfortunatelly :( https://maven.apache.org/plugins/maven-jar-plugin/examples/create-test-jar.html