Changes for page Testing in eMagiz
Last modified by Erik Bakker on 2024/08/08 11:24
From version 2.1
edited by Bouke Reitsma
on 2023/07/05 10:36
on 2023/07/05 10:36
Change comment:
There is no comment for this version
To version 23.1
edited by Erik Bakker
on 2024/08/08 10:13
on 2024/08/08 10:13
Change comment:
There is no comment for this version
Summary
-
Page properties (2 modified, 0 added, 0 removed)
Details
- Page properties
-
- Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki. BoukeReitsma1 +XWiki.ebakker - Content
-
... ... @@ -1,73 +1,77 @@ 1 - ~{~{container}}~{~{container layoutStyle="columns"}}~(~(~(2 - This fundamental willzoominonwhichtraceability conceptswe haveincorporatedwithin the eMagiz portaltoensure thatdatapassesfromAto B. Wewillfocus ontraceabilityfromthree perspectives.Atfirst,wezoominon whether a messagehas beensentfrom A to B. Secondly,we determinewhethera specific messagehasbeendispatched from Ato B. Thirdly,wefocuson proving thatthemessagewasindeedsentyearsaftera messagehasbeensent.Afterthis journey, you shouldhave a solid understandingofwhichoptionseMagizofferstotracemessagesbetweenvarioussystems acrosstheintegrationplatform.1 +{{container}}{{container layoutStyle="columns"}}((( 2 +In this fundamental, we will explore the various testing functionalities available within the eMagiz portal. We will delve into different types of testing, including unit testing, regression testing, performance testing, and end-to-end testing, and discuss how these testing methods are integrated within the eMagiz platform. Let's dive into the details of each testing method and understand how they can be effectively applied to ensure the efficiency and reliability of your integrations. 3 3 4 - Alltheseconcepts areusedforTraceability & Compliancybusiness requirements...4 +Should you have any questions, please get in touch with [[academy@emagiz.com>>mailto:academy@emagiz.com]]. 5 5 6 - Shouldyouhaveanyquestions, please getintouch with academy@emagiz.com.6 +== 1. Prerequisites == 7 7 8 - ~==1.Prerequisites==8 +* Basic Knowledge of the eMagiz Platform 9 9 10 - ~*Anoverallviewof thecapabilitiesof the eMagiz platform will be helpful10 +== 2. Key concepts == 11 11 12 -~== 2. Key concepts == 12 +* Unit Testing 13 +* Regression testing 14 +* Performance Testing 15 +* End-To-End Testing 13 13 14 -~* eMagiz offers various options to trace messages across the platform 15 -~* The three most noteworthy options are 16 - ~* Queue Statistics 17 - ~* Data Sink 18 - ~* Long Term Archiving 17 +== 3. Testing in eMagiz == 19 19 20 - ~==3.Traceability in eMagiz==19 +Here we will investigate the testing functionality incorporated within the eMagiz portal. We will focus on different aspects of testing that can be executed at different moments within the development of your integrations. We cover four different types of testing that are part of software testing in general and explain them on a conceptual level. For each test, we also discuss how those are integrated within the portal and where to find further explanations on applying those tests within eMagiz. 21 21 22 - Thisfundamental will zoom in on which traceability concepts we have incorporated within the eMagiz portal to ensure that data travels from A to B.We will focus ontraceabilityfromthree perspectives. At first, we zoom inon whether a messagehas been sent from A to B. Secondly, we determine whether a specific message has been dispatched from A to B. Thirdly, we focus on proving that the message was indeed sent years after a message has been sent. After this journey, you should have a solid understanding of which options eMagiz offers to trace messages between various systems across the integration platform.21 +=== 3.1 Unit testing === 23 23 24 - ~===3.1QueueStatistics===23 +Unit testing is a common practice within software platforms. Usually, developers perform unit tests during development. It entails testing individual integrations or the components within an integration, such as transformations or mappings. The unit test aims to test early within the development process to identify and fix issues early before they become more complex and costly to find and solve. 25 25 26 - Inthe Managephaseof eMagiz, wecollectstatisticstodeterminewhether a messagehas beensent fromoneystemto another.Forexample, wehavethequeuestatistics formessagingandAPI Gateway.Inhis overview, you canzoominnaspecificqueueandseethenumberofmessagessentwithinthattimeframe,thenumber ofmessagesinthequeueataparticulartime,andwhetherornotmessagesareconsumedata specific momentin time.Seebelowfor an illustrationofthisconcept.25 +Within eMagiz, we have a dedicated unit testing functionality called "flow testing." One of the key benefits of flow testing is that your integration does not have to be deployed. Therefore, findings can be easily implemented during development. eMagiz supports live testing of certain components to test communication with external systems. More information on flow tests can be found in the following microlearnings: 27 27 28 -~[~[image~:Main.Images.Fundamental.WebHome@fundamental-traceability-in-emagiz~-~-queue-statistics.png]] 27 +* [[Crash Course Platfrom>>doc:Main.eMagiz Academy.Microlearnings.Crash Course.Crash Course Platform.crashcourse-platform-create-understanding-flowtesting.WebHome||target="blank"]] 28 +* [[Testing API Gateway>>doc:Main.eMagiz Academy.Microlearnings.Intermediate Level.Testing API Gateway.intermediate-testing-emagiz-api-gateway-testing-api-gateway||target="blank"]] 29 29 30 - Withthe help of this overview, you can determine that a queue has processed a message at a specific moment.However, thetatistics doottell you anything about the content of the data. For mostuse cases, this is sufficient as the fact that a messagehas been sent is proof that the receiving application has received the data and can be found in that application.30 +=== 3.2 Regression Testing === 31 31 32 - For more information onqueuestatistics pleasecheckout the following~[~[CrashcourseMessaging>>doc:Main.eMagizAcademy.Microlearnings.CrashCourse.CrashCourseMessaging.crashcourse-messaging-interpreting-queue-statistics||target="blank"]]32 +Another testing method used within software development is regression testing. Regression tests ensure that existing functionality is not impacted by newly developed functionality. Running these tests is crucial to preventing unexpected negative changes for customers. Regression tests can be applied on different levels, from individual functionality to the whole platform. 33 33 34 - Insomecases,however,more traceabilityisneeded forOpswork.Forthoseusecases,we have additionalfunctionality within eMagizcalleddatasink.34 +The main functionality within the eMagiz platform to perform regression testing on your integrations is called "Automated flow testing." There is an option to automate every flow test. When a flow test is automated, it will run all automated flow tests once a new version is committed. If the test fails, you will be notified of the flow level and get an overview of the result on release activation. More information can be found in the microlearning: 35 35 36 - ~===3.2DataSink===36 +* [[Regression Testing>>doc:Main.eMagiz Academy.Microlearnings.Intermediate Level.Testing in eMagiz.intermediate-testing-in-emagiz-regression-testing.WebHome||target="blank"]] 37 37 38 - Ontop of the standard Manage functionality in eMagiz, you can acquire additional functionality that allows you to sink data at any given point in the flow into a bucket hosted by eMagiz.Weadvise you to do this twice perintegration. Once when the message enters the eMagiz platformd oncethemessage leavesthe eMagiz platform. By providinga unique identifier (i.e., an order number), you can search through this data for maximum 180 days (minimum 30 days) to determine whether a specific message with a particular identifier is indeed received and/or delivered by eMagiz in the Manage phase of eMagiz. See below for an illustration of this functionality.38 +=== 3.3 Performance Testing === 39 39 40 - ~[~[image~:Main.Images.Fundamental.WebHome@fundamental-traceability-in-emagiz~-~-data-sink-view-manage.png]]40 +A third method for testing is the performance test. Within a performance test, not the content is important but the amount of load you test on your test subject. In the case of integrations, it means, in general, the number of messages sent over a certain integration. Normally, your production environment handles more load than a test or acceptance environment. With a performance test, you can estimate how much impact a new integration has on resources, such as CPU or memory usage of the runtimes within your environment. More information on how to configure the solution architecture of your model can be found in this microlearning: 41 41 42 -~[~[image~:Main.Images.Fundamental.WebHome@fundamental-traceability-in-emagiz~-~-data-sink-search-options.png]] 42 +* [[Intermediate Solution Architecture>>doc:Main.eMagiz Academy.Microlearnings.Intermediate Level.Solution Architecture.WebHome||target="blank"]] 43 +* [[Advanced Solution Architecture>>doc:Main.eMagiz Academy.Microlearnings.Advanced Level.Solution Architecture.WebHome||target="blank"]] 43 43 44 - ~[~[image~:Main.Images.Fundamental.WebHome@fundamental-traceability-in-emagiz~-~-data-sink-search-results.png]]45 +{{warning}} Performance testing on the eMagiz or documentation portal is **not** allowed. {{/warning}} 45 45 46 - Formoreinformation ondata sink please checkout the following ~[~[Data sink>>doc:Main.eMagizAcademy.Microlearnings.Advanced Level.Data Management.advanced-data-management-data-sink||target="blank"]]47 +=== 3.4 End-To-End Testing === 47 47 48 - However,insomecases,thereareadditionallegalrequirementsyouneedmeet.These legal requirementsrequireyouto prove foran extendedperiod(i.e., sevenyears)thata specificmessagewas sent ataparticularmoment in time.For thisrequirement,wehavethelong-termarchivingfunctionalityineMagiz.49 +The last testing option discussed in this fundamental is a user acceptance test or End-to-End test. In this test, not only developers or testers but also end-users or other people from the business side are involved. Therefore, this testing method is more functionally focused than the previously discussed tests. A User Acceptance test aims to let the business (users) accept the solution created. Normally, this is the last step before pushing the solution to production. 49 49 50 - ~====3.3LongTermArchiving====51 +All the previously mentioned eMagiz functionality helps you complete an End-to-End test or solve issues found within the test effectively. More information on this testing method can be found in the microlearning: 51 51 52 - Thelong-termarchiving functionality is anexpansion of thedatasink functionality. By addinga specific tag to the logic withintheflow, the data willbe placed in the data sink andplacedin ourlong-termarchivingolution.his solution, wewill keep thedata for a standard periodof seven years before deletingthe data from the long-termarchivingsolution.This allows youto retrieve chunks ofdata fromthelong-termrchivingviaaticketrequestour supportportal. As aresult, we will provide you with the requested data promptly.53 +* [[User Acceptance Testing>>doc:Main.eMagiz Academy.Microlearnings.Intermediate Level.Testing in eMagiz.intermediate-testing-in-emagiz-user-acceptance-testing||target="blank"]] 53 53 54 - Formoreinformation on data sinkplease check out the following ~[~[Long termarchiving>>doc:Main.eMagiz Academy.Microlearnings.AdvancedLevel.Data Management.advanced-data-management-long-term-archiving||target="blank"]]55 +== 4. Key takeaways == 55 55 56 -~== 4. Key takeaways == 57 +* There are different testing methods with different goals 58 +* Not every testing method can be done at any stage of development 59 +* For every testing method, eMagiz has documentation and when possible features to support testing 57 57 58 -~* Each eMagiz model has a standard Manage phase in which statistics are kept on your environment 59 -~* With these statistics, you can determine whether messages have been received by and sent by eMagiz 60 -~* This functionality does not allow you to see the content of the messages itself 61 -~* On top of that, eMagiz offers Data Sink and long term Archiving as additional licensed features 62 -~* Data sink is helpful for an Ops scenario to check whether a specific message is processed by eMagiz (Traceability) 63 -~* Long term archiving is helpful for legal purposes as it gives you the option to prove for seven years that a specific message is sent at a specific time (Compliancy) 61 +== 5. Suggested Additional Readings == 64 64 65 - ~==5. SuggestedAdditionalReadings==63 +If you are interested in this topic and want to learn more on how testing can be done within the eMagiz platform, please check out our microlearnings on testing in eMagiz: 66 66 67 -If you are interested in this topic and want to learn how you can control your Cloud with the help of the eMagiz platform, please check out our microlearnings offering on eMagiz Cloud Management: 65 +* [[Crash Course (Menu)>>doc:Main.eMagiz Academy.Microlearnings.Crash Course.WebHome||target="blank"]] 66 +** [[Platform>>doc:Main.eMagiz Academy.Microlearnings.Crash Course.Crash Course Platform.WebHome||target="blank"]] 67 +* [[Intermediate Level (Menu)>>doc:Main.eMagiz Academy.Microlearnings.Crash Course.WebHome||target="blank"]] 68 +** [[Intermediate Testing in eMagiz (Navigation)>>doc:Main.eMagiz Academy.Microlearnings.Intermediate Level.Testing in eMagiz.WebHome||target="blank"]] 69 +** [[Testing API Gateway (Explanation)>>doc:Main.eMagiz Academy.Microlearnings.Intermediate Level.Testing API Gateway.intermediate-testing-emagiz-api-gateway-testing-api-gateway||target="blank"]] 70 +** [[Regression Testing (Explanation)>>doc:Main.eMagiz Academy.Microlearnings.Intermediate Level.Testing in eMagiz.intermediate-testing-in-emagiz-regression-testing.WebHome||target="blank"]] 71 +** [[User Acceptance Testing (Explanation)>>doc:Main.eMagiz Academy.Microlearnings.Intermediate Level.Testing in eMagiz.intermediate-testing-in-emagiz-user-acceptance-testing||target="blank"]] 72 +** [[Intermediate Solution Architecture (Navigation)>>doc:Main.eMagiz Academy.Microlearnings.Intermediate Level.Solution Architecture.WebHome||target="blank"]] 73 +* [[Advanced Level (Menu)>>doc:Main.eMagiz Academy.Microlearnings.Crash Course.WebHome||target="blank"]] 74 +** [[Advanced Testing in eMagiz (Navigation)>>doc:Main.eMagiz Academy.Microlearnings.Advanced Level.Testing in eMagiz.WebHome||target="blank"]] 75 +** [[Advanced Solution Architecture (Navigation)>>doc:Main.eMagiz Academy.Microlearnings.Advanced Level.Solution Architecture.WebHome||target="blank"]] 68 68 69 -~* ~[~[Crashcourse Messaging>>doc:Main.eMagiz Academy.Microlearnings.Crash Course.Crash Course Messaging.crashcourse-messaging-interpreting-queue-statistics||target="blank"]] 70 -~* ~[~[Data sink>>doc:Main.eMagiz Academy.Microlearnings.Advanced Level.Data Management.advanced-data-management-data-sink||target="blank"]] 71 -~* ~[~[Long term archiving>>doc:Main.eMagiz Academy.Microlearnings.Advanced Level.Data Management.advanced-data-management-long-term-archiving||target="blank"]] 72 - 73 -~)~)~)~(~(~(~{~{toc/}}~)~)~)~{~{/container}}~{~{/container}} 77 +)))((({{toc/}}))){{/container}}{{/container}}