Hi, when I created an assertion response with the equals option, than I created the field to register result in csv format, I've got an syntax error in the error message ; it provides additional blank lines and there was missing quotes, which does not respect the normal syntax of csv files. here is the result : timeStamp,elapsed,label,responseCode,responseMessage,threadName,dataType,success,failureMessage,bytes,sentBytes,grpThreads,allThreads,Latency,IdleTime,Connect 1525171309281,659,HTTP Request,200,OK,Thread Group 1-1,text,false,"Test failed: code expected to equal / ****** received : [[[200]]] ****** comparison: [[[999]]] /",12470,121,1,1,658,0,383 regards.
Hi, This behavior is observed due to new line characters given in the code. text.append("\n\n"); text.append(RECEIVED_STR); text.append(endingEqSeq); text.append("\n\n"); Thanks
(In reply to ankhila imane from comment #0) > Hi, > > when I created an assertion response with the equals option, than I created > the field to register result in csv format, I've got an syntax error in the > error message ; it provides additional blank lines and there was missing > quotes, which does not respect the normal syntax of csv files. > > here is the result : > > timeStamp,elapsed,label,responseCode,responseMessage,threadName,dataType, > success,failureMessage,bytes,sentBytes,grpThreads,allThreads,Latency, > IdleTime,Connect > 1525171309281,659,HTTP Request,200,OK,Thread Group 1-1,text,false,"Test > failed: code expected to equal / > > ****** received : [[[200]]] > > ****** comparison: [[[999]]] > > /",12470,121,1,1,658,0,383 > > regards. Hello, Where is exactly the issue ? I see double quote start: - "Test and end: - /" which seems to me correct and open fine in LibreOffice. But I must be missing something. Thank you for clarification.
(In reply to Philippe Mouawad from comment #2) > (In reply to ankhila imane from comment #0) > > Hi, > > > > when I created an assertion response with the equals option, than I created > > the field to register result in csv format, I've got an syntax error in the > > error message ; it provides additional blank lines and there was missing > > quotes, which does not respect the normal syntax of csv files. > > > > here is the result : > > > > timeStamp,elapsed,label,responseCode,responseMessage,threadName,dataType, > > success,failureMessage,bytes,sentBytes,grpThreads,allThreads,Latency, > > IdleTime,Connect > > 1525171309281,659,HTTP Request,200,OK,Thread Group 1-1,text,false,"Test > > failed: code expected to equal / > > > > ****** received : [[[200]]] > > > > ****** comparison: [[[999]]] > > > > /",12470,121,1,1,658,0,383 > > > > regards. > > Hello, > Where is exactly the issue ? > I see double quote start: > - "Test > and end: > - /" > > which seems to me correct and open fine in LibreOffice. > But I must be missing something. > > Thank you for clarification. Hello Imane, Any feedback ? Thanks
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/4776