如何使用Dart进行自动浏览器测试? [英] how to do automated browser testing with Dart?

查看:189
本文介绍了如何使用Dart进行自动浏览器测试?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



有没有无头飞镖浏览器?还是像硒这样的包装纸?我的目标是使用浏览器对我几年前编写的网站进行自动化的最终用户测试。现在,我需要在网站上进行一些更改。由于它包含特定的业务逻辑,因此在进行这些更改之前,我想为该站点编写一些快速测试,而无需针对单元测试进行重构或修改。

似乎也很有趣,可以更好地了解dart生态系统。


预先感谢!


Is there any headless browser for dart? Or a wrapper for something like selenium? My goal is to use the browser for automated end-user testing for a website i wrote years ago. Now i need to make few changes on the site. Since it contains specific business logic, i would like to write some quick tests for the site without refactoring or modifying it for unit-tests, before i make those changes.
It seems like a fun introduction to get more familiar with dart ecosystem as well.

Thanks in advance!

推荐答案

content-shell 是支持Dart的无头浏览器,例如Dartium
https:// www.dartlang.org/install/mac

content-shell is a headless browser with Dart support like Dartium (https://www.dartlang.org/install/mac)

https://pub.dartlang.org/packages/webdriver 可用于硒测试。

对Chromium无头支持工作正在进行中。当Dartium升级为使用此Chromium版本时,Dartium应该可以无头运行。

There is headless support for Chromium work-in-progress. When Dartium is upgraded to use this Chromium version, Dartium should be able to be run headless.

Dart团队正在致力于增量JS编译(DDC-Dart开发编译器)应该允许使用Chrome作为开发浏览器。无头模式(如果可用)可以直接使用。

The Dart team is working on incremental JS compilation (DDC - Dart development compiler) which should allow to use Chrome as development browser. The headless mode (when available) can be used directly.

这篇关于如何使用Dart进行自动浏览器测试?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