No success in executing an .yml file

784 views
Skip to first unread message

cosimi...@gmail.com

unread,
Jan 18, 2016, 11:59:55 AM1/18/16
to codename-taurus
Hello,
I am struggling with running an .yml file and I have no clue what's wrong with my JMeter.
When I run this command
C:\Python27\Scripts>bzt PRE_PerformanceClientSide_distributed.yml -report

I get this (well when I run on my computer I've also used API Key, such as '-o modules.blazemeter.token=...' ):

18:48:48 INFO: Taurus CLI Tool v1.0.0
18:48:48 INFO: Starting with configs: ['PRE_PerformanceClientSide_distributed.yml']
18:48:48 INFO: Configuring...
18:48:48 INFO: No personal config: C:\Users\c.lupu\.bzt-rc
18:48:48 INFO: Artifacts dir: C:\Python27\Scripts\2016-01-18_18-48-48.324000
18:48:48 WARNING: There is newer version of Taurus 1.1.0 available, consider upgrading
18:48:48 INFO: Preparing...
18:48:48 WARNING: No BlazeMeter API key provided, will upload anonymously
18:48:50 WARNING: No BlazeMeter API key provided, will upload anonymously
18:48:50 INFO: Starting...
18:48:50 INFO: Initiating data feeding...
18:48:51 INFO: Started data feeding: https://a.blazemeter.com/app/?public-token=0b2p7BmJBlvUP6FSQxuFIS7kI1Y3d6hUZA50dAWCLBkdL6tJ3P#reports/r-ext-569d17731b90a/summary
18:48:51 INFO: Initiating data feeding...
18:48:52 INFO: Started data feeding: https://a.blazemeter.com/app/?public-token=dYBtpIFyaP46qWr9NXcdx6UiHqR9w1jyLXXMOZnhPFgcDm2IhW#reports/r-ext-569d17741afcf/summary
18:48:52 INFO: Waiting for finish...
18:48:52 INFO: Waiting to get first results...
18:48:52 INFO: Waiting to get first results...
18:48:54 INFO: Shutting down...
18:48:54 INFO: Post-processing...
18:48:54 ERROR: Error while post-processing: Traceback (most recent call last):
  File "c:\python27\lib\site-packages\bzt\engine.py", line 209, in post_process
    module.post_process()
  File "c:\python27\lib\site-packages\bzt\modules\provisioning.py", line 64, in post_process
    executor.post_process()
  File "c:\python27\lib\site-packages\bzt\modules\jmeter.py", line 225, in post_process
    raise RuntimeWarning(msg % self.kpi_jtl)
RuntimeWarning: Empty results JTL, most likely JMeter failed: C:\Python27\Scripts\2016-01-18_18-48-48.324000\kpi.jtl

18:48:55 INFO: Test duration: 0:00:05
18:48:55 INFO: Uploading C:\Python27\Scripts\2016-01-18_18-48-48.324000\jmeter.log
18:48:57 INFO: Ending data feeding...
18:48:58 WARNING: Failed to finish online: HTTP Error 401: Unauthorized
18:48:58 INFO: Online report link: https://a.blazemeter.com/app/?public-token=0b2p7BmJBlvUP6FSQxuFIS7kI1Y3d6hUZA50dAWCLBkdL6tJ3P#reports/r-ext-569d17731b90a/summary
18:48:59 INFO: Uploading C:\Python27\Scripts\2016-01-18_18-48-48.324000\jmeter.log
18:49:00 INFO: Ending data feeding...
18:49:01 WARNING: Failed to finish online: HTTP Error 401: Unauthorized
18:49:01 INFO: Online report link: https://a.blazemeter.com/app/?public-token=dYBtpIFyaP46qWr9NXcdx6UiHqR9w1jyLXXMOZnhPFgcDm2IhW#reports/r-ext-569d17741afcf/summary
18:49:01 WARNING: Failed post-processing
18:49:01 ERROR: RuntimeWarning: Empty results JTL, most likely JMeter failed: C:\Python27\Scripts\2016-01-18_18-48-48.324000\kpi.jtl
18:49:01 INFO: Artifacts dir: C:\Python27\Scripts\2016-01-18_18-48-48.324000
18:49:01 WARNING: Done performing with code: 1

If run again, I receive something similar with some changes:
i.e.

18:55:28 INFO: Post-processing...
18:55:28 ERROR: Error while post-processing: Traceback (most recent call last):
  File "c:\python27\lib\site-packages\bzt\engine.py", line 209, in post_process
    module.post_process()
  File "c:\python27\lib\site-packages\bzt\modules\provisioning.py", line 64, in post_process
    executor.post_process()
  File "c:\python27\lib\site-packages\bzt\modules\jmeter.py", line 225, in post_process
    raise RuntimeWarning(msg % self.kpi_jtl)
RuntimeWarning: Empty results JTL, most likely JMeter failed: C:\Python27\Scripts\2016-01-18_18-55-06.380000\kpi.jtl

18:55:28 ERROR: Error while post-processing: Traceback (most recent call last):
  File "c:\python27\lib\site-packages\bzt\engine.py", line 209, in post_process
    module.post_process()
  File "c:\python27\lib\site-packages\bzt\modules\aggregator.py", line 572, in post_process
    for point in self.datapoints(True):
  File "c:\python27\lib\site-packages\bzt\modules\aggregator.py", line 379, in datapoints
    for datapoint in self._calculate_datapoints(final_pass):
  File "c:\python27\lib\site-packages\bzt\modules\aggregator.py", line 592, in _calculate_datapoints
    self._process_underlings(final_pass)
  File "c:\python27\lib\site-packages\bzt\modules\aggregator.py", line 577, in _process_underlings
    for data in [x for x in underling.datapoints(final_pass)]:
  File "c:\python27\lib\site-packages\bzt\modules\aggregator.py", line 379, in datapoints
    for datapoint in self._calculate_datapoints(final_pass):
  File "c:\python27\lib\site-packages\bzt\modules\jmeter.py", line 877, in _calculate_datapoints
    for point in super(JTLReader, self)._calculate_datapoints(final_pass):
  File "c:\python27\lib\site-packages\bzt\modules\aggregator.py", line 474, in _calculate_datapoints
    self.__process_readers(final_pass)
  File "c:\python27\lib\site-packages\bzt\modules\aggregator.py", line 426, in __process_readers
    for result in self._read(final_pass):
  File "c:\python27\lib\site-packages\bzt\modules\jmeter.py", line 849, in _read
    concur = int(row["grpThreads"])
TypeError: int() argument must be a string or a number, not 'NoneType'

Have no clue what to do more, I have JMeter 2.13, updated bzt.

Another thing is that when I run for the first time, lots of JMeter plugins were installed.

Is there something I can do to make it work?
Thanks a lot!

cosimi...@gmail.com

unread,
Jan 18, 2016, 12:20:40 PM1/18/16
to codename-taurus, cosimi...@gmail.com
Forgot to say that running simple test.yml file found in https://github.com/Blazemeter/taurus/ is working properly.

I am using this .yml file:
---
execution:
- concurrency: 1
  ramp-up: 1s
  iterations: 1
  distributed:
    - here is my ip
  scenario:
    script: myTest.jmx
modules:
  jmeter:
    path: D:\apache-jmeter-2.13 - Copy\bin\jmeter.bat
reporting:
- module: blazemeter
- module: console
  test: PerformanceTest

cosimi...@gmail.com

unread,
Jan 18, 2016, 12:31:48 PM1/18/16
to codename-taurus, cosimi...@gmail.com

Is it because I use distributed property, in order to have there IPs where test to run?
If I remove it, test will work but still, I need to perform the test in a distributed way.

Thanks in advance!

Andrey Pokhilko

unread,
Jan 18, 2016, 12:33:11 PM1/18/16
to codenam...@googlegroups.com
Hi,

Can you share your PRE_PerformanceClientSide_distributed.yml file?

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/ab92a15c-3943-4865-888a-8aa9bfeef198%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

cosimi...@gmail.com

unread,
Jan 18, 2016, 1:01:41 PM1/18/16
to codename-taurus
Is the same as the one above, i.e.

I am using this .yml file:
---
execution:
- concurrency: 1
  ramp-up: 1s
  iterations: 1
  distributed:
    - here is my ip
  scenario:
    script: myTest.jmx
modules:
  jmeter:
    path: D:\apache-jmeter-2.13-Copy\bin\jmeter.bat

reporting:
- module: blazemeter
- module: console
  test: PerformanceTest

I removed modules and reporting section and seemed to work, no error noticed, instead noticed that JMeter extra plugins installed (by bzt command) made my test (which was client side JMeter + WebDriver) to fail in Firefox 35. I had another JMeter folder untouched by bzt updates and there everything looks very good, test is running properly in Firefox 35.
I don't know if those extra plugins supposed to help or not, either way, my test run in 'JMeter copy' is corrupted.

Andrey Pokhilko

unread,
Jan 18, 2016, 1:12:24 PM1/18/16
to codenam...@googlegroups.com
First, if you use Selenium testing capabilities, you might find useful Taurus module to run pure Selenium: http://gettaurus.org/docs/Selenium/

Distributed test should work OK with Taurus. From what I understood, in your D:\apache-jmeter-2.13-Copy\bin\jmeter.bat you have some JMeter properties altered in jmeter.properties file, which breaks Taurus result reading. If you will restore all props to default, it should work.

Alternatively, take clean JMeter and install on it those plugins that you want, but make sure no properties files edited. Then point Taurus to use that JMeter.

To help you more, I'd need to get all files from Taurus artifacts folder to review configs and logs.


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.

cosimi...@gmail.com

unread,
Jan 19, 2016, 1:52:20 AM1/19/16
to codename-taurus
Thanks a lot for your very fast answer.
Probably it will help and I will try also using module and until that moment, I will continue trying make it work without it.
I installed a fresh new JMeter copy and when run again, I got same error:

08:39:47 INFO: Post-processing...
08:39:47 ERROR: Error while post-processing: Traceback (most recent call last):

  File "c:\python27\lib\site-packages\bzt\engine.py", line 209, in post_process
    module.post_process()
  File "c:\python27\lib\site-packages\bzt\modules\provisioning.py", line 64, in post_process
    executor.post_process()
  File "c:\python27\lib\site-packages\bzt\modules\jmeter.py", line 225, in post_process
    raise RuntimeWarning(msg % self.kpi_jtl)
RuntimeWarning: Empty results JTL, most likely JMeter failed: C:\Python27\Scripts\2016-01-19_08-39-42.958000\kpi.jtl

I tried to remove these commands from .yml file:

modules:
  jmeter:
    path: D:\apache-jmeter-2.13-Copy\bin\jmeter.bat
reporting:
- module: blazemeter
- module: console
  test: CycleonPerformanceTest3

and test started to run but only open Firefox browser and then stopped, without even filling in address that I was looking for.

At the moment, I have 2 questions:
a) What's wrong with modules and reporting sections from my .yml file
b) Why Firefox just start and then close, below is what I got:


