configuredColumns.add(CSVSaveService.FAILURE_MESSAGE); if (saveConfig.saveBytes()) { configuredColumns.add(CSVSaveService.CSV_BYTES);
if (saveConfig.saveBytes()) { field = CSV_BYTES; text = parts[i++];
appendFields(saveConfig.saveSuccess(), text, delim, SUCCESSFUL); appendFields(saveConfig.saveAssertionResultsFailureMessage(), text, delim, FAILURE_MESSAGE); appendFields(saveConfig.saveBytes(), text, delim, CSV_BYTES); appendFields(saveConfig.saveSentBytes(), text, delim, CSV_SENT_BYTES); appendFields(saveConfig.saveThreadCounts(), text, delim, CSV_THREAD_COUNT1, CSV_THREAD_COUNT2);
writer.addAttribute(ATT_DATA_ENCODING, ConversionHelp.encode(res.getDataEncodingNoDefault())); if (save.saveBytes()) { writer.addAttribute(ATT_BYTES, String.valueOf(res.getBytesAsLong()));
/** {@inheritDoc} */ @Override public void marshal(Object obj, HierarchicalStreamWriter writer, MarshallingContext context) { super.marshal(obj, writer, context); // Save most things SampleSaveConfiguration prop = (SampleSaveConfiguration) obj; // Save the new fields - but only if they are true // This list MUST agree with the list in MyWrapper#shouldSerializeMember() createNode(writer,prop.saveBytes(),NODE_BYTES); createNode(writer,prop.saveSentBytes(),NODE_SENT_BYTES); createNode(writer,prop.saveUrl(),NODE_URL); createNode(writer,prop.saveFileName(),NODE_FILENAME); createNode(writer,prop.saveHostname(),NODE_HOSTNAME); createNode(writer,prop.saveThreadCounts(),NODE_THREAD_COUNT); createNode(writer,prop.saveSampleCount(),NODE_SAMPLE_COUNT); createNode(writer,prop.saveIdleTime(),NODE_IDLE_TIME); createNode(writer, prop.saveConnectTime(), NODE_CONNECT_TIME); }
if (saveConfig.saveBytes()) { text.append(sample.getBytesAsLong());