QUnit Test      Automation      using      Hudson김민종      andNHN      Selenium
Background Knowledge
 Refactoring Test Driven DevelopmentUnit Test
OK
Hudson
Selenium
Complex Web Application       86       18      804
QUnit CallbackQUnit.log({ result, actual, expected, message })QUnit.testStart({ name })QUnit.testDone({ name, failed, pass...
{“1.qunit.html”:{result…},“2.qunit.html”:{result…},“3.qunit.html”:{result…},…}
Selenium RC
Selenium Client APIselenium = new Selenium(host, port, browser);selenium.open(“http://hudson/jobs/foo/ws/container.html”);...
Hudson Plugin w/ Selenium Client API
One More Thing
Coverage           Source Code                         Danger             Tested
JSCat(JavaScript Coverage Analysis Tool)
Toolkit   JSCat   JSCat Hudson Plugin
Ready-made Toolkit  js-test-driver  js-test-driver qunit adapter  js-test-driver coverage plugin  js-test-driver hudso...
{ jscamp : "Hannam" } Qunit Test Automation using Hudson and Selenium - 김민종
{ jscamp : "Hannam" } Qunit Test Automation using Hudson and Selenium - 김민종
{ jscamp : "Hannam" } Qunit Test Automation using Hudson and Selenium - 김민종
{ jscamp : "Hannam" } Qunit Test Automation using Hudson and Selenium - 김민종
{ jscamp : "Hannam" } Qunit Test Automation using Hudson and Selenium - 김민종
{ jscamp : "Hannam" } Qunit Test Automation using Hudson and Selenium - 김민종
{ jscamp : "Hannam" } Qunit Test Automation using Hudson and Selenium - 김민종
{ jscamp : "Hannam" } Qunit Test Automation using Hudson and Selenium - 김민종
{ jscamp : "Hannam" } Qunit Test Automation using Hudson and Selenium - 김민종
{ jscamp : "Hannam" } Qunit Test Automation using Hudson and Selenium - 김민종
{ jscamp : "Hannam" } Qunit Test Automation using Hudson and Selenium - 김민종
{ jscamp : "Hannam" } Qunit Test Automation using Hudson and Selenium - 김민종
Upcoming SlideShare
Loading in...5
×

{ jscamp : "Hannam" } Qunit Test Automation using Hudson and Selenium - 김민종

1,171

Published on

Hudson서버와 Selenium 을 이용하여 QUnit 단위테스트 수행을 자동화하는 활용 방법을 소개해 드립니다.

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
1,171
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
0
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

{ jscamp : "Hannam" } Qunit Test Automation using Hudson and Selenium - 김민종

  1. 1. QUnit Test Automation using Hudson김민종 andNHN Selenium
  2. 2. Background Knowledge
  3. 3.  Refactoring Test Driven DevelopmentUnit Test
  4. 4. OK
  5. 5. Hudson
  6. 6. Selenium
  7. 7. Complex Web Application 86 18 804
  8. 8. QUnit CallbackQUnit.log({ result, actual, expected, message })QUnit.testStart({ name })QUnit.testDone({ name, failed, passed, total })QUnit.moduleStart({ name })QUnit.moduleDone({ name, failed, passed, total })QUnit.begin()QUnit.done({ failed, passed, total, runtime })
  9. 9. {“1.qunit.html”:{result…},“2.qunit.html”:{result…},“3.qunit.html”:{result…},…}
  10. 10. Selenium RC
  11. 11. Selenium Client APIselenium = new Selenium(host, port, browser);selenium.open(“http://hudson/jobs/foo/ws/container.html”);selenium.runScript(“startTests()");// wait for test endString result = selenium.getEval("window._tests.analysis()"); { “1.qunit.test”:{“module1”:{“test1”:{“browser”:”ie8”,“total”:5,”failed”:0,”messages”:””}, “2.qunit.test”:{“module2”:{“test2”:{“browser”:”ie8”,“total”:3,”failed”:0,”messages”:””}, “3.qunit.test”:{“module3”:{“test3”:{“browser”:”ie8”,“total”:8,”failed”:0,”messages”:””}, … }
  12. 12. Hudson Plugin w/ Selenium Client API
  13. 13. One More Thing
  14. 14. Coverage Source Code Danger Tested
  15. 15. JSCat(JavaScript Coverage Analysis Tool)
  16. 16. Toolkit  JSCat  JSCat Hudson Plugin
  17. 17. Ready-made Toolkit  js-test-driver  js-test-driver qunit adapter  js-test-driver coverage plugin  js-test-driver hudson plugin

×