如何创建一个自包含的Selenium JUnit测试包? [英] How do I create a self contained package of Selenium JUnit Tests?

查看:181
本文介绍了如何创建一个自包含的Selenium JUnit测试包?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一堆目前在Eclipse上运行JUnit的Selenium测试。 (使用Firefox WebDriver)
我需要创建一个易于安装/使用这些测试的软件包,以便向不同的QA团队成员发送,以便他们可以在不同的计算机上运行。



有没有这样做,有没有办法压缩eclipse +测试,以便他们可以从任何计算机运行?

解决方案

有几种方法



我使用 maven ,用于管理项目依赖关系,并通过sure-fire插件运行测试,但它看起来像为您的案例过分杀伤



您可以在这里看到一个简单的解释:
如何导出(JUnit)测试套件作为可执行jar


I have a bunch of Selenium Tests which I currently run on JUnit from Eclipse. (Using the Firefox webDriver) I need to create an easy to install/use package of these tests to give to various members of the QA team so they can run them on different computers.

Is there something that already does this, is there a way to zip up eclipse + tests so they can be run from any computer?

解决方案

Yes there are a couple of ways

I use maven for managing the project dependencies and run the tests via sure-fire plugin... but it looks like an overkill for your case

You can see a simple explanintion here: how to export (JUnit) test suite as executable jar

这篇关于如何创建一个自包含的Selenium JUnit测试包?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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