Robot framework-Tools Introduction and simple use

Source: Internet
Author: User
Tags log log

  • Interface detailed
    • Project, Suite pages
      • Project structure: The display of all structure display and related reference files in the renovation project, and the tree-type result display. Optional execution for partial testcase
      • References: Adding external reference packages, resources, variables, failed help
      • Parameters: adding variables, arrays
      • Data: When using TDD, you can add some test reference data here
    • TestCase page
      • Setup area: used primarily to formulate operations for this testcase execution phase
        • Documentation: Description, can add testcase description, Context, parameter description, business, etc. No content restrictions
        • Setup: Some settings that can be performed before the use case, data initialization, context data restore
        • Teardown: Perform a partial operation after the end of the use case. Data destruction, context data restore
        • Timeout: Timeout setting, maximum execution time for this use case. If this time is exceeded, the failure
        • Template: Templates
        • Tags: tags, can be used to set the priority of TestCase, marking use cases.
      • Script area: Regions that write specific test cases
    • Text Edit Page
      • Script writing area: Used to write scripts directly. However, when scripting here, you need to pay attention to the processing of whitespace, we recommend using the script area on the test Case page to complete the script
    • Run page
      • Execute Settings Area: Set the configuration at execution time
        • Pybot: Set this to execute script using Pybot/jybot/custom script
        • Report: After the execution, click here to view the reports directly
        • LOG: After execution, click to view log log file
        • Autosave: When checked, all changes will be saved automatically before execution
        • Pause On Failure: When checked, automatically stops when execution fails
        • Show Message log: When checked, the message "System run Record" message is displayed automatically upon execution
        • Arguments: Some parameters that can be formulated at execution time
        • Only run tests with tags: when formulated, only the test case will be executed with the tag here. Can be formulated multiple, using "," separated
        • Skip tests with Tags: after compounding, the test case is automatically skipped with the tag tag. Can be formulated multiple, using "," separated
      • Script run record display area: Record information during execution
      • System Operation record Display area: The related system record information during the sweep line

    • Application test Scenario: Open Baidu Homepage
      • New project: Open Ride, in the menu bar file, select "New Project". In the "Name" entry in the pop-up box, enter "Demo", "type" select "Directory", "Format" select "TXT", select "OK"
      • New Suite: Right-click "Demo" in the left-hand column and select "New Suite". In the pop-up box, enter "Openbaidu" in the "Name" key and select "OK"
      • Add Selenium2library to your suite: select "Openbaidu" in level two directory and add Selenium2library package to "Settings" in the configuration on the right
      • New testcase: Right-click "Openbaidu", select "New Test case", enter Testbaidu.
      • Add execute test Script: Enter in Testbaidu's foot.
      • Save everything: Select "Save All" to save all scripts and content
      • Run the script: Toggle the tab bar to "Run",
      • View results: Click "Start" to run the script. Will pop up the browser, and automatically open the Baidu home page, the ride interface will show the implementation of TestCase
    • After the completion of the above content, the entire scene of the automated test script has been written and executed.

Robot framework-Tools Introduction and simple use

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.