Identify the Media You Are Trying to Test
This is frequently confused with the web page or media player location on your website. The target of a streaming media task will not be the URL of a player or web page that contains the player, but the actual media resource path that is used by a player to play the file.
Once you have identified the location, check the media file type. What protocol does it use? (make sure to specify the protocol in the file path (such as rtmp:// or https://, for example).
Creating a target
Enter the address of the actual media file you wish to test. Note that the URL must link directly to the media resource and not a web page that contains a media player. For example, “http://streammedia.com/stream.asf”.
Time Validation Threshold (in seconds)
Enter the number of seconds the system should wait for a response from the target resource before returning an error. If this is left blank the default timeout is 120 seconds.
Duration (in seconds)
By default, LoadView connects to the media server, performs buffering, and plays the stream for 30 seconds. You can customize the option to specify the duration of media content you want to play for the test. The maximum available value is 30 min.
For example, if you specified 90 sec in the duration field, the system will try to play 90 sec of the media stream. If the completion timeout period has elapsed prior to completion of playing a 90-sec track of the media stream, the test session will be considered as failed.
Media Engine
If the Auto Select option is specified, the engine will be selected automatically based on the analysis of the media source URL.
Prepare Script
You can choose ReportDetails by adding into the Prepare Script field:
(Tasks[0] as Media).ReportDetails = “FULL”;
Where,
Tasks[<sequential number of the task>] – specifies the sequential number of the target in the test. Note that the numbering of targets in the test starts from zero. Thus, to refer to the first target you should provide Tasks[0].
ReportDetails = (“STANDART”, “FULL”, “SHORT”)
(Tasks[0] as Media).ReportDetails = "Full";
Ignore Errors
If you want to ignore an error with a specific code and type while testing, you can configure the Ignore Error Codes option in the test target settings. If the system detects a response with the specified error type and code, the response will be considered as successful and its status will be changed to OK. Note that ignored errors will not be reflected on the reports and can’t be tracked down.
You can find a comprehensive list of Error Codes in the HTTP Status Codes List | HTTP Error Codes Explained article of this wiki.