Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Java EE test strategy

Java EE is a new world for me, my experiences are on embedded systems, but I started a new job and I would like to know if there is a test process to follow for web applications based on Java EE. Which test strategy is usually adopted in this field?

  • Basic Unit test
  • Functional test
  • Integration test
  • System test, stress test, load test,....

.... and which is the scope of each test phase for web development? As server code and client code are both involved I don't know which is the best approach in this field. Also, several machines are involved: DB, buisness tier, presentation tier, load balancers, authentication with CAS, Active Directory,...

Which is the best test environment for each phases? When using the production CAS authentication, ...

Links, books, simple explanation or other kind of address is well appreciated.

like image 539
maxqua72 Avatar asked Jun 25 '26 15:06

maxqua72


1 Answers

The best test framework is Junit -for unit tests, in my opinion. http://www.junit.org/ -for mocking objects, which you will need a lot, like to mock the database, mock services and other object in j2ee environment to be able to test in isolation .use http://www.jmock.org/ , http://code.google.com/p/mockito/, http://www.easymock.org/ -for acceptance and functional testing there is selenium http://seleniumhq.org/ this framework enables you to automate your tests. I Advice you to read this books about testing in general and testing in j2ee evironment in particular.

http://www.manning.com/rainsberger/ 
http://www.amazon.com/Test-Driven-Development-By-Example/dp/0321146530
http://manning.com/massol/ 
http://manning.com/koskela/
like image 134
Adelin Avatar answered Jun 28 '26 09:06

Adelin



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!