/* * A!_Catalog.c - LoadRunner Web script sample Catalog functions * called from wi_app.c */ A1_Catalog() { int rc=LR_PASS; if( charDriverNode == NULL ){ sprintf( charTemp,"URL=%s%s" ,lr_eval_string("{pURLHostPath}") ,Info1 ); wi_startTrans(); rc=web_url(CurrentTrans, charTemp, "Resource=0", "RecContentType=text/html", "Referer=", "Snapshot=t1.inf", "Mode={pPlaybackMode}", LAST); wi_endTrans(); // For use by wi_CsvLogRowWrite within Action(). sprintf(charStuff,",\"%s\",\"%s\",\"%s\",\"%s\"" ,lr_eval_string("{pRetGroup}") ,lr_eval_string("{pRetKeywords}") ,lr_eval_string("{pRetDesc}") ,lr_eval_string("{pRetSearcher}") ); }else if( strcmp( charDriverNode ,"Spec") == FOUND ){ wi_startTrans(); wi_startSubTransName("special"); rc=web_url(CurrentSubTrans, "URL={pURLHostPath}{pDriverInfo1}", "Resource=0", "RecContentType=text/html", "Referer=", "Snapshot=t1.inf", "Mode={pPlaybackMode}", LAST); wi_endSubTrans(); if( strcmp( strGetExtras,"Y" ) == FOUND ){ wi_get_res("image/gif","bookquot","bookquot.gif",280); } wi_endTrans(); }else{ return UNKNOWN; } return rc; }