I’m about to start my first C# AutoCAD OEM project and wonder how I can automate my application for integration testing. Using Microsoft’s UI Automation Framework (namespace System.Windows.Automation) I managed to send a command string to the corresponding text box at the bottom. But the command is not executed. I tried appending a space to the end of the command to simulate the return key, but still no success. Does anybody know how to automate an AutoCAD OEM application from outside, simulating a user working with it?
We did try to implement a bit of this to automate some of our testing but kept running into similar issues. Because of the issues we ran into and also because our software leaves it open for the user to customize items, we eventually stopped trying to implement it. We are a bit unique in that area so that does not mean it cannot be implemented to a degree in your case if you can overcome the challenges. I will ask around to see if anyone we know in the industry has been able to successfully implement this and if so, will let you know.
Thanks for answering, Shawn!
I got it working now. The trick is to use the System.Windows.Forms.SendKeys.SendWait(…) method to fill the text box.