Jmeter - Need to push 200 XML lines in a XML request with a changing parameter -


i new jmeter,please me in getting below implemented.

scenario: web services scritping in jmeter. have xml request in have parameter ${itemnode}. in subsequent line need pass computed value ${targetxml} pass 200 xml lines changing articleid (rest of xml line static article id changing ) need uniquely user parameter file. next ${itemnode} need pass 200 xml lines next set of articles.

basically need push 200 xml lines (only articles unique , rest of xml line static) per ${itemnode}.

please me inputs.

for instance, have xml file like:

<?xml version="1.0" encoding="utf-8"?> <note>   <to>tove</to>   <from>jani</from>   <heading>reminder</heading>   <body>don't forget me weekend!</body> </note> 
  1. in http request sampler switch "body data" tab , put xml file there

    body data

  2. replace bit need change jmeter function or variable, suitable functions are:

    • __stringfromfile() - if source user parameters file has 1 entry per line it's easier use it
    • __csvread() - if user parameters file has > 1 columns

    so final version should like:

    parametrised xml

see:

  • function helper dialog - available options -> function helper dialog - assist in constructing function proper syntax
  • how use jmeter functions post series - comprehensive information on aforementioned , other useful jmeter functions.

Comments

Popular posts from this blog

javascript - Chart.js (Radar Chart) different scaleLineColor for each scaleLine -

apache - Error with PHP mail(): Multiple or malformed newlines found in additional_header -

java - Android – MapFragment overlay button shadow, just like MyLocation button -