LoadRunner脚本中strstr、strcmp的使用
strstr、strcmp
char *strstr( const char *string1, const char *string2 );
int strcmp( const char *string1, const char *string2 );
if(strstr)lr_eval_string("{Error_Code}"),"0000") !== NULL)
{
}else
{
}
if(strcmp(lr_eval_string("{Error_Code}"),"0000")==0)
{
}else
{
}