C:\Python27\Scripts>bzt PRE_PerformanceClientSide_distributed.yml -report
08:40:20 INFO: Taurus CLI Tool v1.1.0
08:40:20 INFO: Starting with configs: ['PRE_PerformanceClientSide_distributed.yml']
08:40:20 INFO: Configuring...
08:40:20 INFO: No personal config: C:\Users\c.lupu\.bzt-rc
08:40:20 INFO: Artifacts dir: C:\Python27\Scripts\2016-01-19_08-40-20.194000
08:40:20 INFO: Preparing...
08:40:20 WARNING: No BlazeMeter API key provided, will upload anonymously
08:40:22 INFO: Starting...
08:40:22 INFO: Initiating data feeding...
08:40:22 INFO: Started data feeding: https://a.blazemeter.com/app/?public-token=Q3HQtNL5nqhzp8Es36yEjdtc7srlTkiDqwr8XsgqblqSTaq41f#reports/r-ext-569dda584deb4/summary
08:40:23 INFO: Waiting for finish...
08:40:23 INFO: Waiting to get first results...
Uncaught Exception java.lang.NoClassDefFoundError: com/sun/jna/platform/win32/Kernel32. See log file for details.
Uncaught Exception java.lang.NoClassDefFoundError: org/openqa/selenium/os/Kernel32. See log file for details.
c:\python27\lib\site-packages\bzt\modules\jmeter.py:1033: FutureWarning: The behavior of this method will change in future versions. Use specific 'len(elem)' or 'elem is not None' test instead.
  if elem.getparent() and elem.getparent().tag == 'testResults':
