简体   繁体   English

在 ETL 项目中进行自动化端到端测试的最佳方法是什么?

[英]What is the best approach for Automation End To End Testing in an ETL Project?

We have an ETL Project wherein Data from one UI application flows down in a series of applications(Transformation/Logic).我们有一个 ETL 项目,其中来自一个 UI 应用程序的数据在一系列应用程序(转换/逻辑)中向下流动。

The overall motto is to see the data of 'UI 1' in 'UI 2'.总体座右铭是在“UI 2”中查看“UI 1”的数据。 'Spring Java Server 1' calls the API of UI1 Server and the data gets flow into different servers and persisted in the database. 'Spring Java Server 1'调用UI1 Server的API,数据流入不同的服务器并持久化到数据库中。 A script also persists some data in the database.脚本还会在数据库中保留一些数据。 'UI 2 with Backend server' gets the data from database and show it in the UI. “带有后端服务器的 UI 2”从数据库中获取数据并将其显示在 UI 中。

在此处输入图片说明

Now the question, I am looking for the best possible way to perform E2E testing.现在的问题是,我正在寻找执行 E2E 测试的最佳方法。 We'll start by triggering 'Spring Java Server 1' which calls APIs of 'UI 1 with BackendServer 1' and at the end using selenium see the data in 'UI 2'.我们将首先触发“Spring Java Server 1”,它调用“UI 1 with BackendServer 1”的 API,最后使用 selenium 查看“UI 2”中的数据。

I am thinking about creating a separate Java Application with UI just for testing which triggers the 'Server 1' and with selenium verifies the UI2 But the problem is with Script.我正在考虑创建一个单独的带有 UI 的 Java 应用程序,仅用于测试触发“服务器 1”并使用 selenium 验证 UI2 但问题出在脚本上。 After the database, we have to manually run script and then wait for it to complete.在数据库之后,我们必须手动运行脚本,然后等待它完成。 How we can automate manually running the script with some kind of state Management?我们如何通过某种状态管理自动手动运行脚本?

Please suggest more on the architecture of E2E or how can i enhance this E2E setup.请就 E2E 的架构提出更多建议,或者我如何增强此 E2E 设置。 And what tools/framework i can use.我可以使用哪些工具/框架。

With regards to automating the execution of the script, look at PowerShell.关于自动执行脚本,请查看 PowerShell。 It is a powerful tool for automating repetitive and time-consuming tasks, such as executing scripts automatically instead of doing it manually.它是自动执行重复性和耗时任务的强大工具,例如自动执行脚本而不是手动执行。 You also create a custom PowerShell script that connects to SQL Server to run commands.您还可以创建连接到 SQL Server 以运行命令的自定义 PowerShell 脚本。 If you're looking for ETL automation tools to track the data from the source, through the ETL processing until it loads to the target, there are quite a few options available that you will need to evaluate to see which one is right for you.如果您正在寻找 ETL 自动化工具来跟踪来自源的数据,通过 ETL 处理直到它加载到目标,那么您需要评估很多可用的选项,以确定哪一个适合您。 Look at dbt, RightData, QuerySurge, Datagaps ETL Validator, SSISTester, TestBench, DbFit, or AnyDbTest.查看 dbt、RightData、QuerySurge、Datagaps ETL Validator、SSISTester、TestBench、DbFit 或 AnyDbTest。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM