简体   繁体   English

如何测试 BizTalk 编排

[英]How to test BizTalk-Orchestrations

As the title of this post says I want to test a BizTalk-Orchestration.正如这篇文章的标题所说,我想测试一个 BizTalk-Orchestration。 In past I did something like that by using BizUnit.过去我使用 BizUnit 做过类似的事情。 But I was only able to test the Input, let the BizTalk-solution run and test the output.但我只能测试输入,让 BizTalk 解决方案运行并测试输出。 BizUnit helped me by automatizing this process. BizUnit 通过自动化这个过程帮助了我。

So the question is: How can I test every step in an Orchestration (for example the output of Transform component).所以问题是:如何测试编排中的每一步(例如转换组件的输出)。 How can I read the messages in the MessageBox while I'm testing that?在测试时如何阅读 MessageBox 中的消息? Does anyone know a great tutorial?有谁知道一个很棒的教程?

I agree with Johns-305 and would suggest that its not probably required to test every step of the Orchestration.我同意 Johns-305 并建议它可能不需要测试编排的每个步骤。 Still if you want to, you could put temporary Send shapes after every transformation and send them out to a FILE location so that you can understand what messages are being generated.不过,如果您愿意,您可以在每次转换后放置临时发送形状并将它们发送到 FILE 位置,以便您了解正在生成的消息。 Also, you can make use of Orchestration Debugger if you want to understand the flow of the Orchestration.此外,如果您想了解编排流程,可以使用编排调试器。 You wont be able to see any messages that are created within the orchestration but are to published to the message box.您将无法看到在编排中创建但要发布到消息框的任何消息。

You can debug the orchestration in the BizTalk administrator console.您可以在 BizTalk 管理员控制台中调试业务流程。

Just stop your orchestration.只需停止您的编排。 then in the BizTalk group you can attach debugger.然后在 BizTalk 组中,您可以附加调试器。

Then you can resume in debug mode然后您可以在调试模式下恢复

The first question you need to ask yourself is: Do I really need to do this?你需要问自己的第一个问题是:我真的需要这样做吗? Hint, the answer is no.提示,答案是否定的。

The Unit Test fad has long past and was never a useful thing with BizTalk apps.单元测试的风潮早已过去,对 BizTalk 应用程序从来没有用处。

Instead, focus on developing, with the business owners, a set of test cases that validate the entire app.相反,专注于与业务所有者一起开发一组验证整个应用程序的测试用例。 You then use these to test everything, not just Orchestrations.然后,您可以使用这些来测试所有内容,而不仅仅是编排。

During DEV, 97% of the time, testing in Visual Studio is all you need for Maps.在 DEV 期间,97% 的时间里,您只需要在 Visual Studio 中测试地图即可。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM