RobotFramework'ASCII'编解码器无法解码位置1的字节0xd7:序数不在范围内(128)

时间:2019-01-10 02:45:41

标签: python robotframework decode robotframework-ide

我将Robot Framework与Ride一起使用来进行python-auto-test,但是我在Robot Framework控制台中遇到了这个问题:

"FAILED D:\eclipse\oppoAutoTest\AutoTest\../../PyAutoTest/src/testTcardCopy.py 
FAILED D:\eclipse\oppoAutoTest\AutoTest\commonUserKeyWords\../../../PyAutoTest/src/testMkDir.py
FAILED ../../PyAutoTest/basic/testSwipeScreen.py 'ascii' codec can't decode byte 0xd7 in position 1: ordinal not in range(128)"  

你能帮我吗?

这是我的机器人框架代码:

*** Settings ***
Library           
    ../../eclipse_workplace_java/PyAutoTest/src/testTcardCopy.py
Resource          commonUserKeyWords/BASIC.tsv
Resource          commonUserKeyWords/CAMERA.tsv

*** Test Cases ***
bspTcardTest
${test_v_file_dir_path}    set Variable    /storage/sdcard0/tmp
${test_v_file_dir_ifexitd_result}    ${test_v_file_dir_if_success}    
${test_v_file_dir_stdout}    ${test_v_file_dir_stdout_mount}    判断文件或文件 
   夹是否存在    ${test_v_file_dir_path}
log    ${test_v_file_dir_ifexitd_result}
log    ${test_v_file_dir_if_success}
log    ${test_v_file_dir_stdout}
log    ${test_v_file_dir_stdout_mount}
Should_Be_True    '${test_v_file_dir_if_success}'=='True'

我的python代码也有utf-8:

# coding=utf-8

0 个答案:

没有答案