Wiki source code of Understanding Flow Testing

Last modified by Danniar Firdausy on 2024/09/04 15:33

Hide last authors
Erik Bakker 12.1 1 {{container}}{{container layoutStyle="columns"}}(((
eMagiz 1.1 2
Carlijn Kokkeler 28.1 3 Unit testing is crucial in ensuring that individual components of your code work as expected. In the context of eMagiz, this concept translates into what we call "Flow Testing." This approach involves testing your integration flows and components during development to validate their functionality. In this microlearning, we'll dive into how to create and utilize flow tests in eMagiz, focusing on their benefits and how they support the development process.
eMagiz 1.1 4
Carlijn Kokkeler 28.1 5 Should you have any questions, please contact [[academy@emagiz.com>>mailto:academy@emagiz.com]].
6
eMagiz 1.1 7 == 1. Pre-requisites ==
8
9 * Basic knowledge of the eMagiz platform
10 * Understand the concept of Unit Testing
11
12 == 2. Key concepts ==
13
Erik Bakker 19.1 14 Unit testing refers to the idea that units of developed code, or in this case integration flows/components, are tested against fit for use. Often these unit tests are run automatically to verify each component, but in this case, the unit test is also supporting the actual development of an eMagiz flows. As we work with flows in eMagiz we call it Flow testing. Flow tests are always combined with specific pieces of elements that make the unit operational, such as test data, test messages, or access to services that produce data. Sometimes specific mock services are used to simulate real-time behavior.
eMagiz 1.1 15
Erik Bakker 12.1 16 [[image:Main.Images.Microlearning.WebHome@crashcourse-platform-create--understanding-flowtesting-testing-stages.png]]
eMagiz 1.1 17
18 == 3. Creating Flow tests in eMagiz ==
19
20 Flow tests in eMagiz are created in the Create phase while developing your flow. The key reason is that this will allow the eMagiz developer to validate the correct function of the flow without the need to deploy.
21
Erik Bakker 17.1 22 * It will speed up the development of the flow itself
23 * The flow test allows having a better reference for other team members how the flow should behave
24 * The flow test can help to validate the entire integration flow during User Acceptance Testing
25 * During issue resolution, the flow test can be reused with the attached test messages to pinpoint issues.
eMagiz 1.1 26
27 Configuring the right test messages to validate the flow is key in eMagiz. These test messages allow representing the specific user scenario's that the business has provided for validation.
28
Erik Bakker 12.1 29 [[image:Main.Images.Microlearning.WebHome@crashcourse-platform-create--understanding-flowtesting-infographic.png]]
eMagiz 1.1 30
31 More on the specifics of flow testing in the following microlearnings.
32
Erik Bakker 20.1 33 == 4. Key takeaways ==
eMagiz 1.1 34
35 Flow tests are a powerful way in which flows components can be tested without the specific need to deploy them on the eMagiz runtimes using releases and deployment plans. Individual behavior can be tested and verified, without the need to run expensive debug components inside the actual flow. It is recommended to maximize the use of flow tests during the development of (new) flows so that development can be done quicker against a higher standard.
36
Erik Bakker 20.1 37 == 5. Suggested additional readings ==
eMagiz 1.1 38
Carlijn Kokkeler 22.1 39 ** [[Fundamentals (Navigation)>>doc:Main.eMagiz Academy.Fundamentals.WebHome||target="blank"]]
40 *** [[Testing in eMagiz (Explanation)>>doc:Main.eMagiz Academy.Fundamentals.fundamental-testing-in-emagiz.WebHome||target="blank"]]
41 * [[Crash Courses (Menu)>>doc:Main.eMagiz Academy.Microlearnings.Crash Course.WebHome||target="blank"]]
42 ** [[Crash Course Platform (Navigation)>>doc:Main.eMagiz Academy.Microlearnings.Crash Course.Crash Course Platform.WebHome||target="blank"]]
43 *** [[Configure a Flow Test (Explanation)>>doc:Main.eMagiz Academy.Microlearnings.Crash Course.Crash Course Platform.crashcourse-platform-create-configuring-flow-test||target="blank"]]
Carlijn Kokkeler 25.1 44 *** [[Creating Test Messages for Test Cases (Explanation)>>doc:Main.eMagiz Academy.Microlearnings.Crash Course.Crash Course Platform.crashcourse-platform-create-creating-test-messages||target="blank"]]
Carlijn Kokkeler 23.1 45 *** [[Running a Flow Test (Explanation)>>doc:Main.eMagiz Academy.Microlearnings.Crash Course.Crash Course Platform.crashcourse-platform-create-running-flow-test||target="blank"]]
Carlijn Kokkeler 26.1 46 *** [[Editing Test Messages for Test Cases (Explanation)>>doc:Main.eMagiz Academy.Microlearnings.Crash Course.Crash Course Platform.crashcourse-platform-create-editing-test-messages||target="blank"]]
Carlijn Kokkeler 27.1 47 *** [[Deleting Test Messages for Test Cases (Explanation)>>doc:Main.eMagiz Academy.Microlearnings.Crash Course.Crash Course Platform.crashcourse-platform-create-deleting-test-messages||target="blank"]]
Erik Bakker 30.1 48 * [[Intermediate (Menu)>>doc:Main.eMagiz Academy.Microlearnings.Intermediate Level.WebHome||target="blank"]]
Erik Bakker 31.1 49 ** [[Testing In eMagiz (Navigation)>>doc:Main.eMagiz Academy.Microlearnings.Intermediate Level.Testing in eMagiz.WebHome||target="blank"]]
Danniar Firdausy 34.1 50 *** [[System Integration Testing (Explanation)>>doc:Main.eMagiz Academy.Microlearnings.Intermediate Level.Testing in eMagiz.intermediate-testing-in-emagiz-system-integration-testing||target="blank"]]
Erik Bakker 31.1 51 *** [[Regression Testing (Explanation)>>doc:Main.eMagiz Academy.Microlearnings.Intermediate Level.Testing in eMagiz.intermediate-testing-in-emagiz-regression-testing.WebHome||target="blank"]]
Carlijn Kokkeler 24.1 52 * [[Unit Testing - Introduction (External)>>https://en.wikipedia.org/wiki/Unit_testing||target="blank"]]
Erik Bakker 29.1 53 * [[Flow Test (Search Result)>>url:https://docs.emagiz.com/bin/view/Main/Search?sort=score&sortOrder=desc&highlight=true&facet=true&r=1&f_space_facet=1%2FMain.eMagiz+Academy.&f_type=DOCUMENT&f_locale=en&f_locale=&f_locale=en&text=%22flow+test%22||target="blank"]]
Erik Bakker 12.1 54 )))((({{toc/}}))){{/container}}{{/container}}