![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
测试
katrinaqian
这个作者很懒,什么都没留下…
展开
-
loadrunner中web_url()的想法
The web_url function is an action function that loads the Web page (GET request) specified by the URL argument. The web_url function does no原创 2011-08-01 13:53:25 · 3739 阅读 · 0 评论 -
第一个字符出现后的所有字符串
Action() { char fullpath[] = "c:\\tmp\\logfile.txt"; char * first_t, * first_g, * first_b; first_t = (char *) strchr(ful原创 2011-08-01 15:41:24 · 428 阅读 · 0 评论 -
比较和不区分大小写比较
Action() { char string1[] = "The quick brown dog jumps over the lazy fox"; char string2[] = "The QUICK brown dog jumps over th原创 2011-08-01 16:05:28 · 1908 阅读 · 0 评论 -
把integer转换成string,并只连接一段
Action() { char strId[512]; int id, length; lr_whoami(&id, NULL, NULL); sprintf(strId, "%d_", id); length = 8 - st原创 2011-08-02 11:25:29 · 401 阅读 · 0 评论 -
字符串函数总结
连接:strcat strncat 搜索:strchr strrchr strstr 比较:strcmp stricmp strncmp strnicmp 复制:strcpy strdup strncpy 长度:strlen 大小写:strlwr strupr 替换:原创 2011-08-02 15:05:51 · 270 阅读 · 0 评论 -
目标字符串足够长才能连接字符串
Action() { char fullpath[1024] = "c:\\tmp"; char filename[] = "logfile.txt"; //strcpy(fullpath, "c:\\tmp"); strcat(f原创 2011-08-01 15:16:32 · 239 阅读 · 0 评论 -
环境变量
Action() { char * temp = (char *) getenv("TEMP"); char env[512]; long file; if (temp) { lr_output_message("tem原创 2011-08-03 11:15:27 · 251 阅读 · 0 评论 -
strspn
Action() { char fullpath[] = "Linux was first developed for 386/486-based pcs."; int num; num = strspn(fullpath, "Linux w");原创 2011-08-02 14:15:55 · 285 阅读 · 0 评论 -
复制lr_whoami中的组名,并变为小写
Action() { char * ogroupName, * groupName; int id, scid; lr_whoami(&id, &groupName, &scid); lr_output_message("id:%d\ts原创 2011-08-02 10:37:06 · 731 阅读 · 0 评论 -
loadrunner文件操作
c:\\test.txt 1111 2222 3333 4444 5555 #define FILEADDRESS "c:\\test.txt" Action() //从test.txt读取5行十进制整数数据 { int file, i, l原创 2011-08-01 14:27:37 · 812 阅读 · 1 评论 -
字符串全用字符代替
Action() { char fullpath[] = "c:\\tmp\\logfile.txt"; strset(fullpath, 'x'); lr_output_message("%s", fullpath); }原创 2011-08-02 14:00:48 · 384 阅读 · 0 评论