08:40:29 INFO: Shutting down...
08:40:29 INFO: Post-processing...
08:40:29 INFO: Test duration: 0:00:07
08:40:29 INFO: Samples count: 8, 100.00% failures
08:40:29 INFO: Average times: total 0.000, latency 0.000, connect 0.000
08:40:29 INFO: Percentile 0.0%: 0.000
08:40:29 INFO: Percentile 50.0%: 0.000
08:40:29 INFO: Percentile 90.0%: 0.000
08:40:29 INFO: Percentile 95.0%: 0.000
08:40:29 INFO: Percentile 99.0%: 0.000
08:40:29 INFO: Percentile 99.9%: 0.000
08:40:29 INFO: Percentile 100.0%: 0.000
08:40:32 INFO: Uploading C:\Python27\Scripts\2016-01-19_08-40-20.194000\jmeter.log
08:40:33 INFO: Ending data feeding...
08:40:34 INFO: Online report link: https://a.blazemeter.com/app/?public-token=Q3HQtNL5nqhzp8Es36yEjdtc7srlTkiDqwr8XsgqblqSTaq41f#reports/r-ext-569dda584deb4/summary
08:40:34 INFO: Artifacts dir: C:\Python27\Scripts\2016-01-19_08-40-20.194000
08:40:34 INFO: Done performing with code: 0

