How to test the Web-UI by changing the header with IP
Though there are different cloud testing platforms around the web to test the user interface, with different breakpoints, languages, variations, There is a narrow line, that all or at least most of the test platforms do not allow different IP testing for lower environments of your website. But, there is a way to deal with it using Mod Headers. So, let us see, what is a Mod header and how to make a way for testing the UI’s with different IP’s.
Mod header is a browser extension, that has an ability called X-Forwarder-For. The XFF will give the user to change the browser location with the IP provided.
How to do it? Follow these simple steps
Assume you want to test a website/lower environment of your production website, that is not visible to the public out of your organization/network.
- Search for Modheader from bewwise(Though there are many others, this is the best I’ve seen so far) and add the extension to the browser
- After adding the browser extension to the browser click on it.
- Figure1 will appear
4. In the Name field, type from keyboard “X-Forwarder-For” or scroll using the drop-down searching X-Forwarded-For
Ref: Figure 2
5. Select the X-Forwarder-For and get any country’s IP from Google that is secure, not spam and-that will not misuse your machine
6. Put the IP in the Value field. You will observe browser will start responding in the way it does for the IP you’ve provided. Meaning, If you give an IP that belongs to Canada and type in the keyboard “example.com”(USA) it will take you to “example.ca” if the website has a redirection rule
Advantages
- Changing location can be paused at any time by clicking on the play and pause available on the extension header
2. Multiple IP’s can be added. Check and uncheck on the available options
3. Multiple profiles can be created or deleted
4. Fast and Powerful
Supported Browsers
- Chrome, Firefox, Opera, Safari
Bottom Line: Easy to test and Easy to use
Thank you,
Srikanth.