1.7 Explore the test framework and tools in finance and operations apps Flashcards
Why using test frameworks is important as a developer?
If not used it introduces a level of risk every time the new system is used
What does test framework offer?
Test the functionality of your code and catch potential regressions when the code base is modified
What does Visual Studio come with?
SysTest Framework
What does SysTest Framework allows you to do?
Write unit test code
Integrate tests
Run tests to automate code testing
Create unit test from code
Import Task recorder recordings to generate test code
Author tests?
Unit tests
Component tests
Task recorder tests
Integrate tests?
Test module setup
Integration with build system
What is Acceptance Test Linbrary? (ATL)
x++ test library that allows developers to create consistent test data
Makes test code more readable
Methods that create test data become more easily discovered
Concepts of classes in ATL?
Navigation - Discover test entities and test data methods
Test data methods - Used to setup test data
Entities - data and associated behavior that is perceived as a single unit
Creators - create specific test data
Commands - run business operations
Queries - find entities
Specifications - describe expected entities at the end of the test
Why best practices tool?
Used to keep x++ code clean and uniform
Helps keep code in line for future upgrades to alleviate issues
What can you run best practices on?
Forms
Specific elements
All items in a model
Items in all models
How to handle errors?
Throw
Try..Catch
Finally
Retry
Throw?
Used to throw an exception enum value
Global vs Exception method?
Global can write a message to the infolog when an error exception is thrown and convert a label automatically into a text
Try…Catch?
Used to process a thrown exception through the catch.
The code is run in the try code, if an error is thrown the code will jump to catch code
Finally?
Can be used with try-catch, code in finally will be run when the code leave the try block either normally or because of an error