ContributionsMost RecentMost LikesSolutionsRe: How to append a Tag in a existing XML as per count increases Dynamically through Data source Hi wasnt able to understand it properly can u please give a detail on it please find updated Request XML <InterfaceRQ xmlns="*****"> <RequestHeader> <UserID>${#TestSuite#UserID}</UserID> <SessionID>${#TestSuite#SessionID}</SessionID> <TransactionID>${#TestSuite#TransactionID}</TransactionID> <SupplierCredentialsList> <SupplierCredentials> <SupplierID>${#TestSuite#SupplierID}</SupplierID> <Sequence>1</Sequence> <Credentials> <Credential name="${#TestSuite#CredOne}" isEncrypted="${#TestSuite#Encyp}">${#TestSuite#USERNAME}</Credential> <OperationURLs> <OperationURL operation="all">${#TestSuite#OperationURL}</OperationURL> </OperationURLs> </Credentials> </SupplierCredentials> </SupplierCredentialsList> </RequestHeader> <RequestBody> <OTA_TourAvailRQ> <ProcessingInformation PricingCurrency="${#TestSuite#PricingCurrency}"/> <Tour> <Location> <Address> <CountryName Code="${#TestSuite#CountryName}"/> </Address> <Region RegionCode="${#TestSuite#RegionCode}" /> </Location> <Schedule StartPeriod="${#TestSuite#StartPeriod}" EndPeriod="${#TestSuite#EndPeriod}"/> <Participant Quantity="${#TestSuite#Quantity}" Age="${#TestSuite#Age}"> <QualifierInfo Extension="">${#TestSuite#Extension}</QualifierInfo> <!-- Value Can be Adult,Child,Infant --> </Participant> </Tour> </OTA_TourAvailRQ> </RequestBody> </SightSeeingInterfaceRQ> Re: How to append a Tag in a existing XML as per count increases Dynamically through Data source HI xml we need to manipulate. it is in soap ui free version only we need to increase the Participantcount tag dynamically using groovy when we give count as per from csv/excel file How to append a Tag in a existing XML as per count increases Dynamically through Data source I have a requirment where i need to dynamically increase/append the tag as the count increases USING GROOVY Re: Create Dynamic XML using Groovy & parameterize the arguments HI below is my request Xml i want to dynamically increase the Participant tag when the count in request data sheet increases, Can somebody please help with the solution Thank you <SightSeeingInterfaceRQ xmlns="http://www.coxandkings.com/scota"> <RequestHeader> <UserID>${#TestSuite#UserID}</UserID> <SessionID>${#TestSuite#SessionID}</SessionID> <TransactionID>${#TestSuite#TransactionID}</TransactionID> <SupplierCredentialsList> <SupplierCredentials> <SupplierID>${#TestSuite#SupplierID}</SupplierID> <Sequence>1</Sequence> <Credentials> <!--1 or more repetitions--> <Credential name="${#TestSuite#CredOne}" isEncrypted="${#TestSuite#Encyp}">${#TestSuite#USERNAME}</Credential> <Credential name="${#TestSuite#CredTwo}" isEncrypted="${#TestSuite#Encyp}">${#TestSuite#PASSWORD}</Credential> <Credential name="${#TestSuite#CredThree}" isEncrypted="${#TestSuite#Encyp}">${#TestSuite#Add}</Credential> <OperationURLs> <!--1 or more repetitions--> <OperationURL operation="all">${#TestSuite#OperationURL}</OperationURL> <OperationURL operation="search">${#TestSuite#OperationSearchURL}</OperationURL> <OperationURL operation="getdetails">${#TestSuite#OperationGetDetailsURL}</OperationURL> <!-- <OperationURL operation="all">${#TestSuite#OperationGetPoliciesURL}</OperationURL>--> <OperationURL operation="reprice">${#TestSuite#OperationRepriceURL}</OperationURL> <OperationURL operation="book">${#TestSuite#OperationBookURL}</OperationURL> <OperationURL operation="retrieve_booking">${#TestSuite#OperationRetrieveURL}</OperationURL> <OperationURL operation="cancel">${#TestSuite#OperationCancel}</OperationURL> </OperationURLs> </Credentials> </SupplierCredentials> </SupplierCredentialsList> </RequestHeader> <RequestBody> <OTA_TourActivityAvailRQ> <ProcessingInformation PricingCurrency="${#TestSuite#PricingCurrency}"/> <TourActivity> <Location> <Address> <CountryName Code="${#TestSuite#CountryName}"/> </Address> <Region RegionCode="${#TestSuite#RegionCode}" /> </Location> <Schedule StartPeriod="${#TestSuite#StartPeriod}" EndPeriod="${#TestSuite#EndPeriod}"/> <!-- Repeat participant count for each individual with quantity hardcoded as 1--> <ParticipantCount Quantity="${#TestSuite#Quantity}" Age="${#TestSuite#Age}"> <QualifierInfo Extension="">${#TestSuite#Extension}</QualifierInfo> <!-- Value Can be Adult,Child,Infant --> </ParticipantCount> <ParticipantCount Quantity="${#TestSuite#Quantity2}" Age="${#TestSuite#Age2}"> <QualifierInfo Extension="">${#TestSuite#Extension2}</QualifierInfo> <!-- Value Can be Adult,Child,Infant --> </ParticipantCount> </TourActivity> </OTA_TourActivityAvailRQ> </RequestBody> </SightSeeingInterfaceRQ>