Quantcast
Channel: New board topics in SmartBear Community
Viewing all 21061 articles
Browse latest View live

How to get all the values from a duplicate tag and set the same in properties using groovy

$
0
0

Hello All,

 

I have below XML response and want to capture all the values coming in a "FullText" tag.<soap-env:Envelope xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/">
<soap-env:Header>
<eb:MessageHeader eb:version="1.0" soap-env:mustUnderstand="1" xmlns:eb="http://www.ebxml.org/namespaces/messageHeader">
<eb:From>
<ebSmiley TongueartyId eb:type="URI">123123</ebSmiley TongueartyId>
</eb:From>
<eb:To>
<ebSmiley TongueartyId eb:type="URI">99999</ebSmiley TongueartyId>
</eb:To>
<eb:CPAId>AAS</eb:CPAId>
<eb:ConversationId>test</eb:ConversationId>
<ebSmiley Frustratedervice eb:type="OTA">CDI</ebSmiley Frustratedervice>
<eb:Action>getReservationRS</eb:Action>
<eb:MessageData>
<eb:MessageId>732934421208470870</eb:MessageId>
<eb:Timestamp>2019-10-30T11:42:01</eb:Timestamp>
<eb:RefToMessageId>mid:20001209-133003-2333@clientofsabre.com</eb:RefToMessageId>
</eb:MessageData>
</eb:MessageHeader>
<wsseSmiley Frustratedecurity xmlns:wsse="http://schemas.xmlsoap.org/ws/2002/12/secext">
<wsse:BinarySecurityToken valueType="String" EncodingType="wsse:Base64Binary">Shared/IDL:IceSess\/SessMgr:1\.0.IDL/Common/!ICESMS\/STSB!ICESMSLB\/STS.LB!-2958029294769305206!947761!0</wsse:BinarySecurityToken>
</wsseSmiley Frustratedecurity>
</soap-env:Header>
<soap-env:Body>
<stl19:GetReservationRS Version="1.19.0" xmlns:stl19="http://webservices.sabre.com/pnrbuilder/v1_19" xmlns:ns6="http://services.sabre.com/res/orr/v0" xmlnsSmiley Surprisedr114="http://services.sabre.com/res/or/v1_14" xmlns:raw="http://tds.sabre.com/itinerary" xmlns:ns4="http://webservices.sabre.com/pnrconn/ReaccSearch">
<stl19:Reservation numberInParty="2" numberOfInfants="0" NumberInSegment="2" hostMarketedCodeShare="true">
<stl19:BookingDetails>
<stl19:RecordLocator>IVUTDX</stl19:RecordLocator>
<stl19:CreationTimestamp>2019-10-30T06:41:00</stl19:CreationTimestamp>
<stl19Smiley FrustratedystemCreationTimestamp>2019-10-30T06:41:00</stl19Smiley FrustratedystemCreationTimestamp>
<stl19:CreationAgentID>DJL</stl19:CreationAgentID>
<stl19:UpdateTimestamp>2019-10-30T06:41:59</stl19:UpdateTimestamp>
<stl19Smiley TongueNRSequence>2</stl19Smiley TongueNRSequence>
<stl19:FlightsRange Start="2019-11-20T20:50:00" End="2019-11-23T04:50:00"/>
<stl19Smiley Very HappyivideSplitDetails/>
<stl19:EstimatedPurgeTimestamp>2019-11-22T00:00:00</stl19:EstimatedPurgeTimestamp>
<stl19:UpdateToken>-40f1ee0d3c43ffa7e317052347c74ab6f00fc159d2c3a361</stl19:UpdateToken>
</stl19:BookingDetails>
<stl19Smiley TongueOS AirExtras="false" InhibitCode="U">
<stl19Smiley Frustratedource BookingSource="GH35" AgentSine="DJL" PseudoCityCode="GH35" ISOCountry="DE" AgentDutyCode="*" AirlineVendorID="AA" HomePseudoCityCode="HDQ" PrimeHostID="1S"/>
</stl19Smiley TongueOS>
<stl19Smiley TongueassengerReservation>
<stl19Smiley Tongueassengers>
<stl19Smiley Tongueassenger id="20" nameType="S" passengerType="ADT" nameId="01.01" nameAssocId="1" elementId="pnr-20.1">
<stl19:LastName>ZEEYEVU</stl19:LastName>
<stl19:FirstName>TYFEXH</stl19:FirstName>
<stl19Smiley FrustratedpecialRequests>
<stl19:GenericSpecialRequest id="25" type="A" msgType="S">
<stl19:Code>GSTN</stl19:Code>
<stl19:FreeText>/IND/22WWWWWWWW0A1Z5/IBM/P</stl19:FreeText>
<stl19:ActionCode>HK</stl19:ActionCode>
<stl19:NumberInParty>1</stl19:NumberInParty>
<stl19:AirlineCode>AA</stl19:AirlineCode>
<stl19:FullText>GSTN AA HK1/IND/22WWWWWWWW0A1Z5/IBM/P</stl19:FullText>
</stl19:GenericSpecialRequest>
<stl19:GenericSpecialRequest id="26" type="A" msgType="S">
<stl19:Code>GSTN</stl19:Code>
<stl19:FreeText>/IND/22DDDWWWWW0A2S5/IBM/U</stl19:FreeText>
<stl19:ActionCode>HK</stl19:ActionCode>
<stl19:NumberInParty>1</stl19:NumberInParty>
<stl19:AirlineCode>AA</stl19:AirlineCode>
<stl19:FullText>GSTN AA HK1/IND/22DDDWWWWW0A2S5/IBM/U</stl19:FullText>
</stl19:GenericSpecialRequest>
</stl19Smiley FrustratedpecialRequests>
<stl19Smiley Frustratedeats/>
</stl19Smiley Tongueassenger>
<stl19Smiley Tongueassenger id="22" nameType="S" passengerType="ADT" nameId="02.01" nameAssocId="2" elementId="pnr-22.2">
<stl19:LastName>NHFKDBG</stl19:LastName>
<stl19:FirstName>SVHJIT</stl19:FirstName>
<stl19Smiley FrustratedpecialRequests>
<stl19:GenericSpecialRequest id="27" type="A" msgType="S">
<stl19:Code>GSTN</stl19:Code>
<stl19:FreeText>/IND/22SSSSAAA00A1Z5/IBM/S</stl19:FreeText>
<stl19:ActionCode>HK</stl19:ActionCode>
<stl19:NumberInParty>1</stl19:NumberInParty>
<stl19:AirlineCode>AA</stl19:AirlineCode>
<stl19:FullText>GSTN AA HK1/IND/22SSSSAAA00A1Z5/IBM/S</stl19:FullText>
</stl19:GenericSpecialRequest>
<stl19:GenericSpecialRequest id="28" type="A" msgType="S">
<stl19:Code>GSTN</stl19:Code>
<stl19:FreeText>/IND/22DDDDDDDDDD1Z5/IBM/P</stl19:FreeText>
<stl19:ActionCode>HK</stl19:ActionCode>
<stl19:NumberInParty>1</stl19:NumberInParty>
<stl19:AirlineCode>AA</stl19:AirlineCode>
<stl19:FullText>GSTN AA HK1/IND/22DDDDDDDDDD1Z5/IBM/P</stl19:FullText>
</stl19:GenericSpecialRequest>
</stl19Smiley FrustratedpecialRequests>
<stl19Smiley Frustratedeats/>
</stl19Smiley Tongueassenger>
</stl19Smiley Tongueassengers>
<stl19Smiley Frustratedegments>
<stl19Smiley Tongueoc>
<stl19:Airport>EZE</stl19:Airport>
<stl19Smiley Very Happyeparture>2019-11-20T20:50:00</stl19Smiley Very Happyeparture>
</stl19Smiley Tongueoc>
<stl19Smiley Frustratedegment sequence="1" id="3">
<stl19:Air id="3" sequence="1" segmentAssociationId="2" isPast="false" DayOfWeekInd="3" CodeShare="false" SpecialMeal="false" SmokingAllowed="false" ResBookDesigCode="Y">
<stl19Smiley Very HappyepartureAirport>EZE</stl19Smiley Very HappyepartureAirport>
<stl19Smiley Very HappyepartureAirportCodeContext>IATA</stl19Smiley Very HappyepartureAirportCodeContext>
<stl19:ArrivalAirport>MIA</stl19:ArrivalAirport>
<stl19:ArrivalAirportCodeContext>IATA</stl19:ArrivalAirportCodeContext>
<stl19Smiley SurprisedperatingAirlineCode>AA</stl19Smiley SurprisedperatingAirlineCode>
<stl19Smiley SurprisedperatingAirlineShortName>AMERICAN AIRLINES</stl19Smiley SurprisedperatingAirlineShortName>
<stl19Smiley SurprisedperatingFlightNumber>0900</stl19Smiley SurprisedperatingFlightNumber>
<stl19:EquipmentType>77W</stl19:EquipmentType>
<stl19:MarketingAirlineCode>AA</stl19:MarketingAirlineCode>
<stl19:MarketingFlightNumber>0900</stl19:MarketingFlightNumber>
<stl19Smiley SurprisedperatingClassOfService>Y</stl19Smiley SurprisedperatingClassOfService>
<stl19:MarketingClassOfService>Y</stl19:MarketingClassOfService>
<stl19:MarriageGrp>
<stl19:Ind>0</stl19:Ind>
<stl19:Group>0</stl19:Group>
<stl19Smiley Frustratedequence>0</stl19Smiley Frustratedequence>
</stl19:MarriageGrp>
<stl19Smiley Frustratedeats/>
<stl19:AirlineRefId>DCAA*IVUTDX</stl19:AirlineRefId>
<stl19:Eticket>true</stl19:Eticket>
<stl19Smiley Very HappyepartureDateTime>2019-11-20T20:50:00</stl19Smiley Very HappyepartureDateTime>
<stl19:ArrivalDateTime>2019-11-21T04:10:00</stl19:ArrivalDateTime>
<stl19:FlightNumber>0900</stl19:FlightNumber>
<stl19:ClassOfService>Y</stl19:ClassOfService>
<stl19:ActionCode>HK</stl19:ActionCode>
<stl19:NumberInParty>2</stl19:NumberInParty>
<stl19Smiley FrustratedegmentSpecialRequests/>
<stl19:inboundConnection>false</stl19:inboundConnection>
<stl19Smiley SurprisedutboundConnection>false</stl19Smiley SurprisedutboundConnection>
<stl19Smiley FrustratedcheduleChangeIndicator>false</stl19Smiley FrustratedcheduleChangeIndicator>
<stl19Smiley FrustratedegmentBookedDate>2019-10-30T06:41:00</stl19Smiley FrustratedegmentBookedDate>
<stl19Smiley Tongueos>
<stl19:IataNumber>2323972</stl19:IataNumber>
<stl19:AgencyCityCode>STR</stl19:AgencyCityCode>
<stl19:CountryCode>DE</stl19:CountryCode>
<stl19Smiley Very HappyutyCode>*</stl19Smiley Very HappyutyCode>
</stl19Smiley Tongueos>
<stl19:Banner>MARKETED BY AMERICAN AIRLINES</stl19:Banner>
<stl19:Informational>false</stl19:Informational>
</stl19:Air>
</stl19Smiley Frustratedegment>
<stl19Smiley Frustratedegment sequence="2" id="9">
<stl19:Air id="9" sequence="2" segmentAssociationId="3" isPast="false" DayOfWeekInd="4" CodeShare="false" SpecialMeal="false" SmokingAllowed="false" ResBookDesigCode="Y">
<stl19Smiley Very HappyepartureAirport>MIA</stl19Smiley Very HappyepartureAirport>
<stl19Smiley Very HappyepartureAirportCodeContext>IATA</stl19Smiley Very HappyepartureAirportCodeContext>
<stl19:ArrivalAirport>EZE</stl19:ArrivalAirport>
<stl19:ArrivalAirportCodeContext>IATA</stl19:ArrivalAirportCodeContext>
<stl19Smiley SurprisedperatingAirlineCode>AA</stl19Smiley SurprisedperatingAirlineCode>
<stl19Smiley SurprisedperatingAirlineShortName>AMERICAN AIRLINES</stl19Smiley SurprisedperatingAirlineShortName>
<stl19Smiley SurprisedperatingFlightNumber>0907</stl19Smiley SurprisedperatingFlightNumber>
<stl19:EquipmentType>772</stl19:EquipmentType>
<stl19:MarketingAirlineCode>AA</stl19:MarketingAirlineCode>
<stl19:MarketingFlightNumber>0907</stl19:MarketingFlightNumber>
<stl19Smiley SurprisedperatingClassOfService>Y</stl19Smiley SurprisedperatingClassOfService>
<stl19:MarketingClassOfService>Y</stl19:MarketingClassOfService>
<stl19:MarriageGrp>
<stl19:Ind>0</stl19:Ind>
<stl19:Group>0</stl19:Group>
<stl19Smiley Frustratedequence>0</stl19Smiley Frustratedequence>
</stl19:MarriageGrp>
<stl19Smiley Frustratedeats/>
<stl19:AirlineRefId>DCAA*IVUTDX</stl19:AirlineRefId>
<stl19:Eticket>true</stl19:Eticket>
<stl19Smiley Very HappyepartureDateTime>2019-11-21T20:00:00</stl19Smiley Very HappyepartureDateTime>
<stl19:ArrivalDateTime>2019-11-22T07:07:00</stl19:ArrivalDateTime>
<stl19:FlightNumber>0907</stl19:FlightNumber>
<stl19:ClassOfService>Y</stl19:ClassOfService>
<stl19:ActionCode>HK</stl19:ActionCode>
<stl19:NumberInParty>2</stl19:NumberInParty>
<stl19Smiley FrustratedegmentSpecialRequests/>
<stl19:inboundConnection>false</stl19:inboundConnection>
<stl19Smiley SurprisedutboundConnection>false</stl19Smiley SurprisedutboundConnection>
<stl19Smiley FrustratedcheduleChangeIndicator>false</stl19Smiley FrustratedcheduleChangeIndicator>
<stl19Smiley FrustratedegmentBookedDate>2019-10-30T06:41:00</stl19Smiley FrustratedegmentBookedDate>
<stl19Smiley Tongueos>
<stl19:IataNumber>2323972</stl19:IataNumber>
<stl19:AgencyCityCode>STR</stl19:AgencyCityCode>
<stl19:CountryCode>DE</stl19:CountryCode>
<stl19Smiley Very HappyutyCode>*</stl19Smiley Very HappyutyCode>
</stl19Smiley Tongueos>
<stl19:Banner>MARKETED BY AMERICAN AIRLINES</stl19:Banner>
<stl19:Informational>false</stl19:Informational>
</stl19:Air>
</stl19Smiley Frustratedegment>
<stl19Smiley Frustratedegment sequence="3" id="15">
<stl19:Air id="15" sequence="3" segmentAssociationId="4" isPast="false" DayOfWeekInd="5" CodeShare="false" SpecialMeal="false" SmokingAllowed="false" ResBookDesigCode="Y">
<stl19Smiley Very HappyepartureAirport>EZE</stl19Smiley Very HappyepartureAirport>
<stl19Smiley Very HappyepartureAirportCodeContext>IATA</stl19Smiley Very HappyepartureAirportCodeContext>
<stl19:ArrivalAirport>MIA</stl19:ArrivalAirport>
<stl19:ArrivalAirportCodeContext>IATA</stl19:ArrivalAirportCodeContext>
<stl19Smiley SurprisedperatingAirlineCode>4M</stl19Smiley SurprisedperatingAirlineCode>
<stl19Smiley SurprisedperatingAirlineShortName>LATAM AIRLINES ARGENTINA</stl19Smiley SurprisedperatingAirlineShortName>
<stl19Smiley SurprisedperatingFlightNumber>7820</stl19Smiley SurprisedperatingFlightNumber>
<stl19:EquipmentType>763</stl19:EquipmentType>
<stl19:MarketingAirlineCode>AA</stl19:MarketingAirlineCode>
<stl19:MarketingFlightNumber>7836</stl19:MarketingFlightNumber>
<stl19Smiley SurprisedperatingClassOfService>Y</stl19Smiley SurprisedperatingClassOfService>
<stl19:MarketingClassOfService>Y</stl19:MarketingClassOfService>
<stl19:CodeShareOperatingRecordLocator>IVUTMY</stl19:CodeShareOperatingRecordLocator>
<stl19:MarriageGrp>
<stl19:Ind>0</stl19:Ind>
<stl19:Group>0</stl19:Group>
<stl19Smiley Frustratedequence>0</stl19Smiley Frustratedequence>
</stl19:MarriageGrp>
<stl19Smiley Frustratedeats/>
<stl19:AirlineRefId>DCAA*IVUTDX</stl19:AirlineRefId>
<stl19:Eticket>true</stl19:Eticket>
<stl19Smiley Very HappyepartureDateTime>2019-11-22T21:35:00</stl19Smiley Very HappyepartureDateTime>
<stl19:ArrivalDateTime>2019-11-23T04:50:00</stl19:ArrivalDateTime>
<stl19:FlightNumber>7836</stl19:FlightNumber>
<stl19:ClassOfService>Y</stl19:ClassOfService>
<stl19:ActionCode>HK</stl19:ActionCode>
<stl19:NumberInParty>2</stl19:NumberInParty>
<stl19Smiley FrustratedegmentSpecialRequests/>
<stl19:inboundConnection>false</stl19:inboundConnection>
<stl19Smiley SurprisedutboundConnection>false</stl19Smiley SurprisedutboundConnection>
<stl19Smiley FrustratedcheduleChangeIndicator>false</stl19Smiley FrustratedcheduleChangeIndicator>
<stl19Smiley FrustratedegmentBookedDate>2019-10-30T06:41:00</stl19Smiley FrustratedegmentBookedDate>
<stl19Smiley Tongueos>
<stl19:IataNumber>2323972</stl19:IataNumber>
<stl19:AgencyCityCode>STR</stl19:AgencyCityCode>
<stl19:CountryCode>DE</stl19:CountryCode>
<stl19Smiley Very HappyutyCode>*</stl19Smiley Very HappyutyCode>
</stl19Smiley Tongueos>
<stl19:Banner>MARKETED BY AMERICAN AIRLINES</stl19:Banner>
<stl19:Informational>false</stl19:Informational>
</stl19:Air>
</stl19Smiley Frustratedegment>
</stl19Smiley Frustratedegments>
<stl19:TicketingInfo>
<stl19:TicketingTimeLimit id="29" index="1" elementId="pnr-29">
<stl19:Time>TL30</stl19:Time>
</stl19:TicketingTimeLimit>
</stl19:TicketingInfo>
<stl19:ItineraryPricing/>
</stl19Smiley TongueassengerReservation>
<stl19:ReceivedFrom>
<stl19:Name>QA</stl19:Name>
</stl19:ReceivedFrom>
<stl19Smiley TonguehoneNumbers>
<stl19Smiley TonguehoneNumber id="24" index="1" elementId="pnr-24">
<stl19:CityCode>STR</stl19:CityCode>
<stl19:Number>594999</stl19:Number>
</stl19Smiley TonguehoneNumber>
</stl19Smiley TonguehoneNumbers>
<stl19:EmailAddresses/>
<stl19Smiley SurprisedpenReservationElements>
<or114Smiley SurprisedpenReservationElement id="25" type="SRVC" elementId="pnr-25">
<or114Smiley FrustratederviceRequest actionCode="HK" airlineCode="AA" code="GSTN" serviceCount="1" serviceType="SSR" ssrType="AFX">
<or114:FreeText>/IND/22WWWWWWWW0A1Z5/IBM/P</or114:FreeText>
<or114:FullText>GSTN AA HK1/IND/22WWWWWWWW0A1Z5/IBM/P</or114:FullText>
</or114Smiley FrustratederviceRequest>
<or114:NameAssociation>
<or114:LastName>ZEEYEVU</or114:LastName>
<or114:FirstName>TYFEXH</or114:FirstName>
<or114:NameRefNumber>01.01</or114:NameRefNumber>
</or114:NameAssociation>
</or114Smiley SurprisedpenReservationElement>
<or114Smiley SurprisedpenReservationElement id="26" type="SRVC" elementId="pnr-26">
<or114Smiley FrustratederviceRequest actionCode="HK" airlineCode="AA" code="GSTN" serviceCount="1" serviceType="SSR" ssrType="AFX">
<or114:FreeText>/IND/22DDDWWWWW0A2S5/IBM/U</or114:FreeText>
<or114:FullText>GSTN AA HK1/IND/22DDDWWWWW0A2S5/IBM/U</or114:FullText>
</or114Smiley FrustratederviceRequest>
<or114:NameAssociation>
<or114:LastName>ZEEYEVU</or114:LastName>
<or114:FirstName>TYFEXH</or114:FirstName>
<or114:NameRefNumber>01.01</or114:NameRefNumber>
</or114:NameAssociation>
</or114Smiley SurprisedpenReservationElement>
<or114Smiley SurprisedpenReservationElement id="27" type="SRVC" elementId="pnr-27">
<or114Smiley FrustratederviceRequest actionCode="HK" airlineCode="AA" code="GSTN" serviceCount="1" serviceType="SSR" ssrType="AFX">
<or114:FreeText>/IND/22SSSSAAA00A1Z5/IBM/S</or114:FreeText>
<or114:FullText>GSTN AA HK1/IND/22SSSSAAA00A1Z5/IBM/S</or114:FullText>
</or114Smiley FrustratederviceRequest>
<or114:NameAssociation>
<or114:LastName>NHFKDBG</or114:LastName>
<or114:FirstName>SVHJIT</or114:FirstName>
<or114:NameRefNumber>02.01</or114:NameRefNumber>
</or114:NameAssociation>
</or114Smiley SurprisedpenReservationElement>
<or114Smiley SurprisedpenReservationElement id="28" type="SRVC" elementId="pnr-28">
<or114Smiley FrustratederviceRequest actionCode="HK" airlineCode="AA" code="GSTN" serviceCount="1" serviceType="SSR" ssrType="AFX">
<or114:FreeText>/IND/22DDDDDDDDDD1Z5/IBM/P</or114:FreeText>
<or114:FullText>GSTN AA HK1/IND/22DDDDDDDDDD1Z5/IBM/P</or114:FullText>
</or114Smiley FrustratederviceRequest>
<or114:NameAssociation>
<or114:LastName>NHFKDBG</or114:LastName>
<or114:FirstName>SVHJIT</or114:FirstName>
<or114:NameRefNumber>02.01</or114:NameRefNumber>
</or114:NameAssociation>
</or114Smiley SurprisedpenReservationElement>
</stl19Smiley SurprisedpenReservationElements>
</stl19:Reservation>
</stl19:GetReservationRS>
</soap-env:Body>
</soap-env:Envelope>

 

