Passing Variables from Jenkins to Taurus

1,689 views
Skip to first unread message

surendra matta

unread,
Feb 23, 2016, 1:51:45 PM2/23/16
to codename-taurus
HI ,

Is there any way to pass the variable i.e., Number of user ,duration  from jenkins to Taurus to execute the jmeter test . 

Regards,
Venkat

Andrey Pokhilko

unread,
Feb 23, 2016, 2:09:55 PM2/23/16
to codenam...@googlegroups.com
Sure. You can override any setting in the config from command line.

Example:
You have config file like this:
---
execution:
- concurrency: 10
  scenario:
    script: my.jmx


Run it like this "bzt myfile.yml -o execution.0.concurrency=100"

Andrey Pohilko
Chief Scientist
P: +7 (909) 631-21-69
BlazeMeter Inc.
--
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/2936f7c6-4c7d-4869-8c0c-f43a87568cd4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

surendra matta

unread,
Feb 23, 2016, 2:50:58 PM2/23/16
to codename-taurus
Thanks for the update , i executed the test by provide the below command unfortunately the test is running with default values , its not overriding the values

CMD:-  "bzt jmeter_csv_2.yml -o execution.O.concurreny=10,ramp-up=20s,hold-for=10m"

Please let me know whether the above cmd is correct or not

regards,
Venkat

surendra matta

unread,
Feb 23, 2016, 3:01:57 PM2/23/16
to codename-taurus
I tried with below one also 

CMD:-  "bzt jmeter_csv_2.yml -o execution.O.concurreny=10 -o execution.O.ramp-up=20s -o execution.O.hold-for=10m"

still it is executing with default values 

surendra matta

unread,
Feb 24, 2016, 10:23:54 AM2/24/16
to codename-taurus
Hi Andrey,

AS per your comments , i tried with multiple options



 After passing  below cmd , i am able to start the test but it is not overriding the values




Below one s merged YML file created by Taurus


---

execution:

  concurrency: 10

  distributed:

  - 10.240.240.57

  - 10.20.101.230

  - 10.20.100.25

  - 10.240.243.9

  - 10.20.100.80

  - 10.240.243.220

  hold-for: 10m

  o:

    concurrency: 20.0

    hold-for: 10m

    ramp-up: 20s

  ramp-up: 100s

  scenario:

    data-sources:

    - path: MySherwin_Users.csv

      quoted: true

    script: D:\apache-jmeter-2.13\bin\My_Sherwin_tauras_1.jmx

modules:

  blazemeter:

    token: '********'

reporting:

- failed-labels: false

  module: blazemeter

  percentiles: true

  summary: true

  test: Mysherwin@1200_0223_Dist Users

  test-duration: true

settings:

  aggregator: consolidator

  artifacts-dir: /tmp/%H%M%S

  check-interval: 1

  default-executor: jmeter

  proxy:

    address: http://proxy.proxysherwin.com:80

    password: '********'

    username: vsm754



Below one i sthe Override settings file created by Taurus


[DEFAULT]

execution.O.concurrency=20

execution.O.ramp-up=20s

execution.O.hold-for=10m


Please help on this


Regards,

Venkat

Andrey Pokhilko

unread,
Feb 24, 2016, 11:06:24 AM2/24/16
to codenam...@googlegroups.com
I clearly see that you use letter "O" instead of zero "0" in your commands. I mean the value of the "-o" option. You just needed to copy my example. The right string is:

bzt jmeter_csv_1.yml -o execution.0.concurrency=20 -o execution.0.ramp-up=20s -o execution.0.hold-for=10m

Andrey Pohilko
Chief Scientist
P: +7 (909) 631-21-69
BlazeMeter Inc.

surendra matta

unread,
Feb 24, 2016, 11:25:37 AM2/24/16
to codename-taurus
Hi Andrey,

I just copied your example and executed in cmd prompt , below is the result . Please check once


Regards,

Venkat

Andrey Pokhilko

unread,
Feb 24, 2016, 11:26:39 AM2/24/16
to codenam...@googlegroups.com
This might mean that you use single-execution format in your config. Then, right command line would be:

bzt jmeter_csv_1.yml -o execution.concurrency=20 -o execution.ramp-up=20s -o execution.hold-for=10m


Andrey Pohilko
Chief Scientist
P: +7 (909) 631-21-69
BlazeMeter Inc.

