Im new into robot and Im trying to connect into a multiples devices and once I run I got a time out error, i tried to add a read until get a message from the connection but same error, find below the bloc of code
${ips}= OperatingSystem.Get File ${CURDIR}${/}..${/}Output_files${/}ips.txt
@{ip_list}= Split String ${ips} \n
FOR ${ip} IN @{ip_list}
Open Connection ${ip} alias=${ip}_${ip_list}
Log To Console Loggin in ${ip}
Login ${user_networkcard} ${user_networkcard_password}
SSHLibrary.Read Until Logging into
Write ip a show dev eth0
${ip_eth0_avahi}= Read Until scope link eth0:avahi
Log To Console ${ip_eth0_avahi}
Close Connection
END
put the part in the for in a keyword, this keyword becomes your test template
use datadriver to read ${CURDIR}${/}..${/}Output_files${/}ips.txt and create a new test for each IP
this way when one of the hosts fails only that test fails rather than the single test you have now failing and you have to drill down into the loop to figure out which host failed
also with test template all hosts will get tested and you’ll know if several hosts fail, where with your current test if the first host fails you won’t know if any of the others pass?