In a groovy teststep I add the execution of a teraterm macro to connect on remote host: def teraterm_path = "C:\\Program Files (x86)\\teraterm" def process = "$teraterm_path\\ttpmacro.exe SNOD...
Just a thought. The process can be executed based on a condition i.e., if macro file exists then execute the process, so that you do not run into the problem at all. Does it make sense?