Web testing automation

  • View
    826

  • Download
    5

Embed Size (px)

DESCRIPTION

Web testing automation : Using Robot Framework with Selenium2Library

Text of Web testing automation

  • 1.Web Testing Automation :Using Robot Framework withSelenium2Library 2013/3/1 1/7

2. Agenda - Selenium IDERobot FrameworkSelenium2Library - RIDEDemo2 3. FirefoxSelenium IDEWeb Selenium IDEJUnit JUnit Data Generation (Ex: BAN, IDN) Database Access JavaScript Execution Assertion Extension Selenium WebDriver Programming Skill 3 4. ,4 5. 5 6. Prerequisites Python v2.7.3 Oracle Instant Client WebDriver Internet Explorer WebDriver Chrome WebDriverSelenium IDERobot Framework v2.7.6 Selenium2Library Database Library v0.5 Oracle DB API 2.0 Drivers (Oracle 11g, Python 2.7)RIDE v1.1 6 7. Selenium IDEFirefox extension http://docs.seleniumhq.org/projects/ide/ Ctrl+Alt+S IDE 7 8. Selenium IDE Ruby Python Java C#Robot Framework(Selenium2Library) (JavaScript)IDE (Ex: Ruby, Java) 8 9. Selenium IDE9 10. Selenium IDERobot Framework [Options] [Options] [Formats]10 11. Selenium IDERIDE 11 12. Robot FrameworkSponsored by Nokia Siemens NetworksPythonGeneric Keyword-driven Test Automation Keywords, , Ex: userinterfaces, command line, web services HTML Plain Text TSV(tab-separated values) 12 13. Robot Framework Standard Test Libraries Builtin Library Operating System Library Telnet Library Collections Library String Library Dialogs Library Screenshot Library Remote Library XML Library13 14. Robot Framework External Test Libraries Selenium2Library DatabaseLibrary SSHLibrary PythonJava(Jython)TestLibraryKeywordTagTest CaseReport & Log 14 15. Robot FrameworkRobot Framework Introduction Slides 15 16. Selenium2LibraryWeb Testing Library for Robot Framework Selenium 2 (WebDriver)Keywords Selenium2Library.html16 17. - RIDERobot Framework Keyword Auto Completion View Keyword Documentation Validate Keyword Arguments Search for Keywords Robot Framework,Report & Log 17 18. - RIDE18 19. Test Suites Test Cases Settings Variables User-defined Keywords Test Cases 19 20. Settings Documentation Library Import Test Library Resource Import Resource File Test Setup/Teardown test case Suite Setup/Teardown Tags Test Suitesmetadata,Report Force Tags Default Tags20 21. Settings21 22. Variables Scalar Variable : ${variable_name} List Variable : @{variable_name} built-in : ${CURDIR}, ${TEMPDIR}, ${/} 22 23. Keywords Built-in Keywords Library Keywords User-defined KeywordsUser-defined Keywords keywordshigher-level keyword FOR loops , 23 24. User-defined Keywords24 25. Test Cases Test CaseKeyword Statements Keyword Statement [ + ] + keyword + + 1 + < > + 2 + tab or : Ex: Selenium2Library.Open Browser ${baseUrl}/pac/login : Ex: ${path}= Get Environment Variable path 25 26. Test Cases Test Cases26 27. JenkinsRegression TestRIDERobot Framework 27 28. 28 29. Test Report(Summary) Test Log(Detail) 29 30. Refine Selenium IDERobot FrameworkFDCKeywords User Keywords Test Library fdc-test-selenium Assertion Jenkins 30 31. DEMODEMO31