Este conteúdo ainda não está disponível neste idioma.

Testing

Before you deploy your attach module to the Test or Production server, be sure to verify its elements.

Step 1: Verify the final request URL

First, add the https: protocol to the final request URL, like this:

https://xsell.expedia.com/xsell-pwa.js?partnerId=affiliate_prod_test&outboundEndDateTime=2024-08-29T05%3A54%3A02&destinationTla=LAS&bookingStatus=confirmed&signature=rXVm0wUD5V5L3rHZejI_GHczGd8

Next, load the URL in a browser. You should see a 200 status. The response will contain Javascript as shown below:

Code block with iframesrc section highlighted

Step 2: Verify the iframe URL

Copy the iframeSrc URL (endpoint xsell-iframe-v3) from the JavaScript response. For example:

https://www.expedia.com/xsell-iframe-v3?partnerId=affiliate_prod_test&outboundEndDateTime=2024-08-29T05%3A54%3A02&destinationTla=LAS&bookingStatus=confirmed&requestId=affiliate_prod_test32ebfcaf-a028-4555-bdc3-173953b79a5d&signature=ssQgHqbeIPx8Z52wc9dIEgrQOqg

You can verify the attach module by loading the iframeSrc URL in a browser.

Browser showing iframe URL in the address bar and a screen with the heading 'Great news! You qualify for special hotel deals because you booked a flight' and 3 hotel options

Step 3: Verify results post-deployment

Once the module is deployed, you should make sure that it’s working as expected.

  1. Navigate to the page where the attach module is integrated.
  2. Right click and select Inspect to open the developer tools.
  3. In the developer tools pane, go to the Network tab.
  4. Reload the page with the Network tab open.
  5. In the updated Network tab, check the URLs that include xsell-pwa.js (this is the final request URL) and xsell-ifram-v3. If the attach module has been loaded successfully on the page, these URLs should have a successful status of 200.
Browser and open developer pane showing the iframe with the heading 'Great news! You qualify for special hotel deals because you booked a flight' and 3 hotel options

Note: You could also copy and paste these URLs separately and load them on the browser to verify the attach module.

We recommend that you create a list of test cases and expected results for each of the lines of business (LOBs) you’re using to be sure that all use cases are working.

Example: Hotel attach module test cases

Test caseExpected result
Validate attach module displayConfigured display (embedded or overlay) is shown
Validate headerConfigured header is displayed
Validate subheaderConfigured subheader is displayed
Validate LOB orderConfigured LOB is displayed in the intended order
Validate button colorsConfigured button colors are displayed
Validate deep links to destination location, start and end dates, and number of travelersDeep links offer content for the expected destination, dates, and traveler count
Validate trackingModule display and click-tracking metrics are tracked

Having trouble?

If you are experiencing difficulty loading the attach module and have followed all the steps above, check our FAQs page for troubleshooting tips. If, after that, you’re still having trouble, contact your Expedia launch manager with the final request URL for investigation.

Esta página foi útil?
Como podemos melhorar esse conteúdo?
Agradecemos por nos ajudar a melhorar.