xyb/robotframework-debuglibrary

Not able to use `Set Variable` keyword from rfshell

Tset-Noitamotua opened this issue · 6 comments

In a .robot file I can use ${label_id}= Set Variable SOME TEXT to assign a value to ${label_id}.

When I try the same in rfshell, I get this error:

> ${labe_id}=  Set Variable  SOME TEXT
< keyword: ${labe_id}=  Set Variable  SOME TEXT
! FAILED: ExecutionFailed(u"No keyword with name '${labe_id}=' found.",)
>

Am I doing something wrong or is it not implemented yet?

BTW: Thank you for this great library! It really speeds up test development a lot!

xyb commented

Hi, @Tset-Noitamotua, it's not implemented, same feature request had been recorded in #17. Love to welcome your contributions 😎

xyb commented

@Tset-Noitamotua variable assignment supported now, please upgrade to version 0.8.

YEAH! Thanks a lot for the update :-))))
Yet Upgraded and testing!

How about special characters?

< keyword: ${label}=  Set Variable  SOME GERMÄN TÄXß
! FAILED: UnicodeDecodeError('utf8', '${label}=  Set Variable  SOME GERM\x8eN T\x8eX\xe1', 34, 35, 'invalid start byte')
>

Worth to open a new issue for that?

xyb commented

@Tset-Noitamotua I'm ok with that:

>>>>> Enter interactive shell, only accepted plain text format keyword.
> ${label}=  Set Variable  SOME GERMÄN TÄXß
<  ${label} = u'SOME GERM\xc4N T\xc4X\xdf'
> log to console  ${label}
SOME GERMÄN TÄXß

What's your locale settings? My environments is:

$ env|grep -i utf
LC_ALL=en_US.UTF-8
LC_CTYPE=en_US.UTF-8

I am on a Windows 7 64bit machine. Have no such env.
But locale is de_DE ... I guess.