Hi
cant see what you have marked in red, but just replace it with
${whateverVarNameYouWant} and use a CSV data set config with a while loop
controller. The CSV Data Set config would have to read the variable data
from your file (into the variable specified above). You can run it for
single or multiple threads
regards
deepak
On Sun, May 10, 2009 at 10:45 PM, Mohamed Niyas <[email protected]>wrote:
> Hi Deepak,
>
> Thanks for your reply. i tried the settings that you have suggested. But i
> have some questions to clarify or i might have been
> misunderstood your reply. Before going to the actual, i just wanted to give
> you some details of my test with an XML request.
>
> I am not testing any SOAP request, rather i am just posting a XML request
> over HTTP thru soap/xml-rpc sampler.
>
> *A sample XML Request will be like this.*
>
> <?xml version="1.0" encoding="UTF-8"?><Request> <Source><RequestorID
> Client="XMLApp4" EMailAddress="[email protected]" Password="oct...@app4
> "
> /> <RequestorPreferences Language="en">
> <RequestMode>SYNCHRONOUS</RequestMode> </RequestorPreferences>
> </Source><RequestDetails><SearchCityRequest
> CountryCode="GB"><CityName><![CDATA[AM]]></CityName>
> </SearchCityRequest></RequestDetails></Request>
>
> When i paste this content in the Sampler Data field area & executing it
> that
> will be working well & i am getting the right result.
> In the otherway, if i save the content of the above in a file & given the
> file path as input, that will also working well.
>
> Questions:
>
> As you well said, my XML request format not going to be changed. But some
> of
> the XML tag data going to be changed dynamically to differ from each
> request. Those dynamic tags marked as RED color.
>
> From here please provide me some inputs how to iterate it for different
> number of threads?
> Even i am ready to make each single request in a different flat file. My
> ultimate goal is to traverse one by one if the no of threads
> are more than one.
>
> Hope you understand my questions well.
>
> Regards
> Mohamed Niyas M
> +91 96633 29080
>
>
>
>
>
>
> On Sat, May 9, 2009 at 8:29 PM, Deepak Shetty <[email protected]> wrote:
>
> > Hi
> > what do you want to parameterise and how do you want this data kept?
> > If your structure of the SOAP request is the same and you only want to
> > parameterise the data within the tag , you can still use a CSV data set
> > along with a while loop .
> > ( e.g.
> > Thread group
> > while controller (${__javascript("${var}" != "<EOF>")})
> > Make Request
> > <soap>
> > <sometag>${someothervar}</sometag>
> > </soap>
> > CSV Data Set Config
> >
> > If you have multiple files that you want to test , then by following a
> > naming convention for them, or keeping the names within a File, you can
> > still iterate and make the requests.
> > regards
> > deepak
> >
> > On Sat, May 9, 2009 at 3:13 AM, Mohamed Niyas <[email protected]>
> > wrote:
> >
> > > Hi team,
> > >
> > > I am testing XML-RPC request on HTTP. I am using SOAP/XML-RPC sampler.
> > > It is working fine if a single request is being used in the test plan.
> > >
> > > The file input can be given in 2 ways here. we can use the XML request
> in
> > > the
> > > data field or we can provide the file name which contains the XML
> > request.
> > >
> > > *What I want from here:*
> > >
> > > I can not parameterise the test script with multiple XML requests as we
> > do
> > > in
> > > usual CSV data-set with input variable names. How can i dynamically
> give
> > > the
> > > input to my test script for this SOAP/XML-RPC sampler?
> > >
> > > If i use 5 threads, & if my CSV input has 5 input data, Then it should
> > > iterate one
> > > by one as it will do in HTTP samplers.
> > >
> > > Any help in this highly appreciated.
> > >
> > > Regards
> > > Mohamed Niyas M
> > > +91 96633 29080
> > >
> >
>