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:
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.
Step 3: Verify results post-deployment
Once the module is deployed, you should make sure that it’s working as expected.
- Navigate to the page where the attach module is integrated.
- Right click and select Inspect to open the developer tools.
- In the developer tools pane, go to the Network tab.
- Reload the page with the Network tab open.
- In the updated Network tab, check the URLs that include
xsell-pwa.js
(this is the final request URL) andxsell-ifram-v3
. If the attach module has been loaded successfully on the page, these URLs should have a successful status of 200.
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 case | Expected result |
---|---|
Validate attach module display | Configured display (embedded or overlay) is shown |
Validate header | Configured header is displayed |
Validate subheader | Configured subheader is displayed |
Validate LOB order | Configured LOB is displayed in the intended order |
Validate button colors | Configured button colors are displayed |
Validate deep links to destination location, start and end dates, and number of travelers | Deep links offer content for the expected destination, dates, and traveler count |
Validate tracking | Module 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.