摘要:
有些时候需要在某个字符串的前面用0补齐,以便满足长度的格式要求。 在LoadRunner中可以封装出一个函数来处理这种问题: /* Function to pad a string to x characters adding the required character at the start 阅读全文
摘要:
参考《Search & Replace function for LoadRunner》: http://ptfrontline.wordpress.com/2009/03/13/search-replace-function-for-lr/ LoadRunner中没有直接的函数支持查找并替换字符串 阅读全文
摘要:
LoadRunner中有lr_save_int() 和lr_save_string() 函数,但是没有保存浮点数到变量的lr_save_float函数。《lr_save_float() function for LoadRunner》这篇文章介绍了如何写一个这样的函数: http://ptfront 阅读全文
摘要:
什么是AJAX? Ajax, shorthand for Asynchronous JavaScript and XML, is a web development technique for creating interactive web applications. The intent is 阅读全文
摘要:
一般情况下,我们都是通过Run-Time Settings来设置Think Time(思考时间),可以设置回放脚本时忽略思考时间,或者是设置回放随机的一段思考时间。 By default, when you run a Vuser script, the Vuser uses the think t 阅读全文
摘要:
LoadRunner如何在脚本运行时修改log设置选项?答案是使用lr_set_debug_message函数: lr_set_debug_message Sets the message level for the script execution. int lr_set_debug_messag 阅读全文
摘要:
LoadRunner中的web_get_in_property函数可用于返回上一个HTTP请求的相关信息,包括HTTP请求返回码、下载大小、下载时间等: The web_get_int_property function returns specific information about the 阅读全文