2018-05-08 06:35:04,225 ERROR o.a.j.u.BeanShellInterpreter: Error invoking bsh method: eval Sourced file: inline evaluation of: ``import com.eclipsesource.json.JsonObject; import com.eclipsesource.json.JsonArra . . . '' : Typed variable declaration : Class: JsonArray not found in namespace
My Taurus yml fileexecution:Enter code here...
- executor: jmeter
scenario: checkout
scenarios:
checkout:
script: src/test/jmeter/test.jmx
properties:
user.classpath: ~/loadtest/target/jmeter-plugins-extras-libs-1.1.3.jar
user.classpath: ~/loadtest/target/minimal-json-0.9.5.jar
user.classpath: ~/loadtest/target/jmeter-plugins-manager-0.19.jar
reporting:
- module: passfail
criteria:
- "fail>1% for 10s, stop as failed"
modules:
jmeter:
path: ~/loadtest/target/jmeter/
#download-link: https://archive.apache.org/dist/jmeter/binaries/apache-jmeter-3.0.zip
#version: 3.0 # minimal supported version of JMeter is 2.9
force-ctg: true # true by default
detect-plugins: true
plugins:
- jpgc-json=2.2
- jmeter-ftp
- jpgc-casutg
Hi,
You should use path separator to specify user.classpath property.
In you config example you just specified "user.classpath" three
times, which means that latest value overrides earliest. Something
like
user.classpath: "~/.../jar1.jar:~/.../jar2.jar"
has to be used instead.
--
Andrey Pokhilko
Open Source Initiatives Leader


CAUTION: This email originated from outside of CA. Do not click links or open attachments unless you recognize the sender and know the content is safe.
--
You received this message because you are subscribed to the Google Groups "codename-taurus" group.
To unsubscribe from this group and stop receiving emails from it, send an email to codename-taur...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/codename-taurus/4dd75f5e-64d5-453a-bec1-4957095dbdaf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
When you are specifying "jmeter.path" option, it should use that JMeter instance. So you can put all required libraries into "lib" directory there.
If you want to perform some automatic actions, look at the
"shellexec" service module. You can use system commands to copy
files prior to test run.
--
Andrey Pokhilko
Open Source Initiatives Leader


To view this discussion on the web visit https://groups.google.com/d/msgid/codename-taurus/ea291c81-e2e8-48d3-8d1a-cb2c286c71e5%40googlegroups.com.
---
execution:
- concurrency: 1
ramp-up: 1s
hold-for: 1s
scenario: gettoken
- concurrency: 1
ramp-up: 1s
hold-for: 1s
scenario: preconnect
scenarios:
gettoken:
requests:
- url: 'https://<endpoint>'
method: POST
headers:
Content-Type: application/x-www-form-urlencoded
Authorization: Basic ZXZlcm5vdGU6WW1NMVlqYzVOamN0T1dNMFppMDBPRGt5TFRsaU1qTXRObUkyT0RJeU9UVmhaRFps
body:
grant_type: password
password: <password>
username: <username>
extract-regexp:
AS_token:
default: NA
match-no: 0
subject: response
regexp: '"access_token":"(.*?)"'
template: $1$
jsr223:
- execute: after
language: beanshell
parameters: null
script-file: token.bsh
preconnect:
requests:
- url: '<endpoint>'
method: GET
headers:
Authorization: Bearer ${__P(AS_token_j)}
clientid: webapp
modules:
local:
sequential: true
import org.apache.jmeter.util.JMeterUtils;JMeterUtils.setProperty("AS_token_j", vars.get("AS_token"));Hi,
In Taurus, each scenario gets into separate JMeter script. Thus,
you can't transmit properties between 2 separate JMeter processes.
You need to make token getting a part of the same scenario item.
--
Andrey Pokhilko
Open Source Initiatives Leader


My yaml code:
My Beansheel Postprocessor code:
To view this discussion on the web visit https://groups.google.com/d/msgid/codename-taurus/a3ae03f8-58e7-4d42-970f-fac314ffa368%40googlegroups.com.