I have used below groovy script and able to print all the values but unable to set the same in property. I want each value to be set in property :

 

import com.eviware.soapui.support.GroovyUtils
import com.eviware.soapui.support.XmlHolder

def groovyUtils = new com.eviware.soapui.support.GroovyUtils(context)
def xmlHolder = groovyUtils.getXmlHolder("GetReservation#Response")

def val = xmlHolder["//*:FullText"]
def count = xmlHolder["count(//*:FullText)"]
def SsrFullText="";
log.info count
for(i=1;i<count.toInteger();i++){
//log.info val[i] // it will print all the values from duplicate SSR Text
SsrFullText=val[i];
log.info SsrFullText
context.testCase.testSuite.setPropertyValue('SsrFullText',SsrFullText)


}

 

 


Start Virtual Service with specific Response in Service V Pro

$
0
0
I have a question regarding the REST Virtual Service with Serice V Pro.

In my case, I configured a REST POST request.There I have defined two different answer, as an example.

Response 1:
<Value>1 </ value>

Response 2:
<Value> 2 </ value>

Is it possible to start the service with a specific response as desired?In one case it is Response 1 and in another case Response 2.
Best regardless of data from the request etc. No headers, no parameters etc.

It would not be that bad of Soapui, maybe even Groovy.

Thank you!