Know that you're the main developer of Taurus and have no idea how come you have time for answers. Again, thanks a lot for your support, think is the fast answers I've ever received.

cosimi...@gmail.com

unread,
Jan 19, 2016, 2:00:33 AM1/19/16
to codename-taurus, cosimi...@gmail.com
Again bzt installed extra JMeter Plugins and I noticed these new files on my fresh new JMeter copy:
- simple-table-server.sh
- simple-table-server.cmd
- simple-table-server.bsh
- merge-results.properties
- logins.csv

cosimi...@gmail.com

unread,
Jan 19, 2016, 2:28:13 AM1/19/16
to codename-taurus, cosimi...@gmail.com
This is the error that I found in jmeter.log file stored in Python27\Scripts:

2016/01/19 09:09:50 ERROR - com.googlecode.jmeter.plugins.webdriver.sampler.WebDriverSampler: In file: inline evaluation of: ``var pkg = JavaImporter(org.openqa.selenium, org.openqa.selenium.support.ui)  var . . . '' Encountered "var" at line 2, column 1.
 in inline evaluation of: ``var pkg = JavaImporter(org.openqa.selenium, org.openqa.selenium.support.ui)  var . . . '' at line number 2
2016/01/19 09:09:50 ERROR - com.googlecode.jmeter.plugins.webdriver.sampler.WebDriverSampler: In file: inline evaluation of: ``// 1. Go to a page with a form  var pkg = JavaImporter(org.openqa.selenium, org. . . . '' Encountered "var" at line 3, column 1.
 in inline evaluation of: ``// 1. Go to a page with a form  var pkg = JavaImporter(org.openqa.selenium, org. . . . '' at line number 3
