Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Testing Question for Tomek

 
Emmanuel Onah
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi am studying computer science, second year my name is Emmanuel,

I would like to know what times of testing can be done for a project about website application?
And how do I write a testing documentation?
 
Tomek Kaczanowski
author
Ranch Hand
Posts: 40
IntelliJ IDE Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Emmanuel,

if I understood your question right, you are interested in testing a web application. When speaking about developers tests, you should think about three types of them:

* unit tests - which should concentrate on single classes (usually written using JUnit/TestNG and mocking frameworks)
* integration tests - which should verify if integration of classes/modules (e.g. glued with Spring) works fine - these tests are technology-dependent: usually they also use JUnit/TestNG, but some frameworks provide additional support here (e.g. Spring with classes from subpackages of org.springframework.test.context)
* end-to-end tests - which mimic the way user uses the system, usually by clicking on GUI elements (web page in case of web application) - this is usually done with tools like Selenium, sometimes powered by testing frameworks (JUnit/TestNG)

Depending on the type of application you need different ratio of these tests. If you have complex domain objects and a lot of complicated business logic, than you should utilize unit tests to verify all possible scenario. If your application is of a simple CRUD type (which means not much business logic inside, simply creation/updates of objects) than it would be reasonable to invest your time in end-to-end tests. As for integration tests it depends both on the architecture and technology you use.

As for testing documentation, this is a huge topic - could you ask some more specific question?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic