Giter VIP home page Giter VIP logo

jmeter-components's Introduction

AtlantBH Custom JMeter Components

What is it?

AtlantBH Custom JMeter Components is a set of JMeter extensions developed by AtlantBH that currently includes:

  • OAuth Sampler

  • REST Sampler

  • JMS Tools (Java Request Sampler)

  • JSON to XML Converter

  • XML Format Post-processor

  • HDFS Operations Sampler

  • HBase Scan Sampler

  • HBase RowKey Sampler

  • Hadoop Job Tracker Sampler

  • HBase CRUD Sampler

  • JSON utils (JSON Path Assertion, JSON Path Extractor, JSON Formatter)

  • JTL Results Parser

Requirements

  • Java 1.6 or greater

  • JMeter 2.9

  • Maven 3.0 or greater

Build Instructions

  • Go to the top-level directory of the project and run:
    mvn clean install
    
  • All components will be compiled in the 'target' subdirectory.

Installation Instructions

  • Copy the compiled jar (atlantbh-components-1.0.0-SNAPSHOT.jar) from the 'target' directory to the '/lib/ext' directory in your local JMeter installation.

  • Copy all the jars from the 'target/lib' directory to the 'lib' directory in your local JMeter installation.

To test that everything is installed correctly, try adding the OAuth Sampler in a JMeter test plan (JMeter menu -> Edit -> Add -> Sampler -> OAuth Sampler).

Licensing and legal issues

Copyright 2011 AtlantBH

AtlantBH Custom Jmeter Components is licensed under the Apache License, Version 2.0.

For legal and licensing issues, please look the files:
LICENSE
NOTICE

jmeter-components's People

Contributors

achingbrain avatar aidarikovic avatar bjusufbe avatar dduvnjak avatar fzimandl avatar haal avatar horte avatar jasminb avatar paulovittor23 avatar samireljazovic avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

jmeter-components's Issues

Cannot Create HBase Record

If I try to create a record, it fails with the following error:

2018-04-03 20:39:04,021 ERROR o.a.j.t.JMeterThread: Error while processing sampler: 'HBase CRUD Sampler'.

java.lang.NullPointerException: null
	at com.atlantbh.jmeter.plugins.hbasecrud.HbaseCrud.sample(HbaseCrud.java:214) ~[atlantbh-components-1.1.0-SNAPSHOT.jar:?]
	at org.apache.jmeter.threads.JMeterThread.executeSamplePackage(JMeterThread.java:498) ~[ApacheJMeter_core.jar:3.3 r1808647]
	at org.apache.jmeter.threads.JMeterThread.processSampler(JMeterThread.java:424) [ApacheJMeter_core.jar:3.3 r1808647]
	at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:255) [ApacheJMeter_core.jar:3.3 r1808647]
	at java.lang.Thread.run(Thread.java:748) [?:1.8.0_162]

Works OK if I'm updating an existing row

I can't connect to HBase

