Highlighted
Absent Member.
Absent Member.
1425 views

Error -26612: HTTP Status-Code=500 (Internal Server Error)

Hi,

 

Newbie to Loadrunner. Trying to generate a simple script and make it run for 3 users is failing. 😞

Issue 1:

    lr_save_string("\"RegistrationId\":2,\"DefectTypeId\":1,\"BaseId\":1,\"ATAId\":275,\"Description\":\"Defect3\",\"TaskText\":\"Defect3\",\"DefectStatusId\":1" , "Body" );
    

    web_custom_request("SaveDefect", 
        "URL=http://localhost/Envision.Web/Components/Defect/SaveDefect", 
        "Method=POST", 
        "Resource=0", 
        "RecContentType=application/json", 
        "Referer=http://localhost/Envision.Web/Home/Index", 
        "Snapshot=t73.inf", 
        "Mode=HTTP", 
        "EncType=application/json", 
        "Body={Body}", 
        LAST);

when exectuted this is trowing this error

Error 658 Action.c(658): Error -26612: HTTP Status-Code=500 (Internal Server Error) for "http://localhost/Envision.Web/Components/Defect/SaveDefect"   [MsgId: MERR-26612] Action.c C:\Users\Rafiq.Mohammed\Documents\VuGen\Scripts\Defects Defects

Issue 2

Earlier in Body it tried include Parameter Description by creating a parameter called Desc and adding two values to it and in the Body tag replace "Defect3\" with {Desc} and changing the run iteration to 2 and ran still I got the same -26612: HTTP Status-Code=500 error

"\"RegistrationId\":2,\"DefectTypeId\":1,\"BaseId\":1,\"ATAId\":275,\"Description\":\"Defect3\",\"TaskText\":\"Defect3\",\"DefectStatusId\":1"

This is my first script so in big confusion

Thanks.

 

0 Likes
1 Reply
Highlighted
Acclaimed Contributor.
Acclaimed Contributor.

Hi,

I suggest starting with the tutorial and take it step by step, before creating a script against you application.

Regarding the first issue you raised, it is hard to determine what the issue is since we do not know how the body supposed to look like in a regular request.

The second issue should be addressed after resolving the first one

Regards,

Shlomi

 

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.