access怎样在宏里设置setsystem property set

问题补充&&
•回答
•回答
•回答
•回答
•回答
猜你感兴趣
服务声明: 信息来源于互联网,不保证内容的可靠性、真实性及准确性,仅供参考,版权归原作者所有!Copyright &
Powered by20:37:56,015 ERROR [STDERR] java.lang.RuntimeException: Non matching type for inject of field: private ejbModule.persistence.userAdmin.user.UserDao ejbModule.business.apply.DeptTempMgrBean.userDao for type: $ Proxy96 of jndiName env / ejbModule.busin
- Access to the database table information select * from dba_ select * from all_ select * from user_ - Access to the database table field information select * from dba_tab_ select * from all_tab_ select * from use
A recent project has been a headache show, because the database using I've never used HSQL. HSQL is very small, java open source database, bigger projects may not be suitable, but the display is generally used in this project, time, type a search tod
public void getMetaDataName (String tbname) { try { ResultSet rs = Connect.getConnection (). CreateStatement (). ExecuteQuery (&select * from& + tbname); ResultSetMetaData rss = rs.getMetaData (); int columnCount = rss.getColumnCount (); System.
ConcurrentHashMap and CopyOnWriteArrayList comparison. Blog categories: Java ConcurrentHashMap ConcurrentHashMap introduced Segment, each Segment is a hashtable, the equivalent of two Hash table, and then lock in the Segment level, and increased conc
java annotations can be used in classes, methods, global variables, local variables function: Description classes and class methods of the relationship between the notes, annotations: annotations at compile time is not included in the class file, you
To use this xml into the xml, we need to copy one of the plugin configuration to the struts - config. Xml inside &plug-in className=&org.apache.struts.validator.ValidatorPlugIn&& &set-property property=&pathnames& value=&
Reprinted from: Xiao Pihai QQ: 6241899 QQ Group: 99 Website: /blog/531208 &&& All rights reserved Please indicate the source! &&& Exception: org.hibernate.PropertyAccessException: Null
MySQL database table is a two-dimensional form, the form of one or more data columns. Each data column has its own specific type, the type determines how to treat the column data in MySQL, we can store integer values to the character type column, MyS
Changes in demand, is to a type NUMBER (8,2) field type to char. General idea is as follows: To change the type of field will be renamed to the backup name, and then add a type of field you want to change the name of the same name field (the original
Property injection (Field Inject) First look at an example. Service.java 1 @ ImplementedBy (ServiceImpl.class) 2 public interface Service { 3 void execute (); 4} ServiceImpl.java 1 public class ServiceImpl implements Service { 2 @ Override 3 public v
1. Create a table: create table tablename (column_name1 type constraint_definition, ...); Oracle common field types Data Type Help char (size) Fixed-length character, ≤ 2000 bytes varchar2 (size) Variable-length character, ≤ 4000 bytes date Date data
1, if the field is simply a big change, such as numeric (16,2 )---& numeric (16,4), can be directly alter table table name modify (field name numeric (16,4) 2, due to changes in demand, now to a type NUMBER (8,2) field types to char. General idea is
The use of hibernate, error is as follows: [DEBUG]
09:31:32 [http-8098-1] org.hibernate.jdbc.AbstractBatcher.log(AbstractBatcher.java:393) select this_.ASSET_ID as ASSET1_8_0_, this_.description as descript2_8_0_, this_.status as status8_0
Safety Management System is the core idea of role-based control to improve extraction based on the ideas come, this article describes the function model can be used crane distressed product development officer of the system access control requirement
Field class (similar to the database fields and properties) This class implements the interfaces: Fieldable inherit a static class: AbstractField Fieldable interfaces. Mainly describes the content of some basic information to set the weights and get
Jump to main content China developerWorks& Java technology | Web development | Open source& Based on Struts 2 interceptors to achieve fine-grained role-based access control developerWorks Document layout option will set the printer to print landscap
javascript also the most powerful features is the ability to directly access the browser window object and the child objects. Browser window consists of three objects: 1, windows object: the browser window itself, it also has a child object ---- loca
drupal Form Properties
15:43 When building the function in your form to build a form definition, the array of keys is used to declare a form of information. The following section lists the commonly used keys. Some keys will be automaticall
Reflection granted access to load your code into Java classes within the JVM internal information of the authority, and allows you to write in the program during the execution of the selected class and working with code, not in the source code. This
At Web application development in particular Web2.0 often to access a page element, then update the elements of style, content, etc.. How to obtain the elements to be updated, is the first problem to be solved. It is gratifying that the use of JavaSc
At Web application development in particular Web2.0 often to access a page element, then update the elements of style, content, etc.. How to obtain the elements to be updated, is the first problem to be solved. It is gratifying that the use of JavaSc
Chapter VII of the types of life-cycle 1, type load, links, and initialization Java Virtual Machine through the loading, linking and initializing a Java type, so that the type of running can be used by Java programs. Among them, loading Java types is
A net friend asked such a question: vlan 1 # vlan 2 # vlan 3 # vlan 4 # vlan 5 # interface Ethernet0 / 1 port link-type hybrid port hybrid vlan 1 to 4 untagged port hybrid pvid vlan 2 # interface Ethernet0 / 2 port link-type hybrid port hybrid vlan 3
Database, there is an email field, and allows them store multiple email addresses, the ad split, but in POJO, in order to facilitate the processing, email is defined as a List object. How to String field is mapped to the List typ
This article written more clearly The prototype property of JavaScript objects, can return a reference to the prototype object type. It is quite a mouthful to explain, to understand it, must first correctly understand the object type (Type) and proto
Database-driven driver for the 10g, you can operate the same as the operation of STRING a CLOB HIBERNATE configuration add a line: &property name=&hibernate.connection.SetBigStringTryClob&& true &/ property& HIBERNATE mapping CLOB fi
[Size = medium] Struts 2 framework has two key configuration files: struts.xml and struts.properties Which is responsible for managing struts.xml file in the Action mapping applications, and contains the Result of the Action definition. In addition,
Type Parameters Fundamentals What is a type parameter? A place holder for a type argument. Generic types have one or more type parameters. Example of a parameterized type: interface Comparable &E& ( int compareTo (E other); ) The identifier E is a t
GridView is a powerful ASP.NET data in control, it's RowDataBound event provides us with a convenient control rows, columns of data channels. To get the current row of a data column, the following methods: 1. Cells [x]. Txt. From the column of text v
FUNCTION recently transferred some of the problems encountered, can not find the information on the Internet, for the convenience of colleagues, compiled a PA and OM in the infotype of the creation and enhancement. PA infotype to create and enhance:
Sum up the code written today, there are some needs that brought the total sum, and these days has been the MVC pattern that bothers me is I was finally overcome, to write a test code easier to understand, ############################################
Refresh the page when the report was wrong tomcat, 500, Invalid property name 'limittime1' It was discovered that the original xml file which is not modified for a complete form, how do you say, 'limittime1' This field is there in the javabean inside
Encounter in their daily development situation: Multi-class object needs to be saved to the database, each class object must create a table, creating table fields, the index number, field type must be one to one, If you saved to the array, the field
MySql database column type (field type) MySQL database table is a two-dimensional table, the form of one or more data columns. Each column has its own specific type, which determines how to look at the column data in MySQL, we can store integer value
Oh, to instantly get the necessary data, such as news and information, and can be categorized for analysis, I think is a very meaningful thing. The source of the data can only come from the Internet, the only way of data mining have basis. The data o
The program may make people know, float type is stored floating point (ie decimal type), but the float has a downside, when you given when the data is an integer, then you deal with it as an integer. This currency values in access problems when the
Original mysql, sqlserver, oracle three kinds of database access to large objects collection mysql large object access: Type in general should be mediumblod, blob can only be kept two of the 16 th power one byte, mediumblod is 24-th power, Generally
1. Query, try to avoid the type in the date field to use the function a. make the field on which the index is invalid. Bad example: select ... where to_char (birthday) = ' ' Good: select ... where birthday = to_date (' ') b. If the no
Sort out the char, character, varchar, varchar2, nchar, nvarchar2, long, long raw, and LOB types of comparison between First, the concept type char: Fixed-length string type, when the stored data is not reached the set maximum, it will append a space
ValueObject long days, the company developed its own data manipulation objects, it provides a configuration file automatically generated POJO object function, automatically generate simple SQL statements, dynamic SQL to read the configuration file st
We know that JScript objects in the prototype property is used to return a reference to the prototype object type. We use the prototype property of the object class provides a set of basic functions. And a new instance of an object &inheritance&
● boolean type can not be converted i ● plastic, character, floating-point data conversion in a mixed operation in the conversion to the following rules: ■ the type of small capacity automatically converted to the type of data ca
Recently due to the project needs to be part of the Oracle database table to access. This is the time for power use, just moved over my main table, said some of the situations encountered 1 Date of conversion oracle of to_char, to_date to_char (field
定时备份mysql, 定时切割nginx access log的方法,需要的朋友可以参考下. 定时备份mysql 放入 /etc/cron.hourly/ #!/bin/bash DUMP=/usr/local/webserver/mysql/bin/mysqldump OUT_DIR=/data1/backup/ DB_NAME=数据库名 DB_USER=数据库用户 DB_PASS=数据库密码 #How much days backup most DAYS=3 #12 hours ago MI
Elasticsearch 的坑爹事 本文记录一次Elasticsearch mapping field修改过程 团队使用Elasticsearch做日志的分类检索分析服务,使用了类似如下的_mapping 1 2 3 4 5 6 7 8 9 10 11 12 13 14 { &settings&: { &number_of_shards&: 20 }, &mappings&: { &client&: { &prop
public t / / transient property private S / / persistent property @ Transient String getLengthInMeter () (...) / / transient property String getName () (...) / / persistent property @ Basic int getLength () (...)
Opening, or have to talk about ^ and $ that they are separately used to match the beginning and end of the string, the following examples to illustrate separately &^ The&: there must be at the beginning of &The& &of despai
Lazy loading: Lazy loading mechanism is in order to avoid unnecessary performance overhead and put forward the so-called lazy loading is required when the real data at a time when the real implementation of the data load operation. At Hibernate provi
If you do not want to use the default hibernate.cfg.xml file as a configuration file, we can also specify the configuration file name: File file = new File ( &C: \ \ myhibernate.xml&); Configuration config = new Configuration (). Configure (file
Copyright (C) , All Rights Reserved.
版权所有 黔ICP备号-1
processed in 0.145 (s). 10 q(s)查看: 1764|回复: 11
Access中,窗体最大化时,控件怎样跟着移动
阅读权限20
在线时间 小时
问题是这样的:
本人有一个窗体,需要在打开该窗体时加载一个宏,这个宏会使该窗体最大化,在未最大化时,标签等控件是在中间的位置的,但是窗体最大化以后,控件却并不会跟着窗体居中,而是全部控件停留在左上角,请问高手们,这样该怎么办?能否用宏解决?谢谢
阅读权限95
在线时间 小时
在Form_Resize事件判断窗体宽度,然后依此移动控件
阅读权限20
在线时间 小时
咱家是猫 发表于
在Form_Resize事件判断窗体宽度,然后依此移动控件
谢谢,用宏可以吗?
阅读权限95
在线时间 小时
可以的,但我好久没用过宏了.具体用哪个宏命令不记得了.你试试Setproperty吧.
阅读权限20
在线时间 小时
原来猫兄还是这里的版主
阅读权限20
在线时间 小时
咱家是猫 发表于
可以的,但我好久没用过宏了.具体用哪个宏命令不记得了.你试试Setproperty吧.
Setproperty?没有这个宏哦,
阅读权限95
在线时间 小时
你不也是2010吗?有的呀,看仔细一些.
阅读权限20
在线时间 小时
咱家是猫 发表于
你不也是2010吗?有的呀,看仔细一些.
我的2003哦,真的没找到哦,
阅读权限95
在线时间 小时
2003如果我没有记错的话,有一个SetValue
阅读权限20
在线时间 小时
咱家是猫 发表于
2003如果我没有记错的话,有一个SetValue
有的,可惜我没用过SetValue这个操作哦,能否举个例子呢,谢谢先
玩命加载中,请稍候
玩命加载中,请稍候
本论坛言论纯属发表者个人意见,任何违反国家相关法律的言论,本站将协助国家相关部门追究发言者责任!
本站特聘法律顾问:徐怀玉律师 李志群律师
Powered byweb test LoadRunner SAP / java / Java Vuser / web_set_max_html_param_len - 天行健 - Lindows - ITeye技术网站
博客分类:
loadrunner sap docs
/demos/richmedia/demos/sap-loadrunner-by-hp-optimize-the-quality-performance-and-scalability-of-end-to-end-business-processes-demo-us.epx
sap download
http://it.***.com/SNsoft/SAP_GUI_710.ZIP
http://it.***.com/SNsoft/gui710_13-.exe
http://it.***.com/SNsoft/services.rar
http://it.***.com/SNsoft/SAP710(PeiZhi)V1.0.pdf
sap jco download
G:\projects\s*****_sap\sap_jco&dir
librfc32.dll
5,251,072librfc32.dll.rarlrapi.jarsap-jco-3.0.8.jarsapawrfc.dllsapawrfc.rarsapjco-linuxintel-2.1.8.rarsapjco-linuxintel-2.1.8.tgzsapjco.jarsapjco.jar.pngsapjco3.dllsapjco3.dll.rarsapjco3_ntintel_32-3.0.8.dllsapjco3_ntintel_32-3.0.8.rarsapjco3_ntintel_64-3.0.8.dllsapjco3_ntintel_64-3.0.8.rarsapjcorfc.dll
3,723,264sapjcorfc.dll.rarsnf-sap-jco-3.0.8.jarsnf-sap-jco-3.0.8.jar.pngsnf-sap4j-1.0.2.jar
loadrunner sap 脚本无法录制问题解决
1、录制脚本需先登陆SAPGUI更改下述参数sapgui/user_scripting,缺省值为FALSE,该情况下不能录制脚本。需更改为true。
更改方法:
(1)查看Tcode:RZ11
(2)输入参数名称 sapgui/user_scripting
(3)更改为TRUE即可
loadrunner SAP 脚本录制,需SAP userscript 设置true即可录制。
windows 2003 x64 sap setup
D:\soft\sap\SAP_GUI_710\NW_2004s_Presentation\PRES1\GUI\WINDOWS\WIN32\SapGuiSetup.exe
please switch your terminal server to install mode before running SAPsetup .You can do this using the commandline "change user/install" and reset to execute mode using "change user/ execute "after installation .
Do you want to correct your server mode Now ?
Microsoft Windows [版本 5.2.3790](C) 版权所有
Microsoft Corp.C:\Documents and Settings\Administrator&change user /install用户会话已准备好安装应用程序。C:\Documents and Settings\Administrator&change user /execute用户会话已准备好执行应用程序。C:\Documents and Settings\Administrator&
再次重启电脑,点NO后,安装界面出现了
windows 2003 x64 sap patch setup sap gui 7.10 patch patchlevel 13
D:\soft\sap\gui710_13-.exe
C:\Program Files (x86)\SAP\SapSetup\setup\SAL\SapLogon.s81
sap configuration
连接类型:自定义应用服务器
系统连接参数:
描述:my_sap_test
应用程序服务器:192.168.118.169
系统编号:00
系统标识:CRM
SAProute 字符串:null
loadrunner sap start sample
D:\Program Files (x86)\Mercury Interactive\Mercury LoadRunner\bin\LRLauncherApp.exe
-- File -- New Single Protocol Script -- SAPGUI -- OK
Start Recording
Applicatoin type:Win32 Applications
Program to record:D:\Program Files (x86)\SAP\SAPgui\saplogon.exe
Program arguments:null
Working directory:D:\Program Files (x86)\SAP\SAPgui
Recording into Action:Action
Record the application startup(勾选 pitch on)
sapgui_open_connection_ex("
/SAP_CODEPAGE=1100
192.168.118.169 00 /3 /UPDOWNLOAD_CP=2",
"s*****_SAP_test",
"con[1]");
sapgui_select_active_connection("con[1]");
sapgui_select_active_session("ses[0]");
sapgui_select_active_window("wnd[0]");
sapgui_window_maximize(
BEGIN_OPTIONAL,
"AdditionalInfo=sapgui104",
END_OPTIONAL);
lr_start_transaction("登陆信息");
/*Before running script, enter password in place of asterisks in logon function*/
lr_think_time(24);
sapgui_logon("wangqiang1",
BEGIN_OPTIONAL,
"AdditionalInfo=sapgui1017",
END_OPTIONAL);
// 这里登录密码默认为星号,可改为明文654321,运行ok
lr_think_time(4);
sapgui_tree_set_selected_node("CIC0 - 联系中心 WinClient",
BEGIN_OPTIONAL,
"AdditionalNodeInfo=收藏夹;CIC0 - 联系中心 WinClient",
"AdditionalInfo=sapgui1018",
END_OPTIONAL);
sapgui_tree_press_key("Enter",
BEGIN_OPTIONAL,
"AdditionalInfo=sapgui1019",
END_OPTIONAL);
lr_think_time(6);
sapgui_toolbar_press_button("??BP",
BEGIN_OPTIONAL,
"AdditionalInfo=sapgui1022",
END_OPTIONAL);
lr_think_time(44);
sapgui_set_text("姓 名",
BEGIN_OPTIONAL,
"AdditionalInfo=sapgui1025",
END_OPTIONAL);
sapgui_set_text("移动电话",
BEGIN_OPTIONAL,
"AdditionalInfo=sapgui1026",
END_OPTIONAL);
// 这里手机号可以参数化,以便下次能继续run ok
sapgui_set_text("Email",
BEGIN_OPTIONAL,
"AdditionalInfo=sapgui1027",
END_OPTIONAL);
sapgui_set_text("证件号码",
BEGIN_OPTIONAL,
"AdditionalInfo=sapgui1028",
END_OPTIONAL);
sapgui_set_focus(ctxtUSER1,
BEGIN_OPTIONAL,
"AdditionalInfo=sapgui1029",
END_OPTIONAL);
sapgui_send_vkey(F4,
BEGIN_OPTIONAL,
"AdditionalInfo=sapgui1031",
END_OPTIONAL);
lr_think_time(4);
sapgui_select_active_window("wnd[1]");
sapgui_window_scroll_to_row("0",
BEGIN_OPTIONAL,
"AdditionalInfo=sapgui1035",
END_OPTIONAL);
sapgui_set_focus(lbl1,
BEGIN_OPTIONAL,
"AdditionalInfo=sapgui1034",
END_OPTIONAL);
sapgui_send_vkey(F2,
BEGIN_OPTIONAL,
"AdditionalInfo=sapgui1038",
END_OPTIONAL);
lr_think_time(4);
sapgui_select_active_window("wnd[0]");
sapgui_send_vkey(ENTER,
BEGIN_OPTIONAL,
"AdditionalInfo=sapgui1042",
END_OPTIONAL);
lr_think_time(14);
sapgui_set_focus(cmbUSER1,
BEGIN_OPTIONAL,
"AdditionalInfo=sapgui1045",
END_OPTIONAL);
sapgui_select_combobox_entry("玄武区",
BEGIN_OPTIONAL,
"AdditionalInfo=sapgui1046",
END_OPTIONAL);
sapgui_select_combobox_entry("淮海路快递点",
"025021A",
BEGIN_OPTIONAL,
"AdditionalInfo=sapgui1049",
END_OPTIONAL);
lr_think_time(19);
sapgui_set_text("路/道/街",
"常府街 ",
BEGIN_OPTIONAL,
"AdditionalInfo=sapgui1052",
END_OPTIONAL);
sapgui_set_text("邮 编",
BEGIN_OPTIONAL,
"AdditionalInfo=sapgui1053",
END_OPTIONAL);
sapgui_set_focus(txtUSER6,
BEGIN_OPTIONAL,
"AdditionalInfo=sapgui1054",
END_OPTIONAL);
sapgui_press_button("保存",
BEGIN_OPTIONAL,
"AdditionalInfo=sapgui1056",
END_OPTIONAL);
sapgui_status_bar_get_text("paramStatusBarText",
BEGIN_OPTIONAL,
"Recorded status bar text: 业务合作伙伴
"AdditionalInfo=sapgui1059",
END_OPTIONAL);
lr_think_time(52);
sapgui_toolbar_press_button("????",
BEGIN_OPTIONAL,
"AdditionalInfo=sapgui1060",
END_OPTIONAL);
lr_end_transaction("登陆信息",LR_AUTO);
lr_start_transaction("创建辅助安装订单");
lr_think_time(34);
sapgui_set_text("ZCRMT_0100_BTX_UI02-ZZDQSPID",
ctxtZCRMT_0100_BTX_UI021,
BEGIN_OPTIONAL,
"AdditionalInfo=sapgui1063",
END_OPTIONAL);
sapgui_send_vkey(ENTER,
BEGIN_OPTIONAL,
"AdditionalInfo=sapgui1065",
END_OPTIONAL);
sapgui_select_active_window("wnd[1]");
sapgui_tree_set_hierarchy_header_width("135",
BEGIN_OPTIONAL,
"AdditionalNodeInfo=",
"AdditionalInfo=sapgui1068",
END_OPTIONAL);
sapgui_tree_select_item("SORG.1001, &Hierarchy",
"&Hierarchy",
BEGIN_OPTIONAL,
"AdditionalNodeInfo=销售 ( 唯一 );SORG.1001",
"AdditionalInfo=sapgui1069",
END_OPTIONAL);
sapgui_tree_scroll_to_item("SORG.1001, &Hierarchy",
"&Hierarchy",
BEGIN_OPTIONAL,
"AdditionalNodeInfo=销售 ( 唯一 );SORG.1001",
"AdditionalInfo=sapgui1070",
END_OPTIONAL);
sapgui_tree_set_checkbox("SORG.1001, &Hierarchy, True",
"&Hierarchy",
BEGIN_OPTIONAL,
"AdditionalNodeInfo=销售 ( 唯一 );SORG.1001",
"AdditionalInfo=sapgui1071",
END_OPTIONAL);
sapgui_press_button("确定
BEGIN_OPTIONAL,
"AdditionalInfo=sapgui1074",
END_OPTIONAL);
lr_think_time(34);
sapgui_select_active_window("wnd[0]");
sapgui_select_combobox_entry("保内",
cmbZCRMT_0100_BTX_UI021,
BEGIN_OPTIONAL,
"AdditionalInfo=sapgui1077",
END_OPTIONAL);
sapgui_select_combobox_entry("安装",
cmbZCRMT_0100_BTX_UI022,
BEGIN_OPTIONAL,
"AdditionalInfo=sapgui1078",
END_OPTIONAL);
sapgui_set_text("GS_CUSTOM_ADDR-TEL_NUMBER",
txtGS_CUSTOM_ADDR1,
BEGIN_OPTIONAL,
"AdditionalInfo=sapgui1079",
END_OPTIONAL);
sapgui_set_focus(ctxtGS_SERVICE_ORDER_H1,
BEGIN_OPTIONAL,
"AdditionalInfo=sapgui1080",
END_OPTIONAL);
sapgui_send_vkey(F4,
BEGIN_OPTIONAL,
"AdditionalInfo=sapgui1082",
END_OPTIONAL);
sapgui_select_active_window("wnd[1]");
sapgui_calendar_focus_date("",
BEGIN_OPTIONAL,
"AdditionalInfo=sapgui1085",
END_OPTIONAL);
sapgui_calendar_select_interval("-",
BEGIN_OPTIONAL,
"AdditionalInfo=sapgui1086",
END_OPTIONAL);
lr_think_time(10);
sapgui_select_active_window("wnd[0]");
sapgui_select_combobox_entry("上午",
cmbGS_SERVICE_ORDER_H1,
BEGIN_OPTIONAL,
"AdditionalInfo=sapgui1089",
END_OPTIONAL);
sapgui_set_focus(lblTEXT_01801,
BEGIN_OPTIONAL,
"AdditionalInfo=sapgui1090",
END_OPTIONAL);
sapgui_press_button("展开组织",
btnPB_ORG_EXPAND1,
BEGIN_OPTIONAL,
"AdditionalInfo=sapgui1092",
END_OPTIONAL);
lr_think_time(6);
sapgui_press_button("保存订单",
btnAA_BUT101,
BEGIN_OPTIONAL,
"AdditionalInfo=sapgui1095",
END_OPTIONAL);
sapgui_status_bar_get_text("paramStatusBarText",
BEGIN_OPTIONAL,
"Recorded status bar text: 事务
"AdditionalInfo=sapgui1098",
END_OPTIONAL);
// 上面可以精简成这样sapgui_status_bar_get_text("paramStatusBarText");
lr_end_transaction("创建辅助安装订单",LR_AUTO);
LoadRunner Java Vuser / loadrunner java properties 文件未部署到agent机器C盘特定temp目录里导致压测异常解决 / zhunianxi
loadrunner java exception
/ 业务测试脚本如下:
D:\TestCase\_datacenter_cassandra\tc_cassandra_GetResultMap_Batch\libra.perperties
com.s*****.libra.cassandra.hosts=10.27.15.71,10.27.15.72,10.27.15.73
com.s*****.cassandra.keyspace=libra
#com.s*****.libra.cassandra.hosts=10.27.39.206,10.27.39.208
#com.s*****.cassandra.keyspace=libra
D:\TestCase\_datacenter_cassandra\tc_cassandra_GetResultMap_Batch\tc_cassandra_GetResultMap_Batch.usr
* LoadRunner Java script. (Build: _build_number_)
* Script Description:
import lrapi.
import java.util.HashM
import java.util.L
import java.util.M
import java.util.Map.E
import com.s*****.libra.cassandra.GetResultC
import com.s*****.libra.client.LibraC
import com.s*****.libra.client.LibraClientI
public class Actions
public int init() throws Throwable {
}//end of init
public int action() throws Throwable {
lr.start_transaction("批量发送6条sql请求cassandra");
LibraClient c = new LibraClientImpl();
String epl = "&sql6&";
System.out.println(epl);
Map&String, String& groupByMap = new HashMap&String, String&();
groupByMap.put("time_slot", "");
c.getResultMap_Batch(epl, groupByMap, null, 2000,
new GetResultCallback() {
public void finish() {
public void callback(List&Map&String, String&& resultList) {
for (Map&String, String& map : resultList) {
for (Entry&String, String& e : map.entrySet()) {
System.out.print(e.getKey() + "
+ e.getValue() + " ;");
lr.end_transaction("批量发送6条sql请求cassandra", lr.AUTO);
}//end of action
public int end() throws Throwable {
}//end of end
D:\TestCase\_datacenter_cassandra\lib
252,828 antlr4-runtime-4.1.jar
281,694 bsh-2.0b4.jar
541,332 cassandra-driver-core-2.0.3.jar
322,362 cglib-nodep-2.2.jar
160,519 commons-dbcp-1.4.jar
60,686 commons-logging-1.1.1.jar
111,119 commons-pool-1.6.jar
2,833,724 db2jcc-9.5.3.jar
313,898 dom4j-1.6.1.jar
5,942,618 esper-s*****5.0.0-2.0.1.jar
316,907 fastjson-1.1.15.jar
2,228,009 guava-16.0.1.jar
31,284 jcommander-1.12.jar
245,039 junit-4.11.jar
10,123 libra-client-2.0.1.jar
118,121 libra-common-2.0.1.jar
481,535 log4j-1.2.16.jar
85,448 metrics-core-3.0.2.jar
875,336 mysql-connector-java-5.1.28.jar
1,231,993 netty-3.9.0.Final.jar
25,515 org.abego.treelayout.core-1.0.1.jar
23,445 slf4j-api-1.5.8.jar
8,620 slf4j-log4j12-1.4.2.jar
232,121 snakeyaml-1.6.jar
597,777 testng-6.3.1.jar
109,318 xml-apis-1.0.b2.jar
loadrunner java exception
/ loadrunner 场景测试异常报错如下:
D:\TestCase\_datacenter_cassandra\Scenario_tc_cassandra_GetResultMap_Batch.lrs
Error: System.err: java.lang.ExceptionInInitializerError
Error: java.lang.NoClassDefFoundError: Could not initialize class com.s*****.libra.client.Configuration
Error: at com.s*****.libra.client.LibraClientImpl.&init&(LibraClientImpl.java:33)
at Actions.action(Actions.java:27)
Error: System.err: Caused by: java.lang.NullPointerException
Error: at com.s*****.libra.client.LibraClientImpl.&init&(LibraClientImpl.java:33)
at Actions.action(Actions.java:27)
Caused by: java.lang.NullPointerException
at java.util.Properties$LineReader.readLine(Properties.java:418)
at java.util.Properties.load0(Properties.java:337)
at java.util.Properties.load(Properties.java:325)
at com.s*****.libra.client.Configuration.init(Configuration.java:40)
at com.s*****.libra.client.Configuration.&clinit&(Configuration.java:34)
... 2 more
查找loadrunner agent 机器的日志
\\10.19.95.1\c$\Documents and Settings\Administrator\Local Settings\Temp\brr_UiR.449\netdir\D\TestCase\_datacenter_cassandra\tc_cassandra_GetResultMap_Batch\res\log\tc_cassandra_getresultmap_batch_10.log
Start auto log messages stack - Iteration 1. [MsgId: MMSG-10545]
Starting action Actions. [MsgId: MMSG-15919]
Notify: Transaction "111" started. [MsgId: MMSG-16999]
System.err: java.lang.NoClassDefFoundError: Could not initialize class com.s*****.libra.client.Configuration
Error [MsgId: MMSG-17999]
System.err:
at com.s*****.libra.client.LibraClientImpl.&init&(LibraClientImpl.java:33)
Error [MsgId: MMSG-17999]
System.err:
at Actions.action(Actions.java:27)
Error [MsgId: MMSG-17999]
Error: java.lang.NoClassDefFoundError: Could not initialize class com.s*****.libra.client.Configuration [MsgId: MERR-17999]
at com.s*****.libra.client.LibraClientImpl.&init&(LibraClientImpl.java:33)
at Actions.action(Actions.java:27)
[MsgId: MERR-17999]
End auto log messages stack. [MsgId: MMSG-10544]
LoadRunner Java Vuser / loadrunner java properties 文件未部署到agent机器C盘特定temp目录里导致压测异常解决 / zhunianxi
/ phone_md5:772d13e62aa14a9b2c900b解决方法:找到loadrunner controller 把java 脚本传递 到loadrunner agent 机器的路径带有netdir的类似目录,找到后放入lira.properties文件,如下:
\\10.19.95.1\c$\Documents and Settings\Administrator\Local Settings\Temp\brr_UiR.449\netdir\D\TestCase\_datacenter_cassandra\tc_cassandra_GetResultMap_Batch\libra.properties
Narya性能测试(二) / Error (-17998): Failed to get [param not passed in call] thread TLS entry.
/blog/869744
本来想用LoaderRunner对Narya的网络性能再做一次测试,LR的java vuser可以直接用java来编写测试脚本,本来还是挺方便的,但是不知道为什么脚本一跑起来就报这么个错:
Error (-17998): Failed to get [param not passed in call] thread TLS entry.
实在是有点郁闷的,网上搜索了很久也没找到个所以然,只是有人模模糊糊的指出,有可能是LR的java vuser脚本不支持多线程。想来也是,LR是靠license的并发数来卖钱的,如果你一个vuser可以开多个线程,每个vuser开100个线程,那一个100人的license就可以当1万人来用了,但我们narya的一个client本身就要开几个线程,看来是无法用LR来测了。
好在开源的社区里还有一个叫JMeter的性能测试工具。我们希望通过工具能够更灵活的来配置我们的测试用例,包括并发用户数,每个用户发送的请求数,和每个请求之间的间隔时间等。JMeter内置了一种叫做java sampler的sampler,我们需要继承AbstractJavaSamplerClient这个类,实现它的下面这个方法。
public SampleResult runTest(JavaSamplerContext javasamplercontext)
JAVA连接SAP配置(LIB包在SAP LIB中)
D:\lr&tree /f 卷 data 的文件夹 PATH 列表卷序列号为 C8CE-1864D:.├─bin│
librfc32.dll│
sapjco3.dll│
sapjcorfc.dll└─classes
sapjco.jar
snf-sap-jco-3.0.8.jar
D:\&lr\classes\sapjco.jar
Manifest-Version: 1.0Ant-Version: Apache Ant 1.6.4Created-By: 1.3.1_18-b01 (Sun Microsystems Inc.)Specification-Title: SAP Java ConnectorSpecification-Version: 2.1.7Specification-Vendor: SAP AG, WalldorfImplementation-Title: com.sap.mw.jcoImplementation-Version: 7 [2.1.7 ()]Implementation-Vendor-Id: com.sapImplementation-Vendor: SAP AG, WalldorfMain-Class: com.sap.mw.jco.About
D:\&lr\classes\snf-sap-jco-3.0.8.jar
Manifest-Version: 1.0Archiver-Version: Plexus ArchiverCreated-By: Apache MavenBuilt-By: Build-Jdk: 1.6.0_29Main-Class: com.sap.conn.jco.rt.About
sapjco-linuxintel-2.1.8.tgz
H:\projects\sap_jco\sapjco-linuxintel-2.1.8&ls -ltotal 8965-rw-rw-rw-
2007 Readme.txtdrwxrwxrwx
0 Apr 25 18:22 demodrwxrwxrwx
0 Apr 25 18:22 docs-rw-rw-rw-
5046073 Jan
2007 librfccm.so-rw-rw-rw-
3827533 Jan
2007 libsapjcorfc.so-rw-rw-rw-
304418 Jan
2007 sapjco.jar1)SUN JDK1.5(API 运行) WINDOWS
把librfc32.dll,sapjcorfc.dll放入WINDOWS SYSTEM32目录下项目中引用sapjco.jar。LINUX
把librfccm.so,libsapjcorfc.so 放入任意目录并且在.brash.rc文件中引入环境变量。项目中引用sapjco.jar。2)IBM WEBSPHERE JDK1.5(WEB 运行)LINUX把librfccm.so,libsapjcorfc.so 放入IBM/WebSphere/AppServer/bin中并在.brash.rc文件中引入该目录环境变量。在IBM/WebSphere/AppServer/lib/中加入sapjco.jar。
测试环境是否成功:bash-2.05b# /export/home/oracle/midtier/jdk/jre/bin/java -jar sapjco.jar -stdout
Loadrunner8.1 + JDK1.5如何解决System Exceptions: EXCEPTION_ACCESS_VIOLATION
/?uid-114582-action-viewspace-itemid-234320
Vuser协议的遇到Exception was raised when calling abort-cleanup function in extension java_int.dll: System Exceptions: EXCEPTION_ACCESS_VIOLATION问题,现讲解下这个问题的解决方法。
首先,保证纯净的
我 之前装的是Loadrunner9.5,准备配JDK1.6,最后怎么都是报错,然后采用Loadrunner8.1 + JDK1.5问题依旧,最后重装了系统,采用Loadrunner8.1 + JDK1.5问题解决。连网上说的A_lrunner_java_protocol_fixes_Feb_05.exe的补丁也未打。
/topics/download/7aa3-382e-a729-0e03cec0417e
/ddimg/uploadsoft//LR_java.zip
其次:确认JDK环境变量是否正确设置xp下配置JDK环境变量:
1.安装JDK,安装过程中可以自定义安装目录等信息,例如我们选择安装目录为D:\java\jdk1.5.0_08;  2.安装完成后,右击“我的电脑”,点击“属性”;
3.选择“高级”选项卡,点击“环境变量”;
4.在“系统变量”中,设置3项属性,JAVA_HOME,PATH,CLASSPATH(大小写无所谓),若已存在则点击“编辑”,不存在则点击“新建”;
5.JAVA_HOME指明JDK安装路径,就是刚才安装时所选择的路径D:\java\jdk1.5.0_08,此路径下包括lib,bin,jre等文件夹(此变量最好设置,因为以后运行tomcat,eclipse等都需要依*此变量);
Path使得系统可以在任何路径下识别java命令,设为:%JAVA_HOME%\%JAVA_HOME%\jre\bin 
CLASSPATH为java加载类(class or lib)路径,只有类在classpath中,java命令才能识别,设为:.;%JAVA_HOME%\lib\dt.%JAVA_HOME%\lib\tools.jar (要加.表示当前路径)  %JAVA_HOME%就是引用前面指定的JAVA_HOME;
6.“开始”-&;“运行”,键入“cmd”;
7.键入命令“java -version”,“java”,“javac”几个命令,出现画面,说明环境变量配置成功;
8. DOS中查看相关环境变量是否正常显示echo %path%,echo %classpath%,echo %java_home%。
再则,相关的Class有没有Import进去。
保证上面三步,就可以解决System Exceptions: CEPTION_ACCESS_VIOLATION报错问题。
[原创]如何解决LodRunner中报错关于Error -10489 : Exception was raised when calling per-thread-terminate function
/mayingbao/archive//410708.html
[原创]如何解决LodRunner中报错关于Error -10489 : Exception was raised when calling per-thread-terminate function   在用Loadrunner实施性能测试时,采用Goal模式加压,存在如果持续长时加压时LoadRunner的Controller会报 Error -10489 : Exception was raised when calling per-thread-terminate function错误;  问题产生原因:
Unlike the earlier Windows versions, Windows 2000 and Windows XP have the default environment set to C:\Document and Settings\&user-name&\Local Settings\Temp instead of C:\Windows\temp. This long path with a space can cause several problems for LoadRunner. To resolve the issue, change to a directory without empty spaces.   解决方法:
在C盘(或是其它盘均可以)新建TEMP文件夹(为了后续设置临时文件准备)
右键"我的电脑"-&高级-&环境变量-&编辑修改TEMP变量目录,指身上面新建的目录,如我的指向C:\TEMP-&保存即可^_^
SAP ATP 应用服务负载均衡 192.168.40.224 test
/thread-913-1-1.html
/%BD%A3%CA%A5_%B7%A8%CA%A6/blog/item/d8b5c23ac763fe.html
共两步,一是服务器的设置,二是客户端登陆设置。先在SAP中使用SMLG 进行服务器分组。实例名是SAP系统中定义过的,你没法删也没改。。我们先建一个Group,然后给Group命名为X,把实例加到组中。服务器的配置就这么简单。下面在用户端设置SAP message服务器,为下一步作准备。填入以上信息,如果出现1处的错误信息,那么需要执行以下步骤设定Service端口映射:SAP登陆时会从Windows的service文件中获取服务名称,需要在这个文件中指定service名称与端口映射,在%systemroot%\system32\drivers\etc\中打开文件services并在其最后加入一行:sapmsCID
SID是SAP系统的SID(系统ID)号码,需要被替换为你自己的,在SID与3600中的间隔推荐用Tab键而不是使用空格分隔,如果讯息服务器填的是主机名,并且没有DNS来解析,那么还需要在上面指定的目录中的hosts文件中加入IP到主机名的映射注意:从理论上讲(自已想像的),SAPGUI总是连接到SAP message服务器,message服务器则判断当前各服务器的响应时间,哪台响应时间最短,则让GUI连到哪台。如果你发现你的服务器配配置都差不 多,但GUI很多都连在一台服务器上,那说明另一台响应时间有点问题需要调整了。你随时可以通过AL08查看各服务器的登陆情况,也可以通过SMLG按 F5查看各服务器的响应时间。可能遇到的问题1、在给用户配置客户端登陆时,系统标识中输入PRD,但无法解析出IP。解决:未配置消息服务器,请更改sapmsg.ini文件。2、系统标识中输入PRD后,无法选择组服务器,出现一个错误提示,还是乱码的原因没找到,估计是service文件中某些通讯端口设置有问题,造成无法与message服务器通信,当然也就没法选择组服务器了。解决:从其他正常的机器上找到windows安装目录下的system32\drivers\etc下的service文件,拷一个过来覆盖就好。
JCO连接怪现象
/problems/3667
这两天用JCO做个接口从数据库导数据进R/3
昨天调好得程序今天来调试结果报如下异常,JCO连接也不起作用了
Exception in thread "DefaultQuartzScheduler_Worker-4" java.lang.ExceptionInInitializerError: JCO.classInitialize(): Could not load middleware layer 'com.sap.mw.jco.rfc.MiddlewareRFC'
JCO.nativeInit(): Could not initialize dynamic link library sapjcorfc [no sapjcorfc in java.library.path]. java.library.path [C:\Program Files\Java\jdk1.5.0_06\C:\Tomcat 5.5\bin]
貌似是说librfc32.dll sapjcorfc.dll两个动态库得问题。
开始我没注意,我采用在类里面嵌入web测试,发现我得SAP配置是正确得,也能正常插入数据,为什么在web容器里面就跑不起来,应说我的两个库文件不在还是怎么着。
无奈之下只有将这两个库文件外加sapjco.jar一起粘贴进
C:\Program Files\Java\jdk1.5.0_06\bin
C:\Tomcat 5.5\bin
结果程序跑起来了…………
Call BAPI with SAP Enterprise Connector Guide
/blog/412107
This document is step by step guide on how to calling BAPI in Java with SAP Enterprise connector.
SAP BAPI is remote enabled function module, and we can call it with JCO library.
SAP Enterprise Connector is a wizard to generate proxy code for calling remote function module.
1.Install NWDS
First download NWDS from SDN, SAP NetWeaver Composition Environment 7.1 SR5 - Trial Version
You should register an account in SDN first.
Extract downloaded files to temp folder. Then install NWDS follow the installation instruction..
2.Create Java Project
Start Netweaver Development Studio, create Java project.
Add related library to build path:
3.Create proxy class with SAP Enterprise Connector
Select the function module , and click Finish button, Waiting for NWDS will generate proxy codes.
4.Test generated proxy class
JCO.Client jcoClient =
JCO.createClient(
"CP.WANG",
"justin65",
"/H//H/sapecc",
jcoClient.setProperty("jco.client.codepage", "4110");
CompanyCode_PortType proxy = new CompanyCode_PortType();
proxy.messageSpecifier.setJcoClient(jcoClient);
jcoClient.connect();
Bapi_Companycode_Getlist_Input input = new Bapi_Companycode_Getlist_Input();
Bapi_Companycode_Getlist_Output output = proxy.bapi_Companycode_Getlist(input);
Bapi0002_1Type[] codes = output.getCompanycode_List();
if(codes!=null && codes.length& 0){
int len = codes.
for(int i=0;i&i++){
System.out.printf("%-10s", codes[i].getComp_Code());
System.out.print(new String(new String(codes[i].getComp_Name()).getBytes("UTF-8"),"GBK"));
System.out.println();
} catch (ApplicationFaultException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (SystemFaultException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}catch (UnsupportedEncodingException e) {
// TODO Auto-generated catch block
e.printStackTrace();
jcoClient.disconnect();
1.Exception:RFC_ERROR_COMMUNICATION
Exception in thread "main" com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: SAP_CMINIT3 : rc=20 & Connect to SAP gateway failed
Connect_PM
GWHOST=sapecc, GWSERV=sapgw01, SYSNR=01
CPIC (TCP/IP) on local host
hostname 'sapecc' unknown
Sat Jun 20 16:08:59 2009
NI (network interface)
NiPGetHostByName: 'sapecc' not found
SYSTEM CALL getaddrinfo
at com.sap.mw.jco.rfc.MiddlewareRFC$Client.nativeConnect(Native Method)
at com.sap.mw.jco.rfc.MiddlewareRFC$Client.connect(MiddlewareRFC.java:1125)
at com.sap.mw.jco.JCO$Client.connect(JCO.java:3138)
at com.rfc.test.RFCTest.main(RFCTest.java:36)
Solution: When you connect to SAP system in java with JCO.Client , if you want to use SAP router string , please replace SAP host name with “/Hrouter_string/Hhostname” format.
2. Exception :
java.lang.ExceptionInInitializerError: JCO.classInitialize(): Could not load middleware layer 'com.sap.mw.jco.rfc.MiddlewareRFC'
JCO.nativeInit(): Could not initialize dynamic link library sapjcorfc [no sapjcorfc in java.library.path]. java.library.path [C:\Program Files\Java\jdk1.6.0_11\jre\.;C:\WINDOWS\Sun\Java\C:\WINDOWS\system32;C:\WINDOWS;E:\oracle\product\10.2.0\db_1\C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\WC:\Programiles\Java\jdk1.6.0_11\;D:\OpenSource\apache-ant-1.7.0\D:\Program Files\MySQL\MySQL Server 5.0\bin ]
at com.sap.mw.jco.JCO.&clinit&(JCO.java:776)
at com.rfc.test.RFCTest.getCmp(RFCTest.java:62)
at panyPanel.setData(CompanyPanel.java:28)
at desktopapplication1.DesktopApplication1View.showCompanyCode(DesktopApplication1View.java:248)
Solution: Copy sapjcorfc.dll, librfc32.dll into C:\Windows\System32, these files exist in SAP JCO library, and you could download from SAP Service Market Place, quick link connectors.
/generic/0,295582,sid21_gci.html
Read reference of JCO before programming. Follow the install guide of JCO library.
SAP_JCO登录参数:
logonProperties.setProperty("jco.client.client",
// 800 PRE 系统
logonProperties.setProperty("jco.client.user",
""); // atp
logonProperties.setProperty("jco.client.passwd", "");// 654321
logonProperties.setProperty("jco.client.ashost",
"10.19.250.5");
logonProperties.setProperty("jco.client.mshost",
"10.19.250.5");
logonProperties.setProperty("jco.client.group",
"atp_grp");// load
I005接口: ZIMS_MM_ORIGIN
inTable.setValue("&cmmdtyCode&", "CMMDTY_CODE");//按照提供文件
inTable.setValue("&PLANT_CODE&", "PLANT_CODE");//按照提供文件
inTable.setValue("0001", "INV_LOCAT");//按照提供文件
inTable.setValue("71000&SERIAL_NO&", "SERIAL_NO"); // 和单据号一样递增20位
inTable.setValue("SAP", "SRC_SYS");// 固定
inTable.setValue("PO", "DOC_TYPE");// 固定
inTable.setValue("&DOC_NO&", "DOC_NO");// 和流水号相同递增20位
inTable.setValue("10", "DOC_ITEM");// 固定
inTable.setValue("", "BATCH_NO");// 按照提供文件
inTable.setValue("10", "CMMDTY_QTY");// 固定
inTable.setValue("&ReqDate&", "REQUEST_DATE");//固定
inTable.setValue("NEW", "OPERATION_TYPE");// 固定
问题1-------------------------------------
D:\TestCase\_sap_kucun
Virtual User Script started at :
Starting action vuser_init.
Error: System.err: java.lang.ExceptionInInitializerError: JCO.classInitialize(): Could not load middleware layer 'com.sap.mw.jco.rfc.MiddlewareRFC'
JCO.nativeInit(): Could not initialize dynamic link library sapjcorfc [no sapjcorfc in java.library.path]. java.library.path [C:\Program Files\HP\LoadRunner\.;C:\Documents and Settings\Administrator\WINDOWS\Sun\Java\C:\WINDOWS\system32;C:\Documents and Settings\Administrator\WINDOWS;C:\Program Files\Java\jdk1.6.0_10\jre\bin\C:\PROGRA~1\HP\LOADRU~1\C:\PROGRA~1\HP\LOADRU~1\bin\C:\PROGRA~1\HP\LOADRU~1\bin\tulip\C:\Program Files\Java\jdk1.6.0_10\C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\WC:\strawberry\c\C:\strawberry\perl\C:\Program Files\TortoiseSVN\C:\Program Files\SinoVoice\jTTS 5.0 Desktop\BC:\Program Files\Java\jdk1.6.0_10\D:\PROGRA~1\db2\BIN;D:\PROGRA~1\db2\FUNCTION;D:\PROGRA~1\db2\SAMPLES\REPL;C:\Documents and Settings\Administrator\WINDOWS;]
System.err: at com.sap.mw.jco.JCO.&clinit&(JCO.java:776)
System.err: at Actions.init(Actions.java:36)
Error: java.lang.ExceptionInInitializerError: JCO.classInitialize(): Could not load middleware layer 'com.sap.mw.jco.rfc.MiddlewareRFC'
JCO.nativeInit(): Could not initialize dynamic link library sapjcorfc [no sapjcorfc in java.library.path]. java.library.path [C:\Program Files\HP\LoadRunner\.;C:\Documents and Settings\Administrator\WINDOWS\Sun\Java\C:\WINDOWS\system32;C:\Documents and Settings\Administrator\WINDOWS;C:\Program Files\Java\jdk1.6.0_10\jre\bin\C:\PROGRA~1\HP\LOADRU~1\C:\PROGRA~1\HP\LOADRU~1\bin\C:\PROGRA~1\HP\LOADRU~1\bin\tulip\C:\Program Files\Java\jdk1.6.0_10\C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\WC:\strawberry\c\C:\strawberry\perl\C:\Program Files\TortoiseSVN\C:\Program Files\SinoVoice\jTTS 5.0 Desktop\BC:\Program Files\Java\jdk1.6.0_10\D:\PROGRA~1\db2\BIN;D:\PROGRA~1\db2\FUNCTION;D:\PROGRA~1\db2\SAMPLES\REPL;C:\Documents and Settings\Administrator\WINDOWS;]
Error: at com.sap.mw.jco.JCO.&clinit&(JCO.java:776)
at Actions.init(Actions.java:36)
Failed to get file name and line of the script for failed transaction "vuser_init_Transaction".
Abort was called from an action.
Virtual User Script started at :
Starting action vuser_init.
Ending action vuser_init.
Running Vuser...
Starting iteration 1.
Starting action Actions.
Notify: Transaction "getTotalExecTime" started.
Notify: Transaction "getRepository" started.
Error: System.out: Exception:Connect to message server failed
Connect_PM
MSHOST=10.19.250.5, R3NAME=ATE, GROUP=atp_grp
CPIC (TCP/IP) on local host
service 'sapmsATE' unknown
Tue Apr 15 15:09:14 2014
NI (network interface)
NiPGetServByName2: service 'sapmsATE' not found
SYSTEM CALL getservbyname_r
Error: Exception:Connect to message server failed
Connect_PM
MSHOST=10.19.250.5, R3NAME=ATE, GROUP=atp_grp
CPIC (TCP/IP) on local host
service 'sapmsATE' unknown
Tue Apr 15 15:09:14 2014
NI (network interface)
NiPGetServByName2: service 'sapmsATE' not found
SYSTEM CALL getservbyname_r
Ending action Actions.
Ending iteration 1.
Ending Vuser...
Starting action vuser_end.
Error: Vuser started transaction "getRepository", but did not reached a corresponding end transaction statement. The transaction ended automatically with status 'fail'.
Notify: Transaction "getRepository" ended with "Fail" status (Duration: 0.0951).
Error: Vuser started transaction "getTotalExecTime", but did not reached a corresponding end transaction statement. The transaction ended automatically with status 'fail'.
Notify: Transaction "getTotalExecTime" ended with "Fail" status (Duration: 0.0977).
Ending action vuser_end.
Vuser Terminated.
把sapjco.jar放入脚本环境变量如下图
/upload/attachment//f0da37-3ec91.png
把sapjcorfc.dll和librfc32.dll放入C:\Program Files\HP\LoadRunner\bin\
/problems/3667
/blog/412107
问题2-----------------------------------------------------------
Virtual User Script started at :
Starting action vuser_init.
Ending action vuser_init.
Running Vuser...
Starting iteration 1.
Starting action Actions.
Notify: Transaction "getTotalExecTime" started.
Notify: Transaction "getRepository" started.
Error: System.out: Exception:Connect to message server failed
Connect_PM
MSHOST=10.19.250.5, R3NAME=ATE, GROUP=atp_grp
CPIC (TCP/IP) on local host
service 'sapmsATE' unknown
Tue Apr 15 15:09:14 2014
NI (network interface)
NiPGetServByName2: service 'sapmsATE' not found
SYSTEM CALL getservbyname_r
Error: Exception:Connect to message server failed
Connect_PM
MSHOST=10.19.250.5, R3NAME=ATE, GROUP=atp_grp
CPIC (TCP/IP) on local host
service 'sapmsATE' unknown
Tue Apr 15 15:09:14 2014
NI (network interface)
NiPGetServByName2: service 'sapmsATE' not found
SYSTEM CALL getservbyname_r
Ending action Actions.
Ending iteration 1.
Ending Vuser...
Starting action vuser_end.
Error: Vuser started transaction "getRepository", but did not reached a corresponding end transaction statement. The transaction ended automatically with status 'fail'.
Notify: Transaction "getRepository" ended with "Fail" status (Duration: 0.0951).
Error: Vuser started transaction "getTotalExecTime", but did not reached a corresponding end transaction statement. The transaction ended automatically with status 'fail'.
Notify: Transaction "getTotalExecTime" ended with "Fail" status (Duration: 0.0977).
Ending action vuser_end.
Vuser Terminated.
解决:数据源sapmsATE 无法连通,库存中心 SIMS/
打开文件:C:\WINDOWS\system32\drivers\etc\services
添加内容:
sapmsPMP 3600/tcp # 价格生产机
# 物流预生产
sapmsATE 3600/tcp # 库存预生产
问题3----------------------------
Virtual User Script started at :
Starting action vuser_init.
Ending action vuser_init.
Running Vuser...
Starting iteration 1.
Starting action Actions.
Notify: Transaction "getTotalExecTime" started.
Notify: Transaction "getRepository" started.
Error: System.out: Exception:Connect to message server failed
Connect_PM
MSHOST=10.19.250.5, R3NAME=PRE, GROUP=atp_grp
CPIC (TCP/IP) on local host
service 'sapmsPRE' unknown
Tue Apr 15 15:18:01 2014
NI (network interface)
NiPGetServByName2: service 'sapmsPRE' not found
SYSTEM CALL getservbyname_r
Error: Exception:Connect to message server failed
Connect_PM
MSHOST=10.19.250.5, R3NAME=PRE, GROUP=atp_grp
CPIC (TCP/IP) on local host
service 'sapmsPRE' unknown
Tue Apr 15 15:18:01 2014
NI (network interface)
NiPGetServByName2: service 'sapmsPRE' not found
SYSTEM CALL getservbyname_r
Ending action Actions.
Ending iteration 1.
Ending Vuser...
Starting action vuser_end.
Error: Vuser started transaction "getRepository", but did not reached a corresponding end transaction statement. The transaction ended automatically with status 'fail'.
Notify: Transaction "getRepository" ended with "Fail" status (Duration: 0.1366).
Error: Vuser started transaction "getTotalExecTime", but did not reached a corresponding end transaction statement. The transaction ended automatically with status 'fail'.
Notify: Transaction "getTotalExecTime" ended with "Fail" status (Duration: 0.1415).
Ending action vuser_end.
Vuser Terminated.
解决:数据源sapmsPRE 无法连通库存中心 SIMS/ATE
打开文件:C:\WINDOWS\system32\drivers\etc\services
添加内容:
sapmsPMP 3600/tcp # 价格生产机
# 物流预生产
sapmsATE 3600/tcp # 库存预生产
sapmsPRE 3600/tcp # 库存预生产
loadrunner sap exception
问题:loadrunner 录制SAP界面客户端脚本时,发现录制到SAP 数据表横向滚动条定位不到的情况
解决:loadrunner 录制SAP界面,不用手动拖拽横向滚动条,需要点击SAP自开发的下一条数据的按钮。
loadrunner web转javavUser协议的脚本的方法:
1、录制web协议脚本,将Action.c放到一个目录下(可以改名字也可以不改)
2、采用LR的bin目录下的命令:
C:\Program Files\HP\LoadRunner\bin\sed -f web to java.sed D:\web.txt & D:\java.txt
3、生成一个txt文件里面是java协议的脚本;结合java基础写邮件
Loadrunner C
loadrunenr 测试机内存泄露解决
/upload/attachment/60f773-44b3-300a-af15-d682a6830e6b.png
/upload/attachment/8d7b-9811-ad.png
loadrunner测试机内存泄露原始脚本.zip
/topics/download/a439142b-e7bf-393c-b397-6bf26c7d12f3
loadrunner测试机内存泄露修改后脚本
D:\TestCase\c_search_click\tc_ad_cpc_searchclick_\tc_ad_cpc_searchclick_.usr
// 此处多余删除,压测时导致测试机内存泄露,
char str[300];
web_reg_find("Fail=NotFound",
"Search=Body",
"SaveCount=aa",
"Text=jsonpCallback",
web_set_max_html_param_len("1024"); //保存长字符串为关联使用
web_reg_save_param_ex(
"ParamName=goods",
//抓到搜索页面里商品URL
"LB=\"apsClickUrl\":\"",
"RB=\",\"cmdPrice\"",
"Ordinal=all",
"NotFound=warning",
// 商品搜索允许搜索不到数据
SEARCH_FILTERS,
lr_start_transaction("tran_Search");
web_url("cpc_data.html",
"URL=s*****.com/getCpcDatas?keyword={keyword}&positionID=&inputCpcNumbers=13&inputTime=",
//"URL=s*****.com/getCpcDatas?keyword={keyword}&positionID=&inputCpcNumbers=13",
"TargetFrame=",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t8.inf",
"Mode=HTML",
lr_end_transaction("tran_Search", LR_AUTO);
//搜索50次点击1次
if(atoi(lr_eval_string("{goods_count}"))!= 0){
//countHaveGoods++;
num = rand()%50 + 1;
// 得到1-50的随机值
if(num == 1){
//当随机到1时进行下面的点击操作业务
//countClick++;
temp=lr_paramarr_random("goods");
//此处多余删除,压测时导致测试机内存泄露
lr_save_string(temp,"str");
//此处多余删除,压测时导致测试机内存泄露
lr_save_string(lr_paramarr_random("goods"),"str");
lr_start_transaction("click");
web_url("cpc_data.html",
"URL={str}",
//抓到搜索页面里商品URL,然后点击
"TargetFrame=xxxx",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t8.inf",
"Mode=HTML",
lr_end_transaction("click", LR_AUTO);
//lr_user_data_point("countClick/countHaveGoods",countClick*1.0/countHaveGoods);
//lr_user_data_point("countClick",countClick);
从一个脚本谈loadrunner的脚本初始化
http://www.blogjava.net/qileilove/archive//410079.html
昨天一个同事请我一个问题,在下列代码中如何将 InputStream is 这个元素只初始化一次呢?
* LoadRunner Java script. (Build: _build_number_)
* Script Description:
import lrapi.
import java.io.F
import java.io.FileInputS
import java.io.InputS
import mon.io.ByteS
import com.jd.jfs.JingdongFileS
public class Actions
File file = new File("C:/8K.file");
InputStream is = // 返回一个byte数组&pre code_snippet_id="145362" snippet_file_name="blog__8044261" name="code" class="java"&
byte[] fileBytes = new byte[(int) file.length()];
// 创建一个数据来保存文件数据
JingdongFileSystem jfs =new JingdongFileSystem();
public int init() throws Throwable {
is = new FileInputStream(file);
ByteStreams.readFully(is, fileBytes);
is.close();
//jfs = new JingdongFileSystem();
} //end of init
public int action() throws Throwable {
lr.start_transaction("jfs-w");
String key = jfs.writeBytes(fileBytes);
System.out.println(key);
} catch (Exception e) {
e.printStackTrace();
lr.end_transaction("jfs-w", lr.AUTO);
}//end of action
public int end() throws Throwable {
}//end of end
我们知道,在loadrunner的java_vuser协议的脚本中,init方法在每个vuer初始化的时候都会被执行一次,换句话说N个用户就会被执行N次,所以上面的脚本中inputStream对象会被初始化N次。我随即做了如下修改
File file = new File("C:/8K.file");
static InputStream is =
// 返回一个byte数组  &span style="color: #ff0000; "&
&/span&    byte[] fileBytes = new byte[(int) file.length()];
// 创建一个数据来保存文件数据
JingdongFileSystem jfs =new JingdongFileSystem();
public int init() throws Throwable {
if(is==null){
is = new FileInputStream(file);
ByteStreams.readFully(is, fileBytes);
is.close();
//jfs = new JingdongFileSystem();
}//end of init
理论上来说,上述代码实现了单例模式。但是这个脚本并发下无效。。。 经过和开发探讨最终换了以下的代码来处理:
File file = new File("C:/8K.file");
fileBytes = new byte[(int) file.length()];
// 创建一个数据来保存文件数据
InputStream is = new FileInputStream(file);
ByteStreams.readFully(is, fileBytes);
is.close();
} catch (Exception e) {
e.printStackTrace();
jfs = new JingdongFileSystem();
静态初始化块:使用static定义,当类装载到系统时执行一次.若在静态初始化块中想初始化变量,那仅能初始化类变量,即static修饰的数据成员. 总结一下: 在java_vuser协议的脚本中: 1. vuser_init模块始终不会被执行; 2. init方法会被初始化合并发数相同的次数 3. 如果想实现多个并发用户公用一个变量,请使用静态初始化块。
下载次数: 6
(424.6 KB)
下载次数: 9
下载次数: 24
(354.9 KB)
下载次数: 14
下载次数: 24
(975.8 KB)
下载次数: 10
下载次数: 17
下载次数: 9
下载次数: 12
(746.2 KB)
下载次数: 4
下载次数: 9
(232.5 KB)
下载次数: 1
(781.4 KB)
下载次数: 4
siemens800
浏览: 756784 次
来自: 南京
非常不错,多谢了。。
写了这么多
ed2k://|file|LoadRunner.V8.1.is ...
谢谢你提供的sapjcorfc,我找了好多地方

我要回帖

更多关于 set item property 的文章

 

随机推荐