Andrey Pokhilko

unread,
Feb 24, 2016, 11:28:38 AM2/24/16
to codenam...@googlegroups.com
BTW I've noticed that you have very old Taurus version. It's version 1.2 already there. Consider upgrading it.


Andrey Pohilko
Chief Scientist
P: +7 (909) 631-21-69
BlazeMeter Inc.

surendra matta

unread,
Feb 24, 2016, 11:32:47 AM2/24/16
to codename-taurus
Thanks for your help Andrey , its working now

Quick Question :- What is single and multiple execution format , if you have nay doc , please provide so i t would be great helpful l to me

Regards,
Venkat

Andrey Pokhilko

unread,
Feb 24, 2016, 11:43:49 AM2/24/16
to codenam...@googlegroups.com
The "single" format is something that were used on old Taurus versions. It is considered as deprecated now. You should better use "multi" format.

The single format means that you have just single set of key-value pairs inside your "execution" section. Like this:
---
execution:

  concurrency:10
  scenario:
    script: my.jmx


While multi-format means the "execution" block would allow several items listed. Like this:

---
execution:
- concurrency:10
  scenario:
    script: my.jmx
- concurrency:20
  scenario:
    script: my2.jmx

The multi-format is more extendible and recommended for use in all cases.



Andrey Pohilko
Chief Scientist
P: +7 (909) 631-21-69
BlazeMeter Inc.

surendra matta

unread,
Feb 24, 2016, 1:04:52 PM2/24/16
to codename-taurus
Thanks for the updates

Regards,
Venkat

surendra matta

unread,
Feb 24, 2016, 1:19:23 PM2/24/16
to codename-taurus
HI Andrey ,


FYI i update my Taurus to 8.0.2

Please let know whether the below one is correcet input or not

bzt jmeter_csv_1.yml -o execution.concurrency=20 -o execution.ramp-up=20s -o execution.hold-for=10m -o reporting.test=Mysherwin@120_224

My goal is, for test execution i want to override my report name though command, but i am getting below error

 



Please help on this

Regards,
Venkat

Andrey Pokhilko

unread,
Feb 24, 2016, 1:24:17 PM2/24/16
to codenam...@googlegroups.com
No, it is not correct. The correct option would be -o modules.blazemeter.test=TestName


Andrey Pohilko
Chief Scientist
P: +7 (909) 631-21-69
BlazeMeter Inc.

surendra matta

unread,
Feb 24, 2016, 1:48:01 PM2/24/16
to codename-taurus
I am unable to the values which i passed , in blaze i am seeing test name as Taurus test and find my YML script below

modules:
 blazemeter:
  test: Mysherwin@1200_0223_Dist Users
  token: **************

reporting:
  - module: blazemeter
    summary: true  
    percentiles: true  
    failed-labels: false
    test-duration: true

 Command  line input is " bzt jmeter_csv_1.yml -o execution.concurrency=20 -o execution.ramp-up=20s -o execution.hold-for=10m -o module.blazemeter.test=Mysherwin@120_224 "

In blazemeter i am seeing value as Taurus test

...

surendra matta

unread,
Feb 24, 2016, 3:58:27 PM2/24/16
to codename-taurus
Hi Andrey, 

I am using the below command for overwriting my test name

bzt jmeter_csv_3.yml -o modules.jmeter.path=D:\apache-jmeter-2.13\bin\jmeter.bat -o execution.concurrency=20 -o execution.ramp-up=20s -o execution.hold-for=10m -o module.blazemeter.test=Mysherwin@120_224

And the YML is 

modules:
 blazemeter:
   token: *****
   

reporting:
  - module: blazemeter
    report-name: Mysherwin@1200_0223_Dist Users
    project: Mysherwin
    test: MyTaurus
   #test: Mysherwin@50_0223 Users
    summary: true  
    percentiles: true  
    failed-labels: false
    test-duration: true

Please correct me if i am passing any wrong values . But in Blazemeter i am seeing the value " test: MyTaurus' which i passed in YML.

Please provide your inputs.

Regards,
Venkat

Andrey Pokhilko

unread,
Feb 24, 2016, 3:59:08 PM2/24/16
to codenam...@googlegroups.com
It might be because you use old Taurus. Please upgrade it.


Andrey Pohilko
Chief Scientist
P: +7 (909) 631-21-69
BlazeMeter Inc.
--
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.

