Continue connection
- Open Eclipse new Java project as shown in:
Enter the project name and click the "Finish" button as shown:
Create a new Java project in Eclipse, as shown in:
- Add the class library as shown in:
Select the JUnit library in the pop-up window, as shown in:
Click on the "Next" button and select the JUnit version to add as shown in:
- In the same way to add the Selenium class library, the class library needs to use the user library to extract the Selenium-java-3.0.0-beta2.zip files from the Lib file of the class library as a user library, in the application to the project, as shown in:
Click the "Finish" button after the project document as shown:
- Add the TestNG class library, similar to the JUnit class library, but you need to install the testng plugin in Eclipse in advance, by referring to http://blog.csdn.net/hongchangfirst/article/details/7679849/
- Copy or drag the Java file exported by the Selenium IDE into SRC under the Java project, as shown in:
After clicking the "OK" button, the file is copied to SRC, as shown in:
- Double-click the Java file to enter the code editing state as shown in:
- After debugging is complete, the system code has no error prompts, as shown in:
- Select Foxgis.java Run as->junit test as shown in:
- After execution, you can view the results of the run as shown in:
- Select Foxgis.java, right-click to export, in the pop-up form, select the following Java jar file, and then tap the "next" button as shown in:
After configuring the file specification, click the "Finish" button to export the jar file as shown in:
The exported Jar package body provides late-jmeter use.
Webdriver-based JMeter performance test-eclipse+selenium+junit build jar package