Robotframework-ui Automation Test (ii)

Source: Internet
Author: User

1. Enter ride.py in CMD to open the interface

Creating Project Projects

Select Menu Bar File----->new Project

2. Create a test suite

Right-click the TestCase project and choose the new Suite option

Enter name Testcase,type Select File

3. Create Test Cases

Right-click testcase Select New TestCase

Enter name login, click OK

4. Import Selenium2library Library

Click TestCase, on the edit page, click the Library button, enter the Selenium2library library, return.

Tips: If Selenium2library is red, this library is not installed properly and needs to be reinstalled.

5. Writing Use Cases

Now we can start writing our use case, but how to write it? We can query the keyword of the script by pressing F5 shortcut key.

For example, the automation script from open Browser development, such as, I want to open a browser, thinking is "open" for the keyword search, the results found an "open Browser" keyword, click on this keyword, want to show its usage and description.

According to the instructions, let's try to create this open browser operation:

Note: To use a different browser, add the corresponding driver to the corresponding C:\PYTHON27 root directory

Example: QC3 environment Login Simple test case, the corresponding keyword can press F5 shortcut key to query the script

6. Run Test Cases

Tick the test case you want to run, click the toolbar Run button, and if you only run a single use case, you can switch to the Run tab of the use case and click the "Start" button.

7. View running Results

Running information display will generate three files: Output.xml, log.html, report.html;

Focusing on log.html and report.html, log.html is more concerned with documenting the execution of the script, report.html more attention to the presentation of the script's execution results.

Robotframework-ui Automation Test (ii)

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.