lczub / robotframework-magik

Robot Framework high level keywords for automated testing Smallworld Magik images
13 stars 2 forks source link

keyword 'Execute Magik Command' should handle empty results #4

Closed lczub closed 11 years ago

lczub commented 11 years ago

The test steps

    ${out}=   Execute Magik Command   write()
    Should Be Equal   '${out}'   ''

raises the error

   IndexError: list index out of range
lczub commented 11 years ago

Workaround - for Magik commands, which creates no output on the Magik cli, use the Read Magik Output keyword to move the telnet pointer to the next magik prompt

    Write Magik Command   write()
    ${out}=   Read Magik Output
    Should Be Equal   '${out}'   ''