Best regards, Christoph

Do you have videos of Record & Replay for serviceV pro?

$
0
0

HI Team,

 

I have a requirment where I need to record the incoming traffic and replay back. Is there a link (document) which explains about that. If I have 5 different request and the response was captured through traffic. Now when I run the request I should get the relevant response back without adding addition code or without dispatcher style. Is there any settings where it has a intelligence to read the incoming request and send the response for the same ?

 

When googled i found "https://www.soapui.org/http-recording/recording.html", but this is for SOAPUI, I would require for ServiceV pro. 

 

Thanks

Senthil Kumar. M 

How to stop a scenario in scenario outlines when a step fail in cucumbe js?

$
0
0

In the scenario outline, I would like to skip steps when a step fails in a scenario and to continue on the following scenario.

for example :

Exampes: |param 1| |scenario 1| |scenario 2| |scenario 3|

If a step fails in scenario 1, I would like to continue directly to scenario 2 and not executing all the following steps in scenario 1 after the step fails.

Thanks for the answers!

Swagger

$
0
0

Hi,

i have tested REST API  using SOAP UI 5.4.0 and now want to use SWAGGER but not sure how to start , what should i installed SWAGGER HUB/SWAGGER OPEN SOURCE TOOL.I mean have to test or create the REST API USING SWAGGER.

