1.7 Explore the test framework and tools in finance and operations apps Flashcards

1
Q

Why using test frameworks is important as a developer?

A

If not used it introduces a level of risk every time the new system is used

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What does test framework offer?

A

Test the functionality of your code and catch potential regressions when the code base is modified

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What does Visual Studio come with?

A

SysTest Framework

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What does SysTest Framework allows you to do?

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Author tests?

A

Unit tests
Component tests
Task recorder tests

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Integrate tests?

A

Test module setup
Integration with build system

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is Acceptance Test Linbrary? (ATL)

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Concepts of classes in ATL?

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Why best practices tool?

A

Used to keep x++ code clean and uniform
Helps keep code in line for future upgrades to alleviate issues

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What can you run best practices on?

A

Forms
Specific elements
All items in a model
Items in all models

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

How to handle errors?

A

Throw
Try..Catch
Finally
Retry

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Throw?

A

Used to throw an exception enum value

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Global vs Exception method?

A

Global can write a message to the infolog when an error exception is thrown and convert a label automatically into a text

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Try…Catch?

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Finally?

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Retry?

A

Can be written in catch block, this causes the code to jump to first line in the try code block

17
Q

How to create a unit test?

A

Class must extend SysTestCase class
Test methods must be public, cannot have parameters, must return void, and need to be decorated with “SysTestMethod”

18
Q

Test method distinct methods?

A

Arrange
Act
Assert

19
Q

Unit test arrange method?

A

Sets up all the variables

20
Q

Unit test act method?

A

Does some processing

21
Q

Unit test assert method?

A

Verifies if the result is expected