【发布时间】:2020-11-30 23:37:32
【问题描述】:
我需要使用robotframework从字符串中获取':'之前的数字我该怎么做?
${str}= Set Variable 7939:customer-Id:123a34ghas
我只需要在':'之前得到7939,如何在机器人框架中做到这一点?
${Id}= split string ${str}
log to console ${Id} #Should give only 7939
【问题讨论】:
标签: robotframework