2016/01/19 09:09:50 ERROR - com.googlecode.jmeter.plugins.webdriver.sampler.WebDriverSampler: In file: inline evaluation of: ``var pkg = JavaImporter(org.openqa.selenium, org.openqa.selenium.support.ui)  var . . . '' Encountered "var" at line 2, column 1.
 in inline evaluation of: ``var pkg = JavaImporter(org.openqa.selenium, org.openqa.selenium.support.ui)  var . . . '' at line number 2
2016/01/19 09:09:50 ERROR - com.googlecode.jmeter.plugins.webdriver.sampler.WebDriverSampler: In file: inline evaluation of: ``var pkg = JavaImporter(org.openqa.selenium, org.openqa.selenium.support.ui)  var . . . '' Encountered "var" at line 2, column 1.
 in inline evaluation of: ``var pkg = JavaImporter(org.openqa.selenium, org.openqa.selenium.support.ui)  var . . . '' at line number 2
2016/01/19 09:09:51 ERROR - com.googlecode.jmeter.plugins.webdriver.sampler.WebDriverSampler: In file: inline evaluation of: ``var pkg = JavaImporter(org.openqa.selenium, org.openqa.selenium.support.ui)  var . . . '' Encountered "var" at line 2, column 1.
 in inline evaluation of: ``var pkg = JavaImporter(org.openqa.selenium, org.openqa.selenium.support.ui)  var . . . '' at line number 2
2016/01/19 09:09:51 ERROR - com.googlecode.jmeter.plugins.webdriver.sampler.WebDriverSampler: In file: inline evaluation of: ``// Go to a create RMA page var pkg = JavaImporter(org.openqa.selenium, org.openq . . . '' Encountered "var" at line 3, column 1.
 in inline evaluation of: ``// Go to a create RMA page var pkg = JavaImporter(org.openqa.selenium, org.openq . . . '' at line number 3
2016/01/19 09:09:51 ERROR - com.googlecode.jmeter.plugins.webdriver.sampler.WebDriverSampler: In file: inline evaluation of: ``var pkg = JavaImporter(org.openqa.selenium, org.openqa.selenium.support.ui) var  . . . '' Encountered "var" at line 2, column 1.
 in inline evaluation of: ``var pkg = JavaImporter(org.openqa.selenium, org.openqa.selenium.support.ui) var  . . . '' at line number 2
2016/01/19 09:09:51 ERROR - com.googlecode.jmeter.plugins.webdriver.sampler.WebDriverSampler: In file: inline evaluation of: `` var pkg = JavaImporter(org.openqa.selenium, org.openqa.selenium.support.ui) var . . . '' Encountered "var" at line 2, column 1.
 in inline evaluation of: `` var pkg = JavaImporter(org.openqa.selenium, org.openqa.selenium.support.ui) var . . . '' at line number 2
2016/01/19 09:09:51 INFO  - jmeter.threads.JMeterThread: Thread is done: CLUPU_Users 1-1
2016/01/19 09:09:51 INFO  - jmeter.threads.JMeterThread: Thread finished: CLUPU_Users 1-1
2016/01/19 09:09:51 ERROR - jmeter.JMeter: Uncaught exception:  java.lang.NoClassDefFoundError: com/sun/jna/platform/win32/Kernel32
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(Unknown Source)
    at java.security.SecureClassLoader.defineClass(Unknown Source)
    at java.net.URLClassLoader.defineClass(Unknown Source)
    at java.net.URLClassLoader.access$100(Unknown Source)
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at org.openqa.selenium.os.ProcessUtils.killWinProcess(ProcessUtils.java:133)
    at org.openqa.selenium.os.ProcessUtils.killProcess(ProcessUtils.java:81)
    at org.openqa.selenium.os.UnixProcess$SeleniumWatchDog.destroyHarder(UnixProcess.java:247)
    at org.openqa.selenium.os.UnixProcess$SeleniumWatchDog.access$200(UnixProcess.java:201)
    at org.openqa.selenium.os.UnixProcess.destroy(UnixProcess.java:125)
    at org.openqa.selenium.os.CommandLine.destroy(CommandLine.java:153)
    at org.openqa.selenium.firefox.FirefoxBinary.quit(FirefoxBinary.java:259)
    at org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.quit(NewProfileExtensionConnection.java:204)
    at org.openqa.selenium.firefox.FirefoxDriver$LazyCommandExecutor.quit(FirefoxDriver.java:377)
    at org.openqa.selenium.firefox.FirefoxDriver.stopClient(FirefoxDriver.java:323)
    at org.openqa.selenium.remote.RemoteWebDriver.quit(RemoteWebDriver.java:467)
    at com.googlecode.jmeter.plugins.webdriver.config.WebDriverConfig.quitBrowser(WebDriverConfig.java:269)
    at com.googlecode.jmeter.plugins.webdriver.config.WebDriverConfig.threadFinished(WebDriverConfig.java:244)
    at org.apache.jmeter.threads.JMeterThread$ThreadListenerTraverser.addNode(JMeterThread.java:612)
    at org.apache.jorphan.collections.HashTree.traverseInto(HashTree.java:998)
    at org.apache.jorphan.collections.HashTree.traverse(HashTree.java:980)
    at org.apache.jmeter.threads.JMeterThread.threadFinished(JMeterThread.java:584)
    at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:315)
    at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException: com.sun.jna.platform.win32.Kernel32
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    ... 30 more

