Dev Ops in 30 Days

Eclipse JUnit testing

To test all JUnit test cases in your project using Eclipse, you can do something like this:


right click on your project and select run as



Select JUnit Test

Upon run completion, when you see a green bar, it means all the test cases have passed.

If any test case has failed, a red bar will appear. You can double click on the bottom left hand corner to see which line of the test has failed.



~~~~~~

Alternatively, you can do something like this:




Select the run arrow -> run configurations > Run. And let all the test cases one by one run :) 



~~~~~~

**THE POWER OF AUTOMATED TESTING**


Here is a video of our automated GUI testing in Eclipse using JUnit. It is implemented by the AWT bot. 

~~~~~~

Hope that you like it!

Thank you.

p/s: Thanks to Lynnette for helping me writing something in this post. :) 

Regards,
pharaoh
15/4/2014
2:38p.m.

Comments