Passing Multiple csv files into taurus yaml file

327 views
Skip to first unread message

Palivela Ganesh

unread,
Sep 22, 2020, 11:59:16 AM9/22/20
to codename-taurus
Hi,

I'm trying to execute jmeter test in taurus plugin in Azure devops, I have multiple csv files in my jmeter script in csv config how can we write the code in yaml file in multiple csv files, please let me know any one, thanks in advance, Please find the below Yaml code.

execution:
- scenario:
    script: _sivaganeshpalivela_LoadTestingRepos/DuplicateSNA10Resources.jmx
  concurrency: 5
  hold-for: 10s
  ramp-up: 2s

data-sources:  # these are data-sources options for Jmeter. See more info below.    
    - path:_sivaganeshpalivela_LoadTestingRepos/DuplicateAppoinmentS.csv
      delimiter: ','
    - path: _sivaganeshpalivela_LoadTestingRepos/DuplicateReourcesIDS.csv
      delimiter: ','
      quoted: false
      loop: false
      variable-names: AppId,Name,CD,Production_Name,Production_Id,P_Code,CreatepublishDraft_Date,UpdateDraft,Delete_Draft
      variable-names: Resource_Id,User_name
      random-order: true

reporting:
- module: passfail
- module: junit-xml
  filename: taurus-output/Azure_SNA_10_load_test_plan.xml
  data-source: pass-fail

Thanks,
Siva Ganesh. 

alexander...@broadcom.com

unread,
Sep 23, 2020, 10:26:37 AM9/23/20
to codename-taurus
Hi,
First of all, please clarify if you are running tests in cloud or local. Because if you running in cloud you will need to load files in execution settings. 
also, if you want to specify data-sources you need to do it in scenario sections, otherwise it will be ignored. 
and also from my understanding specifying direct .jmx script with csv files in exectuion should not be done, as script already will be generated by taurus from csv file

Palivela Ganesh

unread,
Sep 23, 2020, 10:42:35 AM9/23/20
to alexander...@broadcom.com, codename-taurus
Hi Alexander,
I'm running my scripts on cloud environment, i pushed my jmx and csv files into repo integrated with azure, I retrieve that files into that repo and execute through taurus plugins pipeline.

Please find the below screenshot.

Note: I need yaml script for how to execute jmx file with multiple csv files in my taurus pipeline.
image.png
Thanks,
Siva Ganesh.

--
You received this message because you are subscribed to a topic in the Google Groups "codename-taurus" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/codename-taurus/_LVmb4J-me8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to codename-taur...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/codename-taurus/82ea71c8-9f66-4244-bec7-c1627f76303ao%40googlegroups.com.

Alexander Kuzmenya

unread,
Sep 29, 2020, 10:03:48 AM9/29/20
to codename-taurus
they correct way to setup multiple .csv files as you want would be directly in .jmx script.
if you provide .csv files in data-sources, taurus generates .jmx script by itself and ignores script in yaml. You cannot use both direct .jmx and csv files in data-sources.
also, note: i understand that you are running tests in cloud, but from perspective of Taurus your test is running in Local mode, otherwise there would be some key differences.

---
Alex Kuzmenya
Reply all
Reply to author
Forward
0 new messages