译—自动化在未来测试中的作用

龙测科技 苏州龙测科技 _今天_

When testers used to talk about Automation, people knew we were talking about functional test automation. That is now very different.  Indeed, Agile and DevOps have changed things a lot by having virtually demanded test automation, alongside Robotic Process Automation__(RPA). Besides, tools in both streams are now marketing their Artificial Intelligence (AI) capabilities as well.

当测试人员过去谈论自动化的时候,大家都知道我们讨论的就是自动化测功能。但如今已经大为不同。实际上,敏捷开发和 DevOps通过模拟需求的自动化测试和机器过程自动化(RPA)改变了很多的事情。并且,两个分支的工具如今也在将推广它们的人工智能的应用。

So, as we start a new year, it might be nice to think about what the future holds for Automation.

所以,既然这是新一年的开始,那么我们思考未来的自动化将会如何,是一件非常棒的事。

Test Automation and RPA
自动化测试和RPA

In the future, the different streams will become one. The test tools won’t necessarily be used in production for automating tasks, but the test automation engineer’s role will quickly expand into RPA. There are different skills involved, but there is a lot more overlap. Test automation tools and RPA tools are, in essence, the same, although they are used in different environments. Indeed, test tools have functionality that can be used in RPA settings, but you can also use RPA in test activities. Hence, there is some cross-pollination.

将来,不同的分支将会合一。测试工具在自动化测试任务中的运用将不会成为必须,但是自动化测试工程师的角色将会在RPA中迅速扩张。这其中将会设计到一些不同的技能,但是当中也会有一些交叉重叠部分。即使自动化测试工具和RPA工具的运用场景不用,但他们在本质上是一致的。实际上,测试工具的功能能被用于RPA的设置中,但是你也可以用RPA来进行测试活动。因此,这里边存在异花传粉的现象。

Agile/DevOps have pushed test automation to the next level over the past few years. There are no Agile/DevOps without Automation, but this isn’t stopping there. Agile and DevOps might go as far as single-use Automation. That sounds counter-intuitive, but if Automation becomes a lot easier to build, the cost and effort to use Automation will go down.

过去几年间,敏捷/DevOps 已经将自动化测试推到下一个层级。没有敏捷/DevOps就没有自动化,但是这也不会止步于此。敏捷和DevOps可能会超越一次性自动化。那听起来似乎与直觉相背,但是如果自动化变得更容易构建,使用自动化的成本和努力就会降低。

AI and ML

人工智能和机器学习

It is very important to talk about AI/ML  in automation. Many test tools profess that they have AI or ML in place, but for now, those are rule-based intelligence. Having  AI/ML capabilities are great to have, but currently, it doesn’t feel like proper AI or ML. Some tools can scan screens and tell you all the objects are available on the screen, but this is only a small step from understanding what button to press to move to the next screen or submit an order.

AI/ML在自动化中的讨论是很重要的。很多的测试工具宣称他们有使用AI或者ML,但是目前为止,这些都是基于智能的逻辑基础。具有AI/ML的能力是极棒的,但是目前来看,它并不像真正的AI/ML。有些工具可以扫描屏幕,并告诉你屏幕上所有对象都可用,但这只是了解要按下的按钮以移至下一个屏幕或提交订单的一小步。
Hence, there is still a need to define and coach the tools on the right path through the application. If those paths are already predefined, tools can pick those up too and combine them with the objects, and then, suddenly, you are halfway there in creating automatically automated test scripts. One example of this is SAP with its defined workflows.

因此,需要通过应用使用正确的路径定义并且训练工具。如果这些路径已经重新预定义,工具也可以选择这些路径,并且和对象结合,紧接着,突然你已经在自动化地创造自动化测试脚本地地路上走了一半地路程。其中的一个例子是SAP和它定义的工作流。

If AI grows in this area to allow tools to built those test paths automatically, then this can lead to great success. For instance, you can create single-use tests very quickly, and once completed, only keep the regression test. That will help cut down on maintenance.

如果AI发展壮大,允许工具自动化地构建这些测试路径,这将获得巨大的成功。例如,你可以非常快速地建构一次性测试,并且一旦完成,就只需要维持回归测试。这将会帮助减少维护。

AI & ML is also creeping into RPA but we are faced with the same problem. It is currently often based on rule-based intelligence. If RPA tools can “think-on-their-feet” when applications change (especially with hosted solutions that can change without you realizing), they can change the RPA script to adjust to the new functionality. That would be a great thing to have.
AI和ML也在缓慢地进入RPA,但是我们面临着同样的问题。它现在经常是基于基本规则的智能。如果RPA工具在应用改变的时候(特别是能在你没有意识到的情况改变持有的解决方案)能够“用脚思考”,他们能调整RPA脚本以适应到新的功能上。那将是一个很棒的事。

Although for now, this is not a fully automatic process. There is still a need for quality control before those newly “morphed” scripts automatically are used in production. Ultimately, some applications might develop their RPA capabilities. SAP is certainly heading that way. With Microsoft taking over Automation Anywhere and incorporating that into the Power Platform, many automation tasks can be performed in the back office.

