Hi am trying my hands on UFT - API testing.
I am using HP Flight API - SOAP for testing purpose. Problem is I tried to create GetFlight and Create Flight Order flow.
From GetFlight , i am able to get the flight information in response code in xml with all relevant flight details.
However when i execute CreateFlightOrder, with input as class, customer name, no. of ticket and flight number, the output which is get is Order number and total price.
Total price , however is not matching with the price defined while getflight.
Ex: price selected is $167 for 1 ticket , then the total price after CreateFlight Order is shown as $501.
I am attaching request and response for the transactions.
Any help is appreciated.
Flight><Airline>QF</Airline><ArrivalCity>Paris</ArrivalCity><ArrivalTime>10:19 AM</ArrivalTime><DepartureCity>London</DepartureCity><DepartureTime>08:39 AM</DepartureTime><FlightNumber>11079</FlightNumber><Price>167.4</Price></Flight>
CreateFlightOrder xmlns="HP.SOAQ.SampleApp">-<FlightOrder><Class>Economy</Class><CustomerName>John Smit</CustomerName><DepartureDate>2015-07-11T00:00:00+05:30</DepartureDate><FlightNumber>11079</FlightNumber><NumberOfTickets>1</NumberOfTickets></FlightOrder></CreateFlightOrder>
CreateFlightOrderResponse xmlns="HP.SOAQ.SampleApp">-<CreateFlightOrderResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance"><OrderNumber>98</OrderNumber><TotalPrice>502.199982</TotalPrice></CreateFlightOrderResult></CreateFlightOrderResponse>