title: How to create structured automatic testing with selenium (junit or testng)? What is your best practice for this?
body: <p>I have written tests that are using selenium for functional testing. I'm using Java. I would like to be able to create structure between tests. Is it possible to do it with jUnit or TestNG?</p>
  
  <p>Would like to be able to create test structure that will produce report like this:</p>
  
  <pre><code>Top test FAIL
  - Module1 test PASS
  -- Module1Class1 test PASS
  -- Module1Class2 test PASS
  --- Module1Class3Method1 test PASS
  --- Module1Class3Method2 test PASS
  - Module2 test FAIL
  -- Module2Class1 test FAIL
  --- Module2Class1Method1 test PASS
  --- Module2Class1Method2 test FAIL
  --- Module2Class1Method3 test PASS
  </code></pre>