Webdriver-based JMeter performance test-eclipse+selenium+junit build jar Package

Source: Internet
Author: User
Tags testng

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.