Unable to generate report csv file.

527 views
Skip to first unread message

Jayakrishnan Nair

unread,
Jul 19, 2016, 7:55:48 AM7/19/16
to codename-taurus
Hi All,
           I was unable to generate report csv file. Below is the command executed. I have also attached jmx file. Could you please help whether option given in command line is wrong or I have try any other way.

D:\Python27\Scripts>bzt.exe -o modules.reporting.dump-csv="D:\SC_browse_App_result.csv" D:\<path>\SC_Browse_App.jmx



My project is basically jmeter-selenium plugin . I have created a script which actually run on the selenium grid.





  



SC_Browse_App.jmx
effective.yml
merged.yml
modified_SC_Browse_App.jmx

pri...@blazemeter.com

unread,
Jul 19, 2016, 8:19:29 AM7/19/16
to codename-taurus
Hi,

Yeah, you're trying to put `dump-csv` in `modules` section, while it actually belongs in `reporting` section element.
I would suggest creating a simple YAML config, so you can put your Taurus settings into it and not in command line overrides.

---
execution:
- scenario: SC_Browse_App.jmx

reporting:
- module: final_stats
  dump-csv: SC_browse_App_result.csv


  Dmitri

ta...@blazemeter.com

unread,
Jul 19, 2016, 8:22:58 AM7/19/16
to codename-taurus
Hi. Cause will be clearer if you add full artifacts dir (zip it before)
---------
Taras 

On Tuesday, July 19, 2016 at 2:55:48 PM UTC+3, Jayakrishnan Nair wrote:

Jayakrishnan Nair

unread,
Jul 19, 2016, 9:40:26 AM7/19/16
to codename-taurus
Thanks Dmitri, I worked.

Jayakrishnan Nair

unread,
Jul 19, 2016, 9:41:18 AM7/19/16
to codename-taurus
Hi Taras,
                 I have uploaded the artifacts folder.
2016-07-19_12-46-00.763000.zip

Jayakrishnan Nair

unread,
Jul 20, 2016, 5:09:27 AM7/20/16
to codename-taurus

Hi Dmitri,
                     I am using jmeter selenium plugin to run my test cases. I am using selenium grid for test to run. How can we pass the selenium grid url when a  test is start  from Taurus tools,so that it can override selenium grid url that is saved in my jmx file.

Thanks
Jayakrishnan Nair



  



pri...@blazemeter.com

unread,
Jul 20, 2016, 10:41:20 AM7/20/16
to codename-taurus
Hi,

You can use JMeter variables for that. Just replace the usage of selenium grid url in your JMX file with variable lookup (like ${SELENIUM_GRID_HOST}) and add `variables` section with the right url to Taurus scenario.

---
execution
:
- scenario:
    script
: your.jmx
    variables
:
      SELENIUM_GRID_URL
: http://192.168.0.5:4444/hub


  Dmitri

Jayakrishnan Nair

unread,
Jul 20, 2016, 11:49:28 AM7/20/16
to codename-taurus
Thanks a lot Dmitri :). Taurus is really awesome tool, I still have a lot to explore in the tool.

Jayakrishnan Nair

unread,
Jul 20, 2016, 1:49:20 PM7/20/16
to codename-taurus

Hi Dmitri,
              Tried using  Blazemeter Cloud with trail account API key but encountered below error.
  File "D:\Python27\lib\site-packages\bzt\cli.py", line 155, in perform
    self.engine.prepare()
  File "D:\Python27\lib\site-packages\bzt\engine.py", line 115, in prepare
    self.__prepare_provisioning()
  File "D:\Python27\lib\site-packages\bzt\engine.py", line 452, in __prepare_provisioning
    self.provisioning.prepare()
  File "D:\Python27\lib\site-packages\bzt\modules\blazemeter.py", line 1095, in prepare
    raise ManualShutdown("Done listing locations")
ManualShutdown: Done listing locations


Below is config.yaml file

---
execution:
- scenario: D:\old_machine\Softwares\apache-jmeter-2.12\backup\SC_Browse_App.jmx
  concurrency:
     cloud: 20
  ramp-up: 5m
  hold-for: 30m
  locations:
    azure-east-us-1: 1
    azure-west-us-1: 1
provisioning: cloud

scenarios:
  simple:
    script: D:\old_machine\Softwares\apache-jmeter-2.12\backup\SC_Browse_App.jmx


reporting:
- module: final_stats
  dump-csv: SC_browse_App_result.csv
  module: final_stats


