Taurus throws error on custom config file

765 views
Skip to first unread message

rajani...@gmail.com

unread,
Mar 16, 2017, 5:11:24 PM3/16/17
to codename-taurus
Hello,

When i tried to execute the test for the existing jmeter script  via Taurus throws error at Line 1 & Line15. I am not able to figured it out what's wrong in the file.

C:\Python27\Scripts>bzt C:/JMETER/LR2JMeter/NGP/Scripts/NGP_PensionReport.jmx
13:40:09 INFO: Taurus CLI Tool v1.8.1
13:40:09 INFO: Starting with configs: ['c:\\users\\rp091176\\appdata\\local\\temp\\jmx_zg9iab.json']
13:40:09 INFO: Configuring...
13:40:09 INFO: No personal config: C:\Users\rp091176\.bzt-rc
13:40:09 ERROR: Config Error: Error when reading config file 'c:\etc\bzt.d\config-custom.json': while parsing a flow mapping
  in "c:\etc\bzt.d\config-custom.json", line 1, column 1
expected ',' or '}', but got '<scalar>'
  in "c:\etc\bzt.d\config-custom.json", line 15, column 3
13:40:09 INFO: Post-processing...
13:40:09 INFO: Artifacts dir: None
13:40:09 INFO: Log file: c:\users\rp091176\appdata\local\temp\bzt_4xfci8.log
13:40:09 WARNING: Done performing with code: 1

Below is my config file.


{
  "execution": [
    {
      "executor": "jmeter",
      "scenario": "NGP_PensionReport"
    }
  ],
  "scenarios": {
     "sample": {
       "script": {
         "path": "C:/JMETER/LR2JMeter/NGP/Scripts/NGP_PensionReport.jmx"
       }
     }
  }
  "provisioning": "local",
  "aggregator": "aggregator",
  "reporting": [
    {
      "module": "status"
    }
  ],
  "modules": {
    "jmeter": {
      "path": "build/jmeter/bin/jmeter",
      "class": "bzt.modules.jmeter.JMeterExecutor",
      "properties":
 {
         "jmeter.save.saveservice.autoflush": "true"
"jmeter.save.saveservice.output_format": "csv"
"jmeter.save.saveservice.data_type": "true"
"jmeter.save.saveservice.bytes": "true"
"jmeter.save.saveservice.label": "true"
"jmeter.save.saveservice.latency": "true"
"jmeter.save.saveservice.response_code": "true"
"jmeter.save.saveservice.response_message": "true"
"jmeter.save.saveservice.successful": "true"
"jmeter.save.saveservice.thread_counts": "true"
"jmeter.save.saveservice.thread_name": "true"
"jmeter.save.saveservice.time": "true"
"jmeter.save.saveservice.print_field_names": "true"
"jmeter.save.saveservice.time": "true"
"jmeter.save.saveservice.connect_time": "true"
"jmeter.save.saveservice.responseHeaders": "true"
"jmeter.save.saveservice.requestHeaders": "true"
"jmeter.save.saveservice.sent_byte": "true"
"jmeter.save.saveservice.sample_count": "true"
"jmeter.save.saveservice.idle_time": "true"
"jmeter.save.saveservice.timestamp_format" : "ms"
"jmeter.save.saveservice.timestamp_format": "yyyy-MM-dd HH:mm:ss.SSS"
"sampleresult.timestamp.start": "false"
      }
    }
  }
}

Please advise me!

Thanks,
Rajani

Dmitri Pribysh

unread,
Mar 16, 2017, 5:16:00 PM3/16/17
to rajani...@gmail.com, codename-taurus
Hi, Rajani,

Taurus 1.8.1 switched to parsing all configs as YAML, because theoretically every valid JSON is valid YAML. But it looks like this assumption doesn't hold in real life. We've fixed that in 1.8.2 by bringing combined JSON/YAML parsing back.

So you have to upgrade to 1.8.2. Sorry for that inconvenience.


  Dmitri


--
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-taurus+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/codename-taurus/f13cd84e-8ed5-4a75-a4bf-1b8ee67e7740%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

rajani...@gmail.com

unread,
Mar 16, 2017, 5:17:15 PM3/16/17
to codename-taurus, rajani...@gmail.com





