gui-testing

Making FEST to wait for the application to load

房东的猫 提交于 2019-12-01 04:58:35
问题 I am new to FEST based GUI Testing. MyFrame is the root class for my application. @Before public void onSetUp() { MyFrame frame = GuiActionRunner.execute(new GuiQuery<MyFrame>() { protected MyFrame executeInEDT() { return new MyFrame(); } }); frame2 = new FrameFixture(robot(), frame); frame2.show(); // shows the frame to test } When I run the test case, @Test public void testGui() { String rs = frame2.label("hl").text().toString(); assertTrue(rs.equals("First")); } The above method doesn't

Test dynamically loaded content with Selenium Web Driver

白昼怎懂夜的黑 提交于 2019-12-01 04:25:30
I am working on a system that has a web based frontend that I am testing with Selenium. On one page the content is dynamically loaded when scrolling down (maybe you know that from Facebook's friend-list), because it is one of the requirements. Scrolling down with Selenium Webdriver (I use Chrome) should be no problem via Javascript. But there is a problem with the dynamically added content. How can I make the Webdriver find those elements? I tried the following to scroll down until no more content is loaded: int oldSize = 0; int newSize = 0; do { driver.executeScript("window.scrollTo(0

Test dynamically loaded content with Selenium Web Driver

情到浓时终转凉″ 提交于 2019-12-01 02:47:17
问题 I am working on a system that has a web based frontend that I am testing with Selenium. On one page the content is dynamically loaded when scrolling down (maybe you know that from Facebook's friend-list), because it is one of the requirements. Scrolling down with Selenium Webdriver (I use Chrome) should be no problem via Javascript. But there is a problem with the dynamically added content. How can I make the Webdriver find those elements? I tried the following to scroll down until no more

Testing SWT GUI with SWTBot

余生长醉 提交于 2019-11-30 15:23:03
问题 I want to test a simple SWT GUI application with SWTBot. Unfortunatly, I have no idea how to start. There are several tutorials which describe the testing of an Eclipse plug-in but I could not find anything regarding my problem. I don't even know if it is possible. 回答1: Well it is very much possible. Follow the step as mentioned below. Download SWTBot for SWT Testing Put it in the <eclipsehome>/dropins folder Restart your eclipse Now at this point you are ready to play with SWTBot . For the

How to find specific lines in a table using Selenium?

一个人想着一个人 提交于 2019-11-29 18:48:49
问题 Here is an example code: <div id="productOrderContainer"> <table class="table gradient myPage"> So this table being in productOrderContainer has several columns and depending on several things will have several rows which all have several columns. An example is: What I want to do is to for example get the first row of this table. ( rows have id's such as: <td rowspan="1"> ) And then again for example in this rowspan look for a specific value in a specific <div> So in psudo-code what I want to

How do you test your Cocoa GUIs?

不问归期 提交于 2019-11-28 20:52:52
I would like to write some tests for the GUI of my Cocoa program. Is there any good GUI testing framework for Cocoa apps? The only thing I found is Squish , which, at 2.400€, is well beyond my budget… Any ideas? How do you test your Cocoa GUIs? It depends on what you mean by "testing Cocoa GUIs." If you want tools like the old Virtual User tool included with MPW, then those are few & far between; you'll be looking at tools like Squish and Eggplant. If you want to write unit tests for your application's human interface, I suggest you follow a " trust, but verify " approach where you trust that

Driving a Windows GUI program from a script

穿精又带淫゛_ 提交于 2019-11-28 17:34:17
I have to use a Windows simulation package to perform a repetitive task with slightly different options each time. Since I hate repetitive clicking, on grounds of both laziness and the amount of errors that a human introduces, I would like to drive this program automatically. The program in question doesn't support scripting, there is no API, no COM, nada, nyet, nravin. As far as I can tell, the only way to drive this program automatically is to imitate a human (i.e. keyboard and mouse macros.) I am aware of AutoHotKey but I don't think it does what I want. (Or it might do what I want, but its

Delphi GUI Testing and Modal Forms

喜你入骨 提交于 2019-11-27 14:50:43
问题 In this interesting blog post on delphiXtreme I read about DUnit's built-in GUI testing capabilities (basically an alternative test case class TGUITestCase defined in unit GUITesting that has several utility functions for invoking actions in the GUI). I was quite happy with it until I noticed that it didn't work with modal forms. For example the following sequence won't work if the first button shows a modal configuration form: Click ('OpenConfigButton'); Click ('OkButton'); The second Click

How do you test your Cocoa GUIs?

倖福魔咒の 提交于 2019-11-27 13:15:23
问题 I would like to write some tests for the GUI of my Cocoa program. Is there any good GUI testing framework for Cocoa apps? The only thing I found is Squish, which, at 2.400€, is well beyond my budget… Any ideas? How do you test your Cocoa GUIs? 回答1: It depends on what you mean by "testing Cocoa GUIs." If you want tools like the old Virtual User tool included with MPW, then those are few & far between; you'll be looking at tools like Squish and Eggplant. If you want to write unit tests for your

Selenium is to Web UI testing as ________ is to Windows application UI testing [closed]

跟風遠走 提交于 2019-11-27 12:17:33
问题 I'm interested in UI testing a client only Java application. What is the most popular framework for doing so? What is your recommended framework? Also, why doesn't Selenium do this (or does it)? It seems to me that anything that can test a web app should be able to test a windows app. 回答1: Try FEST framework. This is what was previously known as Abbot, if I'm not mistaken. I use this for automated testing and it seems to be very simple and convenient. Simple things are made easy and complex