"Name=imsi", "Value={IMSI}", ENDITEM,
LAST);
//比较预期值和实际值是否相等
result=strcmp(lr_eval_string("{YQJG}"),lr_eval_string("{filecontent}"));
if ( result == 0 )
{
strcpy(V_testres,"通过");
}
else
{
strcpy(V_testres,"失败");
}
strcpy(V_Result,"
//写入测试参数
strcat(V_Result,V_imsi);
strcat(V_Result,"
strcat(V_Result,"
//写入预期结果
strcat(V_Result,lr_eval_string("{YQJG}"));
strcat(V_Result,"
strcat(V_Result,"
//写入实际结果
strcat(V_Result,lr_eval_string("{filecontent}"));
strcat(V_Result,"
strcat(V_Result,"
//写入测试是否通过
strcat(V_Result, V_testres);
strcat(V_Result,"
fputs(V_Result,file);
return 0;
}
文章来源于领测软件测试网 https://www.ltesting.net/