2016/01/19 09:09:51 INFO  - jmeter.engine.StandardJMeterEngine: Notifying test listeners of end of test
2016/01/19 09:09:51 INFO  - jmeter.services.FileServer: Close: form_data_pre.csv
2016/01/19 09:09:51 INFO  - jmeter.engine.StandardJMeterEngine: Forced JVM shutdown requested at end of test
2016/01/19 09:09:51 ERROR - jmeter.JMeter: Uncaught exception:  java.lang.NoClassDefFoundError: org/openqa/selenium/os/Kernel32
    at org.openqa.selenium.os.ProcessUtils.killWinProcess(ProcessUtils.java:133)
    at org.openqa.selenium.os.ProcessUtils.killProcess(ProcessUtils.java:81)
    at org.openqa.selenium.os.UnixProcess$SeleniumWatchDog.destroyHarder(UnixProcess.java:247)
    at org.openqa.selenium.os.UnixProcess$SeleniumWatchDog.access$200(UnixProcess.java:201)
    at org.openqa.selenium.os.UnixProcess.destroy(UnixProcess.java:125)
    at org.openqa.selenium.os.CommandLine.destroy(CommandLine.java:153)
    at org.openqa.selenium.firefox.FirefoxBinary.quit(FirefoxBinary.java:259)
    at org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.quit(NewProfileExtensionConnection.java:204)
    at org.openqa.selenium.firefox.FirefoxDriver$LazyCommandExecutor.quit(FirefoxDriver.java:377)
    at org.openqa.selenium.firefox.FirefoxDriver.stopClient(FirefoxDriver.java:323)
    at org.openqa.selenium.remote.RemoteWebDriver.quit(RemoteWebDriver.java:467)
    at com.googlecode.jmeter.plugins.webdriver.config.WebDriverConfig.quitBrowser(WebDriverConfig.java:269)
    at com.googlecode.jmeter.plugins.webdriver.config.WebDriverConfig$1.run(WebDriverConfig.java:227)

What could be wrong with 'var'? As I said, I can run this test smoothly on my unaltered copy of JMeter (run through JMeter GUI), this is somehow related to the plugins installed.

cosimi...@gmail.com

unread,
Jan 20, 2016, 9:41:54 AM1/20/16
to codename-taurus, cosimi...@gmail.com
I did my best to find the answer digging into Google. There is something that must be said, it's working properly and still, something is strange related to taurus, even if I specified desired path, it still downloads JMeter plugins into Users\MyUsers directory, basically I expected not to install anything.
Important to mention that my test contained Jmeter + JMeterWebDriver Sampler.
What I did was:

