1

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.

Würgspaß
  • 4,660
  • 2
  • 25
  • 41
Shailesh
  • 21
  • 2
  • 4
  • Possible duplicate of [Centralizing XPath in resource file, how to pass arguement from robot file?](https://stackoverflow.com/questions/45888950/centralizing-xpath-in-resource-file-how-to-pass-arguement-from-robot-file) – Emna Ayadi Jun 21 '18 at 10:35

1 Answers1

3

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.

Würgspaß
  • 4,660
  • 2
  • 25
  • 41