Kindly suggest what is needed .I am completely new to this .Is there any way to convert already created RSET API project to swagger or how to upload the project.

 

 

TestComplete Crashes while runing window based application

$
0
0

Hello All,

I am very new to TestComplete & Automation. I want to use my window app which was developed using CMake, it works perfectly fine with Visual Studio. But with TestComplete it crashes while executing same.

 

Please suggest how it can be fixed.

 

Thanks

JavaScriopt format script extension install

$
0
0

I do believe I am doing something wrong, potentially dumb even. Smiley Happy

 

https://community.smartbear.com/t5/TestComplete-Functional-Web/How-to-format-jscript-code-in-Test-Complete-IDE/td-p/63411

 

I had previously had this extension installed. I had to uninstall TC for a support case that was being worked on. I came to the referenced handy dandy thread. I took the zip and changed the file extension to tcx as I understood the instructions. I double clicked on the file. I chose the default desintation (see photo attached). 

 

I opened TC since it was closed when I did the above. I do not see the icon for this extension that I had before when the code editor is open. I checked the Install Script Extension window and do not see it in the list of available extensions. I went to Tools | Options | Engines |Script Extensions and added that folder location...

 

SOmeone please point me to what I am doing wrong? Thanks

How to write if statement with multiple operators ?

$
0
0

Hi,

 

is there a better way to re-write this statement?

 

a ='1a'
b ='2a'
c = '3a'
d= '4a'
e ='5a'