- Uninstall python
- Remove .bzt folder from C:\Users\MyUser
- Install taurus, python(2.7.11 - enabling option 'Add python.exe to Path') using http://gettaurus.org/docs/Installation/
- Download JMeter 2.13 again
- Manual unzip JMeterPlugins-Extras-1.3.1, JMeterPlugins-ExtrasLibs-1.3.1, JMeterPlugins-Standard-1.3.1, JMeterPlugins-WebDriver-1.3.1 taken from http://jmeter-plugins.org/downloads/all/. Unzip was done in JMeter home folder.
- Follow best answer from http://stackoverflow.com/questions/31533283/jmeter-plugins-1-3-error-while-starting-webdrivertest, i.e. "An issue in the fact that you have different versions of same JAR in lib : httpclient-4.2.6.jar, httpclient-4.5.jar, httpcore-4.2.5.jar, httpcore-4.4.1.jar, httpmime-4.2.6.jar, httpmime-4.5.jar. Need to keep the most up to date version of each not both."
- Download jar for 2.47.0 from http://search.maven.org/#search%7Cga%7C1%7Cfc%3Aorg.openqa.selenium.os.Kernel32 and put in into jmeter/lib directory (I already had it but still did it).
- Manual add platform-3.5.1.jar and jna-3.3.0.jar into jmeter/lib directory.

Then I navigate to C:\Python27\Scripts directory and I wrote this .yml file:
---
execution:
  scenario:
    script: testWebDriverSampler.jmx
modules:
  jmeter:
    path: C:\Users\MyUser\Desktop\apache-jmeter-2.13Work20Jan2016Copy\bin\jmeter.bat

reporting:
- module: blazemeter
- module: console
  test: CycTest

and then in cmd I wrote this command C:\Python27\Scripts>bzt testWebDriverSampler.jmx -o modules.blazemeter.token=???????????????????? -report, result being:

16:13:36 INFO: Taurus CLI Tool v1.1.0
16:13:36 INFO: Starting with configs: ['c:\\users\\c00f7~1.bla\\appdata\\local\\temp\\jmx_vklqrb.json']
16:13:36 INFO: Configuring...
16:13:36 INFO: No personal config: C:\Users\MyUser\.bzt-rc
16:13:36 INFO: Artifacts dir: C:\Python27\Scripts\2016-01-20_16-13-36.629000
16:13:36 INFO: Preparing...
16:13:37 INFO: Installing JMeter
16:13:37 INFO: Will try to install JMeter into C:\Users\MyUser\.bzt\jmeter-taurus
100% [==========================================================] Time: 0:00:13
16:13:50 INFO: Unzipping c:\users\c00f7~1.bla\appdata\local\temp\tmp1v_tqf.zip to C:\Users\MyUser\.bzt\jmeter-taurus
16:13:59 INFO: Installing JMeterPlugins
16:13:59 INFO: Downloading http://jmeter-plugins.org/files/JMeterPlugins-Standard-1.3.1.zip
100% [==========================================================] Time: 0:00:06
16:14:05 INFO: Unzipping c:\users\c00f7~1.bla\appdata\local\temp\Standardp0bof9.zip
16:14:05 INFO: Downloading http://jmeter-plugins.org/files/JMeterPlugins-Extras-1.3.1.zip
100% [==========================================================] Time: 0:00:02
16:14:07 INFO: Unzipping c:\users\c00f7~1.bla\appdata\local\temp\Extrasnjlgga.zip
16:14:08 INFO: Downloading http://jmeter-plugins.org/files/JMeterPlugins-ExtrasLibs-1.3.1.zip
100% [==========================================================] Time: 0:00:13
16:14:21 INFO: Unzipping c:\users\c00f7~1.bla\appdata\local\temp\ExtrasLibs2ektzj.zip
16:14:21 INFO: Downloading http://jmeter-plugins.org/files/JMeterPlugins-WebDriver-1.3.1.zip
100% [==========================================================] Time: 0:00:33
16:14:55 INFO: Unzipping c:\users\c00f7~1.bla\appdata\local\temp\WebDriverpmwy3t.zip
16:14:57 INFO: Starting...
16:14:57 INFO: Initiating data feeding...
16:14:59 INFO: Started data feeding: https://a.blazemeter.com/app/#reports/r-ext-blabla
16:14:59 INFO: Waiting for finish...
16:14:59 INFO: Waiting to get first results...
16:15:26 INFO: Did not mute console logging
16:15:26 INFO: Waiting for finish...

