免费工具自动化GUI测试 [英] Freeware tool to automate GUI Testing

查看:112
本文介绍了免费工具自动化GUI测试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hello All,



我开发了一个Windows应用程序,它有4个文本框来显示来自sql server查询的计算值。



我正在按照以下流程进行数据验证。

1)获取每个文本框后面使用的每个查询。

2)运行每个查询手动进入sql server和manullay匹配sql server的结果与应用程序上的repestive文本框的值。



现在我想自动化这个过程并寻找免费软件GUI测试工具将这样做:

我将创建测试用例如

a)启动gui测试工具

b)whch将记录文本框来自应用程序的价值

c)自动运行相应的查询进入sql server(或者在内部使用OLDB连接)

d)匹配两个值返回测试结果。



请教我。

Hello All ,

I have developed one windows application which has 4 text boxes to display calculated values from sql server query.

I am following below process for data validation.
1) Take each query which has been used behind each text box.
2) Run each query manually into sql server and manullay match result of sql server with the values of repestive text box on application .

Now I want to automate this process and looking for freeware GUI testing tool which will do like this :
I will create test case like
a) Start gui testing tool
b) whch will record text box value from application
c) Automatically run respective query into sql server (Or using OLDB connection internally)
d) Match both values return back test result.

Pleae suggest me.

推荐答案

你好,



看到这里,有很多可供选择:



http://en.wikipedia.org/wiki/List_of_GUI_testing_tools [ ^ ]



有一篇关于Codeproject的有趣文章描述了如何使用White框架来执行你想要做的任务。 br />
白色:UI自动化工具Windows应用程序 [ ^ ]



白色框架可以在那里找到:

http://teststack.github.com/White/ [ ^ ]



您可以使用的另一个工具是AutoIt。它不是开源的,但它是一个免费软件,应该能够完成你想做的工作:

http://www.autoitscript.com/site/ [ ^ ]



如果您使用的是Visual Studio(高级版和终极版),请查看CodedUI。这真的很好而且功能强大。

http://msdn.microsoft.com /en-us/library/dd286726.aspx [ ^ ]





Valery。
Hello,

See here, there are plenty to choose from:

http://en.wikipedia.org/wiki/List_of_GUI_testing_tools[^]

There is an interesting article on Codeproject that describes how to use the White framework to perform the tasks you want to do.
White: An UI Automation Tool for Windows Application[^]

The White framework can be found there:
http://teststack.github.com/White/[^]

Another tool you could use is AutoIt. it''s not open-source, but it is a freeware and should be able to do the job you want to do:
http://www.autoitscript.com/site/[^]

If you are using Visual Studio (premium and ultimate editions), have a look at CodedUI. This is really good and powerful.
http://msdn.microsoft.com/en-us/library/dd286726.aspx[^]


Valery.


考虑:

To consider:


  1. 假设您已将GUI与业务逻辑分开,我强烈建议您从GUI测试businesslogic independent 。例如。在.NET中通过MVVM并基于提供的命令运行测试。
  2. GUI测试仅用于检查GUI是否正确连接到业务逻辑(例如,如果打开菜单确实触发了打开的功能)
  3. 最后,如果没有手动GUI测试,你就无法逃脱:渲染,颜色,可读性,剪裁等需要目视检查。即我怀疑你是否为这些主题提供了强大的自动化功能。

  1. Assuming you have separated the GUI from the business logic, I strongly suggest to test the businesslogic independent from the GUI. E.g. in .NET by means of MVVM and run tests based on the provided commands.
  2. GUI Test is then only for checking if the GUI properly connects to the business logic (e.g. if the open menu really triggers the open function and not for example the save function, etc.)
  3. Finally, you don''t get away without manual GUI tests: rendering, color, readability, clipping, etc. needs visual inspection. I.e. I doubt that you get robust automation for these topics.





例如在您的示例中,您将拥有一个提供SQL查询的ViewModel(而不是GUI,此场景中的GUI对SQL不了解...)。您将在没有GUI的情况下测试ViewModel,并在ViewModel中再次检查业务逻辑的正确响应。然后,GUI测试仅检查是否触发了正确的函数,即每个文本框是否绑定到正确的ViewModel属性。



将GUI与其余部分分开 - DFT(设计测试)!



干杯

Andi



E.g. in your example, you would have a ViewModel that provides the SQL queries (not the GUI, the GUI in this scenario does not know anything about SQL...). You would test the ViewModel without the GUI and check the proper response from the business logic again in the ViewModel. The GUI test then only checks if the correct function is triggered, i.e. if each text box is bound to the right ViewModel property.

Separate GUI from the rest - DFT (Design-For-Test)!

Cheers
Andi


这篇关于免费工具自动化GUI测试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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