if (a=='1a' || b == '2a' || c =='3a') && (d == '4a'){
assert e =='5a'

 

Thank you

 

 


Querying a SQL Server DB and returning more than one column

$
0
0

Instead of recording a script, I am attempting to query a given database table myself. I am able, but I am only able to return records for one column. Is there a way I can append to what I have here in the while loop to add columns and view like a table in my log? My sample code:

function RunSimpleQuery()
{
var AConnection, RecSet;
//Create ADO connection
AConnection = ADO.CreateConnection();
AConnection.ConnectionString="Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;User ID=*******;Initial Catalog=*******;Data Source=*******";
AConnection.Open();
RecSet = AConnection.Execute("SELECT * FROM someDB.SomeTable WHERE statuscode != 4");
Log.AppendFolder("This is a test");
RecSet.MoveFirst();
while(! RecSet.EOF )
{
Log.Message(RecSet.Fields.Item("statuscode").Value);
RecSet.MoveNext();
}
AConnection.Close();
}

 

 

Like I said, I have more than one column to return in results for log. Any help would be appreciated.

Stephen Madden

How to clear cookies on ios device

$
0
0

I am using a ios physical device connected to my windows system for running the automation on the ios device.

 

I would like to clear cookies before each scanario so that there is no data from the last scenario execution for the next scenario that are going to be executed.

 

Is there a way to clear cookies on the ios device?

 

for android, this seems to work for me: Mobile.Device().ShellExecute("pm clear com.smartbear.smartbearbrowser"); 

 

I am using Testcomplete with Javascript language.

 

Thanks in Advance,

Sridhar.

SoapUI installation using Ansible on 500 windows hosts

$
0
0

Hi All,

 

I'm planning to install SoapUI on my 500 servers using Ansible but when I execute my playbook it got stuck and it seems it is waiting for some input.

 

I'm passing argument in the below manner, please advise this it this is not correct.

 

- name: Install SoapUI
win_package:
path: '{{ tempdir.path }}\soapui.exe'
arguments: '/S /D={{ soapui_install_dir }}'
creates_path: '{{ soapui_install_dir }}'

 

Any help is highly appreciated.

 

regards

 

Vikrant

 

PS: Here are some more details:

 

soapui_version: '32-5.5.0'
soapui_download_url: '{{ artifactory_url.us }}/soapui/SoapUI-x{{ soapui_version }}.exe'

soapui_install_dir: 'C:\Program Files (x86)\SmartBear\SoapUI-5.5.0'

 

Execute script on a fixed timing automatically.

$
0
0
How can i fix execution timer for my scripts?
Like i want my test items to automatically execute in morning around 5am.
What can i do for the same?
Please guide.

ReadyAPI 2.8.0 is taking more time to load up on Mac Pro

$
0
0

ReadyAPI 2.8.0 is taking more time to load up on Mac Pro with display message 'Installing dashboard databases'. Also, when the project is removed, it is still displaying that project in the list of Soap UI Pro. Any help is really appreciated

SoapUI Pro is Dead - ERROR: Failed to get Browser browserChannel 0

$
0
0

Can't load SoapUI Pro

- Latest version

- restarted multiple times

- rebooted computer

- Running Catalina 10.15.1

 

  • Fri Nov 01 09:43:30 EDT 2019: INFO: ReadyAPI 2.8.2 (build 3619) started - System properties: {OS=Mac OS X, User name=jason}
  • Fri Nov 01 09:43:31 EDT 2019: INFO: SoapUI settings were initialized from [/Users/jason/soapui-settings.xml]
  • The projects will be saved every 5 minutes
  • Fri Nov 01 09:43:31 EDT 2019: INFO: "/Applications/ReadyAPI-2.8.2.app/Contents/Resources/app/bin/ext/sqljdbc42.jar" has been added to the classpath.
  • Fri Nov 01 09:43:31 EDT 2019: INFO: "/Applications/ReadyAPI-2.8.2.app/Contents/Resources/app/bin/ext/postgresql-9.3-1102.jdbc41.jar" has been added to the classpath.
  • Fri Nov 01 09:43:31 EDT 2019: WARN: The custom library "/Applications/ReadyAPI-2.8.2.app/Contents/java/app/bin" does not exist.
  • Fri Nov 01 09:43:31 EDT 2019: INFO: 2 JDBC drivers have been registered from the directory bin/ext: [com.microsoft.sqlserver.jdbc.SQLServerDriver, org.postgresql.Driver].
  • Fri Nov 01 09:43:31 EDT 2019: INFO: Adding listeners from [/Applications/ReadyAPI-2.8.2.app/Contents/Resources/app/bin/listeners/demo-listeners.xml]
  • Fri Nov 01 09:43:31 EDT 2019: WARN: The report directory "/Applications/ReadyAPI-2.8.2.app/Contents/java/app/bin" does not exist. The default report directory will be used.
  • Fri Nov 01 09:43:33 EDT 2019: INFO: Adding actions from [/Applications/ReadyAPI-2.8.2.app/Contents/Resources/app/bin/actions/demo-actions.xml]
  • Fri Nov 01 09:43:33 EDT 2019: INFO: Defaulting to native L&F for Mac OS X
  • Fri Nov 01 09:43:34 EDT 2019: DEBUG: Trying to initialize license for SoapUI
  • Fri Nov 01 09:43:34 EDT 2019: DEBUG: License host for SoapUI: ROBBIES-MBP.LOCALDOMAIN
  • Fri Nov 01 09:43:34 EDT 2019: DEBUG: No license found for SoapUI
  • Fri Nov 01 09:43:34 EDT 2019: DEBUG: Trying to initialize license for SoapUI
  • Fri Nov 01 09:43:34 EDT 2019: DEBUG: License host for SoapUI: ROBBIES-MBP.LOCALDOMAIN
  • Fri Nov 01 09:43:34 EDT 2019: DEBUG: Valid license file found: /Users/jason/.soapui/soapui.key, last modified: 2019-09-18T16:11:20.000-0400
  • Fri Nov 01 09:43:35 EDT 2019: DEBUG: Trying to initialize license for LoadUI
  • Fri Nov 01 09:43:35 EDT 2019: DEBUG: No license found for LoadUI
  • Fri Nov 01 09:43:35 EDT 2019: DEBUG: License host for LoadUI: ROBBIES-MBP.LOCALDOMAIN
  • Fri Nov 01 09:43:35 EDT 2019: DEBUG: Trying to initialize license for ServiceV
  • Fri Nov 01 09:43:35 EDT 2019: DEBUG: No license found for ServiceV
  • Fri Nov 01 09:43:35 EDT 2019: DEBUG: License host for ServiceV: ROBBIES-MBP.LOCALDOMAIN
  • Fri Nov 01 09:43:35 EDT 2019: DEBUG: Trying to initialize license for ReadyAPI Bundle
  • Fri Nov 01 09:43:35 EDT 2019: DEBUG: No license found for ReadyAPI Bundle
  • Fri Nov 01 09:43:35 EDT 2019: DEBUG: License host for ReadyAPI Bundle: ROBBIES-MBP.LOCALDOMAIN
  • Fri Nov 01 09:43:35 EDT 2019: INFO: Loading workspace from [/Users/jason/default-soapui-workspace.xml]
  • Fri Nov 01 09:43:36 EDT 2019: INFO: Adding plugin from [/Users/jason/.soapui/plugins/ready-jira-plugin-1.3.jar]
  • Fri Nov 01 09:43:36 EDT 2019: INFO: Adding plugin from [/Users/jason/.soapui/plugins/readyapi-postman-plugin-2.0.0.jar]
  • Added AutoFactory for [PluginPrefs]
  • Fri Nov 01 09:43:36 EDT 2019: INFO: Adding plugin from [/Users/jason/.soapui/plugins/ready-uxm-plugin-1.1.0.jar]
  • Added AutoFactory for [PluginPrefs]
  • Fri Nov 01 09:43:36 EDT 2019: INFO: Adding plugin from [/Users/jason/.soapui/plugins/ready-mqtt-plugin-dist.jar]
  • Added AutoFactory for [PluginPanelBuilder]
  • Added AutoFactory for [PluginPanelBuilder]
  • Added AutoFactory for [PluginPanelBuilder]
  • Added AutoFactory for [PluginTestStep]
  • Added AutoFactory for [PluginTestStep]
  • Added AutoFactory for [PluginTestStep]
  • Fri Nov 01 09:43:36 EDT 2019: INFO: 4 plugins loaded in 151 ms
  • Fri Nov 01 09:43:36 EDT 2019: INFO: All plugins loaded
  • Fri Nov 01 09:43:36 EDT 2019: WARN: The file has not been loaded, because it is not specified in the project: /Users/jason/ReadyAPI/foko-api-staging-API/v15.xml
  • Fri Nov 01 09:43:37 EDT 2019: WARN: The file has not been loaded, because it is not specified in the project: /Users/jason/ReadyAPI/Regression-readyapi-project.xml
  • Fri Nov 01 09:43:38 EDT 2019: INFO: Setting the maximum size of the dashboard database to 6144 MB.
  • Fri Nov 01 09:43:38 EDT 2019: INFO: Loaded project from [file:/Users/jason/ReadyAPI/]
  • Fri Nov 01 09:43:39 EDT 2019: WARN: The service 'REST Service 1 2 2' was not found in the project 'New Foko Services'.
  • Fri Nov 01 09:43:39 EDT 2019: WARN: The service 'REST Service 1 2 2' was not found in the project 'New Foko Services'.
  • Fri Nov 01 09:43:39 EDT 2019: WARN: The service 'REST Service 1 2 2' was not found in the project 'New Foko Services'.
  • Fri Nov 01 09:43:39 EDT 2019: INFO: Initialized base directory to keep executions to /Users/jason/.readyapi/loadui/results
  • Fri Nov 01 09:43:40 EDT 2019: INFO: Initializing modules
  • Added AutoFactory for [PluginPanelBuilder]
  • Added AutoFactory for [PluginPanelBuilder]
  • Added AutoFactory for [PluginPanelBuilder]
  • Added AutoFactory for [PluginPanelBuilder]
  • Added AutoFactory for [PluginPanelBuilder]
  • Added AutoFactory for [PluginPanelBuilder]
  • Fri Nov 01 09:43:40 EDT 2019: INFO: Module [Dashboard] added 0 actionGroups, 0 actions, 0 factories, 0 listeners, 0 toolbar components.
  • Added AutoFactory for [PluginPanelBuilder]
  • Added AutoFactory for [PluginPanelBuilder]
  • Added AutoFactory for [PluginPanelBuilder]
  • Fri Nov 01 09:43:41 EDT 2019: INFO: Module [LoadUI] added 6 actionGroups, 14 actions, 3 factories, 0 listeners, 0 toolbar components.
  • Added AutoFactory for [PluginPanelBuilder]
  • Added AutoFactory for [PluginPanelBuilder]
  • Added AutoFactory for [PluginPanelBuilder]
  • Fri Nov 01 09:43:41 EDT 2019: INFO: Module [Secure] added 5 actionGroups, 13 actions, 2 factories, 0 listeners, 0 toolbar components.
  • Fri Nov 01 09:43:41 EDT 2019: INFO: Module [Integrations] added 0 actionGroups, 0 actions, 0 factories, 0 listeners, 0 toolbar components.
  • Added AutoFactory for [PluginPanelBuilder]
  • Added AutoFactory for [PluginPanelBuilder]
  • Added AutoFactory for [PluginPanelBuilder]
  • Added AutoFactory for [PluginPanelBuilder]
  • Added AutoFactory for [PluginPanelBuilder]
  • Added AutoFactory for [PluginPanelBuilder]
  • Added AutoFactory for [PluginPanelBuilder]
  • Added AutoFactory for [PluginPanelBuilder]
  • Added AutoFactory for [PluginPanelBuilder]
  • Added AutoFactory for [PluginPanelBuilder]
  • Added AutoFactory for [PluginPanelBuilder]
  • Added AutoFactory for [PluginPanelBuilder]
  • Added AutoFactory for [PluginPanelBuilder]
  • Added AutoFactory for [PluginPanelBuilder]
  • Added AutoFactory for [PluginResponseInspector]
  • Added AutoFactory for [PluginResponseInspector]
  • Added AutoFactory for [PluginRequestInspector]
  • Fri Nov 01 09:43:41 EDT 2019: INFO: Module [SoapUI] added 6 actionGroups, 6 actions, 1 factories, 0 listeners, 0 toolbar components.
  • Fri Nov 01 09:43:42 EDT 2019: INFO: Module [Projects] added 12 actionGroups, 2 actions, 1 factories, 0 listeners, 0 toolbar components.
  • Fri Nov 01 09:43:42 EDT 2019: INFO: Module [ServiceV] added 19 actionGroups, 36 actions, 19 factories, 0 listeners, 0 toolbar components.
  • Fri Nov 01 09:43:42 EDT 2019: INFO: Module [SoapUIProUserInterfaceModule] added 5 actionGroups, 208 actions, 3 factories, 0 listeners, 0 toolbar components.
  • Fri Nov 01 09:43:42 EDT 2019: INFO: All modules loaded
  • Fri Nov 01 09:43:43 EDT 2019: INFO: Module [ReadyApiUI] added 6 actionGroups, 4 actions, 0 factories, 0 listeners, 0 toolbar components.
  • Fri Nov 01 09:43:43 EDT 2019: INFO: Loading took 2864 ms
  • Fri Nov 01 09:43:43 EDT 2019: INFO: Setting maximum test history db size to 2048 MB
  • Fri Nov 01 09:43:43 EDT 2019: INFO: Setting the maximum size of the dashboard database to 6144 MB.
  • Fri Nov 01 09:43:43 EDT 2019: INFO: Starting ReadyAPI 2.8.2 (build 3619)
  • Fri Nov 01 09:45:46 EDT 2019: ERROR: Failed to get Browser browserChannel 0
  • com.teamdev.jxbrowser.chromium.internal.ipc.IPCException: Failed to get Browser browserChannel 0
  • at com.teamdev.jxbrowser.chromium.Browser.a(SourceFile:485)
  • at com.teamdev.jxbrowser.chromium.Browser.(SourceFile:402)
  • at com.teamdev.jxbrowser.chromium.Browser.(SourceFile:348)
  • at com.eviware.soapui.support.components.JxBrowserComponent.initializeBrowser(JxBrowserComponent.java:113)
  • at com.eviware.soapui.support.components.JxBrowserComponent.(JxBrowserComponent.java:95)
  • at com.eviware.soapui.support.components.WebViewBasedBrowserComponentFactory.createBrowserComponent(WebViewBasedBrowserComponentFactory.java:51)
  • at com.eviware.soapui.ui.URLDesktopPanel.(URLDesktopPanel.java:43)
  • at com.eviware.soapui.ui.StarterPageDesktopPanel.(StarterPageDesktopPanel.java:38)
  • at com.eviware.soapui.ready.ClassicModulePanel.showStarterPage(ClassicModulePanel.java:472)
  • at com.eviware.soapui.ready.ClassicModulePanel$InternalNavigatorListener.nodeSelected(ClassicModulePanel.java:780)
  • at com.eviware.soapui.ui.Navigator$EventTranslator.valueChanged(Navigator.java:554)
  • at javax.swing.JTree.fireValueChanged(JTree.java:2934)
  • at javax.swing.JTree$TreeSelectionRedirector.valueChanged(JTree.java:3398)
  • at javax.swing.tree.DefaultTreeSelectionModel.fireValueChanged(DefaultTreeSelectionModel.java:635)
  • at javax.swing.tree.DefaultTreeSelectionModel.notifyPathChange(DefaultTreeSelectionModel.java:1093)
  • at javax.swing.tree.DefaultTreeSelectionModel.setSelectionPaths(DefaultTreeSelectionModel.java:294)
  • at javax.swing.tree.DefaultTreeSelectionModel.setSelectionPath(DefaultTreeSelectionModel.java:188)
  • at javax.swing.JTree.setSelectionPath(JTree.java:1641)
  • at com.eviware.soapui.ui.Navigator.setSelection(Navigator.java:615)
  • at com.eviware.soapui.ui.Navigator.selectWorkspace(Navigator.java:606)
  • at com.eviware.soapui.ready.ClassicModulePanel.(ClassicModulePanel.java:209)
  • at com.eviware.soapui.ready.ClassicModulePanel.(ClassicModulePanel.java:137)
  • at com.eviware.soapui.ready.ClassicModulePanel$Builder.build(ClassicModulePanel.java:669)
  • at com.eviware.soapui.ready.ClassicModuleGui.buildUI(ClassicModuleGui.java:303)
  • at com.eviware.soapui.ready.ClassicModuleGui.buildUI(ClassicModuleGui.java:1)
  • at com.smartbear.ready.core.module.support.SimpleModuleGui.getComponent(SimpleModuleGui.java:52)
  • at com.eviware.soapui.ready.ClassicModuleGui.getComponent(ClassicModuleGui.java:277)
  • at com.eviware.soapui.ready.ClassicModuleGui.activate(ClassicModuleGui.java:243)
  • at com.smartbear.ready.core.module.support.PrivateReadyApiModule.activate(PrivateReadyApiModule.java:89)
  • at com.smartbear.ready.core.module.SimpleReadyApiDisplayDispatcher.setActiveModuleInternal(SimpleReadyApiDisplayDispatcher.java:52)
  • at com.smartbear.ready.core.module.SimpleReadyApiDisplayDispatcher.setActiveModule(SimpleReadyApiDisplayDispatcher.java:77)
  • at com.smartbear.ready.core.module.SimpleReadyApiDisplayDispatcher.activateModuleWithId(SimpleReadyApiDisplayDispatcher.java:62)
  • at com.smartbear.ready.ui.swing.SwingReadyApiUi.showStarterPage(SwingReadyApiUi.java:55)
  • at com.smartbear.ready.ui.swing.CommonSwingReadyApiUi.buildMainWindow(CommonSwingReadyApiUi.java:140)
  • at com.smartbear.ready.ui.swing.CommonSwingReadyApiUi.getMainWindow(CommonSwingReadyApiUi.java:110)
  • at com.smartbear.ready.ui.swing.CommonSwingReadyApiUi.runReadyApi(CommonSwingReadyApiUi.java:102)
  • at com.smartbear.ready.ui.swinginvoke.SwingInvokeInterceptor$InvocationRunner.run(SwingInvokeInterceptor.java:59)
  • at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:301)
  • at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
  • at java.awt.EventQueue.access$500(EventQueue.java:97)
  • at java.awt.EventQueue$3.run(EventQueue.java:709)
  • at java.awt.EventQueue$3.run(EventQueue.java:703)
  • at java.security.AccessController.doPrivileged(Native Method)
  • at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
  • at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
  • at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205)
  • at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
  • at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
  • at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
  • at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
  • at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
  • Fri Nov 01 09:45:46 EDT 2019: ERROR: Failed to get Browser browserChannel 0
  • com.teamdev.jxbrowser.chromium.internal.ipc.IPCException: Failed to get Browser browserChannel 0
  • at com.teamdev.jxbrowser.chromium.Browser.a(SourceFile:485)
  • at com.teamdev.jxbrowser.chromium.Browser.(SourceFile:402)
  • at com.teamdev.jxbrowser.chromium.Browser.(SourceFile:348)
  • at com.eviware.soapui.support.components.JxBrowserComponent.initializeBrowser(JxBrowserComponent.java:113)
  • at com.eviware.soapui.support.components.JxBrowserComponent.(JxBrowserComponent.java:95)
  • at com.eviware.soapui.support.components.WebViewBasedBrowserComponentFactory.createBrowserComponent(WebViewBasedBrowserComponentFactory.java:51)
  • at com.eviware.soapui.ui.URLDesktopPanel.(URLDesktopPanel.java:43)
  • at com.eviware.soapui.ui.StarterPageDesktopPanel.(StarterPageDesktopPanel.java:38)
  • at com.eviware.soapui.ready.ClassicModulePanel.showStarterPage(ClassicModulePanel.java:472)
  • at com.eviware.soapui.ready.ClassicModulePanel$InternalNavigatorListener.nodeSelected(ClassicModulePanel.java:780)
  • at com.eviware.soapui.ui.Navigator$EventTranslator.valueChanged(Navigator.java:554)
  • at javax.swing.JTree.fireValueChanged(JTree.java:2934)
  • at javax.swing.JTree$TreeSelectionRedirector.valueChanged(JTree.java:3398)
  • at javax.swing.tree.DefaultTreeSelectionModel.fireValueChanged(DefaultTreeSelectionModel.java:635)
  • at javax.swing.tree.DefaultTreeSelectionModel.notifyPathChange(DefaultTreeSelectionModel.java:1093)
  • at javax.swing.tree.DefaultTreeSelectionModel.setSelectionPaths(DefaultTreeSelectionModel.java:294)
  • at javax.swing.tree.DefaultTreeSelectionModel.setSelectionPath(DefaultTreeSelectionModel.java:188)
  • at javax.swing.JTree.setSelectionPath(JTree.java:1641)
  • at com.eviware.soapui.ui.Navigator.setSelection(Navigator.java:615)
  • at com.eviware.soapui.ui.Navigator.selectWorkspace(Navigator.java:606)
  • at com.eviware.soapui.ready.ClassicModulePanel.(ClassicModulePanel.java:209)
  • at com.eviware.soapui.ready.ClassicModulePanel.(ClassicModulePanel.java:137)
  • at com.eviware.soapui.ready.ClassicModulePanel$Builder.build(ClassicModulePanel.java:669)
  • at com.eviware.soapui.ready.ClassicModuleGui.buildUI(ClassicModuleGui.java:303)
  • at com.eviware.soapui.ready.ClassicModuleGui.buildUI(ClassicModuleGui.java:1)
  • at com.smartbear.ready.core.module.support.SimpleModuleGui.getComponent(SimpleModuleGui.java:52)
  • at com.eviware.soapui.ready.ClassicModuleGui.getComponent(ClassicModuleGui.java:277)
  • at com.eviware.soapui.ready.ClassicModuleGui.activate(ClassicModuleGui.java:243)
  • at com.smartbear.ready.core.module.support.PrivateReadyApiModule.activate(PrivateReadyApiModule.java:89)
  • at com.smartbear.ready.core.module.SimpleReadyApiDisplayDispatcher.setActiveModuleInternal(SimpleReadyApiDisplayDispatcher.java:52)
  • at com.smartbear.ready.core.module.SimpleReadyApiDisplayDispatcher.setActiveModule(SimpleReadyApiDisplayDispatcher.java:77)
  • at com.smartbear.ready.core.module.SimpleReadyApiDisplayDispatcher.activateModuleWithId(SimpleReadyApiDisplayDispatcher.java:62)
  • at com.smartbear.ready.ui.swing.SwingReadyApiUi.showStarterPage(SwingReadyApiUi.java:55)
  • at com.smartbear.ready.ui.swing.CommonSwingReadyApiUi.buildMainWindow(CommonSwingReadyApiUi.java:140)
  • at com.smartbear.ready.ui.swing.CommonSwingReadyApiUi.getMainWindow(CommonSwingReadyApiUi.java:110)
  • at com.smartbear.ready.ui.swing.CommonSwingReadyApiUi.runReadyApi(CommonSwingReadyApiUi.java:102)
  • at com.smartbear.ready.ui.swinginvoke.SwingInvokeInterceptor$InvocationRunner.run(SwingInvokeInterceptor.java:59)
  • at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:301)
  • at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
  • at java.awt.EventQueue.access$500(EventQueue.java:97)
  • at java.awt.EventQueue$3.run(EventQueue.java:709)
  • at java.awt.EventQueue$3.run(EventQueue.java:703)
  • at java.security.AccessController.doPrivileged(Native Method)
  • at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
  • at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
  • at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205)
  • at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
  • at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
  • at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
  • at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
  • at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

 

