LoadRunner系列实例之— 01录制cas登陆脚本
关于CAS 的概念,见链接
需要增加4个关联函数,初次加载页面时取cookie和it1,输入账号密码点击登录时,取ticketGrantingTicketId和it2
实际上前后台完成两次校验,
//Correlation comment - Do not change!Original value='_cCAEABC83-C990-F50E-E1D5-47A39DBBFC49_k2E4795DE-DF9E-C968-290C-2B8D1317CD15' Name ='IT1'
web_reg_save_param_ex(
"ParamName=IT1",
"LB=name=\"lt\" value=\"",
"RB=\" ",
SEARCH_FILTERS,
"Scope=All",
"IgnoreRedirections=Yes",
"RequestUrl=*/login*",
LAST);
//Correlation comment - Do not change!Original value='WTWmM4E2SfD1vDXVWTL0H8nYlWyY5FeHhTtubbrQiSWPySdSD5wc!-32010790' Name ='Cookie' web_reg_save_param_ex(
"ParamName=Cookie",
"LB=Set-Cookie: CASCOOKIENAME=",
"RB=; path",
SEARCH_FILTERS,
"Scope=All",
"IgnoreRedirections=Yes",
"RequestUrl=*/login*",
LAST); web_url("main.jsp",
"URL=http://{UrlAddress}/pcis//core/main.jsp",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t13.inf",
"Mode=HTML",
EXTRARES,
"URL=/cas/images/bg_all.jpg", "Referer=http://{UrlAddress}/cas/login?service=http%3A%2F%2F{UrlAddress}%2Fpcis%2Fj_spring_security_check", ENDITEM,
"URL=/cas/images/loding-bd.png", "Referer=http://{UrlAddress}/cas/login?service=http%3A%2F%2F{UrlAddress}%2Fpcis%2Fj_spring_security_check", ENDITEM,
"URL=/cas/images/bt_button.jpg", "Referer=http://{UrlAddress}/cas/login?service=http%3A%2F%2F{UrlAddress}%2Fpcis%2Fj_spring_security_check", ENDITEM,
LAST); lr_think_time(); //Correlation comment - Do not change!Original value='_cCAEABC83-C990-F50E-E1D5-47A39DBBFC49_k4F470861-B210-38CC-8694-49DC53CAAFE3' Name ='IT2'
web_reg_save_param_ex(
"ParamName=IT2",
"LB=name=\"lt\" value=\"",
"RB=\" ",
SEARCH_FILTERS,
"Scope=All",
"RequestUrl=*/login;CASCOOKIENAME={Cookie}*",
LAST); //Correlation comment - Do not change!Original value='TGT-554-gbf7fAR41apOcy4YG1cnZ9WyYiyOcN6O0Z6d4rJOUmbaw6fYZZ-cas' Name ='Cookie'
web_reg_save_param_ex(
"ParamName=TGT",
"LB=Set-Cookie: CASTGC=",
"RB=; path",
SEARCH_FILTERS,
"Scope=All",
"RequestUrl=*/login;CASCOOKIENAME={Cookie}*",
LAST); web_submit_data("login;CASCOOKIENAME={Cookie}",
"Action=http://{UrlAddress}/cas/login;CASCOOKIENAME={Cookie}?service=http%3A%2F%2F{UrlAddress}%2Fpcis%2Fj_spring_security_check",
"Method=POST",
"RecContentType=text/html",
"Referer=http://{UrlAddress}/cas/login?service=http%3A%2F%2F{UrlAddress}%2Fpcis%2Fj_spring_security_check",
"Snapshot=t14.inf",
"Mode=HTML",
ITEMDATA,
"Name=username", "Value=137100039", ENDITEM,
"Name=pwd", "Value=11", ENDITEM,
"Name=password", "Value=6512bd43d9caa6e02c990b0a82652dca", ENDITEM,
"Name=Submit", "Value=", ENDITEM,
"Name=lt", "Value={IT1}", ENDITEM,
"Name=_eventId", "Value=submit", ENDITEM,
"Name=mac", "Value=", ENDITEM,
"Name=ip", "Value=10.28.1.108", ENDITEM,
LAST); web_submit_data("login",
"Action=http://{UrlAddress}/cas/login?service=http%3A%2F%2F{UrlAddress}%2Fpcis%2Fj_spring_security_check",
"Method=POST",
"RecContentType=text/html",
"Referer=http://{UrlAddress}/cas/login;CASCOOKIENAME={Cookie}?service=http%3A%2F%2F{UrlAddress}%2Fpcis%2Fj_spring_security_check",
"Snapshot=t15.inf",
"Mode=HTML",
ITEMDATA,
"Name=username", "Value=137100039", ENDITEM,
"Name=pwd", "Value=11", ENDITEM,
"Name=password", "Value=6512bd43d9caa6e02c990b0a82652dca", ENDITEM,
"Name=ticketGrantingTicketId", "Value={TGT}", ENDITEM,
"Name=CASOPDPT", "Value=37", ENDITEM,
"Name=Submit", "Value=", ENDITEM,
"Name=lt", "Value={IT2}", ENDITEM,
"Name=_eventId", "Value=submit", ENDITEM,
"Name=mac", "Value=", ENDITEM,
"Name=ip", "Value=10.28.1.108", ENDITEM,
EXTRARES,
"URL=../pcis/core/skin/default/blue_skin/left.gif", "Referer=http://{UrlAddress}/pcis/core/leftup.jsp", ENDITEM,
"URL=../pcis/core/skin/default/blue_skin/zs_header_03.gif", "Referer=http://{UrlAddress}/pcis/core/header.jsp", ENDITEM,
"URL=../pcis/core/skin/default/blue_skin/header_03.gif", "Referer=http://{UrlAddress}/pcis/core/header.jsp", ENDITEM,
"URL=../pcis/core/skin/default/blue_skin/header_02.gif", "Referer=http://{UrlAddress}/pcis/core/header.jsp", ENDITEM,
"URL=../pcis/core/skin/default/blue_skin/header_07.gif", "Referer=http://{UrlAddress}/pcis/core/header.jsp", ENDITEM,
"URL=../pcis/core/skin/default/blue_skin/header_09.gif", "Referer=http://{UrlAddress}/pcis/core/header.jsp", ENDITEM,
"URL=../pcis/core/skin/default/blue_skin/header_11.gif", "Referer=http://{UrlAddress}/pcis/core/header.jsp", ENDITEM,
"URL=../pcis/core/skin/default/blue_skin/header_13.gif", "Referer=http://{UrlAddress}/pcis/core/header.jsp", ENDITEM,
"URL=../pcis/core/skin/default/blue_skin/main_40.gif", "Referer=http://{UrlAddress}/pcis/core/bottom.jsp", ENDITEM,
"URL=../pcis/core/skin/default/blue_skin/images/leftmenubg.gif", "Referer=http://{UrlAddress}/pcis/core/left.jsp", ENDITEM,
"URL=../pcis/core/skin/default/blue_skin/menubg.gif", "Referer=http://{UrlAddress}/pcis/core/left.jsp", ENDITEM,
LAST); web_add_cookie("00000000webfx-tree-object-3=1; DOMAIN={UrlAddress}"); web_url("left.jsp",
"URL=http://{UrlAddress}/pcis/core/left.jsp?opCde=015",
"Resource=0",
"RecContentType=text/html",
"Referer=http://{UrlAddress}/pcis/core/header.jsp",
"Snapshot=t16.inf",
"Mode=HTML",
EXTRARES,
"URL=skin/default/blue_skin/images/main_21.gif", "Referer=http://{UrlAddress}/pcis/core/left.jsp?opCde=015", ENDITEM,
"URL=skin/default/blue_skin/images/down.gif", "Referer=http://{UrlAddress}/pcis/core/left.jsp?opCde=015", ENDITEM,
"URL=skin/default/blue_skin/images/I.gif", "Referer=http://{UrlAddress}/pcis/core/left.jsp?opCde=015", ENDITEM,
"URL=skin/default/blue_skin/images/icon.gif", "Referer=http://{UrlAddress}/pcis/core/left.jsp?opCde=015", ENDITEM,
"URL=skin/default/blue_skin/images/T.gif", "Referer=http://{UrlAddress}/pcis/core/left.jsp?opCde=015", ENDITEM,
"URL=skin/default/blue_skin/images/L.gif", "Referer=http://{UrlAddress}/pcis/core/left.jsp?opCde=015", ENDITEM,
"URL=skin/default/blue_skin/images/skin1_left_3.gif", "Referer=http://{UrlAddress}/pcis/core/left.jsp?opCde=015", ENDITEM,
"URL=skin/default/blue_skin/images/up.gif", "Referer=http://{UrlAddress}/pcis/core/left.jsp?opCde=015", ENDITEM,
"URL=skin/default/blue_skin/images/blank.png", "Referer=http://{UrlAddress}/pcis/core/left.jsp?opCde=015", ENDITEM,
LAST);
LoadRunner系列实例之— 01录制cas登陆脚本的更多相关文章
- LoadRunner 录制cas 登陆脚本
关于CAS 的概念,见链接:http://www.360doc.com/content/15/0204/17/21706453_446251626.shtml 需要增加4个关联函数 //Correla ...
- 【LoadRunner】解决LR11无法录制Chrome浏览器脚本问题
LoadRunner录制脚本时,遇到高版本的IE.FireFox,或者Chrome浏览器,会出现无法录制脚本的问题,下面就来讲一下如何利用LR自带的wplus_init_wsock.exe插件进行脚本 ...
- LoadRunner系列之—-04 录制基于https协议的脚本
实际性能测试过程中,有些需录制脚本的页面或接口是基于https协议的,按原来方法录制脚本,录完了脚本是空的.为解决这个问题,第一步了解https协议的具体实现,这块网上资料很多,可参考页面下方参考资料 ...
- Java多线程系列--“JUC锁”01之 框架
本章,我们介绍锁的架构:后面的章节将会对它们逐个进行分析介绍.目录如下:01. Java多线程系列--“JUC锁”01之 框架02. Java多线程系列--“JUC锁”02之 互斥锁Reentrant ...
- FPGA Verilog HDL 系列实例--------步进电机驱动控制
[连载] FPGA Verilog HDL 系列实例 Verilog HDL 之 步进电机驱动控制 步进电机的用途还是非常广泛的,目前打印机,绘图仪,机器人等等设备都以步进电机为动力核心.那么,下面我 ...
- Loadrunner:POP3协议录制收信,使用foxmail录制到的脚本为空
以下录制方法使得录制到的脚本为空: (1)打开Virtual User Generator,点击“新建Vuser脚本”,在弹出的向导页面,选择“新建单协议脚本”,选择“POP3”协议,并确定 (2)在 ...
- 【全网最全的博客美化系列教程】01.添加Github项目链接
全网最全的博客美化系列教程相关文章目录 [全网最全的博客美化系列教程]01.添加Github项目链接 [全网最全的博客美化系列教程]02.添加QQ交谈链接 [全网最全的博客美化系列教程]03.给博客添 ...
- 【Loadrunner】LR破解版录制手机脚本
LR破解版录制手机脚本 最近在网上听到好多童鞋都在问如何用LR做手机性能测试,恰好自己对这方面也挺感兴趣,经过查阅很多资料,形成此文档以做备注~!如果有感觉我写的不对的地方,敬请指正 ...
- 【BASIS系列】SAP 中查看account登陆次数及时间的情况
公众号:SAP Technical 本文作者:matinal 原文出处:http://www.cnblogs.com/SAPmatinal/ 原文链接:[BASIS系列]SAP 中查看account登 ...
随机推荐
- EBS ORACLE工单齐套率的计算程序
PROCEDURE Get_wip_accept_item_date(p_use_id in number, p_org_id IN NUMBER, p_start_date IN DATE, p_e ...
- Maven实战读书笔记(四):Maven生命周期与插件
Maven的生命周期是对所有构建过程的抽象和统一.包含了项目的清理.初始化.编译.测试.打包.集成测试.验证.部署和站点生成等几乎所有构建步骤. Maven的生命周期是抽象的,其实际行为是由插件来完成 ...
- Tunnelier使用说明
Tunnelier与MyEnTunnel类似,但是功能更加强大.MyEnTunnel小巧易用,如何使用MyEnTunnel可以参考 MyEnTunnel使用说明 这里列下Tunnelier的优点: 1 ...
- 简单DP内容
1. 最长上升子序列 [题目描述] 给定N个数,求这N个数的最长上升子序列的长度. [样例输入] 7 2 5 3 4 1 7 6 [样例输出] 4 第一种解法:时间复杂度O(n^2), 状态设计:DP ...
- linux(php环境) 安装ffmpeg
实现上传视频获取视频的第一帧当做视频封面 1.安装ffmpeg ffmpeg的下载链接 https://ffmpeg.org/download.html 解压安装包 tar -jxvf ffmpeg ...
- Specified VM install not found: type Standard VM, name JDK1.8
真正的问题解决方法在这里:在项目中,右键点击ant文件,选择Run As -- External Tools Configuration,在这个页面的顶端就会看到有红叉叉的报错,报错信息就是Speci ...
- vs2010 C# 如何将类做成DLL 再从另一个项目中使用这个类
vs2010 C# 如何将类做成DLL 再从另一个项目中使用这个类 2011-10-20 12:00 486人阅读 评论(0) 收藏 举报 一.将类做成DLL 方法一: 你可以通过在命令行下用命令将以 ...
- python模块以及导入出现ImportError: No module named ‘xxx‘问题
python中,每个py文件被称之为模块,每个具有__init__.py文件的目录被称为包.只要模块或者包所在的目录在sys.path中,就可以使用import 模块或import 包来使用如果你要使 ...
- functools内置装饰器
def update_wrapper(wrapper, wrapped, assigned = WRAPPER_ASSIGNMENTS, updated = WRAPPER_UPDATES): def ...
- step 1:begin to identify something in english(to becaome a baby again)
long long ago , i think if i want to improve my english especially computer english . i must do so m ...