单元测试 DTS 包
有人有为 sql server 2000 DTS 包编写单元测试的经验吗? 我即将开始使用 DTS 和作业,因此我希望能够尽可能多地进行单元测试。 我想我可以通过命令行调用 dtsrun.exe ,但也许其他人有更好的想法。
谢谢
费德
does anybody have any experience writing unit tests for sql server 2000 DTS packages?
I about to start working with DTS and jobs, so I want to be able to unit test as much as possible. I guess i could invoke dtsrun.exe via command line , but perhaps someone else has better ideas.
Thanks
Fede
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我来这里是为了寻求洞察力,但由于没有其他人给你想法,所以我确实想出了一个我将分享的想法。
就我而言(我知道并非所有情况),我们使用大量 ActiveX (VBScript) 脚本来完成任务。 我的理论是(我没有尝试过),如果我将 ActiveX 功能移动到 VBScript 类,我可以对这些类进行单元测试等等,然后执行ActiveX 脚本的 main 函数中非常非常基本的类实例化和使用。
我没有尝试过实现这一点; 我的项目没有这样做的预算。 但是,从理论上讲,这似乎是合理的。 我也不知道这可能会带来任何挑战。
请参阅我在此处发布的另一个问题。 这个问题与你的问题松散相关。 我为此问题选择的答案不适合您的情况。 您会对 Michal 的答案更感兴趣: 为您的 asp 应用程序创建单元测试
I came here looking for insight but since no one else has given you ideas, I did come up with one that I will share.
In my case (I know not all cases), we use a lot of ActiveX (VBScript) scripts to accomplish things. I'm theorizing (I've not tried this) that, if I move my ActiveX functionality to VBScript classes that I can unit test those classes and etc. and then do very, very basic class instantiation and usage in the main function of the ActiveX script.
I've not tried to implement this; my project does not have the budget to do so. But, in theory it seems sound. I also am unaware of any challenges this may cause.
Please see another question I posted here. The question is loosely related to yours. The answer I selected for this question doesn't fit your scenario. You'd be more interested in Michal's answer: Creating unit tests for your asp application
看到这个问题已经存在了一段时间,所以我只是提出一些想法...
我想知道您是否可以编写一些代码来使用 DTS API 来调用您的包,然后在单元测试工具中为您使用的任何语言编写有关这些包的断言。 例如,您可以使用 C# 编写代码并使用 NUnit。
此外,如果您的 DTS 包都只是调用 SQL 存储过程,您可以使用 T-SQL 单元。
如果您想要更高级别(集成)测试,那么您还可以考虑将 FitNesse 连接到 DTS API。
不确定这些是否有帮助,但我希望至少给了你一些想法。
Saw this question had been here for a while so I'm just throwing some ideas out there...
I'm wondering if you could write some code to use the DTS API to call your packages, then write assertions about those packages in the unit test tool for whatever language you used. For example, you could write your code in C# and use NUnit.
Additionally, if your DTS packages are all just calling SQL stored procedures, you can unit test the procedures (which would be true unit testing) using T-SQL Unit.
If it's higher level (integration) tests you want, then you might also consider hooking FitNesse up to the DTS API.
Not sure if any of this helps, but I hope I've at least given you some ideas.