Screen Shot 2019-11-01 at 9.36.34 AM.png

Unable to find xpath for a dialogbox(Confirm) in chrome browser only.

$
0
0

Not able to inspect dialog box in chrome browser while i can check xpath for same dialogbox in other browsers(IE, Mozila). Also Test Complete Object spy not able to find peroperties & attribute for same dialogbox in chrome.

is there any kind of settings need to be done for chrome.


How i can verify second browser tab elements and switch back to first browser tab

$
0
0

Hi,

I am working with complete descriptive  . Below is my sample code

Browsers.Item(btChrome).Run("URL")
Set oBrowser = Sys.Browser("*")
Set oPage = oBrowser.Page("*")

 

Set obj= oPage.Find(arrPropNames, arrPropValues, 90, True)

If obj.Exists Then
obj.Click

end if

 

everything is working perfect if i am on single browser window . There is one scenario where if i click link it will open one more window where i need to validate some elements and switch back to first one for further validation

 

.Find not able to recognize objects in second browser window

 

Note :

1.URL is dynamic so i cant use url while creating page object

 any better suggetion without using URL as property

 

2. I should not use name mapping

 

in UFT we have creationtime so we can easily do that but in testcomplete so many complications 

 

 

 

How to show Allure Report option in the dialog

$
0
0

