1. 介紹
? ? ? ? Robot Framework,一個(gè)通用的驗(yàn)收測(cè)試和驗(yàn)收驅(qū)動(dòng)開發(fā)的自動(dòng)化測(cè)試框架(ATDD)贩绕,它使用關(guān)鍵字驅(qū)動(dòng)的測(cè)試方法,具有易于使用的表格來組織測(cè)試過程和測(cè)試數(shù)據(jù)馏鹤。
2. 特點(diǎn)
3. 支持的測(cè)試類庫
? ? ? ? Robot Framework包含多種類庫湃累,通過導(dǎo)入不同的庫就可以使用庫中所提供的關(guān)鍵字治力,Robot Framework的測(cè)試類庫包括標(biāo)準(zhǔn)庫勃黍、外部庫及自己創(chuàng)建的庫溉躲。
? ? ? ? 標(biāo)準(zhǔn)庫:
? ? ? ? 1、Builtin: Provides a set of often needed generic keywords.Always automatically available without imports.
? ? ? ? 2箭券、Dialogs: Provides means for pausing the test execution and getting input from users.
? ? ? ? 3辩块、Collections: Provides a set of keywords for handling Python lists and dictionaries.
? ? ? ? 4废亭、OperatingSystem: Enables various operating system related tasks to be performed in the system where Robot Framework is running.
? ? ? ? 5豆村、Remote: Special library acting as a proxy between Robot Framework and test libraries elsewhere. Actual test libraries can be running ? ? ? ? ? ? ? ? on different machines and beimplemented using any programming language supportingXML-RPC protocol.
? ? ? ? 6骂删、Screenshot: Provides keywords to capture screenshots of the desktop.
? ? ? ? 7、String: Library for generating, modifying and verifying strings.
? ? ? ? 8宁玫、Telnet: Makes it possible to connect to Telnet servers and execute commands on the opened connections.
? ? ? ? 9粗恢、XML: Library for generating, modifying and verifying XML files.
? ? ? ?10、Process Library: Library for running processes in the system. New in Robot Framework 2.8.
? ? ? ?11欧瘪、DateTime: Library for date and time conversions. New in Robot Framework 2.8.5.
? ? ? ? 外部庫:
? ? ? ? 1眷射、Android library: Library for all your Android automation needs. It uses Calabash Android internally.
? ? ? ? 2、AnywhereLibrary: Library for testing Single-Page Apps (SPA). Uses Selenium Webdriver and Appium internally.
? ? ? ? 3、AppiumLibrary: Library for Android- and iOS-testing. It uses Appium internally.
? ? ? ? 4妖碉、Archive library: Library for handling zip- and tar-archives.
? ? ? ? 5涌庭、AutoItLibrary: Windows GUI testing library that uses AutoIt freeware tool as a driver.
? ? ? ? 6、Database Library (Java): Java-based library for database testing. Works only with Jython.
? ? ? ? 7嗅绸、Database Library (Python): Python based library for database testing. Works with any Python interpreter, including Jython.
? ? ? ? 8脾猛、Diff Library: Library to diff two files together.
? ? ? ? 9撕彤、Eclipse Library: Library for testing Eclipse RCP applications using SWT widgets.
? ? ? ? 10鱼鸠、robotframework-faker: Library for Faker, a fake test data generator.
? ? ? ? 11、FTP library: Library for testing and using FTP server with Robot Framework.
? ? ? ? 12、HTTP library (livetest): Library for HTTP level testing using livetest tool internally.
? ? ? ? 13麻蹋、HTTP library (Requests): Library for HTTP level testing using Request internally.
? ? ? ? 14、iOS library: Library for all your iOS automation needs. It uses Calabash iOS Server internally.
? ? ? ? 15、MongoDB library: Library for interacting with MongoDB from RobotFramework using pymongo.
? ? ? ? 16荔仁、Rammbock: Generic network protocol test library that offers easy way to specify network packets and inspect the results of sent and ? ? ? ? ? ? ? ? ? received packets.
? ? ? ? 17遇骑、RemoteSwingLibrary: Library for testing and connecting to a java process and using SwingLibrary, especially Java Web Start ? ? ? ? ? ? ? ? ? ? ? ? ? ? applications.
? ? ? ? 18翩肌、Selenium2Library: Web testing library that uses Selenium 2. For most parts drop-in-replacement for old SeleniumLibrary.
? ? ? ? 19、SSHLibrary: Enables executing commands on remote machines over an SSH connection. Also supports transfering files using SFTP.
? ? ? ? 20瓷产、SudsLibrary: A library for functional testing of SOAP-based web services based on Suds, a dynamic SOAP 1.1 client.
? ? ? ? 21再登、SwingLibrary: Library for testing Java applications with Swing GUI.
? ? ? ? 22、watir-robot: Web testing library that uses Watir tool.
? ? ? ? 按照測(cè)試類型的不同:
? ? ? ? web 自動(dòng)化測(cè)試:SeleniumLibrary,Selenium2Library,Selenium2Library for Java形入、watir-robot 等盒使。
? ? ? ? Windows GUI 測(cè)試:AutoItLibrary。
? ? ? ? 移動(dòng)測(cè)試:Android library挽放、iOS library腿倚、AppiumLibrary 等。
? ? ? ? 數(shù)據(jù)庫測(cè)試:Database Library (Java)、Database Library (Python)、MongoDB library 等肾砂。
? ? ? ? 文件對(duì)比測(cè)試:Diff Library。
? ? ? ? HTTP 測(cè)試:HTTP library (livetest)、HTTP library (Requests)等荣堰。