Author: pmouawad
Date: Sat May 12 20:57:54 2018
New Revision: 1831500

URL: http://svn.apache.org/viewvc?rev=1831500&view=rev
Log:
Fix failing test due to presence of spaces introduced recently by website. So 
enfore test by using JSON Extractor

Modified:
    jmeter/trunk/bin/testfiles/Http4ImplDigestAuth.jmx

Modified: jmeter/trunk/bin/testfiles/Http4ImplDigestAuth.jmx
URL: 
http://svn.apache.org/viewvc/jmeter/trunk/bin/testfiles/Http4ImplDigestAuth.jmx?rev=1831500&r1=1831499&r2=1831500&view=diff
==============================================================================
--- jmeter/trunk/bin/testfiles/Http4ImplDigestAuth.jmx (original)
+++ jmeter/trunk/bin/testfiles/Http4ImplDigestAuth.jmx Sat May 12 20:57:54 2018
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<jmeterTestPlan version="1.2" properties="4.0" jmeter="4.1-SNAPSHOT.20180225">
+<jmeterTestPlan version="1.2" properties="4.0" jmeter="4.1-SNAPSHOT.20180512">
   <hashTree>
     <TestPlan guiclass="TestPlanGui" testclass="TestPlan" testname="Test Plan" 
enabled="true">
       <stringProp name="TestPlan.comments"></stringProp>
@@ -120,14 +120,23 @@
           <stringProp name="HTTPSampler.response_timeout"></stringProp>
         </HTTPSamplerProxy>
         <hashTree>
+          <JSONPostProcessor guiclass="JSONPostProcessorGui" 
testclass="JSONPostProcessor" testname="JSON Extractor" enabled="true">
+            <stringProp 
name="JSONPostProcessor.referenceNames">authenticated</stringProp>
+            <stringProp 
name="JSONPostProcessor.jsonPathExprs">$.authenticated</stringProp>
+            <stringProp name="JSONPostProcessor.match_numbers">1</stringProp>
+            <stringProp 
name="JSONPostProcessor.defaultValues">nv_authenticated</stringProp>
+          </JSONPostProcessor>
+          <hashTree/>
           <ResponseAssertion guiclass="AssertionGui" 
testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
             <collectionProp name="Asserion.test_strings">
-              <stringProp name="-1747808029">&quot;authenticated&quot;: 
true,</stringProp>
+              <stringProp name="3569038">true</stringProp>
             </collectionProp>
             <stringProp 
name="Assertion.test_field">Assertion.response_data</stringProp>
             <boolProp name="Assertion.assume_success">false</boolProp>
             <intProp name="Assertion.test_type">16</intProp>
             <stringProp name="Assertion.custom_message"></stringProp>
+            <stringProp name="Assertion.scope">variable</stringProp>
+            <stringProp name="Scope.variable">authenticated</stringProp>
           </ResponseAssertion>
           <hashTree/>
         </hashTree>


Reply via email to