当前位置:网站首页>Analysis that may result in a savecount of 0 in Loadrunner checkpoints
Analysis that may result in a savecount of 0 in Loadrunner checkpoints
2022-08-09 08:02:00 【Luo Yangbei】
When doing checkpoints, I often encounter that the savecount variable is always 0, which is neither a coding problem nor a number display problem.The following does a simple analysis that may result in a savecount of 0 in the Loadrunner checkpoint.
1. First determine whether the page to be checked or the returned data after submit
2. If the page to be checked is, put the checkpoint function in front of the page to be checked, that is, in front of web_url()
/p>
web_reg_find("SaveCount=loginst","Text=Welcome",LAST);web_url("userpage","URL=http://www.100vr.com/100vr/index/userpage","TargetFrame=","Resource=0","RecContentType=text/html","Referer=","Snapshot=t7.inf","Mode=HTML",LAST);if(strlen(lr_eval_string("{loginst}"))>0){lr_output_message("Login successful!");lr_end_transaction("login",LR_PASS);}else{lr_output_message("Login failed!");lr_end_transaction("login",LR_FAIL);}
F5 run, view the running result
vuser_init.c(110): Notify: Saving Parameter "loginst = 1".vuser_init.c(110): web_url("userpage") was successful, 238370 body bytes, 4301 header bytes [MsgId: MMSG-26386]vuser_init.c(122): Login successful!vuser_init.c(123): Notify: Transaction "login" ended with "Pass" status (Duration: 1.8752 Wasted Time: 0.1710).Ending action vuser_init.Running Vusers...
3. If the return value submitted by submit is checked, then web_reg_find() should be placed in front of submit()
web_reg_find("SaveCount=loginst","Text=a",LAST);web_submit_data("checkuser","Action=http://www.100vr.com/100vr/login/checkuser/","Method=POST","TargetFrame=","RecContentType=text/html","Referer=http://www.100vr.com/100vr/login","Snapshot=t6.inf","Mode=HTML",ITEMDATA,"Name=username", "Value=", ENDITEM,"Name=password", "Value=", ENDITEM,"Name=remember", "Value=undefined", ENDITEM,"Name=ctfid", "Value=428314848", ENDITEM,LAST);web_url("userpage","URL=http://www.100vr.com/100vr/index/userpage","TargetFrame=","Resource=0","RecContentType=text/html","Referer=","Snapshot=t7.inf","Mode=HTML",LAST);if(strlen(lr_eval_string("{loginst}"))>0){lr_output_message("Login successful!");lr_end_transaction("login",LR_PASS);}else{lr_output_message("Login failed!");lr_end_transaction("login",LR_FAIL);}
边栏推荐
猜你喜欢
浅谈Endpoint
Data storage implementation of SDRAM and read and write operations on its data
设备指纹详解之识别垃圾账号
Four departments including the Ministry of Industry and Information Technology promote green smart home products to the countryside
种子数据报错:liquibase.exception.ValidationFailedException: Validation Failed
MDK Keil debug时, watch1中全局变量不更新
3安装及管理程序
我的创作纪念日
梅科尔工作室--BP神经网络培训笔记
【机器学习】支持向量机(SVM)代码练习
随机推荐
梅科尔工作室--BP神经网络培训笔记
pip3换源提升速度
VOC格式标签转YOLO格式
.net(四) 数据层实现
The String class objects created by the JVM memory allocation and the difference between equals and = =
Record a failure to upgrade the client's APP database version number
如何生成dll文件 采用VS2017生成dll文件(动态库文件)和lib文件(静态库文件)以C语言为例
不同风格的Flask-restful
Non-decreasing Array
VOC format label to YOLO format
Solidworks 2022 Inspection新增功能:光学字符识别、可自定义的检查报告
[STL]stack与queue
String类创建的对象在JVM中的内存分配和equals与==的区别
HOOPS助力 SolidWorks edrawings 引入AR/VR技术
【Rust指南】快速入门|开发环境|hello world
C language: adjust the order of odd and even numbers
C语言:调整奇数偶数顺序
VRRP原理及配置
Shell编程之正则表达式
[STL]list