Below is the data, I have maintained in the csv file
Data
"[{'label': ' Karate is the only open-source tool to combine API test-automation, mocks, performance-testing and even UI automation into a single, unified framework.\n 1. The syntax is language-neutral, and easy for even non-programmers. Assertions and HTML reports are built-in, and you can run tests in parallel for speed.','toolTip': 'Test'}]"
Below is my scenario inside feature
And set body
| path | values |
| DataFromCSV | <Data> |
* print body
and it prints.
{
"DataFromCSV": [
{
"label": " Karate is the only open-source tool to combine API test-automation, mocks, performance-testing and even UI automation into a single, unified framework.\n 1. The syntax is language-neutral, and easy for even non-programmers. Assertions and HTML reports are built-in, and you can run tests in parallel for speed.",
"toolTip": "Test"
}
]
}
There is single \n in the csv, is it possible to add a new line when we receive this data in feature file.
Expected output after printing in scenario -
{
"DataFromCSV": [
{
"label": " Karate is the only open-source tool to combine API test-automation, mocks, performance-testing and even UI automation into a single, unified framework.
1. The syntax is language-neutral, and easy for even non-programmers. Assertions and HTML reports are built-in, and you can run tests in parallel for speed.",
"toolTip": "Test"
}
]
}