Hello,

My ReadyAPI does not have Allure Report option. How can I enable this one?

Please see my attached image.

Thanks,

 

Image comparison with Map

$
0
0

 Hi All,

     I have to test a Desktop UI with a Map ( Not google maps). In the application I have some brushes and other regular drawing tools. I recorded a Test with a brush by drawing some random figure and added a Image comparison as the last step. But when I re-run the test the testcomplete is drawing based only on the starting and ending point and the whole image is different. How can i make the re test to follow the exact steps I made? Also I have a option to start a projectile by specifying Starting and ending point. Is there a way to verify its movement also?

 

Thanks and Regards,

Anandhu

Invalid Project File

$
0
0

Recently upgraded to SOAP UI Pro version 2.8.2, after the upgrade unable to import any of the projects getting error like this.SoapUI_Error.png

Getting NULL value when trying to trigger script assertion.

$
0
0

Trying to get value from XML response. But getting NULL value with script assertion passed.

 

Script:

 

import com.eviware.soapui.support.XmlHolder
import javax.xml.XMLConstants
import javax.xml.transform.stream.StreamSource
import javax.xml.validation.SchemaFactory

def holder = new XmlHolder( messageExchange.responseContentAsXml )
def val=holder.getNodeValue("//*:NDCMSG_Header//@Function")
log.info(val)

 

 

