Tanaji
Tanaji

Reputation: 23

Parametrize Root Element of XML body In jmeter

I want to parametrize Root Element as a whole in HTTP Sampler, as the number of attributes changes for different event codes. When I try to parametrize using CSV it does not take all the attributes(ExtractedValue.JPG)Value in Image Is Extracted which is incomplete. The value which was supposed to be extracted is as follows:

(ActuallvaluetoBeExtracted.JPG)This is the Value which is supposed to be extracted

Can someone please help to identify why it is unable to extract all the attributes?

Upvotes: 1

Views: 86

Answers (2)

Dmitri T
Dmitri T

Reputation: 168082

It might be easier to use one of the following:

  1. If you can split the data into multiple files or use the same data from single file - use __FileToString() function
  2. If you can put each JSON Payload to new line you can go for:

See How to Use JMeter Functions article for comprehensive information on above and other JMeter functions.

Upvotes: 1

Kaushlendra Jha
Kaushlendra Jha

Reputation: 396

You need to change delimiter in Csv data set config to any other delimiter except , as you want to pass a string which consist of multiple commas from your csv file. So change this to ; or any other symbol. It will resolve your issue. Please refer below snapshot for better understanding.enter image description here

Upvotes: 0

Related Questions