1. Instantiate an HttpClient object in your test script
var c = test.openHttpClient();
2. Invoke the autoBasicAuth method and include your domain, username and password
c.autoBasicAuthorization("example.com", "username", "password");
3. Open a web browser and and load the website url
var webDriver = test.openBrowser();
test.beginTransaction();
test.beginStep();
webDriver.get("http://www.example.com");
test.endStep();
test.endTransaction();