@Test public void testProcess() { System.out.println("process"); JMeterContext threadContext = JMeterContextService.getContext(); SampleResult res = new SampleResult(); threadContext.setPreviousResult(res); XMLFormatPostProcessor instance = new XMLFormatPostProcessor(); instance.process(); }
public void process() { JMeterContext threadContext = getThreadContext(); String responseString = threadContext.getPreviousResult().getResponseDataAsString(); try { threadContext.getPreviousResult().setResponseData(serialize2(responseString).getBytes("UTF-8")); } catch (Exception e) { log.info("Error while formating response xml - " + e.getMessage()); } }
XMLFormatPostProcessor extends AbstractTestElement implements
        Cloneable, Serializable, PostProcessor, TestElement { public void process() { JMeterContext threadContext = getThreadContext(); String responseString = threadContext.getPreviousResult().getResponseDataAsString(); try { threadContext.getPreviousResult().setResponseData(serialize2(responseString).getBytes("UTF-8")); } catch (Exception e) { log.info("Error while formating response xml - " + e.getMessage()); } } }
XMLFormatPostProcessor extends AbstractTestElement implements
        Cloneable, Serializable, PostProcessor, TestElement { public void process() { JMeterContext threadContext = getThreadContext(); String responseString = threadContext.getPreviousResult().getResponseDataAsString(); try { threadContext.getPreviousResult().setResponseData(serialize2(responseString).getBytes("UTF-8")); } catch (Exception e) { log.info("Error while formating response xml - " + e.getMessage()); } }  }
XMLFormatPostProcessor extends AbstractTestElement implements
        Cloneable, Serializable, PostProcessor, TestElement { public void process() { JMeterContext threadContext = getThreadContext(); String responseString = threadContext.getPreviousResult().getResponseDataAsString(); try { threadContext.getPreviousResult().setResponseData(serialize2(responseString).getBytes("UTF-8")); } catch (Exception e) { log.info("Error while formating response xml - " + e.getMessage()); } }  void process(); }
XMLFormatPostProcessor extends AbstractTestElement implements
        Cloneable, Serializable, PostProcessor, TestElement { public void process() { JMeterContext threadContext = getThreadContext(); String responseString = threadContext.getPreviousResult().getResponseDataAsString(); try { threadContext.getPreviousResult().setResponseData(serialize2(responseString).getBytes("UTF-8")); } catch (Exception e) { log.info("Error while formating response xml - " + e.getMessage()); } }  void process();  }