A plugin for eclipse base application, that enable GUI operation control of the application. Once install on the eclipse application you can now control it using XML-RPC. XML-RPC Java client is
... [More]
provided. The Java client is based on JSystem.
Test exampleThere are 2 ways to write tests. One is code based using SystemTestCase (junit extention), the other using GUI is based on Ant file.
Code optionpublic void testCreateFile(){
swtRobot.selectMenuItem("&File/&New Alt+Shift+N/File");
swtRobot.waitForShellShowing("New File");
swtRobot.enterString(System.currentTimeMillis() + ".txt");
swtRobot.clickButton("&Finish");
swtRobot.delay(1000);
swtRobot.enterString("Welcome to SWT agent project");
}GUI optionThe idea behind the scenario is that you can use junit base building block to build the test. And it can become a tool QA engineer can use to build tests.
InstallationFirst download the swtTestingAgent_x.x.x.zip file and extract it to the eclipse application you would like to test. The file contain 4 plugins: abbot.swt.eclipse, abbot.swt, com.gerhardtinformatics.rcprobot and SwtTestingAgent. When launch the eclipse application the SwtTestingAgent will be activated and wait for remote invocation of GUI operations (like clickButton). You can download the java client example project: SwtClientExampleProject_x.x.x.zip. Extract it to your workspace. You can use eclipse to open the project. This project requires jsystem installation. [Less]