Author: sebb
Date: Tue Apr 25 15:24:36 2006
New Revision: 397002

URL: http://svn.apache.org/viewcvs?rev=397002&view=rev
Log:
Ignore non HTTP Samplers

Modified:
    
jakarta/jmeter/branches/rel-2-1/test/src/org/apache/jmeter/protocol/http/modifier/TestURLRewritingModifier.java

Modified: 
jakarta/jmeter/branches/rel-2-1/test/src/org/apache/jmeter/protocol/http/modifier/TestURLRewritingModifier.java
URL: 
http://svn.apache.org/viewcvs/jakarta/jmeter/branches/rel-2-1/test/src/org/apache/jmeter/protocol/http/modifier/TestURLRewritingModifier.java?rev=397002&r1=397001&r2=397002&view=diff
==============================================================================
--- 
jakarta/jmeter/branches/rel-2-1/test/src/org/apache/jmeter/protocol/http/modifier/TestURLRewritingModifier.java
 (original)
+++ 
jakarta/jmeter/branches/rel-2-1/test/src/org/apache/jmeter/protocol/http/modifier/TestURLRewritingModifier.java
 Tue Apr 25 15:24:36 2006
@@ -23,7 +23,9 @@
 import org.apache.jmeter.config.Arguments;
 import org.apache.jmeter.protocol.http.sampler.HTTPNullSampler;
 import org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase;
+import org.apache.jmeter.samplers.NullSampler;
 import org.apache.jmeter.samplers.SampleResult;
+import org.apache.jmeter.samplers.Sampler;
 import org.apache.jmeter.threads.JMeterContext;
 import org.apache.jmeter.threads.JMeterContextService;
 
@@ -44,7 +46,15 @@
                        mod.setThreadContext(context);
                }
 
-               public void testGrabSessionId() throws Exception {
+        public void testNonHTTPSampler() throws Exception {
+            Sampler sampler = new NullSampler();
+            response = new SampleResult();
+            context.setCurrentSampler(sampler);
+            context.setPreviousResult(response);
+            mod.process();
+        }
+
+        public void testGrabSessionId() throws Exception {
                        String html = "location: http://server.com/index.html"; 
+ "?session_id=jfdkjdkf%20jddkfdfjkdjfdf%22;";
                        response = new SampleResult();
                        response.setResponseData(html.getBytes());



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to