Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我可以使用 运行目录中的所有 selenium 脚本ant,但我想知道有没有办法只运行该目录中的一些文件。
ant
有没有办法指定要运行的脚本在其名称中具有一些特殊模式,或者只有前 10 个或后 10 个脚本。
我ant用来运行这些脚本。
谢谢你。
如果您只使用 ant 而没有其他框架(如 testng 或 junit),那么我想您可以通过创建单独的 ant 任务来运行所有或选定的脚本然后从命令行传递任务名称来实现这一点。参考官方 ant 文档。
如果您使用的是 testng,那么它允许您根据不同的标准创建组,请参阅 testng.org