I'm currently working (almost finishing) a Java project that consists on a server application and some client applications on the same network, that will communicate with the server only to request informations. So what tools are suggested to use for this kind of testing?
-
Nathan - could you expand a little on what sort of testing you would like to find tools for? Performance testing, functionality, automating regression checks? If you can name a few categories of the sorts of tests you think you might want to run, it may help in getting better recommendations.– testerabCommented May 3, 2011 at 22:00
-
I'm primary looking for performance and functionality tests– Nathan CamposCommented May 3, 2011 at 22:34
-
I'm voting to close as the question is overly broad. It's not clear what protocol is used for communicating with server applications, so no specific tool can be proposed. Please be specific.– dzieciouCommented Jul 11, 2016 at 6:49
9 Answers
TestNG is appropriated for functional testing (and unit test, by the way). For performance test, Grinder is probably a good choice:
http://grinder.sourceforge.net/
The Eclipse plugin:
If you are looking for automated UI testing using java then Selenium is worth having a look at....
SoapUI is a nice tool to test (not only SOAP!) webservices, define several types of assertions on the responses, build functional tests and also derive load tests from functional tests.
As a (super nice) plus, mostly everything in SoapUI can be scripted with Groovy, which allows for even more flexible testing, and finally, there is also a Maven-Plugin which lets you integrate all your tests easily in a continuous integration/testing/deployment scenario.
JUnit is also an option if you want to test functionality.
-
agreed. You can JUnit for unit & integration tests. Get a plugin for eclipse.– DuncNCommented Jul 22, 2011 at 21:20
The combo of JUnit and Selenium would handle most if not all of your needs, especially if your app is browser based.
-
Spot on. be careful with record/playback automation tho - ensure your UI is stable (hopefully it is if you're nearing the end of the project– DuncNCommented Jul 22, 2011 at 21:22
As you wrote in the comment your are mainly looking for performance testing and functional testing,
For performance testing I would recommend you user Jmeter. It is a java based tool so it should work really fine and for web applications I would suggest you record your test scripts using Blazemeter (an extension of Google Chrome). Here is a tutorial to help you with it - http://testacy.co.in/performance-testing-jmeter/
For functional testing I would suggest you to use Selenium Webdriver and if you are familiar with the TestNG framework of Webdriver that would be more preferable. Since Selenium is open source project you will get a lot of help from countless blogs and forums dedicated to it.
Regards,
Milin Patel
Software Tester
Though JUnit helps in writing unit test cases for java code, it will not be able to help you to speed up the testing process with increasing numbers of test cases to be executed and more data to be processed.
Jthunder is a core automation framework which helps in enabling multi-threaded processing of any JUnit tests/Java code.
Have a look at the Jthunder framework documentation.
-
Java guru, if you have any affiliation with the Jthunder project, you should mention this: otherwise your post is little more than advertisement. Commented Nov 3, 2014 at 16:49
As you are looking for tools for functional testing of your application, I can recommend Ranorex. It is a powerful tool for testing the UI of your application automatically. At the end of every test run an XML based report is generated, containing screenshots if anything went wrong.
-
That's good for a start! Could you link some reference material along with this? Commented Jul 10, 2015 at 17:11