robotframework - Robot Framework: User input on linux command prompt -


in robot testing, how pass user input scripts prompt user confirmation? while testing manually, enter yes or no kind of input scripts prompt user confirmation. how acheive same in robot? tried using echo in robot test case, ex: $ echo yes | myscript.pl

this works fine , accepts user input yes, fails read "yes" pipe when myscript.pl executes command using ssh on remote server , returns main script myscript.pl. after returning, script fails read "yes" pipe.

is there built in function of robot framework can here? or other alternative?

thanks.

there commend called yes repeatedly input "yes" until killed. if doesn't work either, try using expect.

yes|./myscript.pl 

or using expect

#!/usr/bin/expect -f spawn ./myscript.pl expect "yes/no" send "yes\r" 

Popular posts from this blog

c# - ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file -

matlab - Compression and Decompression of ECG Signal using HUFFMAN ALGORITHM -

utf 8 - split utf-8 string into bytes in python -