Is there a way to explicitly access multiple objects of the same class in robot framework. I have a class with a function to telnet to a host. I want to connect to two different hosts and run different commands on those. In my Robot Testcases file, I have
myclass.Login To Host | host1 | user | password
myclass.Run Cmd | ls
myclass.Login To Host | host2 | user | password
myclass.Run Cmd | ls -l
I see that the Run Cmd is executed on the first host (host1) in both the cases. is there a way I can call functions on specific objects Since this is part of my test case, I cant split them into two different test cases.
How can I call the second "Run Cmd" on the object thats created as a result of the Login To Host for host2 ?
Thanks Bobby