lczub / robotframework-magik

Robot Framework high level keywords for automated testing Smallworld Magik images
12 stars 1 forks source link

Close Magik Connection should not call exit() #12

Closed lczub closed 8 years ago

lczub commented 9 years ago

To avoid communication timing problems at the end of a test run against Smallworld 5 images, an additional sleep before closing the connection helps. Example

Close Magik Connection
    [Documentation]    Closes the telnet connection to remote_cli of a Smallworld Magik image
    ...
    ...    Returns any remaining output.
    Write Bare    exit()\n
    Sleep    10ms
    ${out}=    Close Connection
    [Return]    ${out}
lczub commented 8 years ago

Keyword Close Magik Connection has called exit() before closing the connecting. This was not correct, cause exit() is only known inside the SW GIS internal cli client. Under GIS 4.0, this failure has no negativ effect. But under GIS 5.0, the remote_cli tries to write a traceback to the closed streams. This create than an endless traceback loop.

lczub commented 8 years ago

fixed with v0.4.0-Alpha