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"