Video streaming has
become a common factor nowadays and most of the web pages are having videos
streaming in them. So we will have to test the performance of the videos also,
like the rendering time, buffer time, play time and so on.
Below are the loadrunner
functions which get generated when we record a web page with video streaming in
it. All the functions are straight forward and easy to understand.
If we notice, we have a
ID assigned to the video in the web_stream_open function and the same ID is
passed on to the other web_stream functions below. This ID is generated by loadrunner and will be unique to each video.
Script works fine in Vugen and when the same script is run with multiple concurrent users in controller, we get the below error
message.
Error -26309: Another
streaming with the same ID "3" has already been registered. Please
set a new ID not registered
Error message means that
one of the vuser is using the video with the ID = 3 and another vuser is trying
to access the same video with ID = 3, and it is unable to stream the video. It is
also requesting us to set a new unregistered ID to access the same video
content.
Now, what we have to do
is, we need to modify the ID in such a way that vusers do not clash when trying
to stream the same video. Initially I tried using the inbuilt parameters like
unique, random and vuser to replace ID, but still I got the same error. As a next step I wrote
a C code using srand() & rand() to generate random numbers as ID for each
vuser and pass it on to the argument ID. Below is the code snippet.
No comments:
Post a Comment