robotframework - SSH Tunneling with Robot Framework-SSH LIbrary -
i using robot framework ssh library automation.
i need establish ssh tunnel remote machine using robot framework , execute set of tests on remote machine.
looks rf ssh library not have support this.
can point me other options available?
thank you!
you use robot framework open ssh connection, copy test files, run them , copy results back.
you need 2 files, first 1 ssh.txt
*** settings *** library sshlibrary suite setup open connection , log in suite teardown copy , delete files , close connections *** variables *** ${host} your.server.here ${username} username ${password} password *** testcases *** run tests on remote server put file real-test.txt run test in server real-test.txt sleep 1s *** keywords *** open connection , log in open connection ${host} login ${username} ${password} copy , delete files , close connections copy results server clean server real-text.txt close connections run test in server [arguments] ${filename} ${rc}= execute command pybot ${filename} return_stdout=false return_rc=true should equal numbers ${rc} 0 copy results server getfile log.html getfile output.xml getfile report.html clean server [arguments] ${filename} write rm log.html write rm output.xml write rm report.html write rm ${filename}
the 2nd file real tests are, real-test.txt:
*** settings *** library operatingsystem *** testcases *** test 1 fileshouldexist real-test.txt
run specifying output files avoid filename collisions when log files copied server:
pybot -o conn.xml -r conn.html -l connlog.html ssh.txt
ReplyDeleteWonderful post and more informative!keep sharing Like this!
create a website in php
How to use PHP in a website