1

我使用 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)"  

你能帮助我吗 ?

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

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

0 回答 0