在c#中的MessageBox测试 [英] MessageBox Testing in c#
本文介绍了在c#中的MessageBox测试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
您好
我正在编写自动化测试。但我遇到了测试Message Box的问题。
I am writing automation testing.But I have a problem that to test Message Box.
我想在C#中测试一个MessageBox。
I want to test a MessageBox in C#.
推荐答案
您可以尝试使用PowerShell [ ^ ] - 作者讨论消息框测试 - 不详细但仍然可能会有所帮助。
You could try using PowerShell[^] - the author discusses message box testing - not in detail but still, it may help.
这是怎么回事例如:
Here is how, for example:
null = [System.Reflection.Assembly] :: LoadWithPartialName(System.Windows.Forms )
函数消息框(
[参数(强制性=
null = [System.Reflection.Assembly]::LoadWithPartialName("System.Windows.Forms") function Message-Box( [Parameter(Mandatory =
这篇关于在c#中的MessageBox测试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文