I'm using JMeter-2.9, Java 1.8.0_44 and HBase-1.3.1.
1.I create a thread group.
2.I create an HBase Connection.
3. I create an HBase RowKey Sampler.
4.I create a View Results Tree.
5.With the help of docker, I make an virtual HBase cluster on my own computer, There are 3 slaves named slave1,slave2,slave3(using docker) and a master named LinuxMint(my own computer). Now I want to benchmark HBase using JMeter.
6.I write HBase Connection like this:
Name: HBase Connection
Connection Name:HBase
ZK host(I don't know how to write this): LinuxMint or LinuxMint:2181 or LinuxMint,slave1,slave2,slave3?
7.I write HBase RowKey Sampler like this:
Connection Name:HBase
Table: blog(I create it myself)
RowKey:blog1(I create it myself)
8.I click run in three case(LinuxMint or LinuxMint:2181 or LinuxMint,slave1,slave2,slave3). But there are no results and it's running all the time.
The result in the command line is like this
2017/09/25 17:19:27 INFO - jmeter.engine.StandardJMeterEngine: Running the test!
2017/09/25 17:19:27 ERROR - com.atlantbh.jmeter.plugins.hbasecomponents.config.HBaseConnection: Test error: Multiple HBase connections called HBase
2017/09/25 17:19:27 INFO - jmeter.gui.util.JMeterMenuBar: setRunning(true,local)
2017/09/25 17:19:27 INFO - jmeter.engine.StandardJMeterEngine: Starting ThreadGroup: 1 : 线程组
2017/09/25 17:19:27 INFO - jmeter.engine.StandardJMeterEngine: Starting 1 threads for group 线程组.
2017/09/25 17:19:27 INFO - jmeter.engine.StandardJMeterEngine: Thread will continue on error
2017/09/25 17:19:27 INFO - jmeter.threads.ThreadGroup: Starting thread group number 1 threads 1 ramp-up 1 perThread 1000.0 delayedStart=false
2017/09/25 17:19:27 INFO - jmeter.threads.ThreadGroup: Started thread group number 1
2017/09/25 17:19:27 INFO - jmeter.engine.StandardJMeterEngine: All thread groups have been started
2017/09/25 17:19:27 INFO - jmeter.threads.JMeterThread: Thread started: 线程组 1-1

Could you please help me?

Extract data from json response

I have this json response:
{
"total":1,
"page":1,
"records":23,
"rows":
[
{
"id":409587,
"from_status":"[Default Status]",
"to_status":"New",
"transition_name":"",
"assign_id":"7",
"exclude_groups_value":""
},
{
"id":409582,
"from_status":"Approved",
"to_status":"Done",
"transition_name":"",
"assign_id":"7",
"exclude_groups_value":""
},
{
"id":409583,
"from_status":"Approved",
"to_status":"In Process",
"transition_name":"",
"assign_id":"7",
"exclude_groups_value":""
},
{
"id":409584,
"from_status":"Closed",
"to_status":"Done",
"transition_name":"",
"assign_id":"7",
"exclude_groups_value":""
},
{
"id":409585,
"from_status":"Closed",
"to_status":"Rejected",
"transition_name":"",
"assign_id":"7",
"exclude_groups_value":""
},
{
"id":409586,
"from_status":"Closed",
"to_status":"Reopen",
"transition_name":"",
"assign_id":"7",
"exclude_groups_value":""
},
{
"id":409588,
"from_status":"Deferred",
"to_status":"Rejected",
"transition_name":"",
"assign_id":"7",
"exclude_groups_value":""
},
{
"id":409589,
"from_status":"Deferred",
"to_status":"Reopen",
"transition_name":"",
"assign_id":"7",
"exclude_groups_value":""
},
{
"id":409590,
"from_status":"Done",
"to_status":"Closed",
"transition_name":"",
"assign_id":"7",
"exclude_groups_value":""
},
{
"id":409591,
"from_status":"Done",
"to_status":"Rejected",
"transition_name":"",
"assign_id":"7",
"exclude_groups_value":""
},
{
"id":409592,
"from_status":"Done",
"to_status":"Reopen",
"transition_name":"",
"assign_id":"7",
"exclude_groups_value":""
},
{
"id":409593,
"from_status":"In Process",
"to_status":"Done",
"transition_name":"",
"assign_id":"7",
"exclude_groups_value":""
},
{
"id":409594,
"from_status":"In Process",
"to_status":"Wait for Review",
"transition_name":"",
"assign_id":"7",
"exclude_groups_value":""
},
{
"id":409595,
"from_status":"New",
"to_status":"Approved",
"transition_name":"",
"assign_id":"7",
"exclude_groups_value":""
},
{
"id":409596,
"from_status":"New",
"to_status":"Deferred",
"transition_name":"",
"assign_id":"7",
"exclude_groups_value":""
},
{
"id":409597,
"from_status":"New",
"to_status":"Done",
"transition_name":"",
"assign_id":"7",
"exclude_groups_value":""
},
{
"id":409598,
"from_status":"New",
"to_status":"In Process",
"transition_name":"",
"assign_id":"7",
"exclude_groups_value":""
},
{
"id":409599,
"from_status":"New",
"to_status":"Rejected",
"transition_name":"",
"assign_id":"7",
"exclude_groups_value":""
},
{
"id":409600,
"from_status":"Rejected",
"to_status":"Reopen",
"transition_name":"",
"assign_id":"7",
"exclude_groups_value":""
},
{
"id":409601,
"from_status":"Reopen",
"to_status":"Done",
"transition_name":"",
"assign_id":"7",
"exclude_groups_value":""
},
{
"id":409602,
"from_status":"Reopen",
"to_status":"In Process",
"transition_name":"",
"assign_id":"7",
"exclude_groups_value":""
},
{
"id":409603,
"from_status":"Wait for Review",
"to_status":"Approved",
"transition_name":"",
"assign_id":"7",
"exclude_groups_value":""
},
{
"id":409604,
"from_status":"Wait for Review",
"to_status":"Reopen",
"transition_name":"",
"assign_id":"7",
"exclude_groups_value":""
}
]
}

and i Want to extract id where from_status=new and to_status=in process.
I have tried this $..[?(@.from_status == 'New')]
its giving me:
CreatorData_1={id=409595, from_status=New, to_status=Approved, transition_name=, assign_id=7, exclude_groups_value=}
CreatorData_2={id=409596, from_status=New, to_status=Deferred, transition_name=, assign_id=7, exclude_groups_value=}
CreatorData_3={id=409597, from_status=New, to_status=Done, transition_name=, assign_id=7, exclude_groups_value=}
CreatorData_4={id=409598, from_status=New, to_status=In Process, transition_name=, assign_id=7, exclude_groups_value=}
CreatorData_5={id=409599, from_status=New, to_status=Rejected, transition_name=, assign_id=7, exclude_groups_value=}
these values.

now i need to extract id where to status is in process.

I have used this http://screencast.com/t/hk0Zzj0fHLQ
used regular expression and select jmeter variable.

now its taking value but its a dynamic json and it can change anytime.
for now CreatorData_4 having my value but in future may be it will not display. then for this what shall i do?

Failure to get dependency: org.apache.thrift:thrift:jar:0.2.0

I simply cloned the repository and ran mvn clean install as instructed. Received the following (after it downloaded everything else up to that point of getting thrift):

~/src/github/ATLANTBH/jmeter-components $ mvn clean install
[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building AtlantBH custom JMeter components 1.1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
Downloading: https://repository.cloudera.com/content/repositories/snapshots/org/apache/thrift/thrift/0.2.0/thrift-0.2.0.pom
Downloading: http://repository.codehaus.org/org/apache/thrift/thrift/0.2.0/thrift-0.2.0.pom
Downloading: https://repository.cloudera.com/content/repositories/snapshots/org/apache/thrift/thrift/0.2.0/thrift-0.2.0.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.146 s
[INFO] Finished at: 2016-03-02T10:21:49-05:00
[INFO] Final Memory: 16M/484M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project atlantbh-components: Could not resolve dependencies for project com.atlantbh.jmeter:atlantbh-components:jar:1.1.0-SNAPSHOT: Failed to collect dependencies at org.apache.hbase:hbase:jar:0.90.1-cdh3u0 -> org.apache.thrift:thrift:jar:0.2.0: Failed to read artifact descriptor for org.apache.thrift:thrift:jar:0.2.0: Could not transfer artifact org.apache.thrift:thrift:pom:0.2.0 from/to cdh.snapshot.repo (https://repository.cloudera.com/content/repositories/snapshots): Failed to transfer file: https://repository.cloudera.com/content/repositories/snapshots/org/apache/thrift/thrift/0.2.0/thrift-0.2.0.pom. Return code is: 409 , ReasonPhrase:Conflict. -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException

JSON Path Extractor : Invalid Path (v 1.1.2)

When the JSON path is not available the Name (variable) is carrying on a previous valid path.

Example, path $.returned is not always available on the JSON response, so a first valid path sets the variable, let say to 100, if the next JSON response doesn't have "returned" the variable will keep 100, even the path is invalid.

Conversion exception in jsonpathassertion in nonguidriver mode

Hi,
The test runs ok in gui mode (jmeter 2.1.3) but not from command line. I have added the plugin in pom

kg.apc jmeter-plugins 1.3.0

conversio
orks.xstream.converters.ConversionException: com.atlantbh.jmeter.plugins.jsonutils.jsonpathassertion.JSONPathAssertion : com.atlantbh.jmeter.plugins.jsonutils.jsonpathassertion.JSO
[debug] ---- Debugging information ----
[debug] message : com.atlantbh.jmeter.plugins.jsonutils.jsonpathassertion.JSONPathAssertion
[debug] cause-exception : com.thoughtworks.xstream.mapper.CannotResolveClassException
[debug] cause-message : com.atlantbh.jmeter.plugins.jsonutils.jsonpathassertion.JSONPathAssertion
[debug] class : org.apache.jorphan.collections.ListedHashTree
[debug] required-type : org.apache.jorphan.collections.ListedHashTree
[debug] converter-type : org.apache.jmeter.save.converters.HashTreeConverter
[debug] path : /jmeterTestPlan/hashTree/hashTree/hashTree/hashTree[3]/hashTree/com.atlantbh.jmeter.plugins.jsonutils.jsonpathassertion.JSONPathAssertion
[debug] line number : 279
[debug] ------------------------------- : com.atlantbh.jmeter.plugins.jsonutils.jsonpathassertion.JSONPathAssertion : com.atlantbh.jmeter.plugins.jsonutils.jsonpathassertion.JSONPa
[debug] ---- Debugging information ----
[debug] message : com.atlantbh.jmeter.plugins.jsonutils.jsonpathassertion.JSONPathAssertion
[debug] cause-exception : com.thoughtworks.xstream.mapper.CannotResolveClassException
[debug] cause-message : com.atlantbh.jmeter.plugins.jsonutils.jsonpathassertion.JSONPathAssertion
[debug] class : org.apache.jorphan.collections.ListedHashTree
[debug] required-type : org.apache.jorphan.collections.ListedHashTree
[debug] converter-type : org.apache.jmeter.save.converters.HashTreeConverter
[debug] path : /jmeterTestPlan/hashTree/hashTree/hashTree/hashTree[3]/hashTree/com.atlantbh.jmeter.plugins.jsonutils.jsonpathassertion.JSONPathAssertion
[debug] line number : 279
[debug] -------------------------------
[debug] message : com.atlantbh.jmeter.plugins.jsonutils.jsonpathassertion.JSONPathAssertion : com.atlantbh.jmeter.plugins.jsonutils.jsonpathassertion.JSONPathAssertion
[debug] ---- Debugging information ----
[debug] message : com.atlantbh.jmeter.plugins.jsonutils.jsonpathassertion.JSONPathAssertion
[debug] cause-exception : com.thoughtworks.xstream.mapper.CannotResolveClassException
[debug] cause-message : com.atlantbh.jmeter.plugins.jsonutils.jsonpathassertion.JSONPathAssertion
[debug] class : org.apache.jorphan.collections.ListedHashTree
[debug] required-type : org.apache.jorphan.collections.ListedHashTree
[debug] converter-type : org.apache.jmeter.save.converters.HashTreeConverter
[debug] path : /jmeterTestPlan/hashTree/hashTree/hashTree/hashTree[3]/hashTree/com.atlantbh.jmeter.plugins.jsonutils.jsonpathassertion.JSONPathAssertion
[debug] line number : 279
[debug] -------------------------------
[debug] cause-exception : com.thoughtworks.xstream.converters.ConversionException
[debug] cause-message : com.atlantbh.jmeter.plugins.jsonutils.jsonpathassertion.JSONPathAssertion : com.atlantbh.jmeter.plugins.jsonutils.jsonpathassertion.JSONPathAssertion
[debug] first-jmeter-class : org.apache.jmeter.save.converters.HashTreeConverter.unmarshal(HashTreeConverter.java:67)
[debug] class : org.apache.jmeter.save.ScriptWrapper
[debug] required-type : org.apache.jorphan.collections.ListedHashTree
[debug] converter-type : org.apache.jmeter.save.ScriptWrapperConverter
[debug] path : /jmeterTestPlan/hashTree/hashTree/hashTree/hashTree[3]/hashTree/com.atlantbh.jmeter.plugins.jsonutils.jsonpathassertion.JSONPathAssertion
[debug] line number : 279
[debug] version : 2.13 r1665067
[debug] -------------------------------
[info] Completed Test: BAT_Scenarios.jmx

jmeter.JMeter: Error in NonGUIDriver java.lang.NullPointerException. When I run test as maven project with JsonPath assert.

I created a simple test in Jmeter GUI and it works fine. That is Http request with JsonPath assert and try to run it as maven project in NON GUI mode. But it fails. Default Jmeter tests work fine.
All required libraries are instaled and added to the default Jmete directory. Besides, on my project I add dependencies in pom.xml. Any suggestions. What I am doing wrong. Here is my pom.xml and errors. Thanks!


4.0.0

<groupId>com.innocentive</groupId>
<artifactId>JmeterTest</artifactId>
<version>1.0-SNAPSHOT</version>

<properties>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    <java-version>1.7</java-version>
    <jmeter.version>2.9</jmeter.version>
    <skipTests>false</skipTests>
    <jmeter.home>C:\apache-jmeter-2.9</jmeter.home>
    <jmeter.testfiles.basedir>D:\API project\JmeterTest\src\test\Jmeter</jmeter.testfiles.basedir>
</properties>

<build>
    <plugins>
        <plugin>
            <groupId>com.lazerycode.jmeter</groupId>
            <artifactId>jmeter-maven-plugin</artifactId>
            <version>1.8.1</version>
            <executions>
                <execution>
                    <id>jmeter-tests</id>
                    <phase>verify</phase>
                    <goals>
                        <goal>jmeter</goal>
                    </goals>
                </execution>
            </executions>
            <dependencies>
                <dependency>
                    <groupId>com.jayway.jsonpath</groupId>
                    <artifactId>json-path-assert</artifactId>
                    <version>0.5.5</version>
                </dependency>
                <dependency>
                    <groupId>org.apache.jmeter</groupId>
                    <artifactId>ApacheJMeter_components</artifactId>
                    <version>${jmeter.version}</version>
                </dependency>
                <dependency>
                    <groupId>org.apache.jmeter</groupId>
                    <artifactId>ApacheJMeter_core</artifactId>
                    <version>${jmeter.version}</version>
                </dependency>
                <dependency>
                    <groupId>org.apache.jmeter</groupId>
                    <artifactId>ApacheJMeter_http</artifactId>
                    <version>${jmeter.version}</version>
                </dependency>
                <dependency>
                    <groupId>org.apache.jmeter</groupId>
                    <artifactId>jorphan</artifactId>
                    <version>${jmeter.version}</version>
                </dependency>
                <dependency>
                    <groupId>commons-logging</groupId>
                    <artifactId>commons-logging</artifactId>
                    <version>1.1.1</version>
                </dependency>
                <dependency>
                    <groupId>net.sf.json-lib</groupId>
                    <artifactId>json-lib</artifactId>
                    <version>2.4</version>
                    <classifier>jdk15</classifier>
                </dependency>
                <dependency>
                    <groupId>com.jayway.jsonpath</groupId>
                    <artifactId>json-path</artifactId>
                    <version>0.8.1</version>
                </dependency>
                <dependency>
                    <groupId>org.springframework</groupId>
                    <artifactId>spring-jms</artifactId>
                    <version>2.5.3</version>
                </dependency>
                <dependency>
                    <groupId>org.apache.qpid</groupId>
                    <artifactId>qpid-client</artifactId>
                    <version>0.12</version>
                </dependency>
                <dependency>
                    <groupId>xom</groupId>
                    <artifactId>xom</artifactId>
                    <version>1.2.5</version>
                </dependency>
                <dependency>
                    <groupId>org.apache.jmeter</groupId>
                    <artifactId>ApacheJMeter_java</artifactId>
                    <version>${jmeter.version}</version>
                </dependency>

                <dependency>
                    <groupId>org.mockito</groupId>
                    <artifactId>mockito-all</artifactId>
                    <version>1.9.5</version>
                </dependency>
            </dependencies>
        </plugin>
    </plugins>
</build>

2013/10/03 21:34:39 ERROR - jmeter.JMeter: Error in NonGUIDriver java.lang.NullPointerException
at org.apache.jmeter.gui.tree.JMeterTreeModel.addSubTree(JMeterTreeModel.java:93)
at org.apache.jmeter.JMeter.runNonGui(JMeter.java:746)
at org.apache.jmeter.JMeter.startNonGui(JMeter.java:724)
at org.apache.jmeter.JMeter.start(JMeter.java:388)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.apache.jmeter.NewDriver.main(NewDriver.java:218)
at com.lazerycode.jmeter.testrunner.TestManager.executeSingleTest(TestManager.java:92)
at com.lazerycode.jmeter.testrunner.TestManager.executeTests(TestManager.java:60)
at com.lazerycode.jmeter.JMeterMojo.execute(JMeterMojo.java:50)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:106)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:318)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:153)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:555)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:158)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:414)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:357)
at org.codehaus.classworlds.Launcher.main(Launcher.java:47)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:120)

fo] Executing test: Json assertation.jmx
[info] Completed Test: Json assertation.jmx
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 5.621s
[INFO] Finished at: Thu Oct 03 21:34:39 FET 2013
[INFO] Final Memory: 11M/26M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.lazerycode.jmeter:jmeter-maven-plugin:1.8.1:jmeter (jmeter-tests) on project JmeterTest: D:\API project\JmeterTest\target\jmeter\results\20131003-Json assertation.jtl (Unable to locate file) -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

Process finished with exit code 1

Filter expressions with JSON path extractor plugin are not working

I am using JMeter 2.11 with JSON path extractor plugin version 1.1.2. When I specify the filter expression in the JSON path, result is always coming as NULL.
here is my expression:
$.configs[?(@.config.ssid=='SampleWifi1')].config.id
here is my json response:
{
"configs": [
{
"config": {
"id": 1,
"configType": "WiFi",
"autoJoin": true,
"ssid": "SampleWifi1"
}
},
{
"config": {
"id": 2,
"configType": "WiFi",
"autoJoin": true,
"ssid": "SampleWifi2"
}
}
]
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.