Zee脚本练习之六:LR中real协议的简易脚本展示
2007-11-27 18:44
756 查看
注:蓝色部分为需要添加的URL。
由于本人较懒,就不再添加注释了。^_^
Action()
{
int value;
unsigned long current_clip_size;
lreal_open_player(atoi(lr_eval_string("<data1>")));
lreal_open_url(atoi(lr_eval_string("<data1>")), "URL");
lreal_open_url(atoi(lr_eval_string("<data1>")), "URL");
// lreal_close_player(2);
lreal_play(atoi(lr_eval_string("<data1>")), 120000);
value = lreal_get_property(1,LREAL_LOST_PACKETS);
lr_output_message("Value is %d",value);
value = lreal_get_property(1,LREAL_CURRENT_BANDWIDTH);
lr_output_message("Value is %d",value);
value = lreal_get_property(1,LREAL_NETWORK_PERFORMANCE);
lr_output_message("Value is %d",value);
value = lreal_get_property(1,LREAL_STREAM_QUALITY);
lr_output_message("Value is %d",value);
value = lreal_get_property(1,LREAL_BUFFERING_NUM);
lr_output_message("Value is %d",value);
value = lreal_get_property(1,LREAL_BUFFERING_TIME);
lr_output_message("Value is %d",value);
value = lreal_get_property(1,LREAL_BUFFERING_CONGESTION_NUM);
lr_output_message("Value is %d",value);
value = lreal_get_property(1,LREAL_RECOVERED_PACKETS);
lr_output_message("Value is %d",value);
current_clip_size = lreal_current_time(atoi(lr_eval_string("<data1>")));
if (current_clip_size > 0)
lr_output_message("%d done", current_clip_size);
lreal_stop(atoi(lr_eval_string("<data1>")));
lreal_close_player(atoi(lr_eval_string("<data1>")));
}
由于本人较懒,就不再添加注释了。^_^
Action()
{
int value;
unsigned long current_clip_size;
lreal_open_player(atoi(lr_eval_string("<data1>")));
lreal_open_url(atoi(lr_eval_string("<data1>")), "URL");
lreal_open_url(atoi(lr_eval_string("<data1>")), "URL");
// lreal_close_player(2);
lreal_play(atoi(lr_eval_string("<data1>")), 120000);
value = lreal_get_property(1,LREAL_LOST_PACKETS);
lr_output_message("Value is %d",value);
value = lreal_get_property(1,LREAL_CURRENT_BANDWIDTH);
lr_output_message("Value is %d",value);
value = lreal_get_property(1,LREAL_NETWORK_PERFORMANCE);
lr_output_message("Value is %d",value);
value = lreal_get_property(1,LREAL_STREAM_QUALITY);
lr_output_message("Value is %d",value);
value = lreal_get_property(1,LREAL_BUFFERING_NUM);
lr_output_message("Value is %d",value);
value = lreal_get_property(1,LREAL_BUFFERING_TIME);
lr_output_message("Value is %d",value);
value = lreal_get_property(1,LREAL_BUFFERING_CONGESTION_NUM);
lr_output_message("Value is %d",value);
value = lreal_get_property(1,LREAL_RECOVERED_PACKETS);
lr_output_message("Value is %d",value);
current_clip_size = lreal_current_time(atoi(lr_eval_string("<data1>")));
if (current_clip_size > 0)
lr_output_message("%d done", current_clip_size);
lreal_stop(atoi(lr_eval_string("<data1>")));
lreal_close_player(atoi(lr_eval_string("<data1>")));
}
相关文章推荐
- Zee的LR脚本练习三:比较两个字符串变量
- Zee的LR脚本练习一:写随机数到文本里
- Zee的LR脚本练习二:循环打印web_reg_save_param保存的参数
- Zee的LR脚本练习四: 关于函数lr_eval_string
- Zee之LR脚本练习之七:执行dir命令并把结果写到文件里
- Zee之LR脚本练习之五:用system函数执行系统命令
- Zee的LR脚本练习二:比较两个字符串变量
- LR中点鼠标做关联(winsock协议)-Zee
- LR socket协议脚本
- 【性能】Loadrunner(LR)中java协议调用get/post请求,并验证结果脚本
- LR回放https协议脚本失败:[GENERAL_MSG_CAT_SSL_ERROR]connect to host "XXX" failed:[10054] Connection reset by
- LR回放https协议脚本失败:[GENERAL_MSG_CAT_SSL_ERROR]connect to host "XXX" failed:[10054] Connection reset by peer [MsgId:MERR-27780]
- LR中点鼠标做关联(winsock协议)-转自Zee博客
- LR脚本练习一:写随机数到文本里
- lr中winsock协议的脚本(转载51testing)
- LR回放https协议脚本失败:[GENERAL_MSG_CAT_SSL_ERROR]connect to host "XXX" failed:[10054] Connection reset by
- LR中MQ协议交易脚本介绍
- LR中点鼠标做关联(winsock协议)-Zee
- 实时消息传输协议 RTMP(Real Time Messaging Protocol)
- HL7协议报文的解析脚本