regex - Apache JMeter Regular Expressions Extractor Error -


I have made an HTTP request for a webpage and it successfully responds with a VAST code (XML) later Here I am the JMeter Regular Expressions Extractor to remove a URL from the MediaFile tag in Apache Reactive XML code but it does not work

Here is the responsive data (VASTML):

  & lt ;? Xml version = "1.0" encoding = "UTF-8"? & Gt; & Lt; VAST version = "2.0" & gt; & Lt; Ad ID = "brightroll_ad" & gt; & Lt; Inline & gt; & Lt; AdSystem & gt; BrightRoll & lt; / AdSystem & gt; & Lt; AdTitle & gt; & Lt; / AdTitle & gt; & Lt; Impression and gt; & Lt;! [CDATA [http://brxserv-22.btrll.com/v1/epix/6835714/3858435/84416/140363/AbQ93_XgMgCcRUTi_JAAFJwAACJEsAOuADAAAAAAAiyel-GCNFFg/event.imp/r_64.aHR0cDovL2Iuc2NvcmVjYXJkcmVzZWFyY2guY29tL3A_JmMxPTgmYzI9NjAwMDAwNiZjMz04NDQxNiZjND0zODU4NDM1JmM1PTIwNDYzJmM2PTY4MzU3MTQmYzEwPTE0MDM2MyZjdj0xLjcmY2o9MSZybj0xNDE0NDEwMTg1JnI9aHR0cCUzQSUyRiUyRnBpeGVsLnF1YW50c2VydmUuY29tJTJGcGl4ZWwlMkZwLWNiNkMwekZGN2RXakkuZ2lmJTNGbGFiZWxzJTNEcC42ODM1NzE0LjM4NTg0MzUuMCUyQ2EuMjA0NjMuODQ0MTYuMTQwMzYzJTJDdS45NjguNjQweDM2MCUzQm1lZGlhJTNEYWQlM0JyJTNEMTQxNDQxMDE4NQ]] and gt; & Lt; / Impression & gt; & Lt; Impression and gt; & Lt;! [CDATA [http://rc.rlcdn.com/361686.gif]] & gt; & Lt; / Impression & gt; & Lt; Creative & gt; & Lt; Creative id = "140363" sequence = "1" & gt; & Lt; Linear & gt; & Lt; Period & gt; 00: 00: 30  / Period & gt; & Lt; TrackingEvents & gt; & Lt; Tracking Event = "Midpoint" & gt; & Lt ;! [CDATA [http://brxserv-22.btrll.com/v1/epix/6835714/3858435/84416/140363/AbQ93_XgMgCcRUTi_JAAFJwAACJEsAOuADAAAAAAiyel-GCNFFg/event.mid]] & gt; & Lt; / Tracking & gt; & Lt; Tracking event = "full" & gt; & Lt ;! [CDATA [http://brxserv-22.btrll.com/v1/epix/6835714/3858435/84416/140363/AbQ93_XgMgCcRUTi_JAAFJwAACJEsAOuADAAAAAAiyel-GCNFFg/event.end]] & gt; & Lt; / Tracking & gt; & Lt; / TrackingEvents & gt; & Lt; AdParameters & gt; & Lt; / AdParameters & gt; & Lt; VideoClicks & gt; & Lt; ClickTracking & gt; & Lt;! [CDATA [http://brxserv-22.btrll.com/v1/epix/6835714/3858435/84416/140363/AbQ93_XgMgCcRUTi_JAAFJwAACJEsAOuADAAAAAAAiyel-GCNFFg/event.click]] & gt; & Lt; / ClickTracking & gt; & Lt; / VideoClicks & gt; & Lt; MediaFiles & gt; & Lt; Mediafile type = "app / x-shockwh-flash" api framework = "vpid" height = "360" width = "640" distribution = "progressive" & gt; By & lt;! [CDATA [Actiteepi://shimkbtrlkcom/shim/20l4l023k75835_mastr/skautkswf?taip=vpaid∓hidefb=tru∓set_64=ahr0cDovL3J0ci5pbm5vdmlkLmNvbS9yMS4lNDQlOTU0ZDA5ZTY4OS40MjIxNTcxODtjYj0xNDE0NDEwMTglO3NpdGVpZD0zODU4NDMlbGluZWl0ZW04NDQxNg∓vid_klik_uarel=∓config_uarel_64=∓h_64=inj4c2Vydi0yMi5idHJsbC5jb20∓dn = - & Amp; E = P & amp; P = 6835714 & amp; S = 3858435 & amp; L = 84416 & amp; IC = 140,363 & amp; Ii = 20463 & amp; IQ = T & amp; Cx = & amp; X = AbQ93_XgMgCcRUTi_JAAFJwAACJEsAOuADAAAAAAAiyel -GCNFFg & amp; ADC = false & amp; T = 33 & amp; C = & amp; Vh_64 = Z2VvLXJ0YnNlcnYtdjIuYnRybGwuY29t & amp; Side = 0.05 & amp; HBP = 0.01 & amp; View = VAST2]] & gt; & Lt; / MediaFile & gt; & Lt; / MediaFiles & gt; & Lt; / Linear & gt; & Lt; / Creative & gt; & Lt; / Creative & gt; & Lt; / Inline & gt;  

And these are the settings that I have used.

  Reference Name: mediaFileUrl_VASTAdTagurI Regular Expression: & lt; Mediafile type = "application // x-shockwave-flash" apiFramework = "VPAID" height = "360" width = "640" distribution = "progressive" & gt; & Lt; ([^ "] +) Http: \ / \ / ([^"] +)]] & gt; & Gt; Template: $ 1 $$ 2 $ Match No.: -1 Default Value: A MediaFile URL_VistAditTuGo  

The result is always (no mediafile URL_existent). Any clue about the problem with regular expressions

JMM provides XML and XHTML to deal with data It can also work for HTML but you have to check the box to use the blank so that JMTR can work against HTML.

/ Pre>

See for more information. Some tools that can help with the creation / debugging of XPath expressions:

  • Firefox add-ons
  • Firefox add-ons
  • List of Jmator listeners Has given XPTH as a tester

Comments