Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Barcamp Bangkhen :: Robot Framework

Robot framework at Barcamp Bangkhen

Barcamp Bangkhen :: Robot Framework

  1. 1. by Siam Chamnan Kit Co., Ltd. and Odd-e (Thailand) Co, Ltd. SPRINT3R Robot Framework somkiat.cc 1
  2. 2. Introduction • Test automation framework • For acceptance testing (ATDD) • https://code.google.com/p/robotframework/ • Keyword-Driven Development • Based on Python • Open source • Sponsor by Nokia Siemens Networks 2
  3. 3. ATDD Cycle 3
  4. 4. Architecture 4
  5. 5. Installation • Python 2.7/2.8 • pip • Robot Framework • Selenium for Robot Framework 5
  6. 6. Install Robot Framework • $pip install robotframework • $pybot
 6
  7. 7. Install Selenium • $pip install robotframework-selenium2library https://code.google.com/p/robotframework-seleniumlibrary/7
  8. 8. Test Structure 8
  9. 9. Standard Libraries • Build in • Operating System • Screenshot • Telnet • String • Collections • Remote • Dialog • XML • Process http://robotframework.org/#test-libraries
  10. 10. External Libraries • Selenium2Library • Android • iOS • Database • FTP • HTTP • MongoDB • SSH • AutoItLibrary • Swing http://robotframework.org/#test-libraries
  11. 11. Selenium Keyword • Open Browser <url> <browser> • Input Text <locator> <value> • Click Button <locator> • Click Link <locator> • Close Browser 11
  12. 12. Selenium Keyword • Wait Until Page Contains <text> • Page Should Contain <text> • Title Should Be <text> 12
  13. 13. More 13 http://rtomac.github.io/robotframework-selenium2library/doc/Selenium2Library.html
  14. 14. Hello Robot • Create file hello.txt • Run with • $pybot hello.txt 14
  15. 15. Be careful • Page Should Contain Google 4 spacebars only 1 spacebar 15
  16. 16. Report 16
  17. 17. Report 17
  18. 18. Workshop • Create test case with Robot Framework • Demo Login 18
  19. 19. SPRINT3R Siam Chamnankit Co., Ltd., Odd-e (Thailand) Co., Ltd. and Alliance Feature ฟ้าประทาน
  20. 20. SPRINT3R Siam Chamnankit Co., Ltd., Odd-e (Thailand) Co., Ltd. and Alliance Feature ฟ้าประทาน http://localhost:7272/html name=username_field name=password_field name=login_button
  21. 21. SPRINT3R Siam Chamnankit Co., Ltd., Odd-e (Thailand) Co., Ltd. and Alliance ผ่าน คือ อะไร username=demo password=mode http://localhost:7272/html/welcome.html http://localhost:7272/html
  22. 22. ความต้องการ๡ัดล่ะ SPRINT3R Siam Chamnankit Co., Ltd., Odd-e (Thailand) Co., Ltd. and Alliance
  23. 23. เขียน Acceptance Test กันเถอะ SPRINT3R Siam Chamnankit Co., Ltd., Odd-e (Thailand) Co., Ltd. and Alliance
  24. 24. Question ? 24

×