surendra matta

unread,
Feb 24, 2016, 4:05:17 PM2/24/16
to codename-taurus
I updgrade it to 8.0.2 or let me know how to upgrade 

Thanks
Venkat
...

Andrey Pokhilko

unread,
Feb 24, 2016, 4:14:07 PM2/24/16
to codenam...@googlegroups.com
There is no version 8.0.2. There's only 1.2.0

This means you did not upgrade it right.


Andrey Pohilko
Chief Scientist
P: +7 (909) 631-21-69
BlazeMeter Inc.
--
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.

surendra matta

unread,
Feb 25, 2016, 9:13:27 AM2/25/16
to codename-taurus
Hi Andrey ,

I update the Taurus by using below command 

pip install --upgrade bzt

and find the snap shot too



But still my version is showing the old version , please let me know how to upgrade 


Regards,
Venkat
...

Andrey Pokhilko

unread,
Feb 25, 2016, 9:55:04 AM2/25/16
to codenam...@googlegroups.com
You are missing lxml library. Please follow the steps described here to download the whl file and install it: http://gettaurus.org/docs/Installation/#Windows

Then try to upgrade Taurus once again.


Andrey Pohilko
Chief Scientist
P: +7 (909) 631-21-69
BlazeMeter Inc.
--
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.

surendra matta

unread,
Feb 25, 2016, 10:07:28 AM2/25/16
to codename-taurus
Hi andrey ,

As per your instruction i download the lxml and  try to execute below command 

pip install lxml-3.5.0-cp27-none-win32.whl

 and i am getting below error



Let me know where we have to place "lxml-3.5.0-cp35-none-win32.whl" in python27 folder .

regards,
venkat
...

surendra matta

unread,
Feb 25, 2016, 10:15:04 AM2/25/16
to codename-taurus
Hi Andrey ,

Finally i tried o install th elxml but i am wheel i snot support to your platfrom.


Please help me on this

Andrey Pokhilko

unread,
Feb 25, 2016, 10:17:28 AM2/25/16
to codenam...@googlegroups.com
It's because you downloaded some file that is not "lxml-3.5.0-cp27-none-win32.whl". Your file has different name. Download the right file and try to install it.


Andrey Pohilko
Chief Scientist
P: +7 (909) 631-21-69
BlazeMeter Inc.
--
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.

surendra matta

unread,
Feb 25, 2016, 10:50:47 AM2/25/16
to codename-taurus
Hi Andrey,

Finally i update the taurus by upgrading the lxml version to 3.5.0 and now my taurus version is v1.2.0

Thanks for you help.

Regards,
Venkat
...

surendra matta

unread,
Feb 25, 2016, 1:07:39 PM2/25/16
to codename-taurus
Hi Andrey,

After updating the taurus to 1.2.0  still i am unable to pass the variable for reproting purpose and it is takingthe defaults reporting values from YML only 

My YML file :-

modules:
 blazemeter:
   test: MyTaurus_0225
   token: *********
   

reporting:
  - module: blazemeter
    report-name: Mysherwin_120users
    project: Mysherwin
    #test: Mysherwin@50_0223 Users
    summary: true  
    percentiles: true  
    failed-labels: false
    test-duration: true

Command executed :-  bzt jmeter_csv_3.yml -o execution.concurrency=20 -o execution.ramp-up=20s -o execution.hold-for=10m -o module.blazemeter.test=Mysherwin@120_225

Let me know f i miss any thing in the above command

Regards,
venkat

Andrey Pokhilko

unread,
Feb 25, 2016, 1:19:06 PM2/25/16
to codenam...@googlegroups.com
In your command line you use "module" while right section name is "modules".


Andrey Pohilko
Chief Scientist
P: +7 (909) 631-21-69
BlazeMeter Inc.
--
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.

surendra matta

unread,
Feb 25, 2016, 1:23:04 PM2/25/16
to codename-taurus
Yeah i tried install below file but i am getting the error its not supported wheel for my OS that reason i update lmxl file to "lxml-3.5.0-cp27-none-win_amd64.whl"  and it upgrade successfully for this version
...

surendra matta

unread,
Feb 25, 2016, 2:40:51 PM2/25/16
to codename-taurus
Yes , Issue got fixed and thanks alot
Reply all
Reply to author
Forward
0 new messages