vijaydi
12 years agoContributor
Update Datasource Property value on its each occurece in req
Hi,
My requirement is to update the datasource property value in my request for each occurence of the datasource property.
I have provide below part of my request and I have test data in the excel datasource for registrationNumber and searchNumber in the request. Search number does not have to change on each occurence so I was happy to parameterize it (SearchNo is the same for the all the occurences in the request). However, for the registration number, it has to be different for each occurence in the request. I have the required data in the datasource file but I am unsure as how I can populate different data in each occurence of the request before I could execute it.
Actually my request will contain increasing number of the parent node <uri:searchedRegistrationNumber>, which means I will have increasing number of occurences for registrationNumber.
Would greatly appreciate if you could help me with a solution.
My requirement is to update the datasource property value in my request for each occurence of the datasource property.
I have provide below part of my request and I have test data in the excel datasource for registrationNumber and searchNumber in the request. Search number does not have to change on each occurence so I was happy to parameterize it (SearchNo is the same for the all the occurences in the request). However, for the registration number, it has to be different for each occurence in the request. I have the required data in the datasource file but I am unsure as how I can populate different data in each occurence of the request before I could execute it.
Actually my request will contain increasing number of the parent node <uri:searchedRegistrationNumber>, which means I will have increasing number of occurences for registrationNumber.
<uri:searchedRegistrationNumber>
<uri:registrationNumber>123456778</uri:registrationNumber>
<uri:searchNumber>${DataSource#SearchNo}</uri:searchNumber>
</uri:searchedRegistrationNumber>
<uri:searchedRegistrationNumber>
<uri:registrationNumber>123456776</uri:registrationNumber>
<uri:searchNumber>${DataSource#SearchNo}</uri:searchNumber>
</uri:searchedRegistrationNumber>
Would greatly appreciate if you could help me with a solution.