Lines 177-182
Link Here
|
177 |
} |
177 |
} |
178 |
} |
178 |
} |
179 |
|
179 |
|
|
|
180 |
public void testGrabSessionIdURLinJSON() throws Exception { |
181 |
String html = "/index?param1=bla&sessionid=xyzxyzxyz\\'"; |
182 |
response = new SampleResult(); |
183 |
response.setResponseData(html.getBytes()); |
184 |
mod.setArgumentName("sessionid"); |
185 |
HTTPSamplerBase sampler = createSampler(); |
186 |
sampler.addArgument("sessionid", "xyzxyzxyz"); |
187 |
context.setCurrentSampler(sampler); |
188 |
context.setPreviousResult(response); |
189 |
mod.process(); |
190 |
Arguments args = sampler.getArguments(); |
191 |
assertEquals("xyzxyzxyz", ((Argument) args.getArguments().get(0).getObjectValue()) |
192 |
.getValue()); |
193 |
} |
194 |
|
180 |
public void testCache() throws Exception { |
195 |
public void testCache() throws Exception { |
181 |
String[] html = new String[] { |
196 |
String[] html = new String[] { |
182 |
"<input name=\"sid\" value=\"myId\">", |
197 |
"<input name=\"sid\" value=\"myId\">", |