<p>I am coding a client-server application using Eclipse's RCP.
We are having trouble testing the interaction between the two sides
as they both contain a lot of GUI and provide no command-line or other
remote API.</p>

<p>Got any ideas?</p>

[{'answer_id': 31646, 'author': 'mmattax', 'author_id': 1638, 'author_profile': 'https://Stackoverflow.com/users/1638', 'pm_score': 2, 'selected': False, 'text': '<p>I have about 1.5 years worth of experience with the RCP framework, I really liked it. We simply JUnit for testing...</p>\n\n<p>It\'s sort of cliche to say, but if it\'s not easy to test, maybe the design needs some refactoring?</p>\n\n<p>Java and the RCP framework provide great facilities for keeping GUI code and logic code separate. We used the MVC pattern with the observer, observable constructs that are available in Java...</p>\n\n<p>If you don\'t know about observer / observable construct that are in Java, I would HIGHLY recommend you take a look at this: <a href="http://www.javaworld.com/javaworld/jw-10-1996/jw-10-howto.html" rel="nofollow noreferrer">http://www.javaworld.com/javaworld/jw-10-1996/jw-10-howto.html</a>, you will use it all the time and your apps will be easier to test.</p>\n'}, {'answer_id': 31857, 'author': 'Christian Lescuyer', 'author_id': 341, 'author_profile': 'https://Stackoverflow.com/users/341', 'pm_score': 2, 'selected': False, 'text': "<p>As a former Test &amp; Commissioning manager, I would strongly argue for a test API. It does not remove the need for User Interface testing, but you will be able to add automated tests and non regression tests.</p>\n\n<p>If it's absolutely impossible, I would setup a test proxy, where you will be able to:</p>\n\n<ul>\n<li>Do nothing (transparent proxy). Your app should behave normally.</li>\n<li>Spy / Log data traffic. Add a filter mechanism so you don't grab everything</li>\n<li>Block specific messages. Your filter system is very useful here</li>\n<li>Corrupt specific messages (this is more difficult)</li>\n</ul>\n\n<p>If you need some sort of network testing:</p>\n\n<ul>\n<li>Limit general throughput (some libraries do this)</li>\n<li>Delay messages (same remark)</li>\n<li>Change packet order (quite difficult)</li>\n</ul>\n"}, {'answer_id': 36796, 'author': 'Motti', 'author_id': 3848, 'author_profile': 'https://Stackoverflow.com/users/3848', 'pm_score': 1, 'selected': False, 'text': '<p>Have you considered using a UI functional testing tool? You could check out <a href="https://h10078.www1.hp.com/cda/hpms/display/main/hpms_content.jsp?zn=bto&amp;cp=1-11-127-24%5E1352_4000_100__" rel="nofollow noreferrer">HP\'s QuickTest Professional</a> which covers a wide varieties of UI technologies. </p>\n'}, {'answer_id': 283150, 'author': 'Community', 'author_id': -1, 'author_profile': 'https://Stackoverflow.com/users/-1', 'pm_score': 1, 'selected': False, 'text': '<p>we are developing one client-server based application using EJB(J2EE) technology, Eclips and MySQL(Database). pl suggest any open source testing tool for functional testing .\nthanks\nHitesh Shah</p>\n'}, {'answer_id': 1293445, 'author': 'David Rabinowitz', 'author_id': 82804, 'author_profile': 'https://Stackoverflow.com/users/82804', 'pm_score': 0, 'selected': False, 'text': '<p>Separate your client-server communication into a pure logic module (or package). Test this separately - either have a test server, or use mock objects.</p>\n\n<p>Then, have your UI actions invoke the communications layer. Also, have a look at the <a href="http://en.wikipedia.org/wiki/Command_pattern" rel="nofollow noreferrer">command design pattern</a>, using it may help you.</p>\n'}]
['https://Stackoverflow.com/questions/31598', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/1651/']