Some problems encountered in the use of robotframework

Question 1: Import the library on ride and display red.
Solution: Install the missing modules, including natsort, xlrd, xlwd, and xlutils, according to the tools--view ride log prompt in the menu bar. The download path is https://pypi.python. org/pypi, you can use the pip install command directly

Question 2: I keep getting an error when I use the pip command to install the related Libriry in the command prompt?
Solution: The chrome browser cannot access the external network. Go to chrome browser settings - advanced settings - change server proxy settings - LAN (local area network) settings, uncheck "Use a proxy server for LAN". Reuse the pip command to install;

Question 3: How to import ExcelLibrary?
Solution:
      1. ExcelLibrary download address: https://pypi.python.org/pypi/robotframework-excellibrary, use python setup.py install to install after decompression


Question 4: The import variable file is marked in red?
Solution: 1. The beginning of the py file needs to be marked with # -*- coding: utf-8 -*-; 2. If necessary, you can compile it first and then import it.
 
Question 5: Does installing AutoItLibrary 64 prompt returned non-zero exit status 5?
Solution:
1. Install pywin32-219.win-amd64-py2.7.exe, the download address is http://sourceforge.NET/projects/pywin32/files/pywin32/
2. Open the command prompt as an administrator, install AutoItLibrary-1.1 x64, download address http://www.softpedia.com/get/Programming/Components-Libraries/AutoItLibrary.shtml
3. Install AutoltX-V3, download address https://www.autoitscript.com/site/autoit /downloads/
4. Enter ride and import library

Question 6: How to close the chromdriver.exe process at the end of the use case?
Solution: Just add the close browser keyword in the use case.

Question 7: When importing the variable file, it prompts "ASCII code cann't be decoded"
Solution: There is a null field in the variable file. If you want to set the variable to be empty, use ''.

Question 8: The value of the time variable ${day} obtained by get time is 09. How to convert it to 9?
Solution: Put another layer on top of ${day}, such as ${${day}}


Question 9: After the data is separated, the running use case prompts that the corresponding keyword cannot be found?
Reason: The resource is not loaded correctly
Solution: Add the resource to the workspace of the testsuit, if there is a mutual reference between each resource, also add the resource of the other party

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324928229&siteId=291194637