Error when using command line to run data driven test
Hi there,
I'm trying to run a test case from the command line but seems to have problems replacing a path variable with values from a file. The get request I'm trying to send looks as follow:
http:\\192.168.2.1\path\to\{ID}\device
I added a source and loop block. The source block is configured to take the ID from a *.csv file which also holds the expected response. So the *.csv file looks as follows:
"ID";"response"
1; "device 1"
2; "device 2"
3; "device 3"
when running the test case in ReadyApi everything works fine. The request is executed with ID = 1, ID = 2 and ID = 3. When running the test case from the command line however, I get the following error:
16:10:09,625 ERROR [SoapUI] An error occurred [Unrecognized token '$': was expecting (JSON String, Number, Array, Object or token 'null', 'true' or 'false')
at [Source: (String)"${Id_List#id}"; line: 1, column: 2]], see error log for details
16:10:09,625 ERROR [errorlog] com.fasterxml.jackson.core.JsonParseException: Unrecognized token '$': was expecting (JSON String, Number, Array, Object or token 'null', 'true' or 'false')
at [Source: (String)"${Id_List#id}"; line: 1, column: 2]
com.fasterxml.jackson.core.JsonParseException: Unrecognized token '$': was expecting (JSON String, Number, Array, Object or token 'null', 'true' or 'false')
at [Source: (String)"${Id_List#id}"; line: 1, column: 2]
Id_List is the name of the source block and id the property name for the ID's in the *.csv file.
Afterwards the request is send many many times but always with the {ID} field bein empty. Obviously there is some issue with parsing the ID from the file into the request.
Please let me know whether I'm doing something wrong and how or if I can fix this.
Thanks in advance!
Lennart