ContributionsMost RecentMost LikesSolutionsRe: readyapi groovy script library ChrisAdams There is a correction. Script library requires classes. It can be java or groovy. groovy scripts are different from class and not allowed in Script Library. Re: multiple groovy files kadir appreciate replying to the responses provided than adding new questions. Re: SoapUi Groovy conditional property transfer Hope you checked the new xpath i suggested which is also good. Re: SoapUi Groovy conditional property transfer smilnik There is another approach which finds offer id for matching service def and doesn't use xpath. You may use which ever is comfortable for you. NOTE: have used context.response as place holder value for xml data which inside parseText(), feel free to change as needed. Follow the comments in-line. //Define the match / search criteria, element name and value def match = [ key:'ServiceDefinitionRefID',value:'SRV-SAF'] //Find all OfferItem 's def oItems = new XmlSlurper().parseText(context.response).'**'.findAll {it.name() == 'OfferItem'} //Get the Offer Item Id by applying search criteria defined above in match variable, returns null if no match def getOfferItemIdForMatchingElement = { oItem, name, value -> oItem.'**'.find { it.name() == name && it.text()==value } ? oItem.OfferItemID.text() : null } //Get offer item id for all Offer items, of course, there will be one as we are expecting, so filter null values def offerItemId = oItems.collect { oItem -> getOfferItemIdForMatchingElement (oItem, match['key'], match['value']) }.find {it} log.info "Offer item id: $offerItemId" assert !offerItemId, 'No offer item id found for defined match criteria' context.testCase.setPropertyValue('ITEMID', offerItemId) Re: SoapUi Groovy conditional property transfer smilnik FYI. you can test xpatn online https://www.atatus.com/tools/xpath-validator Different tools works differently Your xpath did not work there. However, your's works here may be this works without namespaces as well, i believe. Re: SoapUi Groovy conditional property transfer smilnik Got, the problem is that the xml is namespace aware, so the xpath you were using did not work. You can use below xpath instead of what you have currently and quickly verify as well here //*[local-name()='ServiceDefinitionRefID'][.='SRV-SAF']/ancestor::*[local-name()='OfferItem']/*[local-name()='OfferItemID']/text() then store value into custom test case custom property as suggested context.testCase.setPropertyValue('ITEMID', offerItemId) In order to get the above value into request is just change in offerPriceRQ <OfferRefID>cb31b206-1119-4f89-b1b2-0611196f0001</OfferRefID> to <OfferRefID>${#TestCase#ITEMID}</OfferRefID> Re: SoapUi Groovy conditional property transfer "//Response/OffersGroup/CarrierOffers/Offer/OfferItem[Service/ServiceAssociations/ServiceDefinitionRef/ServiceDefinitionRefID='SRV-SAF']/OfferItemID/text() smilnik, With above xpath, is it showing the desired offer Id ? Re: Keep getting Warning More than 80% of the Java heap memory is being used. soni1 Please refer this documentation Re: Adding a property variable in Access Token field returns invalid token. No one asks for your project, just simulate the test using the same structure as you are using to reproduce the issue. Re: SoapUi Groovy conditional property transfer Please check, some copy paste issue. Or you might forgot to put xml which i did not put. You can quickly verify here