Hi All,
I am getting the below error message while I am trying to replay the recorded script.
Error -26628: HTTP Status-Code=403 (Forbidden) for "http://usto-papp-pc010:8080/qcbin/servlet/tdservlet/TDAPI_GeneralWebTreatment"
I am getting this error even after disabling the security authentication session:
In the registry, under the path: ‘HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\HP Application Lifecycle Management\Parameters’ you’ll see the following parameters: ‘JVM Option Number X’. You should create a new parameter called ‘JVM Option Number Y’ (Y is the next serial value exist there), and set its value to: -Dcom.mercury.td.http.authentication=false And restarted the "HP ALM Service"
When I recorded two similar scripts I found the below highlighted value is changing from script to script and it needs to be correlated.
web_custom_request("TDAPI_GeneralWebTreatment","URL=http://usto-papp-pc010:8080/qcbin/servlet/tdservlet/TDAPI_GeneralWebTreatment","Method=POST","Resource=0","RecContentType=application/octet-stream","Referer=","Snapshot=t1.inf","Mode=HTML","EncType=text/html; charset=UTF-8","Body={\r\n""0: \\0000001C\\0:conststr:GetServerSettings,\r\n""1: \\0000002F\\0:conststr:CFC36757-F193-4DE3-B38B-A8850F7F46B4,\r\n""2: \"0:int:1\",\r\n""3: \"0:int:-1\",\r\n""4: \"0:conststr:\",\r\n""5: \"0:int:-1\",\r\n""6: \\0000006D\\0:conststr:{\r\n""SERVER:\\0000002d\\http://usto-papp-pc010:8080/qcbin/wcomsrv.dll,\r\n""client_machine:USTO334386\r\n""}\r\n"",\r\n""7: \"65536:str:0\"\r\n""}\r\n", LAST);
Now In few articles I found that this value is captured in below functions web_reg_save_param and web_create_html_param.
I captured in the below way, but I am getting empty values in the output when I replayed the script.
web_reg_save_param("Capture_Request_ID", "1: \\0000002F\\0:conststr:", ", "RB= ,\r\n", LAST);
web_create_html_param("Capture_Web_Request_ID", "1: \\0000002F\\0:conststr:", ",\r\n");
lr_output_message("session id = %s",lr_eval_string("{Capture_Request_ID}"));
lr_output_message("session id = %s",lr_eval_string("{Capture_Web_Request_ID}"));
Please advise.
Regards,
Srihari