1. Reference to the short book link: https://www.jianshu.com/p/c3a9d20db4e5
2. Introduction
Robot Framework is a Python-based, scalable, keyword-driven test automation framework for end-to-end acceptance testing and acceptance test-driven development (ATDD). It can be used to test distributed heterogeneous applications, where verification requires multiple technologies and interfaces.
Three. Features
1. Easy to use
2. Very rich library
3. Test cases can be written like programming
4. Support development system keywords
5. Automated testers can be well divided
Four. Bring your own library
Builtin: Provide a set of very needed keywords
String: A library for generating, modifying and verifying strings
Screenhost: Provide a screenshot of the screen capture of keywords
>
Datetime: Date and time conversion
Five. Third-party libraries
Web automation testing: SeleniumLibrary, Selenium2Library, Selenium2Library for java, watir-robot
Windows GUI test: AutoItLibrary
Mobile test: Android Library, IOS Library, AppiumLibrary
Database test: Database Library (java), Database Library (python), MongoDB library
File comparison test: Diff library
HTTP test: HTTP library-requests
Six. Comparison with unit test framework
Similarities:
p>
setUP/tearDown — test firmware
Provide test suite – suite
Test run – run
Generate HTML test report/ Results – report
Different points
Syntax: robot framework self-built syntax, unittest uses python syntax
Support library: robot framework supports specific libraries, unittest supports Any library of python
Comparison of scripts:
robotframework: You need to type four spaces in the middle, otherwise an error will be reported
un ittest: