gui-testing

GUI testing framework for JavaFX 2

馋奶兔 提交于 2019-12-18 12:07:04
问题 I'm currently reading the book Growing Object-Oriented Software Guided by Tests which gives a decent introduction into test driven development. One drawback is that the code developed through the book is based on Swing. For my next project I'd like to use Java FX 2 and I'm wondering if there are any GUI testing frameworks out there for it? The book introduces windowlicker, which allows testing Swing applications only. 回答1: There is a library named JemmyFX. Jemmy itself is a set of libraries

Writing message in Coded UI HtmlLogger output file

ぐ巨炮叔叔 提交于 2019-12-12 13:13:21
问题 I am using Coded UI for Automation testing. I have already enabled HtmlLogger in QTAgent32.exe.config file. I am getting the html output file. but I am considering to write some messages in that html output file. I used this.TestContext.WriteLine("Message"); to write output in result file (.trx) but it is not writing in output html output file. Is there any solutions to write in html file while test is running? Any help would be highly appreciated ! 回答1: I found that there is no direct way to

White Automation framework throws an exception when using “White.Core.Desktop” Class

故事扮演 提交于 2019-12-11 11:40:45
问题 I am using White Framework for automation. when I trying to get desktop instance I got exception "The type initializer for 'White.Core.Desktop' threw an exception." My code looks like : var window = White.Core.Desktop.Instance.Windows().Find(obj => obj.Title.Contains("TestAppHome")); Is there any way to capture the window without exception that is without using White.Core.Desktop class? Any help would be greatly appreciated ! 回答1: Try this one: List<White.Core.UIItems.WindowItems.Window>

Robotium. In the suite of tests each next test is affected by the previous test

谁都会走 提交于 2019-12-08 15:09:35
问题 I have multiple UI tests. When I run a single test, everything is OK. But if I run a batch of them (as a part of CI build) test fail, because tests that go first change the state of the application, and the next tests are affected by those changes. (Since the app is not getting killed). I tried getActivity().finish() in tearDown() . Tried solo.finalize() which does the same actually. Is there a way to have a fresh app at the beginning of each test run? (Using Robotium). And is there a way to

What is the difference between UI/GUI testing, functional testing and E2E testing?

风流意气都作罢 提交于 2019-12-06 06:15:35
问题 I would say that all three are the same, but I wonder if there is small differences between them. In the end, what I think is that you are testing user scenarios on all of them. 回答1: UI testing : user interface testing. In other words, you have to make sure that all buttons, fields, labels and other elements on the screen work as assumed in a specification. GUI testing : graphical user interface. You have to make sure that all elements on the screen work as mentioned in a specification and

How to record test cases with robotframework?

我怕爱的太早我们不能终老 提交于 2019-12-06 06:11:56
I recently started using robotframework with the Selenium2Library . I haven't tested using Selenium before, but I know it is possible to record tests using Selenium . In RobotFramework , it says, "it is not possible" . I mean even for a simple login test, I need to write the test , specifying the id of username, password and submit button. However, is there any way by which these tests can be recorded using robotframework ? such as clicking on a text box, entering a string and then clicking on submit button etc., and automatically generate the test case source code instead of having me to

Could someone suggest a test automation tool to automate Java applet window?

自闭症网瘾萝莉.ら 提交于 2019-12-04 03:11:17
问题 Could someone suggest a test automation tool to automate Java applet window? Require this to identify various buttons within the applet window too. 回答1: I highly recommend FEST for all functional Java GUI testing, and yes it supports applets. 来源: https://stackoverflow.com/questions/11342150/could-someone-suggest-a-test-automation-tool-to-automate-java-applet-window

Automated GUI Testing [closed]

╄→尐↘猪︶ㄣ 提交于 2019-12-02 15:38:58
I am writing a Java Desktop Application (SWING) using Netbeans IDE 6.9. I want to do automated GUI testing. All I know about testing is JUnit tests which won't apply for my GUI application. Is there a particular testing framework I can use for testing the GUI application, are there good ones out there? Which ones are easy to use (I need to do testing but I don't have a lot of time for that, however, I don't want to ignore that). My application is basically one frame, with three to 4 tabs (not a big one), my tests shouldn't be complicated, so is there a simple framework that will let me test my

Automatically generate IDs on SWT-Widgets

偶尔善良 提交于 2019-12-01 18:08:29
Is there a way to automatically generate IDs on SWT-Widgets so UI-Tests can reference them? I know i can manually set an id using seData but I want to implement this feature for an existing application in a somewhat generic fashion. You can recursively assign IDs for all your shells in your application using Display.getCurrent().getShells(); and Widget.setData(); . Setting the IDs Shell []shells = Display.getCurrent().getShells(); for(Shell obj : shells) { setIds(obj); } You have access to all the active (not disposed) Shells in your application with the method Display.getCurrent().getShells()

Could someone suggest a test automation tool to automate Java applet window?

≯℡__Kan透↙ 提交于 2019-12-01 16:49:57
Could someone suggest a test automation tool to automate Java applet window? Require this to identify various buttons within the applet window too. I highly recommend FEST for all functional Java GUI testing, and yes it supports applets. 来源: https://stackoverflow.com/questions/11342150/could-someone-suggest-a-test-automation-tool-to-automate-java-applet-window