|
知道GeoMedia用到的GDO控件在性能测试的时候怎么处理吗?比如录制一个新增事务,结果新增的脚本如下:就是没有把新增的语句显示出来,这时该怎么处理啊?谢谢!我用的是COM/DCOM协议
lr_start_transaction("新增作业");
lr_think_time(39);
{
BSTR CommandText = lrc_BSTR("select id from XL_JOB where CODE='20091304' and SUBSTATION_ID='42634657'");
long Options = lrc_long("-1");
VARIANT RecordsAffected = lrc_variant_empty();
lrc__Connection_Execute(_Connection_10, CommandText, &RecordsAffected, Options, (_Recordset**)&_Recordset_438, CHECK_HRES);
//lrc_save_variant_long("param-name", RecordsAffected); //to save value un-comment line, expected "1233632"
}
RECORDSET_XML(234);// Data Grid for recordset: _Recordset_438
{
long pl;
lrc__Recordset_get_RecordCount(_Recordset_438, &pl, CHECK_HRES);
//lrc_save_long("param-name",pl); //to save value un-comment line, expected "0"
}
lrc_Release_Object((IUnknown*)_Recordset_438);
{
BSTR CommandText = lrc_BSTR("select PASSWORD from xl_job where id=-1");
long Options = lrc_long("-1");
VARIANT RecordsAffected = lrc_variant_empty();
lrc__Connection_Execute(_Connection_10, CommandText, &RecordsAffected, Options, (_Recordset**)&_Recordset_439, CHECK_HRES);
//lrc_save_variant_long("param-name", RecordsAffected); //to save value un-comment line, expected "1233996"
}
RECORDSET_XML(235);// Data Grid for recordset: _Recordset_439
lrc_Release_Object((IUnknown*)IClassFactory2_2);
lrc_Release_Object((IUnknown*)_Connection_10);
lrc_Release_Object((IUnknown*)_Recordset_439);
lr_end_transaction("新增作业",LR_AUTO);)
[ 本帖最后由 zsjmm 于 2009-3-26 19:54 编辑 ] |
|