Testing of Errors and Warnings: Assessment Test Questions

  1. Complete the following statement. (Select all correct responses.)

    You can use the Acumatica Unit Test Framework to test the correctness of ...

    • The data stored in the database
    • The functioning of the UI
    • The calculation of values on a form
    • The displaying of warning and error messages
  2. If a graph has setup DACs, how are they mentioned in a test method?
    • No mention is required.
    • The objects of the setup DACs are created in a call of the PXGraph.CreateInstance<> generic method.
    • The objects of the setup DACs are created in a call of the Setup<> generic method before the creation of a graph instance.
  3. Which initialization method do you use before creating a graph instance in a test method if there is no setup DAC for the graph and the functionality being tested requires the default set of enabled features?
    • No method (no initialization is required)
    • CoInitialize
    • CoInitializeEx
    • OleInitialize
    • PXGraph.Initialize
    • TestBase.Setup<T>
  4. What is the recommended way of getting the state of a field to test whether an error or warning is attached to the field?
    • By using the PXCache.GetError method
    • By using the PXCache.GetWarning method
    • By using the PXCache.GetErrors method
    • By using the PXCache.GetStateExt<> generic method
  5. Suppose that a PXFieldState object is returned by the PXCache.GetStateExt<> method. Which property of this object contains the error message?
    • The Warning property
    • The Error property
    • Neither of the above