Is there a way to error checking of Robot framework testdata

809 Views Asked by At

Is there any way by which error checking can be done for the robot framework test data (testcases and keywords).

RIDE displays red color if there is import error, or a required argument is not passed. How is it implemented?

2

There are 2 best solutions below

2
JaPyR On BEST ANSWER

you could run your tests with dryrun flag:

--dryrun              Verifies test data and runs tests so that library
                      keywords are not executed.
0
Ansu On

For validation you can use the below code

Run Keyword And Return Status

http://robotframework.org/robotframework/latest/libraries/BuiltIn.html#Run%20Keyword%20And%20Return%20Status