How to use SSH sampler with Maven JMeter Plugin -


i'm sure other people tried usage, could't find examples online. hope can , comment whether it's doable @ all.

part of pom.xml file given below. problem maven couldn't find "jmeter-ssh-sampler" declared 1 dependency "meter-maven-plugin". should configure maven search different repositry ?

thanks yulin

[error] failed execute goal com.lazerycode.jmeter:jmeter-maven-plugin:1.10.0:jmeter (jmeter-tests) on project jmeter-test: execution jmeter-tests of goal com.lazerycode.jmeter:jmeter-maven-plugin:1.10.0:jmeter failed: plugin com.lazerycode.jmeter:jmeter-maven-plugin:1.10.0 or 1 of dependencies not resolved: failure find org.apache.jmeter.protocol.ssh.sampler:jmeter-ssh-sampler:jar:0.1.0 in https://repo.maven.apache.org/maven2 cached in local repository, resolution not reattempted until update interval of central has elapsed or updates forced -> [help 1]


<build>     <plugins>         <plugin>             <groupid>com.lazerycode.jmeter</groupid>             <artifactid>jmeter-maven-plugin</artifactid>             <version>1.10.0</version>             <executions>                 <execution>                     <id>jmeter-tests</id>                     <phase>verify</phase>                     <goals>                         <goal>jmeter</goal>                     </goals>                     <configuration>                         <suppressjmeteroutput>false</suppressjmeteroutput>                                                <propertiesuser>                              <host>${target_server}</host>                          </propertiesuser>                         <jmeterplugins>                                     <plugin>                                      <groupid>org.apache.jmeter.protocol.ssh.sampler</groupid>                                             <artifactid>jmeter-ssh-sampler</artifactid>                                     </plugin>                         </jmeterplugins>                      </configuration>                  </execution>             </executions>                <dependencies>                                     <dependency>                                             <groupid>com.jcraft</groupid>                                             <artifactid>jsch</artifactid>                                             <version>0.1.51</version>                                     </dependency>                                     <dependency>                                               <groupid>org.apache.jmeter.protocol.ssh.sampler</groupid>                                             <artifactid>jmeter-ssh-sampler</artifactid>                                             <version>0.1.0</version>                                     </dependency>                 </dependencies>         </plugin>     </plugins> </build> 

jmeter-ssh-sampler not available in maven central:

http://search.maven.org/#search|ga|1|org.apache.jmeter.protocol.ssh.sampler

if dependency can't located, don't think jmeter-maven-plugin able make use of jmeter-ssh-sampler. either needs made available in repository maven looking for, or may end dirty hacks, i'd suggest avoid as possible (e.g. manipulate file system directly).


Comments

Popular posts from this blog

c - Bitwise operation with (signed) enum value -

xslt - Unnest parent nodes by child node -

YouTubePlayerFragment cannot be cast to android.support.v4.app.Fragment -