I am trying to execute my .bat script in robot framework. I looked at this answer on stackoverflow. But the question didn't really get a correct answer. I have tried to run:
*** Settings ***
Library Process
*** Test Case ***
Launch Bat File
Run Process ${CURDIR}/script.bat
I got error: [WinError 2] The system cannot find the file specified
I then tried:
*** Settings ***
Library OperatingSystem
*** Test Case ***
Lauch Bat File
Run ${CURDIR}/script.bat
The test passed, but nothing was executed
Next I tried inputting my script.bat as a resource:
*** Settings ***
Library OperatingSystem
Resource ${CURDIR}/script.bat
*** Test Case ***
Lauch Bat File
Run ${CURDIR}/script.bat
Error: Unsupported file format 'bat'.
I'm unsure about the first two errors. But for the "unsupported .bat" error, I downloaded the automatic plugins that PyCharm told me to in order to support my bat file. What am I missing here?
robot Tests/* && robotmetricseverytime. The reason why I wrote a new test case is to narrow down my problem for you guys: My problem being that I cannot execute a .bat script