Project-level Authentication

You can set the username and password credentials to use if the Remote Facade URL is protected by an authentication mechanism. This should work for basic, digest, or NTLMv1 authentication. It will not work for NTLMv2.

How

  1. Right click on the project name in the Navigator or Project Explorer
  2. Select "Properties"
  3. Select "MXUnit Properties"
  4. Enter credentials

If the remote url is protected by basic or digest authentication, enter the username and password in these fields. For NTLMv1 authentication, you must enter the username as domain\username, e.g. MyDomain\BobbySue.

We suggest NOT using authentication for the remote facade URL. Best practice for unit testing is that testing happens locally, not on a shared dev server.

If you must use a shared server, then we additionally suggest using a custom URL for just the projects that require authentication. This is simple:

  1. Create a file named "RemoteFacade.cfc" in your protected directory
  2. In the MXUnit properties for this project, point the Test runner URL for just this project to your new file. For example, if your new file is at WEBROOT/SomeProtectedApp/unittests/RemoteFacade.cfc, set the URL to http://DEVSERVER/SomeProtectedApp/unittests/RemoteFacade.cfc
  3. Populate the RemoteFacade.cfc with the following code:
<cfcomponent extends="mxunit.framework.RemoteFacade"> </cfcomponent>