惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Simon Willison's Weblog
Simon Willison's Weblog
P
Privacy International News Feed
www.infosecurity-magazine.com
www.infosecurity-magazine.com
T
Troy Hunt's Blog
Hacker News - Newest:
Hacker News - Newest: "LLM"
Attack and Defense Labs
Attack and Defense Labs
S
Secure Thoughts
V2EX - 技术
V2EX - 技术
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
O
OpenAI News
Cloudbric
Cloudbric
Google Online Security Blog
Google Online Security Blog
Schneier on Security
Schneier on Security
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
Help Net Security
Help Net Security
Cyberwarzone
Cyberwarzone
G
GRAHAM CLULEY
L
Lohrmann on Cybersecurity
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
Spread Privacy
Spread Privacy
NISL@THU
NISL@THU
N
News and Events Feed by Topic
T
Tenable Blog
S
Security @ Cisco Blogs
N
News and Events Feed by Topic
The Hacker News
The Hacker News
C
CXSECURITY Database RSS Feed - CXSecurity.com
宝玉的分享
宝玉的分享
月光博客
月光博客
酷 壳 – CoolShell
酷 壳 – CoolShell
美团技术团队
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Google DeepMind News
Google DeepMind News
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
T
Tailwind CSS Blog
V
Visual Studio Blog
P
Proofpoint News Feed
Webroot Blog
Webroot Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
博客园 - 三生石上(FineUI控件)
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
Jina AI
Jina AI
雷峰网
雷峰网
T
The Blog of Author Tim Ferriss
Hugging Face - Blog
Hugging Face - Blog
腾讯CDC
L
LangChain Blog
The Register - Security
The Register - Security
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
博客园 - 聂微东

博客园 - RobinGe

LR_continue_on_error 应用 一个很好的提高修养的网站 VuGen 没有录上退出步骤 ITIL pass [转51testing] 性能测试(并发负载压力)测试分析-简要篇 9/25 PNR (Point of No Return) 用于日常监控 简谈如何养成良好的习惯 9/16 Creating Oracle NCA Vuser Scripts 9/13 Developing Siebel-Web Vuser Scripts 9/13 Developing SAP-Web Vuser Scripts 9/12 Running SAPGUI Vuser Scripts 给自己订一个目标吧 ITIL培训 英语随笔 -- 1 VuGen -- 手动关联步骤 LoadRunner -- 7/19,20 BAC--启动和停止以及与web server的关系 BAC--Downtime 凌晨时段设定 VuGen--Transaction 简介
9/11 计划反馈 - Developing SAPGUI Vuser Scripts
RobinGe · 2007-09-11 · via 博客园 - RobinGe

SAP 脚本的录制说复杂也复杂说简单也简单,主要看几个注意点
1. The basic steps in checking and setting up your system for the recording of SAPGUI Vusers, are Checking the Patch Level and Enabling Scripting.
就是检查你的sap client端是否满足了VuGen的需要,现在大概是640,620的可能就会出问题,尽管书上还是620 patch level大于32
server端的应该也需要检查,不过没接触过server端,现在也不清楚
2. 正常安装就好了,安装完以后注意修改以下设置,

就按上面图上的选择就好了,第二个好象可以不显示一些弹出提示,例如这个用户已经登陆,云云
3. Retrieving Information
When working with SAGUI Vusers, you can retrieve the current value of a
SAPGUI object using the sapgui_get_<xxx> functions. You can use this
value as input for another business process, or display it in the output log.
Retrieving Status Bar Information
The following example illustrates how to save part of a status bar message in
order to retrieve the order number.
To retrieve the order number from the status bar:
    1 Navigate to the point where you want to check the status bar text, and select
Insert > New Step. Choose the sapgui_status_bar_get_type function. This
verifies that the Vuser can successfully retrieve text from the status bar.
    2 Insert an if statement that checks if the previous statement succeeded. If so,
save the value of the argument using sapgui_status_bar_get_param.
This sapgui_status_bar_get_param function saves the order number into a
user-defined parameter. In this case, the order number is the second index of
the status bar string.
    
example:
sapgui_press_button("Save (Ctrl+S)",
"tbar[0]/btn[11]",
BEGIN_OPTIONAL,
"AdditionalInfo=sapgui1038",
END_OPTIONAL);
sapgui_status_bar_get_type("Status");
if(0==strcmp(lr_eval_string("{Status}"),"Success"))
sapgui_status_bar_get_param("2", " Order_Number ");

这个就是说从status bar提取数据 然后以后应用其他地方,这个方法我还没试验过,不过看来是很有用的
4. Saving Date Information
When creating scripts that use dates, your script may not run properly. For
example, if you record the script on June 2, and replay it on June 3, the date
fields will be incorrect. Therefore, you need to save the date to a parameter
during text execution, and use the stored value as input for other date fields.
To save the current date or time during script execution, use the
lr_save_datetime function. Insert this function before the function
requiring the date information. Note that the format of the date is specific
to your locale. Use the relevant format within the lr_save_datetime
function. For example, for month.day.year, specify "%m.%d.%Y".
In the following example, lr_save_datetime saves the current date. The
sapgui_set_text function uses this value to set the delivery date for two days
later.
lr_save_datetime("%d.%m.%Y", DATE_NOW + (2 * ONE_DAY),
"paramDateTodayPlus2");
sapgui_set_text("Req. deliv.date",
"{paramDateTodayPlus2}",
"usr/ctxtRV45A-KETDAT",
BEGIN_OPTIONAL,
"AdditionalInfo=sapgui1025",
END_OPTIONAL);

这个就是说显示和输入日期的,都是看好例子就可以了,照抄就ok

现在就到这里,回来再补充