简体   繁体   English

测试摆动应用

[英]Test swing application

How do you test Swing applications? 你如何测试Swing应用程序? For the code, I have written Unit test cases and hence I am sure that it will work well (If it doesn't, then my test cases were not adequate). 对于代码,我已经编写了单元测试用例,因此我确信它能很好地工作(如果没有,那么我的测试用例就不够了)。 But how do you test for applications with UI. 但是,如何使用UI测试应用程序。 It might not appear well or functionality is vague or something. 它可能看起来不太好或功能模糊不清。

In the last application I built, I tested the UI and it worked well; 在我构建的最后一个应用程序中,我测试了UI,它运行良好; Only later did I tweaked a little code, hence disturbing the modal and the UI which got unnoticed and blew up with client. 直到后来我才调整了一些代码,因此扰乱了模态和用户界面中被忽视的用户界面。 I know its a bit vague, but pretty sure people would have different techniques to test UI applications 我知道它有点模糊,但很确定人们会有不同的技术来测试UI应用程序

UISpec4J is an Open Source functional and/or unit testing library for Swing-based Java applications, built on top of JUnit and TestNG. UISpec4J是基于Swing的Java应用程序的开源功能和/或单元测试库,构建于JUnit和TestNG之上。

But you should know that unit testing on UI(Swing) is difficult. 但是您应该知道在UI(Swing)上进行单元测试很困难。

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

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