Microsoft Dynamics AX 2012 R3 Development-3 Locus IT Services

Microsoft Dynamics AX 2012 R3 Development-3

Locus IT ServicesMicrosoft Dynamics AX 2012 R3 Development-3

Lesson 1 : Introduction and Objectives

Introduction and Objectives of X++ Unit Test Framework:

Introduction:

Introduction and Objectives of X++ Unit Test framework allows for unit tests to be created along with the code they are designed to test.

A unit test is code that verifies that feature code has been implemented correctly. If you adhere to the principles of TDD, it is best for the developer who is writing the feature code to first write the unit tests. This puts emphasis on how feature code is consumed and creates a more user friendly application programming interface (API). A unit test, in the context of the Unit Test framework, includes test cases, how test cases are staged with data, and the organization of test cases. A test case is a class that extends the SysTestCase Class class. You can add test methods to test each requirement of the feature code. You should execute test cases when code is changed.

A unit test is code that verifies that some specific application code has been implemented correctly. If you adhere to the principles of testdriven development, it is best for the developer who is writing the application code to write the unit tests either before or during development.

Objectives of unit test framework:

The objectives are:

  • Create a test case.
  • Add methods to a test case.
  • Run a test case.
  • Build a test project and suite.
  • Isolate test cases appropriately.

 

Locus IT Project Management Office
What’s it?