yanne / api-test

0 stars 0 forks source link

New keyword `Get Connections` #52

Closed yanne closed 10 years ago

yanne commented 10 years ago

Would be great to have get methods to get e.g. list of hosts already connected. And additionally any other info given in open_connection and login.

This issue was originally opened at Google Code on Aug 6, 2012.

yanne commented 10 years ago

Original comment by janne.t....@gmail.com on Aug 13, 2012.

What additional info do you mean? alias, port, newline, timeout and prompt can be given to Open Connection and username + password are given to Login.

get_open_connections can be added easily, but it's return value needs a bit consideration. Is it only a list of ips/hostnames, or should it return list of objects that could be accessed like ${conn.host} or ${conn.alias}

yanne commented 10 years ago

Original comment by samuli.s...@gmail.com on Aug 13, 2012.

Only need host/ip currently, but maybe better to make flexible to get any info for future use.

yanne commented 10 years ago

Original comment by janne.t....@gmail.com on Aug 24, 2012.

Decided to fix this by adding keyword Get Connections.

yanne commented 10 years ago

Original comment by janne.t....@gmail.com on Aug 24, 2012.

Implemented in r162 with examples in doc string.