Error message "The column path must start with a row path expression"
Hi everyone,
For my comparison testcase I need to compare the results of 2 different files with each other. For the POC I'm using mock data in files. One is an excel file the other is a json file. The question/error message is about the json file.
Set up:
TestSteps ==> Groovy Script for DataSource2 (to read out the json file)
DataSource2 (to point to the file, read it out and show the content for particular columns)
Property Transfer (to request)
REST Request
Property Transfer2-GetResponse
DataSource Loop (start again at Property Transfer)
DataSink2-Save compare results (in an excel file)
In the REST Request I have a parameter with
- * Name = OId
- * Value = ${#TestCase#tempNumber}
On TestCase Level in tab 'Custom Properties' I have 2 parameters without value as it will be filled through the loop:
- * tempNumber
- * tempName
I've searched information about DataSource and followed the steps to insert the properties, source step, source property, row path and column paths.
The groovy script is reading the json file without problems.
Configuration of my DataSource looks like this:
I have my 2 coloms in the Data Log but when I click on the play button, nothing happens.
When I click on the green/red stripes of the Column Paths and I select the node I'm getting this error message as in title.
Can someone explain me what I'm doing wrong please?
Thanks in advance.
AAB,
I've managed to get the cbe_number and denominations values with the following settings:
Does it suit you?
The expression in the Row Path field is the beginning of the full expression. It's common for properties.
The expression in the Column Paths is the end of the expression.
So, the full expressions will look like:
$['cbe_number'] - for the cbe_number property
and
$['denominations'][0]['value'] - for the denomination property