Skip to main content

FormTest

The FormTest is a program designed to assist developers during the Connector development process by allowing manual requests to be made to the Connector.

Downloading and Setting Up FormTestโ€‹

The FormTest application can be downloaded from the following repository: FormTest GitHub Repository.

Configurationโ€‹

Once downloaded, create a file named appsettings.connectors.local.json in the project TravelgateX.Pull.Hotel.Formtest.Connectors. An example configuration can be found in appsettings.connectors.local.json.sample.

Here is an example of the configuration file:

{
"PROV_CODE": {
"SUP_CODE": {
"User": "theUser",
"Password": "thePassword",
"Urls": {
"Generic": "urlGeneric.com"
},
"Parameters": {
"test1": "value1",
"test2": "value2"
}
}
}
}

Profilesโ€‹

To add predefined configurations, modify the profiles.json file located in the TravelgateX.Pull.Hotel.Formtest project.

Here is an example of a profile:

{
"defaultOnStart": "CTSD",
"profiles": {
"CTSD": {
"platform": "CTSD",
"supplier": "CTSD",
"endpointIndex": 0,
"search": {
"currency": "USD",
"hotels": ["51"],
"from": "2025-01-29",
"market": "ES",
"to": "2025-01-30"
}
}
}
}

This configuration will automatically start with the specified profile when running the application.

FormTest User Interfaceโ€‹

Initial Runโ€‹

Before executing any operation, ensure the Connector is running. By default, it runs on port 8080.

Upon launching the FormTest, the interface will look like this: FormTest Initial Run

Search Tabโ€‹

In the Availability tab, you can specify search criteria such as:

  • Check-in and check-out dates.
  • Currency.
  • Market.
  • Hotel codes.
  • Occupancy details.

Once the criteria are selected, click the Search button to execute a search request.

Search Example

Option Selection and Valuationโ€‹

If options are available for the specified search criteria, you can select one to evaluate it using the Valuation button.

Option Selection

Reservation Tabโ€‹

If the valuation (Quote) is successful, navigate to the Reservation tab to make a booking. You can specify guest details and payment information (if required).

Reservation Tab

Manage Tabโ€‹

The Manage tab allows you to perform operations such as:

  • Canceling a booking.
  • Executing CheckBookings operations (both by reference and by date).

Manage Tab

Unavailable Featuresโ€‹

The Content and Transactions tabs are not available at this time.