Contributions
Why am i not able to run a Ready API project in SOAP UI open source?
Why am i not able to run a Ready API project in SOAP UI open source? I mean- I used Ready API features like DataSource and DataSink in Ready API. But Why can't i use SOAP UI with Ready API features -- I am ok with not opening the editor of Data Source or any other Ready API feature. But i would want to run it in SOAP UI. I was able to use SOAP UI with Ready API features 3 weeks back. But what happened now? Please let me know if there is any setting i would require to do.7 years agoPlace ReadyAPI QuestionsReadyAPI Questions2KViews0likes4CommentsHow to verify the presence of an xml element(node) in an xml?
sample xml: <ApiRootContext xmlns="http://schemas.datacontract.org/" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"> <ApiHeader xmlns:a="http://schemas.datacontract.org/20/0/dbfasdjk.Context"> <a:Duration>2218.3778</a:Duration> <a:EndTime>2017-09-15T10:13:26.4970511-04:00</a:EndTime> <a:RequestGuid>c0594d5b-4f15-4fc0-9efc-f574492796f8</a:RequestGuid> <a:RequestStatus>Eligibility</a:RequestStatus> <a:StartTime>2017-09-15T10:13:24.2782836-04:00</a:StartTime> </ApiHeader> <QuoteContext xmlns:a="http://schemas.datacontract.sfnadkfnjksfl.Api.Context"> <a:HomeOwners> <a:DisplayOnlyData/> <a:PolicyData/> <a:QuoteData> <a:AdditionalInterestList xmlns:b="http://schemas.dadvfladfnkjlad.Context"/> <a:approxFairMarketValue>482678.00</a:approxFairMarketValue> <a:dateOfBirth>1979-04-20T00:00:00</a:dateOfBirth> <a:effectiveDateOfPolicy>2017-09-23T00:00:00</a:effectiveDateOfPolicy> <a:firstName>Wendi</a:firstName> <a:yearOfConstruction>1978</a:yearOfConstruction> </a:QuoteData> <a:QuoteHeader> <a:Channel>Direct_Web</a:Channel> <a:CompleteQuoteFlag>false</a:CompleteQuoteFlag> <a:QuoteStatus>dafvnadk</a:QuoteStatus> <a:SessionHash>adfnadjfkajdvnkdn</a:SessionHash> </a:QuoteHeader> <a:QuoteOffers/> </a:HomeOwners> </QuoteContext> </ApiRootContext> How do i verify if "approxFairMarketValue" node is present or not using groovy?Solved7 years agoPlace ReadyAPI QuestionsReadyAPI Questions2KViews0likes3Comments- 7 years agoPlace ReadyAPI QuestionsReadyAPI Questions9.3KViews1like0Comments
Re: How do i remove a node from an xml?
Thanks msiadak I improvised on it by parameterising it. def nodeRemove = "burglarAlarm" def rootNode = new XmlSlurper(false, false).parseText(xmlString) rootNode.QuoteData.children().findAll { it.name().equals(nodeRemove) }.replaceNode {} println XmlUtil.serialize(rootNode)7 years agoPlace ReadyAPI QuestionsReadyAPI Questions9.4KViews0likes2CommentsRe: How do i remove a node from an xml?
I am trying to build an xml dynamically- i have the code to add a node before and after a particular node. I don't seem to know how to remove a node by passing the node name. Ex: In the below xml, i want to remove "businessOnPremises" node <HomeOwnersContext xmlns="http://schemas.datacontract.org/2004/07/Homesite.Homeowners.ContextModel.Api.Context" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"> <DisplayOnlyData/> <QuoteData> <animalsBitten>false</animalsBitten> <burglarAlarm>No</burglarAlarm> <businessOnPremises>false</businessOnPremises> <totalNumberOfPeople>2</totalNumberOfPeople> </QuoteData> <QuoteHeader> <Channel>Direct_Web</Channel> <FormCode>3</FormCode> </QuoteHeader> </HomeOwnersContext>7 years agoPlace ReadyAPI QuestionsReadyAPI Questions9.4KViews0likes6CommentsHow do i remove a node from an xml?
<HomeOwnersContext xmlns="http://schemas.datacontract.org/2004/07/Homesite.Homeowners.ContextModel.Api.Context" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"> <DisplayOnlyData/> <QuoteData> <animalsBitten>false</animalsBitten> <burglarAlarm>No</burglarAlarm> <businessOnPremises>false</businessOnPremises> <totalNumberOfPeople>2</totalNumberOfPeople> </QuoteData> <QuoteHeader> <Channel>Direct_Web</Channel> <FormCode>3</FormCode> </QuoteHeader> </HomeOwnersContext> I wanted to remove "<burglarAlarm>No</burglarAlarm>" from the above xml.Solved7 years agoPlace ReadyAPI QuestionsReadyAPI Questions9.5KViews0likes8CommentsRe: how to update methods(service) dynamically using groovy script?
No. Nothing to do with swagger. So i have 7 endpoints to be run dynamically. Below is the screenshot of the steps: It's the wadl file. 1> Get data from excel sheet. 2> One of the column names in the excel will have " Calls to Make" which will have - StateDetails,Eligibility,Prerate, Rate 3> Put the calls to Make in a list and call them in an order to execute. So i need the groovy script to dynamically change the dropdown values as shown in the screenshot.7 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.2KViews0likes0Comments