Shailesh
Shailesh

Reputation: 21

Error when passing command line arguments in robot framework

I am trying this to pass the argument through command line

robot testingxpath.robot  --variable EXAMPLE:value

[ ERROR ] Parsing '--variable' failed: Data source does not exist.

Try --help for usage information.

Not sure what is wrong. Any help is appreciated.

Upvotes: 1

Views: 1537

Answers (1)

Würgspaß
Würgspaß

Reputation: 4840

Try robot --variable EXAMPLE:value testingxpath.robot

User guide (ch. 3.1.2) says:

When options are used, they must always be given between the runner script and the data sources.

Upvotes: 3

Related Questions