简体   繁体   English

在C#中运行Dynamics AX测试用例

[英]Running Dynamics AX Test Case in C#

I am hoping someone out there can give me help with this. 我希望外面有人可以对此给予帮助。 So I need to be able to run Microsoft Dynamics AX test case in C#. 因此,我需要能够在C#中运行Microsoft Dynamics AX测试用例。 Now I was going to try and do something like 现在我要尝试做类似的事情

Process.Start("ax32.exe", "-StartupCmd=RunTestProject_<name of test>");

But I am hoping there might be a way to run it by importing some Dynamics AX DLL in C# and executing the test cases that way with something like SysTestRunner (right now I think this only exists in x++/MorphX). 但是我希望可以通过在C#中导入一些Dynamics AX DLL并使用SysTestRunner之类的方式执行测试用例来运行它(现在我认为这仅存在于x ++ / MorphX中)。

ANY hints or hunches or potential solutions to this problem are greatly appreciated! 非常感谢您对此问题的任何暗示,预感或潜在解决方案!

Thanks!! 谢谢!!

Could you elaborate more on what you want to achieve by running the tests from C#? 您能否详细说明要通过C#运行测试要实现的目标? If you want to run daily/nightly tests, you could simply do this running a batch within Dynamics AX. 如果要运行每日/每晚测试,只需在Dynamics AX中运行批处理即可。

Just in case anyone comes across this issue we ended up just going with the 以防万一有人遇到这个问题,我们最终只解决了

Process.Start("ax32.exe", "-StartupCmd=RunTestProject_<name of test>");

since this was the best way to gain access to DynamicsAX internals and actually invoke the test cases. 因为这是获得DynamicsAX内部和实际调用测试用例的最佳方法。 Unfortunately the DynamicsAX splash screen will come up with every invocation but that was something we were willing to deal with. 不幸的是,每次调用都会出现DynamicsAX初始屏幕,但这是我们愿意处理的事情。

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

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