Robot Framework Introduction

Robot Framework Framework Introduction

Robot Framework is an automated functional testing framework written a python. Good scalability, support keyword-driven, you can simultaneously test multiple types of client interfaces or can be distributed test execution. Mainly used for a lot of acceptance testing and acceptance test-driven development round (ATDD).
Robot Framework test case of the HTML or TSV (tab-separated value) files using keywords in the test library to run the program under test. Because Robot Framework is flexible and scalable, so it is appropriate to test a variety of complex software interface: the user interface, command line, web server, programming interface.

Test data syntax - test data syntax
Test library API - test library the API
the Application the interfaces - System Interface

Robot Framework Features

1.robot framework is functional automated testing framework written in python. Support Python, Java
2. Support for syntax drive
3. Write simple, can be written in other cases with TXT, html format or TSV use cases; use cases and background code separation, is suitable for acceptance testing driven development (the ATDD)
4. Test report and log into html format. Easy to read (To send a test report to the project team sent directly to the file, no additional processing, unlike fitnesse; log steps and the results of each step are printed out, you can reduce the code to play log)
5 there are a lot of built-in libraries can be called directly; of course we can also create your own library, which is our code-behind
6. there test Setup, test Teardown, Suite Setup , Suite TearDown and other methods can be used for each use case or test set to initialize or destroy data.
correspond to junit in the @ Before, @ After, @ BeforeClass , @ AfterClass function
7. use of existing keywords, we can create keyword they need to form a higher level behavior
8. You can use the command line execution, we combine convenience and version management tools, continuous integration

I.e. corresponding to the test type Robot Framework Class Library

Web automated testing: SeleniumLibrary, Selenium2Library, Selenium2Library for java , watir-robot such as
Windows GUI test: AutoItLibrary
mobile testing: Android Library, IOS Library, AppiumLibrary
database test: Database Library (AVA), Database Library (Python), MongoDB
Library and other
documents comparison test: DiffLibrary
the HTTP test: HTTP Librarylivetest), HTTP Library ( Requests) , etc.

The concept of test items and test suites

Test Suite is a general no difference txt document, test items and test suites.
If the test project to make a file, then in the test project will not create a new test suite, and it can only create test cases.
If you create a test suite into a directory, you can not create use case directly below it. Use cases can only be created in the file type of kit.

Guess you like

Origin www.cnblogs.com/TD1900/p/12072526.html