I am able to write the data in my txt file but I am unable to print the Barcode with "" and I want to print the text (Barcode) in double quotes. For eg:
{"Barcode":"148279"},
I am able to write the data in my txt file but I am unable to print the Barcode with "" and I want to print the text (Barcode) in double quotes. For eg:
{"Barcode":"148279"},
On
We cannot properly suggest add "barcode" question marks without knowing how exactly do you "write" your .txt file.
The most straightforward solution is considering string concatenation, to wit just surround the text with quotation marks and that would be it.
If you want to write a custom piece of data into a custom file during JMeter load test you should be using Flexible File Writer as other approaches will result into corrupt data due to race conditions so most probably string concatenation should do the trick for you
Use below code.