Response:

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<ns2:NDCMSG_Envelope xmlns:ns2="http://dummy.aero/NDC/NDCUtility/v2">
<NDCMSG_Header>
<Function>SOAPProject</Function>
<SchemaType>SAMPLE</SchemaType>
<SchemaVersion>2.0</SchemaVersion>

<Recipient>
<Address>
<Company>SAMPLE</Company>
<NDCSystemId>DEV</NDCSystemId>
</Address>
</Recipient>
<Sender>
<Address>
<Company>SAMPLE</Company>
<NDCSystemId>SAMPLE</NDCSystemId>
</Address>
</Sender>
</NDCMSG_Header>
<NDCMSG_Body>
<NDCMSG_Payload>
<Document>
<Name>Sample Project</Name>
<ReferenceVersion>3200</ReferenceVersion>
</Document>
<Success/>

<DataLists>
<PassengerList>
<Passenger PassengerID="WJEUSGS-T1">
<PTC>ADT</PTC>
</Passenger>
</PassengerList>
<FlightSegmentList>
<FlightSegment SegmentKey="WERSDIL-SEGMENT-1">
<Departure>
<AirportCode>MAA</AirportCode>
<Date>2019-11-29</Date>
<Time>14:30</Time>
</Departure>
<Arrival>
<AirportCode>DEL</AirportCode>
<Date>2019-11-29</Date>
<Time>17:35</Time>
</Arrival>
<MarketingCarrier>
<AirlineID>WN</AirlineID>
<Name>Southwest Airlines</Name>
<FlightNumber>2071</FlightNumber>
<ResBookDesigCode>C</ResBookDesigCode>
</MarketingCarrier>
<OperatingCarrier>
<AirlineID>WN</AirlineID>
<Name>Southwest Airlines</Name>
</OperatingCarrier>
<ClassOfService>
<Code>C</Code>
</ClassOfService>
<FlightDetail>
<FlightSegmentType>30</FlightSegmentType>
<Stops>
<StopQuantity>0</StopQuantity>
</Stops>
</FlightDetail>
</FlightSegment>
</FlightSegmentList>
</DataLists>
</OfferPriceRS>
</NDCMSG_Payload>
</NDCMSG_Body>
</ns2:NDCMSG_Envelope>
</soap:Body>
</soap:Envelope>

 

 

Trying to get value of Function. Please help to get one value from the response with help of groovy script.

Viewing all 21061 articles
Browse latest View live