Testing of Errors and Warnings: Assessment Test Questions
- 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
- 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.
- 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>
- 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.GetErrormethod - By using the
PXCache.GetWarningmethod - By using the
PXCache.GetErrorsmethod - By using the
PXCache.GetStateExt<>generic method
- By using the
- Suppose that a
PXFieldStateobject is returned by thePXCache.GetStateExt<>method. Which property of this object contains the error message?- The
Warningproperty - The
Errorproperty - Neither of the above
- The
