nagyistoce / mobitest-agent

Automatically exported from code.google.com/p/mobitest-agent
0 stars 0 forks source link

Add support for the setDns and setDnsName script command #15

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
The desktop agents on WebPageTest support overriding the IP a certain hostname 
would resolve to in two ways:

setDns allows specifying a specific IP address a host should map to: 
https://sites.google.com/a/webpagetest.org/docs/using-webpagetest/scripting#TOC-
setDns

setDnsName allows specifying an alternate hostname that should be resolved 
instead of the original hostname: 
https://sites.google.com/a/webpagetest.org/docs/using-webpagetest/scripting#TOC-
setDNSName

We need to have such support in Mobitest as well. 
Support for setDnsName is more important than support for setDns, but 
presumably both can be added with roughly the same level of effort.

Note that we want to support this *without* requiring a jailbroken device. If 
we determine that's not doable, even with private APIs, we can reconsider.

Original issue reported on code.google.com by guy...@gmail.com on 3 Apr 2013 at 1:38