使用JMeter maven插件将JMeter WebDriver采样器与maven集成

使用JMeter maven插件将JMeter WebDriver采样器与maven集成,jmeter,jmeter-plugins,jmeter-maven-plugin,Jmeter,Jmeter Plugins,Jmeter Maven Plugin,只是想知道,jmeter maven插件是否支持jmeter webdriver集成 谢谢 是的 以防万一,这里有一个最小的pom.xml文件 4.0.0 com.blazemeter 是的,它可以工作,但您应该确保使用的是最新版本 请详细阅读本手册,了解如何继续 工作pom.xml应为: <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema

只是想知道,jmeter maven插件是否支持jmeter webdriver集成

谢谢

是的

以防万一,这里有一个最小的pom.xml文件


4.0.0
com.blazemeter


  • 是的,它可以工作,但您应该确保使用的是最新版本

    请详细阅读本手册,了解如何继续

    工作pom.xml应为:

        <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
            xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
            <modelVersion>4.0.0</modelVersion>
            <groupId>com.foo</groupId>
            <artifactId>test</artifactId>
            <packaging>jar</packaging>
            <version>1.0-SNAPSHOT</version>
            <name>training-project</name>
            <url>http://maven.apache.org</url>
            <dependencies>
            </dependencies>
            <properties>
                <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
            </properties>
            <build>
                <plugins>
                    <plugin>
                        <groupId>com.lazerycode.jmeter</groupId>
                        <artifactId>jmeter-maven-plugin</artifactId>
                        <version>2.6.0</version>
                        <executions>
                            <execution>
                                <id>jmeter-tests</id>
                                <goals>
                                    <goal>jmeter</goal>
                                </goals>
                            </execution>
                            <execution>
                                <id>jmeter-tests2</id>
                                <goals>
                                    <goal>results</goal>
                                </goals>
                            </execution>
                        </executions>
                        <configuration> 
                            <jmeterExtensions>
                                <artifacts>kg.apc:jmeter-plugins-webdriver:2.3</artifacts>
                            </jmeterExtensions>
                            <excludedArtifacts>
                                <exclusion>commons-pool2:commons-pool2</exclusion>
                                <exclusion>commons-math3:commons-math3</exclusion>
                                <exclusion>com.sun.jdmk:jmxtools</exclusion>
                                <exclusion>com.sun.jmx:jmxri</exclusion>
                            </excludedArtifacts>
                            <ignoreResultFailures>false</ignoreResultFailures>
                            <downloadOptionalDependencies>false</downloadOptionalDependencies>
                            <downloadExtensionDependencies>false</downloadExtensionDependencies>
                        </configuration>
                    </plugin>
                </plugins>
            </build>
        </project>
    
    
    4.0.0
    com.foo
    测试
    罐子
    1.0-快照
    培训项目
    http://maven.apache.org
    UTF-8
    com.lazerycode.jmeter
    jmetermaven插件
    2.6.0
    jmeter测试
    性能测试
    jmeter-tests2
    结果
    apc:jmeter插件webdriver:2.3
    commons-pool2:commons-pool2
    commons-math3:commons-math3
    jdmk:jmxtools
    com.sun.jmx:jmxri
    假的
    假的
    假的
    
    是的。。我尝试了这个,现在得到:cause exception:java.lang.NoClassDefFoundError[INFO]cause message:org/openqa/selenium/remote/SessionNotFoundException
        <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
            xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
            <modelVersion>4.0.0</modelVersion>
            <groupId>com.foo</groupId>
            <artifactId>test</artifactId>
            <packaging>jar</packaging>
            <version>1.0-SNAPSHOT</version>
            <name>training-project</name>
            <url>http://maven.apache.org</url>
            <dependencies>
            </dependencies>
            <properties>
                <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
            </properties>
            <build>
                <plugins>
                    <plugin>
                        <groupId>com.lazerycode.jmeter</groupId>
                        <artifactId>jmeter-maven-plugin</artifactId>
                        <version>2.6.0</version>
                        <executions>
                            <execution>
                                <id>jmeter-tests</id>
                                <goals>
                                    <goal>jmeter</goal>
                                </goals>
                            </execution>
                            <execution>
                                <id>jmeter-tests2</id>
                                <goals>
                                    <goal>results</goal>
                                </goals>
                            </execution>
                        </executions>
                        <configuration> 
                            <jmeterExtensions>
                                <artifacts>kg.apc:jmeter-plugins-webdriver:2.3</artifacts>
                            </jmeterExtensions>
                            <excludedArtifacts>
                                <exclusion>commons-pool2:commons-pool2</exclusion>
                                <exclusion>commons-math3:commons-math3</exclusion>
                                <exclusion>com.sun.jdmk:jmxtools</exclusion>
                                <exclusion>com.sun.jmx:jmxri</exclusion>
                            </excludedArtifacts>
                            <ignoreResultFailures>false</ignoreResultFailures>
                            <downloadOptionalDependencies>false</downloadOptionalDependencies>
                            <downloadExtensionDependencies>false</downloadExtensionDependencies>
                        </configuration>
                    </plugin>
                </plugins>
            </build>
        </project>