How to do it...

  1. Open Windows PowerShell Command Prompt.
  2. Type in the following command, replacing myContainer with the name of your development sandbox container:
Import-TestToolkitToNavContainer -containerName myContainer -doNotUpdateSymbols -includeTestLibrariesOnly

This will import the set of standard testing libraries provided by Microsoft.

We're using the doNotUpdateSymbols parameter because the test symbols are actually already in the database that is in the container. All we want to do is install the test CAL objects, but we do not need to update any symbols.

We're using the includeTestLibrariesOnly parameter because all we want to load are the libraries that Microsoft provides. Removing this parameter would also import the tests that Microsoft ships, and we do not need those for this recipe.
  1. Open the development sandbox with your web browser.
  2. Use the  icon to search for Test Tool and click the link to open it.

This is the Test Tool. It's a worksheet that lets you pull in any or all of the automated tests that are installed in the database. Out of the box, there are tests built into some of the standard Microsoft applications (such as PayPal, Forecasting, and Yodlee).

  1. On the Test Tool page, select Process | Get Test Codeunits | Select Test Codeunits and press OK to view the list of all of the testing codeunits.
  2. Select the Sales Forecast Tests line. If you don't have that in your system, just choose any other line that looks interesting to you.

Once you select the line and press OK, all of the tests that are contained in that codeunit will be loaded into the Test Tool, similar to the following:

Notice that the results column is empty at the moment.

  1. Select Run | All and press OK to execute the automated tests.
  2. Once the tests have been run, you can then use the worksheet to analyze the results of each test. The Result column will show you whether the test was a Success or a Failure. If it failed, then the error will be shown in the First Error column, as follows:

You can click on each error to view more information about the error and to view the call stack at the point where the error happened.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset