A. Under Windows install python’s official website to download the installation package www.python.org/downloads/w… SQL > install dependencies on CMD PIP install RobotFramework PIP install wxPython==4.0.3 PIP install Pypubsub==3.3.0 PIP install RobotFramework -ride PIP install RobotFramework -seleniumLibrary PIP list // Check whether the installation is successful 3. Enter CMD to open the main interface of ride. If the installation fails, refer to the following documents: 1.ride. Py Startup error: www.cnblogs.com/wang-mengme… 2. Ride.py can’t open RF, but pycharm: www.cnblogs.com/wang-mengme…
1. Menu bar file—–>new Project; 2.Name Enter the project Name. 3.Type Select Directory. Create a test Suite. 1. Right-click Test Project and choose New Suite. 2.Name Enter the suite Name. 3.Type Select File. Create a Test Case 1. Right-click Test Project and choose New Test Case. Enter the name of the Test Case and click OK. 1. Since the RF framework writes Web-based test cases, we need Selenium library support. So, we need to load the Selenium2Library in the process of using it. 2. In the “Test Suite” Edit TAB, click the “Library” button, the input box pops up, enter Name: Selenium2Library, click OK. 3. If the imported library is displayed in red, it does not exist. If the color is black, the import is successful. Writing use Cases Now we can start writing our use cases, but how? We can query the key of the script by pressing the F5 shortcut key. If you have been exposed to automated tools such as QTP or Selenium IDE, you should have some ideas. 1. On the edit page of the test case, the input “Open Browser” turns blue to indicate that it is a valid keyword, and a box is red to indicate that this parameter cannot be used by default. Check the test case that you want to Run, click the Run button in the toolbar, or switch to the Run TAB of the use case if you only want to Run a single use case. Click the “Start” button.
Document source links: environment build: www.bbsmax.com/A/obzbD8D15… The first script: www.cnblogs.com/fnng/p/3871…