I have two jsonArrays which have keys with different name and I want to compare each json object in a separate feature file.
Is there any way I can pass two jsonArrays in a feature file and compare them.
sample-create.feature
* table kittens1
| name | age | dept|
| 'Bob' | 2 | IT. |
| 'Wild' | 1 | HR. |
| 'Nyan' | 3 |ADMIN|
* table kittens2
| first_name | emp_age |
| 'Bob' | "2" |
| 'Wild' | "1" |
| 'Nyan' | "3" |
* def result = call read('cat-create.feature') kittens1 kittens2
cat-create.feature
@ignore
Feature:
Scenario:
assert first_name == name
assert parseInt(emp_age) == age
I am not able to pass jsonObject from both jsonArrays in another (cat-create.feature) feature file.
Is there any other way to achieve this?