jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GLahite...@abingdon.oilfield.slb.com (Guillaume Lahitette)
Subject JavaScript form submission and regular expression questions
Date Mon, 14 Mar 2005 19:00:32 GMT
Hi,

I'm trying to use JMeter to test a page where:
  a.. a form (see below) is being assembled
    a.. a textarea contains an XML string
  b.. this form is posted (to retrieve an image) using JavaScript
My questions:
  a.. JMeter didn't process the JavaScript that does the form submission. Any chance of getting
this to work?
  b.. Until I know how to do the above, I add a separate "HTTP Request" to do the form submission
"manually". I use a Regular
Expression Extractor to grab this XML string I need to post (with other HTTP params). My regular
expression is (see HTML below):
border:0px;">(.+?)</textarea>. Can the regular expression match a string that spans
multiple lines?
I'll keep trying...but your help is very much appreciated ;)
Guillaume


<form name="pumpPerformanceCurveForm" method="POST"
action="/prti-core-cep_v2x4x2_r4_b32V2.8/GenericCurveServlet"
target="pumpPerformanceCurveChart">

<input type="hidden"
name="Width"
value="500"></input>

<input type="hidden"
name="Height"
value="220"></input>

<input type="hidden"
name="Format"
value="PnG"></input>

<input type="hidden"
name="SsoToken"
value="90197A49F314FEA4FFCA66C6FFAAC4BB849D8CE6611DB2650E1333CBABFC6008D7097E0E254A747B3C739853A4DEBCD9AA39EEC0E7713838E85ED62D3946B
BD1E3552FB4698BB79F7565496F1003B8B6E0AA190CBD21D9033537A117B266939F89D64D6DCB5ABB009EE43EE2C02C742D02967851BAFD9FBA493FC903CDD486D0"
></input>

<textarea rows="0" cols="0"
name="File"
style="display:none;max-height:0px;max-width:0px;height:0px;width:0px;border:0px;">
<graph>
 <graph_header>
  <domain>
   <header>
    <unit></unit>
   </header>
   <is_time_series_domain>true</is_time_series_domain>
  </domain>
 </graph_header>
 <graph_content>
  <line>
   <header>
    <header_label>PPI</header_label>
    <unit></unit>
   </header>
   <p><x>1079289854241</x><y>NaN</y></p>
   <p><x>1082191166247</x><y>0.9517180919647217</y></p>
   <p><x>1082191167247</x><y>0.9549283981323242</y></p>
   <p><x>1084209470250</x><y>0.9370041489601135</y></p>
   <p><x>1084209471250</x><y>0.9375066757202148</y></p>
   <p><x>1084714046251</x><y>0.9356591105461121</y></p>
   <p><x>1084840190252</x><y>0.9336611032485962</y></p>
   <p><x>1084840191252</x><y>0.9356591105461121</y></p>
   <p><x>1108302974296</x><y>0.8957472443580627</y></p>
   <p><x>1110825854301</x><y>NaN</y></p>
  </line>
  <line>
   <header>
    <header_label>Confidence</header_label>
    <unit>%</unit>
   </header>
   <p><x>1082191166247</x><y>25.318169593811035</y></p>
   <p><x>1082191167247</x><y>64.99999761581421</y></p>
   <p><x>1084209470250</x><y>29.96808886528015</y></p>
   <p><x>1084209471250</x><y>64.99999761581421</y></p>
   <p><x>1084714046251</x><y>64.99999761581421</y></p>
   <p><x>1084840190252</x><y>10.13823002576828</y></p>
   <p><x>1084840191252</x><y>29.96808886528015</y></p>
   <p><x>1108302974296</x><y>64.99999761581421</y></p>
  </line>
 </graph_content>
</graph>

</textarea>

</form>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message