Robot Framework中将type为“unicode”的字符串转换为‘str’

来源:互联网 发布:淘宝魔切是什么 编辑:程序博客网 时间:2024/06/18 06:55

出现的场景

在eclipse中写入的方法传入的字符串打印的type为‘str’



将该方法引入到robotframework中时,传入相同的参数时,打印的type为‘unicode’









上面情况产生的原因"Robot Framework functions accept arguments default unicode type"


解决方案如下:



${bar}    Evaluate    str('accountId=2120170808173259001&name=刘')            
${md5}    Md Five Encode    ${bar}           






阅读全文
0 0