Package tests.hotels
Class SearchHotelsTest
java.lang.Object
tests.BaseTest
tests.hotels.SearchHotelsTest
@Epic("Hotels Search and Booking")
@Feature("Hotels Search")
@Severity(NORMAL)
public class SearchHotelsTest
extends BaseTest
Test class for searching hotels by city code using Amadeus API. Demonstrates data-driven testing
and custom assertion logging.
-
Field Summary
Fields inherited from class tests.BaseTest
logger, readProperties
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionObject[]
Provides a list of city codes for data-driven hotel search tests.void
testSearchHotelsByCityCode
(String cityCode) Searches hotels by city code and validates the IATA code in the response.Methods inherited from class tests.BaseTest
setUpSuite, updateToken
-
Constructor Details
-
SearchHotelsTest
public SearchHotelsTest()
-
-
Method Details
-
testSearchHotelsByCityCode
Searches hotels by city code and validates the IATA code in the response. Uses data-driven testing with a city code data provider.- Parameters:
cityCode
- the IATA city code to search hotels for
-
getCityCodes
Provides a list of city codes for data-driven hotel search tests.- Returns:
- array of IATA city codes
-