|
在用loadrunner录制tuxedo脚本后,打开脚本,找不到应该参数化的登录用户名和密码,请问大家有知道怎么对tuxedo脚本做参数化的嘛?脚本如下:
#include "lrt.h"
#include "replay.vdf"
vuser_init()
{
lrt_set_env_list(env_allow_array);
lrt_tuxputenv("WSNADDR=//10.3.102.21:9503");
/* old format: lrt_tuxputenv("WSNADDR=0x0002251f0a036615"); */
lr_think_time(1);
tpresult_int = lrt_tpinitialize(LRT_END_OF_PARMS);
lrt_abort_on_error();
data_0 = lrt_tpalloc("XML", "", 171);
/* Request XML buffer 1 */
lrt_memcpy(data_0, sbuf_1, 172);
lrt_display_buffer("sbuf_1", data_0, 172, 172);
data_1 = lrt_tpalloc("CARRAY", "", 1024000);
tpresult_int = lrt_tpcall("F44",
data_0,
171,
&data_1,
&olen,
TPNOTIME);
/* Reply CARRAY buffer 1 */
lrt_display_buffer("rbuf_1", data_1, olen, 45);
lrt_abort_on_error();
lrt_tpterm();
lrt_tpfree(data_0);
lrt_tpfree(data_1);
tpresult_int = lrt_tpinitialize(LRT_END_OF_PARMS);
lrt_abort_on_error();
data_0 = lrt_tpalloc("XML", "", 171); |
|