Download - Testing experience - Vision team, Mar 2016
Testing ExperienceTeam Vision, 2016
Agenda
1. Overview2. Demo3. Q&A
Why testing is so important?
https://jenkins-ci.org/blog/2013/09/05/extreme-feedback-lamp-switch-gear-style/
Why testing is so important?
https://jenkins-ci.org/blog/2013/09/05/extreme-feedback-lamp-switch-gear-style/
Defense (feedback) system
Why testing is so important?
● KTGR: 0 tests● HtmlFileManager: 63 tests● XEXPENSE: 267 tests● XRFL: 907 tests● DEPNOTICE: 948 tests
How to test effectively?
How to test effectively?
Module “DEPNOTICE”● Selenium tests: 251● Integration tests: 199● Unit tests: 398
Our problems and solutions
● Unit test● Integration test● GUI test
Unit test
Bugs!!Bugs!!...Oh no!!
Unit test
● Applying TDD● Covering for Utility, DAO, Bean.● Reducing calling Ivy from Java● Using Hamcrest
Integration test
Services DAOs
ServicesControllers
Ivy
Mock
Integration test
● Using DbUnit to init real data● Using Ivy test runner to run on real ivy
environment● Running by Jenkins
GUI test
● Browser drivers● OS versions● Low connection● Cost money
GUI test
● Covering for GUI behavior such as validation● Building successfully: Selenium Grid worked
with Jenkins
Javascript test
● Building successfully: Karma & Jasmine worked with Jenkins● Running like Selenium Grid
Demo
Demo
Q&A
Thank You!