上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 50 下一页
该文被密码保护。 阅读全文
posted @ 2015-11-09 10:09 Agoly 阅读(2) 评论(0) 推荐(0)
摘要: 深圳湖北籍软件测试群 275212937 阅读全文
posted @ 2015-11-09 10:08 Agoly 阅读(1175) 评论(0) 推荐(1)
摘要: 对于边界值中有不确定字符串时该怎么处理:如:LR中服务器返回的值是OAMRequestContext_oamtest.huawei.com:80_68504a" value="hPJqIBKLWRWw+iTQYjdZBg=="/>,我想取出“hPJqIBKLWRWw+iTQYjdZBg ==”这段,... 阅读全文
posted @ 2015-11-09 10:08 Agoly 阅读(1385) 评论(0) 推荐(0)
摘要: LoadRunner录制图片验证码LoadRunner自身是无法捕获到图片验证码的,但是我们可以帮助LoadRunner来实现验证码的捕获。1.图片验证码图片验证码的产生来自服务器端,由服务器生成随机数,然后写入到图片中。虽然LR可以录制下图片,但是无法从图片中获取数据,因此表面上看LR是无法跳过这... 阅读全文
posted @ 2015-11-09 10:07 Agoly 阅读(4120) 评论(0) 推荐(0)
摘要: //placethisinglobal.hintHttpRetCode;inti=0;chardepthVal[10];charcTransactName[20000];recursiveRedirect_open(){web_set_max_html_param_len("10000");web_... 阅读全文
posted @ 2015-11-09 10:07 Agoly 阅读(3865) 评论(0) 推荐(0)
摘要: 深圳湖北籍软件测试群 275212937 阅读全文
posted @ 2015-11-09 10:07 Agoly 阅读(355) 评论(0) 推荐(0)
摘要: 如果按照普通的定义字符串就会出现以下错误:解决方法如下:将双引号改成单引号:lr_searchReplace(abc,"test",' ','+');Action也可以这些写:voidlr_searchReplace(char*inputStr,char*outputStr,charlookupCh... 阅读全文
posted @ 2015-11-08 16:25 Agoly 阅读(1764) 评论(0) 推荐(1)
摘要: voidlr_custom_string_delim_save(charinputStr[500],char*outputStr,char*delim,intoccrNo,intstringSide){char*temp,*temp2;chartemp3[500]={0};inti=0;inti2;... 阅读全文
posted @ 2015-11-08 16:25 Agoly 阅读(419) 评论(0) 推荐(0)
摘要: ftoa(floatfloatNum,char*convFloatString){ charnew[10]; floatnumber,dTemp,temp_val; intbase,floatVal,radxFlag; char*token; char*temp; charcfloatVal[10]... 阅读全文
posted @ 2015-11-08 13:56 Agoly 阅读(898) 评论(0) 推荐(0)
摘要: /****** *函数名称:strcut *函数说明:通过左边界、右边界,从字符串中截取子字符串 *注意事项:会申请新的内存,需要手动释放 ******/ void strcut(char *strSrc, char* str, char *leftStr, char *rightStr) { ch 阅读全文
posted @ 2015-11-08 13:55 Agoly 阅读(2572) 评论(1) 推荐(1)
摘要: voidstrLastOccr(charinputStr[100],char*outputStr,char*delim){ charvalue[100],*temp,*temp2; inti=0; temp=""; while(temp!=NULL){ if(i==0){ temp2=temp... 阅读全文
posted @ 2015-11-08 13:54 Agoly 阅读(537) 评论(0) 推荐(0)
摘要: char*replace_str(char*str,char*orig,char*rep){ staticcharbuffer[9096]; char*p; if(!(p=(char*)strstr(str,orig)))//Is'orig'evenin'str'? returnstr; ... 阅读全文
posted @ 2015-11-08 13:53 Agoly 阅读(796) 评论(0) 推荐(1)
摘要: Windows Server 2008 R2远程用户数设置在windows server 2008 R2里面,默认的远程桌面连接数为1。这对我们的服务器管理带来了很大的不便,那么怎样来修改2008 r2的远程桌面连接数呢。网上好多转的文章都一样,而且根本就不是Windows Server 2008 ... 阅读全文
posted @ 2015-11-05 12:55 Agoly 阅读(44717) 评论(1) 推荐(0)
摘要: 如何在LoadRunner测试场景中添加负载生成器本文对如何在LoadRunner的测试场景中添加负载生成器,如何使用负载生成器的方法,总结形成操作指导手册,以指导测试人员指导开展相关工作。1.什么是测试场景测试场景是将测试需求结合测试用例进行转化后,用来承载实现测试用例测试目标的测试脚本的容器,对... 阅读全文
posted @ 2015-11-03 18:33 Agoly 阅读(3431) 评论(0) 推荐(0)
摘要: Action(){ char*str="sdfas1,sdfsdf2,sdfsdfsdfdsf3,sdfsdfsdfsdfds4,fsdfdsf5,sdfdsfsd6,fsdfsd7sdfas8"; inti,count=0; while(strstr(str,",")!=NULL){ count... 阅读全文
posted @ 2015-11-03 18:32 Agoly 阅读(613) 评论(0) 推荐(0)
摘要: 用这个lr_save_string 函数char *b = "很简单";lr_save_string(b,"b");lr_output_message("%s",lr_eval_string("{b}"));int a =100; //初始化char *b="abc"; a=123; //赋值b="... 阅读全文
posted @ 2015-11-03 18:32 Agoly 阅读(1396) 评论(0) 推荐(0)
摘要: loadrunner生成随机数一:对网站注册进行压力测试时,需要对注册的用户名进行参数化,因为可以会用到大量的测试数据,所以选择通过生成随机数来进行参数化。最开始用loadrunner自带的参数随机功能,代码如下:"Name=RegForm[name]", "Value={NewParam}", E... 阅读全文
posted @ 2015-11-03 18:32 Agoly 阅读(4088) 评论(0) 推荐(0)
摘要: Action(){char*phonenum;intk=1;phonenum=lr_eval_string("{phoneNum}");//参数化获取的手机号码for(k=1;k<6;k++){ //k=1标示从phonenum的指针第一位开始k<6表示phonenum的坐标移到第6位 ph... 阅读全文
posted @ 2015-11-03 18:31 Agoly 阅读(441) 评论(0) 推荐(0)
摘要: LR参数化数据源Oracle,MSSQL,Excel参数化的方法:重点介绍excel数据参数化的方法:1.首先创建excel表格:注意要写列明2.创建excel表连接:参数化完成后,我们打开excel想编辑数据出现:只要把lr关掉重现打开即可参数化查询语句:select phoneNum from ... 阅读全文
posted @ 2015-11-03 13:39 Agoly 阅读(1308) 评论(0) 推荐(0)
摘要: LoadRunner常用函数列表Web相关函数函 数 功 能 描 述web_custom_request用户可以通过该函数自行创建一个HTTP请求的函数web_image模拟用户单击图片操作的函数web_link模拟用户单击指定属性链接操作的函数web_submit_data执行“无状态“或“内容无... 阅读全文
posted @ 2015-11-02 09:25 Agoly 阅读(2718) 评论(0) 推荐(0)
上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 50 下一页