Command for execution
D:\Python27\Scripts>bzt.exe  -locations -o modules.cloud.token=<api_token> config.yaml






bzt.log

Dmitri Pribysh

unread,
Jul 20, 2016, 1:58:52 PM7/20/16
to Jayakrishnan Nair, codename-taurus

"-locations" command line switch makes Taurus print list of available cloud locations and then halt. Try running Taurus without it.


--
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/2da4f609-2d50-4fe6-aba4-577e5d29386d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Jayakrishnan Nair

unread,
Jul 23, 2016, 1:49:54 AM7/23/16
to codename-taurus, jai12...@gmail.com
Hi Dmitri,
              I tried using the cloud infra blazemeter, there was some issue. Below is the error.

D:\Python27\Scripts>bzt.exe  -o modules.cloud.token=7aaca543e5a7a898d608  config
.yaml
08:37:42 INFO: Taurus CLI Tool v1.6.5
08:37:42 INFO: Starting with configs: ['config.yaml']
08:37:42 INFO: Configuring...
08:37:42 INFO: No personal config: C:\Users\jnair\.bzt-rc
08:37:42 INFO: Artifacts dir: D:\Python27\Scripts\2016-07-21_08-37-42.698000
08:37:42 INFO: Preparing...
08:37:51 INFO: Starting...
08:37:51 INFO: Waiting for results...
08:37:51 INFO: Initiating cloud test with https://a.blazemeter.com ...
08:37:53 INFO: Started cloud test: https://a.blazemeter.com/app/#reports/1545588
4
08:37:54 INFO: Cloud test status: BOOT_STARTING
08:40:25 WARNING: Failed to get test status, will retry in 10.0 seconds...
08:40:36 INFO: Succeeded with retry
08:40:36 INFO: Cloud test status: TAURUS_ENGINE_INIT
08:41:13 INFO: Cloud test status: ENDED
08:41:13 INFO: Test was stopped in the cloud: ENDED
08:41:14 WARNING: Cloud test has probably failed with message: RuntimeError: Fai
led to prepare on https://52.186.127.39:8087: RuntimeError: XML parsing failed f
or file D:\old_machine\Softwares\apache-jmeter-2.12\backup\SC_Browse_App.jmx: Er
ror reading file 'D:\old_machine\Softwares\apache-jmeter-2.12\backup\SC_Browse_A
pp.jmx': failed to load external entity "D:\old_machine\Softwares\apache-jmeter-
2.12\backup\SC_Browse_App.jmx"
08:41:18 WARNING: Please wait for graceful shutdown...
08:41:18 INFO: Shutting down...
08:41:18 INFO: Post-processing...
08:41:21 INFO: Test duration: 0:03:30
08:41:21 INFO: Test duration: 0:03:30
08:41:21 INFO: Artifacts dir: D:\Python27\Scripts\2016-07-21_08-37-42.698000
08:41:21 INFO: Done performing with code: 0
bzt.log
cloud.yml
effective.yml

ta...@blazemeter.com

unread,
Jul 23, 2016, 2:58:10 AM7/23/16
to codename-taurus, jai12...@gmail.com
Hi there.
I took a look at your jmx and found out that it uses selenium/webdriver that missed in the cloud.
It's possible to install it by different workarounds like shellexec usage. 
If you can wait for some time there is very comfortable plugins installation in our next release. I hope it will get into the cloud very soon. 

Andrey Pokhilko

unread,
Jul 23, 2016, 8:20:26 AM7/23/16
to codenam...@googlegroups.com
Looks like you use Include Controller with absolute paths. Is it correct?

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

Jayakrishnan Nair

unread,
Aug 9, 2016, 1:55:38 PM8/9/16
to codename-taurus
Hi Andrey,
                 Can you send a example config of running selenium webdriver Java code in Taurus. Previously I was using Jmeter-selenium plugin. With Java code I could also plugin my dynatrace while running load test. I already have webdriver code but don't know what config is used to run the selenium java code.

Hope you understand my requirement.

Thanks
Jayakrishnan Nair

Andrey Pokhilko

unread,
Aug 9, 2016, 2:43:06 PM8/9/16
to codenam...@googlegroups.com

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

Jayakrishnan Nair

unread,
Aug 10, 2016, 1:23:24 AM8/10/16
to codename-taurus
Hi Andrey,
                 Thank you for giving examples. Will work on the executing the code with Java. In the yml files , I see only java file but where do we specify the library location and complier flags.

Thank you for your time.

Jayakrishnan Nair

