How to execute blazemeter/taurus after building docker image?

1,780 views
Skip to first unread message

Jon Thor Austen

unread,
Feb 19, 2018, 2:24:57 PM2/19/18
to codename-taurus
Hello,

How to execute blazemeter/taurus after building docker image?

I created directories /tmp/my-test  and /tmp/artifacts   on my mac.   I put the existing.yml  and existing.jmx  in the /tmp/my-test folder.

I built blazemeter/taurus locally and tagged it   djangofan/taurus:v1

When I run it , I get this error.  I tried all sorts of variations on this command and I always get the same error :


| ~/workspace/taurus/examples/jmeter @ MACPRO (jausten) 

| => docker run --rm -v /tmp/my-test/:/bzt-configs -v /tmp/artifacts/:/tmp/artifacts djangofan/taurus:v1 existing.yml

19:18:26 INFO: Taurus CLI Tool v1.10.5

19:18:26 INFO: Starting with configs: ['existing.yml']

19:18:26 INFO: Configuring...

19:18:26 ERROR: Config Error: Error when reading config file 'existing.yml': [Errno 2] No such file or directory: 'existing.yml'

19:18:26 INFO: Post-processing...

19:18:26 INFO: Artifacts dir: None

19:18:26 INFO: Log file: /tmp/artifacts/bzt.log

19:18:26 WARNING: Done performing with code: 1

grey....@gmail.com

unread,
Feb 20, 2018, 1:40:20 AM2/20/18
to codename-taurus
Hello.
Could you explain what did you build your own image in order to?
To easy start I recommend to use our image  (http://gettaurus.org/docs/Installation/#Docker-Image)
as we can help you with possible problems here.
If it works but doesn't fit for specific purposes you have to discover docker files diff 
and/or use interactive mode to debug your container.

---
Taras
Message has been deleted

Jon Thor Austen

unread,
Feb 20, 2018, 6:20:41 PM2/20/18
to codename-taurus
Taras,

I just did this;
  1. Forked blazemeter/taurus
  2. Built it locally using docker build .
  3. Otherwise same as description in my original post
I finally got it working after spending a little more time.   I think where I went wrong is that I wasn't careful enough with the first few lines of the .yml  file and the `scenarios:`  section.    I'll have to experiment some more before i know where I went wrong.   If I figure it out, ill post something here again.

-jon

Jon Thor Austen

unread,
Feb 21, 2018, 12:48:53 AM2/21/18
to codename-taurus
I got it working , but I still have a question:


Q:  I enabled  `module: console`   but I only see regular standard output.  How do I get the console to work during my load test?

Andrey Pokhilko

unread,
Feb 21, 2018, 5:40:49 AM2/21/18
to codenam...@googlegroups.com

Hi,

Change "-i" into "-it" in command-line (https://gist.github.com/mitchwongho/11266726)


Andrey Pohilko
Chief Scientist
P: +7 (909) 631-21-69
BlazeMeter Inc.
21.02.2018 08:48, Jon Thor Austen пишет:
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.

I got it working , but I still have a question:


Q:  I enabled  `module: console`   but I only see regular standard output.  How do I get the console to work during my load test?
--
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/3ae53a97-eaff-41b5-9994-c068de15aa32%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Jon Thor Austen

unread,
Feb 21, 2018, 5:56:29 PM2/21/18
to codename-taurus
Thank you Andrey!

Your suggestion worked!  Is there any way you can catch that error in code and suggest to the user to use -it ?

I found this script command (below) works very well for me, which is slightly different than you have documented it.    I would recommend reviewing  since I think this way is easier to understand. This way, outputs are placed in local folder on your host system :

mv ./artifacts artifacts_$(date +%d-%m-%Y-%H-%M-%S)
PWD
=`pwd`
echo
"Running tests from folder ${PWD} ..."
sudo docker run
-it --rm -v $PWD/bzt-configs:/bzt-configs -v $PWD/artifacts:/tmp/artifacts blazemeter/taurus events.yml



-Jon

Andrey Pokhilko

unread,
Feb 22, 2018, 3:11:39 AM2/22/18
to codenam...@googlegroups.com

I have fixed in documentation to use "-it" flag.


Andrey Pohilko
Chief Scientist
P: +7 (909) 631-21-69
BlazeMeter Inc.
22.02.2018 01:56, Jon Thor Austen пишет:
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.

Delio Alejando Rodríguez Mendoza

unread,
Mar 18, 2021, 10:46:12 PM3/18/21
to codename-taurus
Hello All
I have this taurus_config.yml:

modules:
  blazemeter:
    token: ...
  console:
    # disable console reporter
    disable: false  # default: auto

    # configure screen type
    screen: console
    # valid values are:
    # - console (ncurses-based dashboard, default for *nix systems)
    # - gui (window-based dashboard, default for Windows, requires Tkinter)
    # - dummy (text output into console for non-tty cases)

    dummy-cols: 180  # width for dummy screen
    dummy-rows: 100  # height for dummy screen

services:

- module: monitoring
  server-agent:
  - address: 100.85....
    label: US3AP....
    metrics:
    - cpu
    - memory:usedperc
    - disks:writes
    - disks:reads
    - network:rx
    - network:tx
    - swap
  - address: 100.85...
    label: US3AP....
    metrics:
    - cpu
    - memory:usedperc
    - disks:writes
    - disks:reads
    - network:rx
    - network:tx
    - swap

reporting:
- module: passfail
  criteria:
  - class: bzt.modules.monitoring.MonitoringCriteria
    subject: US3A.../cpu
    condition: '>'
    threshold: 120
    timeframe: 5s

- module: blazemeter
  report-name: ugp-israel-report-cst
  test: Taurus Israel
  project: UGP-ISRAEL-ABS
- module: passfail
  criteria:
  - avg-rt>3000ms, stop as failed
  - failures>1%, stop as failed
- module: final-stats
  dump-xml: stats.xml
execution:
- scenario: simple

scenarios:
  simple:
    script: TC05_Online_sale_+_update_settlement_(israel_flow).jmx
    variables:
      server_port: 443
      server_protocol: https
    properties:
      TC01threads: 1
      server_ip: us3cst.tpaasgateway.com

By themes of network ask me change that service-agent connect to a url, i try change the address component but the jenkins show this:

ERROR: ValueError: invalid literal for int() with base 10: '//us3cst.tp....com' 

I assumetd that have to change the address component already tried with url and server_ip, but the jenkins show this: 

ERROR: Config Error: ServerAgent client requires address parameter  

I have searched on this topic and I can not find anything, please, any help would help me, thank you very much. 

grey....@gmail.com

unread,
Mar 22, 2021, 3:21:46 AM3/22/21
to codename-taurus
Hello.
To help us could please:
1. start new topic for your question.
2. make your config as simple as possible

---
Taras

Reply all
Reply to author
Forward
0 new messages