目前,这还不是一个完全自动化的过程。在这些新的自动变化的脚本被用于生产之前仍然需要质量控制。最终,一些应用可能会开发他们的RPA功能。SAP确实是在朝着这条路前进。随着Microsoft接管Automation Anywhere并将其合并到Power Platform中,可以在后台执行许多自动化任务。

Test reports
测试报告

Moreover, Automation can also be used in the projects that we run ourselves. Test tools produce their own test reports, but unfortunately, those reports are often not exactly what test management wants.
并且,自动化也能被用于一些我们自己运行的项目中。测试工具自己生成测试报告,但不幸地是,这些报告经常不是测试管理人员想要的。

So, how about automatically creating test reports through Automation (or even using PowerBI)? Of course, some of us have to produce other reports every day, e.g. new defect reports. RPA or test tools can help with that too. I think that replacing these reports with up-to-date (configurable) dashboards could be helpful. Besides, for the occasions requiring periodic reports for record-keeping, a button click could produce a PDF version of it for posterity.

所以,通过自动化或者甚至通过使用PowerBI自动化地生成测试报告又会如何呢?当然,我们当中的一些人每天都要生成其他的报告,例如,新缺陷报告。RPA或者测试工具也能帮上忙。我认为,使用最新的可配置的仪表盘也会有所帮助。除此之外,对于偶尔要求的定期的用于持续记录的报告,一个按钮的点击能成一个PDF版本,以供后续使用。

How far can this go? The test automation role will morph and become the technology enabler for the test team. I can see the tester’s position even change further into a more Quality Assurance related role, beyond testing. There is a very long road to go before this happens, and even then, not all organizations will be able to get there. Still, eventually, more Automation will be introduced everywhere.

这能持续多久?自动化测试角色将会有所改变并且成为测试团队的推动者。我能预见到,测试人员的角色除了测试之外,甚至更加往一个质量保证相关的角色转变。在此之前还有很长的路要走,到那时候,并不是所有的组织都能够到达那般境地。最终,更多的自动化将会被各个地方引用。

Test models
测试模型

Another area of development in Automation that will become more widespread is creating models, which, in itself, is nothing new as it was around the pre-millennium. With technology catching up, the testers can use workflow information, path analysis, and architecture diagrams to start building comprehensive models. These models are sometimes referred to as “Digital Twins”. This is some kind of next-generation model-based testing. This is where your testing paths are defined in a model, and you let the tool analyze the model as if it were code paths.
在自动化中发展的其他领域中会变得更加广泛的就模型建造,它本身跟在千年前并没有什么新事物。随着技术的发展,测试人员能够使用工作流信息,路径分析,以及体系结构图来构建新的复杂模型。这些模型有的时候被称为“数字双胞胎”。这是一种下一代基于模型的测试。这就是模型中定义测试路径的地方,你可以用工具像分析代码路径一样对模型进行分析。

Ultimately, if you have defined the path, a test tool might be able to automatically follow that path by looking for fields, links, or buttons to use and feel its way to the end of a test scenario. Running the same path over the new version of the applications can detect the differences and allow the scripts to truly self-heal. Tools are already able to adapt to different running environments, between desktop and mobile, or between different mobile resolutions.

最终,如果你已经定义了路径,测试工具在一个测试场景中,可能通过查找字段、链接、或者按钮的使用来感知它到达最终步来遵循改路径。在应用的新版本上运行相同的路径能够检测差异,并且允许脚本真正地自我修复。工具已经具备适应不同运行环境的能力,如在桌面和移动端,或者在不同的移动分辨率下。

Conclusion
结论

With all this Automation do you think that the tester will become obsolete? I don’t think so, but I do see the role of tester evolve. We build test cases and code tests for Automation, but tools will eventually do those activities. However, the output of those tools will still need to be validated, and this is where quality assurance will grow.

有了这些自动化,你认为测试人员会被淘汰么?我不这么认为,但是我确实预见到了测试角色的演变。我们构建了自动化测试的测试用例和测试代码,但是工具最终将会取代这些活动。但是,这些工具的输出仍将需要验证,这将是质量保证不断提高的地方。

Just looking back over 25 years ago when I started with test automation, there has been some significant evolution in the work we do. Therefore, this evolution will not stop, so keeping up to date with the current tools, approaches, and developments remains crucial.

回顾25年前,当我开始进行测试自动化时,我们所做的工作有了一些重大的发展。因此,这种发展不会停止,因此保持最新的工具,方法和发展仍然至关重要。

注:

Article written by Marco Venzelaar, Lead Technologist at Sogeti UK

https://www.softwaretestingne...

图片​

【关于我们】

龙测科技是一家快速崛起的专注软件测试的AI+TestOps初创公司。我们的核心是利用现代AI技术及先进测试算法彻底改变目前手工及自动化软件测试形态。  龙测科技深根于软件自动化测试领域,有模型驱动、测试算法、AI、其他黑科技等先进技术的支撑,构建起能够涵盖市面绝大部分软硬件系统的UI功能和接口测试的云端测试大脑及测试工厂。

公司产品研发团队由美国Top5软件测试实验室博士主导,成员来自美国微软、华为等知名企业。

龙测科技先后获得苏州工业园区科技领军、杭州5213领军、苏州姑苏领军等称号,2020年已完成数千万元Pre-A轮商业风险投资。

【官网注册体验】

http://www.dragontesting.cn/index.h

评论

暂无评论