Archive for the 'Testing' Category

?

Thursday, April 10th, 2008
  • Anyone knows how in Eclipse I can jump from any file to appropriate test that belongs to it?
  • Why (!@#!?@) there is no getter for driver in SQLExec Ant task?!?
  • Why enhanced CD format breaks my DVD player at home?
  • Why I cannot finish baduk.pl project?
  • Why ATs is loosing to pocket threes while on bubble?

In case you know some answers, please make my life easier and send me an email. Cheers :)

JMeter and Webservices

Friday, March 9th, 2007

Here is a useful patch for handling DIME responses for v2_2 tag. Remember to put javax.activation and javax.mail jars in lib directory.

Index: WebServiceSampler.java

===================================================================

--- WebServiceSampler.java	(revision 516411)

+++ WebServiceSampler.java	(working copy)

@@ -517,6 +517,11 @@

 				result.setSuccessful(true);
 				result.setResponseCodeOK();
 				result.setResponseHeaders(this.convertSoapHeaders(st.getHeaders()));
+			} else if ("application/dime".equals(st.getResponseSOAPContext().getContentType())) {
+				result.setSuccessful(true);
+				result.setResponseCodeOK();
+				result.setResponseData("DIME message".getBytes());
+				result.setResponseHeaders(this.convertSoapHeaders(st.getHeaders()));
 			} else {
 				result.sampleEnd();
				result.setSuccessful(false);