远程触发 Quartz 作业进行验收测试?

发布于 2024-10-21 00:33:04 字数 363 浏览 6 评论 0原文

我正在从现有站点重新设计一个站点,并且正在编写验收测试来证明用例并确保我不会丢失任何功能。该站点有几个全天触发的 Quartz 作业,并对数据库记录执行处理。

对于我的测试策略,我可以访问现有站点和新站点,我的计划是针对现有站点执行多个用例中的每一个,当测试通过时,我将能够使用这些测试来验证新网站。

问题是...

我有源代码,但我将针对工作站点运行测试。我想做的是触发需要运行的 Quartz 作业,然后查询数据库以确保所有业务规则和用例流程都得到满足。我可以在验收测试中以编程方式在远程服务器上触发 Quartz 作业吗?或者这是不可能的?

我正在使用 JEE5、Quartz、Weblogic、Oracle、Selenium 和 jUnit。

I am re-engineering a site from an existing site, and I am writing acceptance tests to prove out the Use cases and ensure that I don't lose any functionality. The site has several Quartz jobs that are triggered throughout the day, and perform processing for DB records.

For my test strategy, I have access to the existing site and the new site, my plan is to perform each of several use cases against the existing site, and when the tests pass I will be able to use those tests to verify the functionality of the new site.

Here is the catch...

I have the source code, but I will be running my test against the working site. What I would like to do is trigger the Quartz job that needs to be run, and then query the DB to ensure that all of the business rules and Use Case flows have been satisfied. Can I trigger Quartz jobs programmatically on a remote server in my acceptance tests, or is this an impossibility?

I am using JEE5, Quartz, Weblogic, Oracle, Selenium, and jUnit.

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

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

发布评论

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

评论(1

谈情不如逗狗 2024-10-28 00:33:05

当然,quartz 有一个 rmi 接口和一个 jmx 接口,您可以通过它们触发作业。

Sure, quartz has an rmi interface, and a jmx interface through which you can trigger the jobs.

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