Uncaught Exception java.lang.NoClassDefFoundError: com/sun/jna/platform/win32/Kernel32. See log file for details.
Uncaught Exception java.lang.NoClassDefFoundError: org/openqa/selenium/os/Kernel32. See log file for details.
16:15:37 INFO: Shutting down...
16:15:37 INFO: Post-processing...
16:15:37 INFO: Test duration: 0:00:40
16:15:37 INFO: Samples count: 5, 0.00% failures
16:15:37 INFO: Average times: total 3.579, latency 0.000, connect 0.000
16:15:37 INFO: Percentile 0.0%: 1.539
16:15:37 INFO: Percentile 50.0%: 2.100
16:15:37 INFO: Percentile 90.0%: 6.937
16:15:37 INFO: Percentile 95.0%: 6.937
16:15:37 INFO: Percentile 99.0%: 6.937
16:15:37 INFO: Percentile 99.9%: 6.937
16:15:37 INFO: Percentile 100.0%: 6.937
16:15:38 INFO: Uploading all artifacts as jtls_and_more.zip ...
16:15:39 INFO: Uploading C:\Python27\Scripts\2016-01-20_16-13-36.629000\jmeter.log
16:15:41 INFO: Ending data feeding...
16:15:42 INFO: Online report link: https://a.blazemeter.com/app/#reports/r-ext-blabla
16:15:42 INFO: Artifacts dir: C:\Python27\Scripts\2016-01-20_16-13-36.629000
16:15:42 INFO: Done performing with code: 0

Test worked, it logged in successfully, searched something and then located a desired cell.
What remained to be clarified:
1. Why path given in
modules:
  jmeter:
    path: C:\Users\MyUser\Desktop\apache-jmeter-2.13Work20Jan2016Copy\bin\jmeter.bat
is not working?
2. I am using Windows 7 and have no clue about how to create .bzt-rc file
3. Because it didn't use specified path, some uncaught exceptions occur:

Uncaught Exception java.lang.NoClassDefFoundError: com/sun/jna/platform/win32/Kernel32. See log file for details.
Uncaught Exception java.lang.NoClassDefFoundError: org/openqa/selenium/os/Kernel32. See log file for details.

Thanks a lot Andrey for your very good work in maintaining Taurus, it helps lots people. Great Job!

cosimi...@gmail.com

unread,
Jan 20, 2016, 9:52:20 AM1/20/16
to codename-taurus, cosimi...@gmail.com
Sorry, I didn't pay attention at what I executed in command line. Noticed that I executed .jmx file instead of .yml file and this answer to remaining questions 1 and 3.
It remained only question 2, how could I create .bzt-rc file in Windows, I know that it's not something related to this chat subject.
And something to think about, how to improve installing JMeter through bzt command in Users\MyUser directory in order to avoid exceptions:

"Uncaught Exception java.lang.NoClassDefFoundError: com/sun/jna/platform/win32/Kernel32. See log file for details. Uncaught Exception java.lang.NoClassDefFoundError: org/openqa/selenium/os/Kernel32. See log file for details."

Have a very nice day!

cosimi...@gmail.com

unread,
Jan 20, 2016, 11:26:50 AM1/20/16
to codename-taurus, cosimi...@gmail.com
Another thing, it could help someone, Path must not include spaces within it, in my case was "path: D:\apache-jmeter-2.13 - Copy\bin\jmeter.bat", so I had 2 spaces between 13 and hyphen and Copy.
Probably, everything below Path command is not executed, just correct me if I'm wrong.

Have a nice evening!
Reply all
Reply to author
Forward
0 new messages