{
  "execution": [
    {
      "executor": "jmeter",
      "scenario": "NGP_PensionReport"
    }
  ],
  "scenarios": {
     "sample": {
       "script": {
         "path": "C:/JMETER/LR2JMeter/NGP/Scripts/NGP_PensionReport.jmx"
       }
     }
  }
  "provisioning": "local",
  "aggregator": "aggregator",
  "reporting": [
    {
      "module": "status"
    }
  ],
  "modules": {
    "jmeter": {
      "path": "C:\JMETER\apache-jmeter-3.1\bin,
Changed the modules.jmeter.path(see highlighted in yellow).

Rajani Pagadala

unread,
Mar 16, 2017, 5:32:33 PM3/16/17
to codename-taurus, rajani...@gmail.com
Hi Dmitri,

How do  I install the updated version is pip install bzt works?

Thanks,
Rajani
To unsubscribe from this group and stop receiving emails from it, send an email to codename-taur...@googlegroups.com.

Rajani Pagadala

unread,
Mar 16, 2017, 5:35:44 PM3/16/17
to codename-taurus, rajani...@gmail.com
Hi Dmitri,

Or If possible, please provide the yml file by converting  attached json.

Thansk,
Rajani

On Thursday, March 16, 2017 at 2:16:00 PM UTC-7, Dmitri Pribysh wrote:
To unsubscribe from this group and stop receiving emails from it, send an email to codename-taur...@googlegroups.com.
config-custom.json

Rajani Pagadala

unread,
Mar 16, 2017, 5:38:47 PM3/16/17
to codename-taurus
Nevermind i have upgraded it to 1.8.2. Let my try again

Thanks,
Rajani

Rajani Pagadala

unread,
Mar 16, 2017, 5:44:51 PM3/16/17
to codename-taurus
Hi Dmitri,

I am still  getting error at Line 15 and col 3


C:\Python27\Scripts>pip install --upgrade bzt
Collecting bzt
  Downloading bzt-1.8.2.tar.gz (202kB)
    100% |################################| 204kB 1.4MB/s
Requirement already up-to-date: pyyaml in c:\python27\lib\site-packages (from bzt)
Requirement already up-to-date: psutil!=5.1.1,>3 in c:\python27\lib\site-packages (from bzt)
Requirement already up-to-date: colorlog in c:\python27\lib\site-packages (from bzt)
Requirement already up-to-date: colorama in c:\python27\lib\site-packages (from bzt)
Requirement already up-to-date: lxml==3.6.0 in c:\python27\lib\site-packages (from bzt)
Requirement already up-to-date: cssselect in c:\python27\lib\site-packages (from bzt)
Requirement already up-to-date: urwid in c:\python27\lib\site-packages (from bzt)
Requirement already up-to-date: six in c:\python27\lib\site-packages (from bzt)
Requirement already up-to-date: nose in c:\python27\lib\site-packages (from bzt)
Requirement already up-to-date: selenium in c:\python27\lib\site-packages (from bzt)
Requirement already up-to-date: progressbar33 in c:\python27\lib\site-packages (from bzt)
Requirement already up-to-date: pyvirtualdisplay in c:\python27\lib\site-packages (from bzt)
Requirement already up-to-date: requests in c:\python27\lib\site-packages (from bzt)
Requirement already up-to-date: EasyProcess in c:\python27\lib\site-packages (from pyvirtualdisplay->bzt)
Installing collected packages: bzt
  Found existing installation: bzt 1.8.1
    Uninstalling bzt-1.8.1:
      Successfully uninstalled bzt-1.8.1
  Running setup.py install for bzt ... done
Successfully installed bzt-1.8.2

C:\Python27\Scripts>bzt C:/JMETER/LR2JMeter/NGP/Scripts/NGP_PensionReport.jmx
14:39:32 INFO: Taurus CLI Tool v1.8.2
14:39:32 INFO: Starting with configs: ['c:\\users\\rp091176\\appdata\\local\\temp\\jmx_m1kse6.json']
14:39:32 INFO: Configuring...
14:39:32 INFO: No personal config: C:\Users\rp091176\.bzt-rc
14:39:32 ERROR: Config Error: Error when reading config file 'c:\etc\bzt.d\config-custom.json': Expecting , delimiter: line 15 column 3 (char 250)
14:39:32 INFO: Post-processing...
14:39:32 INFO: Artifacts dir: None
14:39:32 INFO: Log file: c:\users\rp091176\appdata\local\temp\bzt_hgrdjo.log
14:39:32 WARNING: Done performing with code: 1



Please advise me!


Thanks,
Rajani

config-custom.json

Rajani Pagadala

unread,
Mar 16, 2017, 6:12:35 PM3/16/17
to codename-taurus
Hi Dimtri,

I have converted into yml, but under properties for some reason except for the 1st one i.e jmeter.save.saveservice.autoflush: 'true'  rest of them showing in red color.

see the attached yml file and the below screenshot!

Please advise me!


Thanks,

Rajani
config-custom.yml

Rajani Pagadala

unread,
Mar 16, 2017, 6:45:04 PM3/16/17
to codename-taurus

Hi Dmitri,

I have figured it out what was wrong in the yml file. It's TAB issue.After converting TAB to space red color gone .

Thanks,
Rajani
Reply all
Reply to author
Forward
0 new messages