Contributions
Groovy Script to run SOAP test step 2 times
HiHimanshuTayal I am trying to execute one SOAP Test step 2 times, I have below script but it seems that it's not working fine. if( context.loopIndex == null ) context.loopIndex = 0 if( ++context.loopIndex < 3 ) testRunner.gotoStepByName( "AuthenticateAndGetUserDetails" )Solved5 years agoPlace ReadyAPI QuestionsReadyAPI Questions2KViews0likes4CommentsRe: Groovy Script to send response value to username in Outgoing WS Security Configurations
HiHimanshuTayal It is adding new Outgoing Wss Configuration 'APPservice', I am trying to set the Username field in existingOutgoing Wss Configuration 'APPservice' from response value of a test step as mentioned in the original query. I tried to remove theaddOutgoingWss and replace it withgetOutgoingWss in if-else condition but it didn't work out well.5 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.7KViews0likes1CommentGroovy Script to send response value to username in Outgoing WS Security Configurations
Hi, I need help with sending response value to username in Outgoing WS-Security Configurtions, see attached SOAP UI Screenshot for more clarification. I want to send the highlighted value in response to WS-Security Username fieldSolved1.7KViews0likes3CommentsSaving request and response
I want to save request and response of all the tests(Failed/Passed) from my Automation test suite. The folder location should be like ProjectName-->TestSuiteName(Multiple folders for multiple test suite)-->TestCaseName(Multiple folder for multiple test cases)- a single .xml file containg request and response of test steps (Multiple files for multiple test steps).Solved6 years agoPlace ReadyAPI QuestionsReadyAPI Questions6.9KViews0likes2CommentsGetting null value from holder.getNodeValue while the properties has value in it.
Error at assertion:Incorrect Service Type. Expression: (ServiceTypeResponse == ServiceTypeExcel). Values: ServiceTypeResponse = null, ServiceTypeExcel = Air Namespace ns2 is correctly defined. This is the complete groovyscript. def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context ) def holder = groovyUtils.getXmlHolder(messageExchange.getResponseContent()) def namespace = holder.declareNamespace('ns2', "http://sita.aero/iborders/external/EventServiceWSDLTypes/V12") def ServiceTypeResponse = holder.getNodeValue("//ns2:SearchExpectedMovementsResponse//ns2:ExpectedMovementEvent/ExpectedService/ServiceType") def ServiceCodeResponse = holder.getNodeValue("//ns2:SearchExpectedMovementsResponse//ns2:ExpectedMovementEvent/ExpectedService/ServiceCode") def ServiceNumberResponse = holder.getNodeValue("//ns2:SearchExpectedMovementsResponse//ns2:ExpectedMovementEvent/ExpectedService/ServiceNumber") def ServiceRouteResponse = holder.getNodeValue("//ns2:SearchExpectedMovementsResponse//ns2:ExpectedMovementEvent/ServiceRoute") def DeparturePortResponse = holder.getNodeValue("//ns2:SearchExpectedMovementsResponse//ns2:ExpectedMovementEvent/DeparturePort") def ArrivalPortResponse = holder.getNodeValue("//ns2:SearchExpectedMovementsResponse//ns2:ExpectedMovementEvent/ArrivalPort") def GenderResponse = holder.getNodeValue("//ns2:SearchExpectedMovementsResponse//ns2:ExpectedMovementEvent/Identity/Gender") def TravelDocumentTypeResponse = holder.getNodeValue("//ns2:SearchExpectedMovementsResponse//ns2:ExpectedMovementEvent/Identity/TravelDocument/Type") def TravelDocumentNumberResponse = holder.getNodeValue("//ns2:SearchExpectedMovementsResponse//ns2:ExpectedMovementEvent/Identity/TravelDocument/Number") def TravelDocumentIssueCountryResponse = holder.getNodeValue("//ns2:SearchExpectedMovementsResponse//ns2:ExpectedMovementEvent/Identity/TravelDocument/IssueCountry") def SuccessResponse = holder.getNodeValue("//ns2:SearchExpectedMovementsResponse//ns2:ReturnCode/Type") def ServiceTypeExcel = context.expand('${Properties#ServiceType}') def ServiceCodeExcel = context.expand( '${Properties#ServiceCode}' ) def ServiceNumberExcel = context.expand( '${Properties#ServiceNumber}' ) def ServiceRouteExcel = context.expand( '${Properties#ServiceRoute}' ) def DeparturePortExcel = context.expand( '${Properties#DeparturePort}' ) def ArrivalPortExcel = context.expand( '${Properties#ArrivalPort}' ) def GenderExcel = context.expand( '${Properties#Gender}' ) def TravelDocumentTypeExcel = context.expand( '${Properties#DocumentType}' ) def TravelDocumentNumberExcel = context.expand( '${Properties#DocumentNumber}' ) def TravelDocumentIssueCountryExcel = context.expand( '${Properties#DocumentIssueCountry}' ) assert(ServiceTypeResponse == ServiceTypeExcel): "Incorrect Service Type" assert(ServiceCodeResponse == ServiceCodeExcel): "Incorrect Service Code" assert(ServiceNumberResponse == ServiceNumberExcel): "Incorrect Service Number" assert(ServiceRouteResponse == ServiceRouteExcel): "Incorrect Service Route" assert(DeparturePortResponse == DeparturePortExcel): "Incorrect Departure Port" assert(ArrivalPortResponse == ArrivalPortExcel): "Incorrect Arrival Port" assert(GenderResponse == GenderExcel): "Incorrect Gender" assert(TravelDocumentTypeResponse == TravelDocumentTypeExcel): "Incorrect Travel Document Type" assert(TravelDocumentNumberResponse == TravelDocumentNumberExcel): "Incorrect Travel Document Number" assert(TravelDocumentIssueCountryResponse == TravelDocumentIssueCountryExcel): "Incorrect Travel Document Issue Country" assert(SuccessResponse == "Success"): "Success Not Present in Response"Solved6 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.8KViews0likes2Comments