robotframework中查看变量的类型以及属性

在RF里面想查看一个变量的类型以及其拥有的属性,可以巧妙利用Evaluate关键字

${testDic}    Create Dictionary    a=1    b=2
${testType}    Evaluate    type($testDic)    
${testDir}    Evaluate    dir($testDic)    

发布了33 篇原创文章 · 获赞 2 · 访问量 2万+

猜你喜欢

转载自blog.csdn.net/sun_977759/article/details/89181020
今日推荐