Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 3 years ago.
Improve this question
Looking for a framework for system testing in java. We have a web application running under tomcat (Spring, Hibernate, etc..) with a well defined API that can be easily exposed as RMI (or any other way).
We want to test this API. The framework should test the running server. The tests will be triggered by Jenkins or will run by the developers or QA Automation.
Most of the tests will be written by the developers, so that we want them to be similar to what they are familiar with (java, all above listed technologies). Performance testing ability is an advantage.
Any success/failure stories or tips will be appreciated.
Fitnesse is an acceptance testing solution. It uses wiki like test input and comparison of HTML tabular data . You may able to tweak for your use. See some info
If you are just trying to test the API (which I'm assuming is Java code) I would recommend JUnit. It is the standard for unit / integration testing in the Java world. I would also look at a good mocking framework (EasyMock etc.) to see if that would be of use. If you are trying to do functional tests, I would recommend SOAPUI. Both tools will allow you to have test cases written by developers and can be triggered by Jenkins to execute and report test results.
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 2 years ago.
Improve this question
I have an application that's integrated with Google Cloud Storage. I need to write some unit/integration tests to test my application with Google Cloud Storage.
I found a MockGoogleCredential class for Java that simulates the credentials provider, but I could not find any code examples. Has anyone used this before?
The gsutil test command explained here can be used to run the gsutil unit tests and integration tests. The unit tests use an in-memory mock storage service implementation, while the integration tests send requests to the production service using the preferred API set in the boto configuration file, view gsutil help apis for more details.
In addition, I came across Google In-Memory emulator, but according to some Stackoverflow posts this has been moved to here.
There are also some non-official options been developed, such as this one which you could use for stubbing/mocking Google Cloud Storage as a standalone server.
Finally, while navigating through related GitHub Feature Requests, I came across this unofficial library which includes integration tests and supports GCS, according to this GitHub issue.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I am looking for an open Source Test Automation Tool for an application developed with GWT.
this tool should allow:
Scenarios recording
Maintenance of scenarios (binary files, XML, ..)
The integration into the build tool (Ant)
I know that Selenium do that, but I'm not sure that is the only nor the best tool to use.
If you know others automation test tools, feel free to suggest them to me.
Any help would be appreciated.
Try Selenium 2.
See:
http://www.carfey.com/blog/testing-gwt-apps-with-selenium-or-webdriver/
If you need to Load Test:
GWT load testing with jmeter
Regards
Philippe
Have you tried GWTTestCase? Refer Testing Methodologies Using Google Web Toolkit article on Google Developers better insight.
If you're open to commercial tools then I'd like to recommend Telerik's Test Studio. (Disclosure: I am the evangelist for that tool.)
We do a great job with creating very maintainable recorded tests, plus you've got the ability to dive in to as little or as much code as you need to flesh out your test suite. Test Studio handles load testing too. There's also a command line runner which is a perfect integration point in to Ant or any other build system. (We have our own scheduler, too, if you prefer that.)
Moreover, we do a great job with helping create solid tests in dynamic content situations -- AJAX, e.g.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
I am looking for suggestions on automated testing tools that can be used to test GUI/Frontend of Java Swing based windows applications in automated fashion ?
Fest has a module for functional Swing testing, and it's actively maintained.
windows test case tool is there its eclipse plugin,
Marathon tool is there
I suggest JFCUnit.
Depends on what you want. If you want recording Marathon (http://www.marathontesting.com) might be a good choice. Marathon records scripts in Ruby or Python.
I suggest to take a look at ReTest. It is a innovative tool with a novel approach to functional regression testing, which it combines with ai-based monkey testing.
It is about to become open source as well.
Disclaimer: I am one of the founders of the company behind ReTest.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
What is a good open source project which uses junit tests in its source code?
I want to see how its done and learn about it.
Any serious project (including open source) has unit tests. For what I've seen spring and hibernate have a lot of them.
This is a very good lecture about Object-oriented design for testability. It is not for complete beginners, but it gives very good insights.
The most widely used Test coverage tool is: eclemma
Update
Regarding "real world" understanding of jUnit. I would recommend use TDD and implement something very simple.
For example: Set (Java collections) and implement the test for the methods like: equals(), contains(), empty() etc.
The best way to learn something is by doing. Read this article, they have taken an example of Xerces XML parser
I wrote sections for Geoserver which only got accepted into the open-source tree once the additions were covered by tests. While testing my framework I came across some of the shortcomings in the Testing itself and extended it to allow for more abstract testing. The source for Geoserver can be accessed via SVN and the Eclipse Run-As Junit Test profile gives nice pass/fail stats.
You could also try and participate TopCoder developer competitions (this is not an ad). Every project there is required to have number of tests. And the volume of code covered by tests should not be below 85%.
I can recommend you to look at Hibernate project source code. Unit tests are very good there. Good example to follow.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 3 years ago.
Improve this question
We've used both JWebUnit and HttpUnit in the past to do functional tests of web applications. Both of them seem to have issues in handling javascript. We are not particularly interested in testing the javascript at this point, but JWebUnit and HttpUnit tests have broken since we added some small Ajax components (Dojo Date / Time pickers for instance) to our pages.
Selenium and Watir do not fit because they essentially drive browsers and we are running these tests from CruiseControl on a box where we are not allowed to install a browser.
Canoo's WebTest is pretty good and can handle what you're looking for.
You want HtmlUnit.
It isn't perfect browser emulation (for that you need a browser driver) but it has significant javascript support. Check out the introduction to testing your JavaScript.
Go with Canoon. Canoon is built upon HtmlUnit, and was previously built upon HttpUnit.
yc
Celerity is a JRuby library for
easy and fast automation of web
application testing. It is a wrapper
around the HtmlUnit Java library and
is aimed at providing the same API and
functionality as Watir.