Here are step-by-step instructions how to retrieve text from the device log and use it as the input to a validation step in a Perfecto automation script:
1. Define a variable of type 'String', with no value. Turn off the 'Runtime' checkbox.
2. Add the Device log command to the script, using the variable defined above as the result variable.
3. Add a Legacy | String compare checkpoint, using the same variable as the evaluated variable, 'Contain' as the operator, and the text you're looking for as the value.
4. If you want the script to fail in case the text is not found, change the 'On Error' policy of the validation from CATCH to ABORT. If you want to use the checkpoint as a logical branch in your script, add a condition: