如何运行 Selenium RC + PHPUnit + NetBeans 远程?

发布于 2024-11-16 19:45:09 字数 110 浏览 1 评论 0原文

我在一台机器上启动并运行了 Selenium Server、PHPUnit 和 NetBeans,我希望将其作为我的专用测试箱。如何将其设置为修改测试用例(我已经弄清楚了该部分)并告诉测试机器远程运行测试?

I have Selenium Server, PHPUnit and NetBeans up and running on a machine that I want to be my dedicated testing box. How can I set it up to were I modify test cases (I already figured that part out) and tell the test machine to run the test remotely?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

染墨丶若流云 2024-11-23 19:45:09

我会使用持续集成服务器,例如 Jenkins。通常,CI 服务器用于在每次提交到存储库时构建应用程序,但手动启动“构建”也很容易,该“构建”仅包含运行所有测试(并记录结果,如果需要,还可以运行代码覆盖率, ETC)。

我发现 Jenkins 非常容易设置(我遵循了一个很好的教程 http://blog.jepamedia.org/2009/10/28/continuous-integration-for-php-with-hudson) - 除此之外我唯一要做的额外工作创建构建脚本是为了确保 Selenium RC 在测试机器上运行,听起来您已经这样做了。

为了使它更容易,如果您设置 Jenkins(或任何其他 CI 服务器,我确信)来构建对存储库的提交,那么您甚至不必登录到测试机器来编辑测试 -任何人都可以提交测试更改,CI 服务器将运行测试,每个人都可以看到结果。如果您单独开发,那么这并不那么重要,但仍然是一个方便的技巧。

I'd use a continuous integration server like Jenkins. Usually CI servers are used to build an application on every commit to a repository, but it's just as easy to manually start a "build" that just consists of running all your tests (and recording the results, and running code coverage if you want, etc).

I found Jenkins to be really easy to set up (I followed a nice tutorial at http://blog.jepamedia.org/2009/10/28/continuous-integration-for-php-with-hudson) - the only extra work I had to do besides creating a build script was to make sure that Selenium RC is running on the test machine, and it sounds like you've already done that.

To make it even easier, if you set up Jenkins (or any other CI server, I'm sure) to build on a commit to your repository, then you don't even have to log onto the test machine to edit the tests - anybody can commit test changes, the CI server will run the tests, and everybody can see the results. Not quite as important if you're developing solo, but still a handy trick.

后eg是否自 2024-11-23 19:45:09

我们可以从远程服务器运行测试用例,并且用例将在本地计算机中执行。我们必须按照以下步骤

在服务器中安装 phpunit 和必要的软件包
编辑测试用例并将主机更改为本地IP地址(使用静态IP地址)
在本地服务器中运行selenium RC
在服务器中运行测试用例
测试用例将在本地计算机中执行。

We can run the test cases from remote server and case will get execute into local machine. We have to follow the below steps,

Install phpunit and necessary packages in server
edit the test case and change host as local ip address ( use static ip address )
run the selenium RC in local server
run the test case in server
Test case will get execute into local machine.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文