Thursday, 13 March 2014

Auto-correlati oncallback function "flCorrelation CallbackParseW ebPage"failed

Problem Details:

Getting following error message while replaying the script.

Action.c(591): Error -27086: Auto-correlation callback function "flCorrelationCallbackParseWebPage" failed (rc=1) for parameter "Siebel_Parse_Web_Page49" [MsgId: MERR-27086]
Action.c(591): web_submit_data("start.swe_16") highest severity level was "ERROR", 7328 body bytes, 297 header bytes, 13 chunking overhead bytes [MsgId: MMSG-26387]

/*** COde from the script **********************/
web_reg_save_param("Siebel_Parse_Web_Page49",
"LB/IC=",
"RB/IC=",
"Ord=1",
"Search=Body",
"RelFrameId=1",
"AutoCorrelationFunction=flCorrelationCallbackParseWebPage",
"AutoCorrelationDll=LrwiSiebelCorrelationWrapper",
LAST);

web_submit_data("start.swe_16",
"Action=http://tst2-crmintl.health.ge.com:10095/emedical_enu/start.swe",
"Method=POST",
"TargetFrame=",
"RecContentType=text/html",
"Referer=",
"Snapshot=t18.inf",
"Mode=HTML",
ITEMDATA,
"Name=SWEC", "Value={Siebel_SWECount}", ENDITEM,
"Name=SWERPC", "Value=1", ENDITEM,
"Name=SWENeedContext", "Value=false", ENDITEM,
"Name=SWEActiveApplet", "Value=GEHC3 Sales Quote - Quote List Applet", ENDITEM,
"Name=SWEView", "Value=Order Entry - All Orders Across Organizations View (Sales)", ENDITEM,
"Name=SWECmd", "Value=GotoView", ENDITEM,
"Name=SWEKeepContext", "Value=1", ENDITEM,
"Name=SWEActiveView", "Value=Order Entry - My Orders View (Sales)", ENDITEM,
LAST);
/************************************************/
Server return value for the following correlation function

/************************************************/

Action.c(591): Notify: Saving Parameter "Siebel_Parse_Web_Page49_S_BC3_S48_R03_F01 = 1-257396531".
Action.c(591): Error -27086: Auto-correlation callback function "flCorrelationCallbackParseWebPage" failed (rc=1) for parameter "Siebel_Parse_Web_Page49" [MsgId: MERR-27086]
Action.c(591): web_submit_data("start.swe_16") highest severity level was "ERROR", 7328 body bytes, 297 header bytes, 13 chunking overhead bytes [MsgId: MMSG-26387]
Ending action Action.
Ending iteration 1.

/************************************************/

 

Solution:

Correlation in Siebel-Web scripts is done automatically by the Correlation library file (ssdtcorr.dll). The generated web_reg_save_param functions are very sensitive to the data received by the server. In cases like this the most likely reason for the replay failure is an incorrect value of the Siebel Web Engine Click Count (Siebel_SWECount) parameter or Cancel ID (SWSECancelID) parameter.
To resolve the issue try any of the following suggestions: Move the login section of the script in the Action part and check the "Simulate a new user on each iteration" run-time setting. This way at the end of the script the application will be left in a base state. In some cases however this is not possible due to load test requirements.
If the above is not an option, make sure that the Siebel_SWECount value is calculated correctly during the second iteration. VuGen handles the changes of the SWEC by a built-in detection mechanism that increments the counter before each relevant step. In scripts that contain more than 1 iterations however, you might have to manually either reset the Siebel_SWECount value at the end of the first iteration or increment it once.


Make sure that the SWSECancelID value is unique in each iteration. Using the same value with different set of arguments in the second iteration may cause an error. The value represents a 10 digits long timestamp so it could be generated by the following code:

// insert this on top of the script
char temp[11];

// insert this before the function where you need to use SWESECancelID
web_save_timestamp_param("myTstamp", LAST);
strncpy(temp, lr_eval_string("{myTstamp}"), 10);
lr_save_string(temp ,"SWSECancelID");
lr_output_message("SWESECancelID is %s", lr_eval_string("{SWSECancelID}")); // displays something like SWESECancelID is 1316058351

This way when that code is executed the parameter {SWSECancelID} will hold an unique value.

5 comments: