对 SBT/ACCPAC/Sage Pro 系列进行 FoxPro 单元测试的最佳方法?

发布于 2024-08-19 11:49:27 字数 325 浏览 11 评论 0原文

由于调用表单的方式等原因,为 Pro 系列设计通用测试工具似乎极其困难。

我面临的问题是,虽然我可以调用每个表单,但表单的逻辑(一般来说)是逻辑上的分离在不同的类中,据我所知,目前无法模拟表单字段中的输入。换句话说,您可以调用构成“cmpmyformnamefs”对象中的业务逻辑的各种方法,但您无法打开表单、向其提供输入事件并跟踪结果。

  1. 有没有 FoxPro 程序员对类库进行过单元测试?
  2. 与(1)中的问题相同,但这一次,类库恰好是MDI形式?
  3. 您是否可以推荐一个通用测试工具,允许我加载类并开始调用它们?

你是怎么做到的?

It appears to be extremely difficult to design a generic test harness for Pro Series because of the way forms are invoked, etc.

The problem I face is that while I can invoke each form, and the logic for the form is (generally speaking) logically separated in a different class, there is to my knowledge no way at this time to simulate input into the fields of the form. In other words, you can invoke the various methods that make up the business logic in the "cmpmyformnamefs" object, but you can't open up the form, feed it input events, and trace the outcome.

  1. Are there any FoxPro programmers out there that have done unit tests on class libraries?
  2. Same question as in (1), but this time, class libraries that happen to be MDI forms?
  3. Is there a generic test harness you can recommend that allows me to load classes and start calling them?

Just how do you do it?

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

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

发布评论

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

评论(2

树深时见影 2024-08-26 11:49:27

类库中业务逻辑和业务对象的单元测试可以使用 FoxUnit(来自 Visionpace)完成。它也是免费的。可从 http://www.foxunit.org/Default.aspx?tabid 获取下载=24

至于测试用户界面,这对于 FoxPro 开发人员及其生成的应用程序来说一直是一个挑战。微软创建了一个可与该产品一起使用的测试工具,但它存在大量错误且不可靠。如果我没记错的话,其中一项操作系统更新也破坏了它。

有一个名为 FoxRunner 的第三方产品。我个人没有使用过它,但也许你可以研究一下。也许他们的销售或支持人员之一认识具有测试 SBT/Accpac 经验的开发人员。这是一款商业产品,售价449(不确定是美元还是欧元)。 http://www.cal.de/e/prod_foxrunner1.html

Unit testing of business logic and business objects in class libraries can be done with FoxUnit (from Visionpace). It is free too. The download is available from http://www.foxunit.org/Default.aspx?tabid=24

As for testing the user interface, this has always been a challenge for FoxPro developers and the apps they generate. Microsoft created a test harness that is available with the product, but it was extremely buggy and unreliable. One of the OS updates also broke it if I am recalling my history correctly.

There is a third-party product called FoxRunner. I personally have not used it, but it might be something for you to look into. Maybe one of their sales or support people know developers with experience testing out SBT/Accpac. It is a commercial product that runs 449 (not sure if US Dollars or Euros). http://www.cal.de/e/prod_foxrunner1.html

念﹏祤嫣 2024-08-26 11:49:27

我曾经专注于 SBT/ACCPAC 和 Pro 系列、定制和支持。他们有这样一个由代码、类、派生组成的集群#@J*(),仅理解元素本身就相当困难,更不用说强制脚本强制执行了。

我仍然与运行 ACCPAC/Pro 系列的先前客户保持联系,并会看看他们是否允许我进去,看看我是否能提出一些解决方案,但否则,我不会计划这样做......

I used to specialize in SBT/ACCPAC and the Pro Series, customization and support. They have such a cluster-#@J*() of code, classes, derivations it IS quite difficult to understand just the elements itself, let alone forcing a script to force going through.

I still have contact with a prior client running ACCPAC/Pro Series and will see if they will allow me in to see if I can come up with SOME solution, but otherwise, I wouldn't plan on it...

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