?????????????????????????????????????????????????
????Step3??Loadrunner??????????дд???
????1?????libmysql.dll????????
????2???????????????????
????3??vuser_init

 

vuser_init()
{
index = 0;
MySqlInit();  // ??????????
return 0;
}

????4??vuser_end

 

vuser_end()
{
MySqlUnit();  // ???????
return 0;
}

????5??Action

 

Action()
{
int resultValue;
char cIndex[10];
char onceAccount[1024];
char insertQuery[22584];
index = index +1;
// ????????????sql???
strcpy(insertQuery?? "INSERT INTO `t3db`.`role`(GroupID?? RoleName?? Account?? BaseInfo?? ExtInfo?? LastModify) VALUES('1'?? '");
strcat(insertQuery?? lr_eval_string("{Account}"));
strcat(insertQuery?? itoa(index?? cIndex?? 10 ));
strcat(insertQuery?? "'?? 'q1031'?? '111'?? '111'??'2013-02-28 20:42:33')");
strcat(insertQuery?? ";