使用.NET进行网格控制的自动化 [英] Automation for grid control using .NET

查看:57
本文介绍了使用.NET进行网格控制的自动化的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是一名学生,我正在做有关GUI测试自动化的最后一年的项目.我正在使用WinSpy ++查找控件ID,然后使用.NET(C#)进行自动化.

我有一个flexgrid.如何将数据发送到使用.NET进行自动化的MFC(ActiveX)开发的网格的单元格?

谢谢!

I am a student and I am doing my final year project on GUI-testing-automation. I am using WinSpy++ to find the control ID, and then I use .NET (C#) for automation.

I have a flexgrid. How can I send data to the cell of a grid developed using MFC (ActiveX) using .NET for automation?

Thanks!

推荐答案

为您使用.NET做到这一点简直是愚蠢的,因为您最终将需要进行大量的p/invoke才能完成工作像SendMessage.用C ++来做.然后,您可以将窗口消息发送到控件.它不可靠,而且是hack,但这是您唯一的选择.
For you to use .NET to do this is plain dumb, because you''ll just end up doing lots of p/invoke to get to stuff like SendMessage. Do it in C++. Then, you can send window messages to the control. It''s not reliable, and it''s a hack, but it''s your only option.


这篇关于使用.NET进行网格控制的自动化的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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