【软件性能测试-LoadRunner实战技能 7】== 使用LoadRunner测试TUXEDO-003

   D.编辑Vuser脚本。我们在C中做的所有操作都被录了下来,记录到一个脚本文件中,其内容如下,我们把它存为simpapp。

 

 

 

 脚本内容如下:

/* This file is generated by LoadRunner. You may edit it carefully! */
#include "lrt.h"
#include "replay.vdf"

Actions()
{
lrt_tuxputenv("WSNADDR=//172.22.32.25:7110");

lr_think_time(3);
tpresult_int = lrt_tpinitialize(LRT_END_OF_PARMS);
lrt_abort_on_error();
data_0 = lrt_tpalloc("STRING", "", 1);

/* Request STRING buffer 1 */
lrt_strcpy(data_0, sbuf_1);
data_1 = lrt_tpalloc("STRING", "", 1);
tpresult_int = lrt_tpcall("TOUPPER",
data_0,
0,
&data_1,
&olen,
0);
/* Reply STRING buffer 1 */
lrt_abort_on_error();

lrt_tpfree(data_0);
lrt_tpfree(data_1);
lrt_tpterm();

return 0;
}

你可能感兴趣的:(String,测试,File,脚本,buffer,loadrunner)