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)