Video Streaming and Load Testing Using Apache JMeter



I have made an HTTP Request to a webpage and it respond successfully with a VAST code (XML) Afterwards I used Apache JMeter Regular Expressions Extractor for Extracting a URL from the MediaFile tag in the responded XML code.


Here is the responded data (VAST XML):



<?xml version="1.0" encoding="UTF-8"?>
<VAST version="2.0">
<Ad id="brightroll_ad">
<InLine>
<AdSystem>BrightRoll</AdSystem>
<AdTitle></AdTitle>
<Impression><![CDATA[http://ift.tt/1txkMbh;
<Impression><![CDATA[http://ift.tt/1txkJvT;
<Creatives>
<Creative id="140363" sequence="1">
<Linear>
<Duration>00:00:30</Duration>
<TrackingEvents>
<Tracking event="midpoint"><![CDATA[http://ift.tt/1txkJvV;
<Tracking event="complete"><![CDATA[http://ift.tt/1txkMrA;
</TrackingEvents>
<AdParameters></AdParameters>
<VideoClicks>
<ClickTracking><![CDATA[http://ift.tt/1wBZmHC;
</VideoClicks>
<MediaFiles>
<MediaFile type="application/x-shockwave-flash" apiFramework="VPAID" height="360" width="640" delivery="progressive">
<![CDATA[http://ift.tt/1DRlZu7;
</MediaFile>
</MediaFiles>
</Linear>
</Creative>
</Creatives>
</InLine>


and Here is the URL which I have successfully extracted from this XML.



http://ift.tt/1wXa3bz


So Now I want to stream this video file using Apache JMeter. Knowing that this video could be shown to the same IP(User) only 3 times a day. Any Idea about how to stream and perform a load testing to a video through JMeter?


No comments:

Post a Comment