Andrey Pokhilko

unread,
Aug 10, 2016, 3:27:22 AM8/10/16
to codenam...@googlegroups.com

Look here: http://gettaurus.org/docs/Selenium/#Scenario-Samples

There is option "additional-classpath" to specify your custom libraries.


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.

Jayakrishnan Nair

unread,
Aug 10, 2016, 6:53:16 AM8/10/16
to codename-taurus
Hi Andrey,
                I see the support for JUnit, just curious to know whether you support TestNG framework ?

Thanks

Andrey Pokhilko

unread,
Aug 10, 2016, 8:02:34 AM8/10/16
to codenam...@googlegroups.com

Hi,

We don't support TestNG framework at a moment, sorry


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

ankitj...@gmail.com

unread,
Nov 29, 2017, 7:57:13 AM11/29/17
to codename-taurus
Hi,

I am using the below command for generates the CSV file in Jenkins but unable to success.
Could you please help me on that:


bzt -o modules.jmeter.path=C:\Python27\Scripts -o execution.scenario.script=C:\Python27\Scripts\Jmeter.jmx -o execution.iterations=10 -o execution.concurrency=30 -o execution.reporting.module=console -o execution.reporting.module=final-stats -o execution.reporting.summary=true -o execution.reporting.percentiles=true -o execution.reporting.failed-labels=false -o execution.reporting.failed-test-duration=true -o execution.reporting.dump-csv=C:\Python27\Scripts\Reports\perf_result_sam_csv.csv

Andrey Pokhilko

unread,
Nov 29, 2017, 8:06:22 AM11/29/17
to codenam...@googlegroups.com

Hi,

There is no "execution.reporting" in configuration. Reporting is top-level section with list of items under it.

Your command-line looks very complex, why don't make YAML file to manage it easier?


Andrey Pohilko
Chief Scientist
P: +7 (909) 631-21-69
BlazeMeter Inc.
29.11.2017 15:57, ankitj...@gmail.com пишет:
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.


Hi,

I am using the below command for generates the CSV file in Jenkins but unable to success.
Could you please help me on that:


bzt -o modules.jmeter.path=C:\Python27\Scripts -o execution.scenario.script=C:\Python27\Scripts\Jmeter.jmx  -o execution.iterations=10 -o execution.concurrency=30 -o execution.reporting.module=console -o execution.reporting.module=final-stats -o execution.reporting.summary=true -o execution.reporting.percentiles=true -o execution.reporting.failed-labels=false -o execution.reporting.failed-test-duration=true  -o execution.reporting.dump-csv=C:\Python27\Scripts\Reports\perf_result_sam_csv.csv

--
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://urldefense.proofpoint.com/v2/url?u=https-3A__groups.google.com_d_msgid_codename-2Dtaurus_eec932a5-2D9cf1-2D4365-2D95b8-2Db41ef9d7f23f-2540googlegroups.com&d=DwIFaQ&c=_hRq4mqlUmqpqlyQ5hkoDXIVh6I6pxfkkNxQuL0p-Z0&r=TYaXQ-5u93AENE9irpiEsQDvdSpc1NV3Mu3uPc4zqskaIMBFIWPTByAIcCm5xjEb&m=miQqcrnVhh3MTETLQ9mz_Hr5aTNM7kz3J-CMdfW9-eo&s=HuvGmUZzrOZ9HOw6FKIcg14YlnJqq8pSzNTlTPdRRyg&e=.
For more options, visit https://urldefense.proofpoint.com/v2/url?u=https-3A__groups.google.com_d_optout&d=DwIFaQ&c=_hRq4mqlUmqpqlyQ5hkoDXIVh6I6pxfkkNxQuL0p-Z0&r=TYaXQ-5u93AENE9irpiEsQDvdSpc1NV3Mu3uPc4zqskaIMBFIWPTByAIcCm5xjEb&m=miQqcrnVhh3MTETLQ9mz_Hr5aTNM7kz3J-CMdfW9-eo&s=ylekgIz_p2nDUxYecvBzwyJz3Z7l5CJDawOOhO5WzoQ&e=.

ankitj...@gmail.com

unread,
Nov 29, 2017, 2:33:05 PM11/29/17
to codename-taurus
I want to give jmx file parameter in runtime in Jenkins.
That’s why I am using command line parameter.
Do you have any solutions for the same.
Even I am unable to generate BlazeMeter report in Jenkins with using yml file.
Could you please help on this
Reply all
Reply to author
Forward
0 new messages