单元测试的VBScript,ASP code和SQL Server 2000 [英] Unit Testing for VBScript, ASP Code and SQL Server 2000

查看:174
本文介绍了单元测试的VBScript,ASP code和SQL Server 2000的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有因为质量问题(经典)的ASP和SQL Server 2000实现了一个很旧的项目,我一直在考虑实施某种形式的自动化质量检测的可能性。虽然网页是ASP的项目真的是85%SQL Server存储过程,函数,视图和DTS。很多code一代(对DTS的依赖批)从SQL Server发生。

I have a very old project implemented in (classic) ASP and SQL Server 2000. Because of quality concerns, I've been considering the possibility of implementing some form of automated quality testing. Though, the web pages are ASP the project is really 85% SQL Server stored procedure, functions, views and DTS. (Lots of dependency on DTS) A lot of code generation occurs from SQL Server.

在关于DTS的,我们都希望能有可能升级数据库到SQL Server 2005年 - 所以如果单元测试不能上DTS设置,那SSIS?

In regards to the DTS, we are hoping to possibly upgrade the database to SQL Server 2005 -- so If unit testing can't be setup on DTS, what about SSIS?

我发现 ASPUnit 但它似乎不再保持...

I've found ASPUnit but it no longer seems to be maintained...

至于我的问题,它实际上是一个多部分的问题。

As for my question, it is really a multi-part question.


  1. 是否有可能和实际的单元测试ASP?

  2. 是否有可能和实际的单元测试SQL Server对象? (我已经看到了这方面的一些成功,但有些灰心过的)

  3. 是否有当前支持的测试框架,既ASP和SQL Server?
  4. 可用
  5. 是否有任何替代软件的质量控制方法,以单元测试这种类型的code群? (任何一般的提醒也将是有益的。谢谢。)

  6. 另外,我一直在考虑在这样一个项目实现自动化测试的投资回报率。该项目是很大的。我不知道code线的多少code,但数百个文件,成千上万(甚至上百万)。鉴于此,让我们回到1和3。

我在这个项目不好的情况我真的;任何一般的质量控制劝将会大大AP preciated ...

推荐答案

这听起来像你的问题实际上比单元测试更高的水平。我要说的却是你的主要问题将在一个集成测试级别最好的解决。

It sounds like your problems are actually at a higher level than unit tests. I'd argue that your major issues would be best solved at an integration test level.

由于您的网页是由SQL大量生成,ASP的单元测试将只涉及的问题进行了很小的比例,所以您将使用一个自动化工具,如的华廷 ieunit /

Since your pages are generated largely by SQL, asp unit tests will only cover a small percentage of issues, so you will have better coverage by testing the end pages using an automated tool such as watin or ieunit/.

您可以在单元测试的角度来考虑这些,但他们整合后真正测试最终结果,而不是测试的小功能的结果。虽然你可能会错过一些低层次的变化,你是绕过基本设计问题。

You can think of these in terms of unit testing, but they are really testing the end result after integration instead of testing the results of smaller functions. Although you may miss some lower level changes, you are bypassing the underlying design issues.

只要你的最终结果是一样的,你的测试不会关心该地区的内容是否从ASP或SQL来了。

As long as your end result remains the same, your test will not care whether the area's content came from asp or SQL.

这篇关于单元测试的VBScript,ASP code和SQL Server 2000的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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