Quantcast

Convert a CSV file to XML requests and send ws provider

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Convert a CSV file to XML requests and send ws provider

Munmun
This post has NOT been accepted by the mailing list yet.
Hi,

Can anyone assist me with the steps to "convert a CSV file to XML requests and send ws provider"?

As per my understanding, I have placed the *.csv file under the bin dir and config the "CSV Data Set Config" as first step to read the records. But now i am clueless on how I can convert it to XML data.



from jmeter.log, I can see that my file is getting invoked but not sure whether data is getting saved properly in respective variables or not.
delayedStart=false
2017/05/04 14:08:12 INFO  - jmeter.threads.ThreadGroup: Started thread group number 1
2017/05/04 14:08:12 INFO  - jmeter.engine.StandardJMeterEngine: All thread groups have been started
2017/05/04 14:08:12 INFO  - jmeter.threads.JMeterThread: Thread started: Thread Group 1-1
2017/05/04 14:08:12 INFO  - jmeter.services.FileServer: Stored: CSVTest.csv
2017/05/04 14:08:12 INFO  - jmeter.threads.JMeterThread: Thread is done: Thread Group 1-1
2017/05/04 14:08:12 INFO  - jmeter.threads.JMeterThread: Thread finished: Thread Group 1-1
2017/05/04 14:08:12 INFO  - jmeter.engine.StandardJMeterEngine: Notifying test listeners of end of test
2017/05/04 14:08:12 INFO  - jmeter.services.FileServer: Close: CSVTest.csv
2017/05/04 14:08:12 INFO  - jmeter.gui.util.JMeterMenuBar: setRunning(false,*local*)
 
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Convert a CSV file to XML requests and send ws provider

glinius@live.com
This post has NOT been accepted by the mailing list yet.
You can see JMeter Variables and Properties values in the Debug Sampler. Check out How to Debug your Apache JMeter Script article to learn some more advanced JMeter test scripts troubleshooting techniques
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Convert a CSV file to XML requests and send ws provider

Munmun
This post has NOT been accepted by the mailing list yet.
Thanks for the assistance :)
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Convert a CSV file to XML requests and send ws provider

Munmun
This post has NOT been accepted by the mailing list yet.
In reply to this post by glinius@live.com
Thanks, My Test case is running now and i am able to successful response too. But some how my while condition is resulting in end/ less loop.

condition / ${__javaScript("${BrandName}"!="")}


CSV Data file

BrandName ContactChannel SubscribedItemID Gender
Audi                 E-Mail         1242               Female
Audi                 E-Mail         1242                Male
Audi                 E-Mail         1242                Male


csv data setting - Recycle On EOF= True ;Stop Thread On EOF = true

Am I missing any setting? or condition on while loop is not correct. Kindly assist , Thanks in Advance.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Convert a CSV file to XML requests and send ws provider

Munmun
This post has NOT been accepted by the mailing list yet.
Please ignore my previous post. issue is resolved by setting
1. "Recycle On EOF" = False and
2.  while controller condition = ("${BrandName}".indexOf("$") != -1)
Loading...