Host Mapping

Hello,

I am trying to perform a test with some host mapping setup but I am having some issues. Having searched the forums I think I should be using the Chromium command line switch host-rules but I am not entirely sure. For example the setup I am using is:

URL: www.example.com
Browser: Chrome Browser

Advanced Settings - Chrome Tab:
Command-line: --host-rules=“MAP www.example.com www.otherexample.com

Each time I try to run the test I receive the same error message:
“Invalid command-line option: “www.otherexample.com””

Have I missed something in syntax or similar in the above?
Is there another method I should be using to perform host mapping?

Any input would be greatly appreciated!

Thanks

Are you trying to access site “www.example.com” with the DNS of “www.otherexample.com”? If so, you can just use a scripted test by forcing the DNS of www.example.com to www.otherexample.com.

setDNSName www.example.com www.otherexample.com
navigate http://www.example.com