Кодек RobotFramework 'ASCII' не может декодировать байт 0xd7 в позиции 1: Порядковый номер не находится в диапазоне (128) - PullRequest
0 голосов
/ 10 января 2019

Я использую Robot Framework с поездкой, чтобы выполнить 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)"  

Вы можете мне помочь?

Это мой код Robot Framework:

*** 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
...