We are using LoadRunner v8.0. for testing the load of a .NET application. The problem is, 'recorded and the replay images are not exactly the same'. Though it seems to be an issue, the system (test results) is not showing any error. It just shows no errors. 1.Can anyone tell me what could be the reason for such a behaviour of the system?2.Can we use check points in load runner?

Showing Answers 1 - 3 of 3 Answers

This is a very obvious problem with .Net application.

Replay and Recorded snap shots doesn't match.

Generally i do it as following

I try to download data during run time:

File_Size = web_get_int_property( HTTP_INFO_DOWNLOAD_SIZE );

Download_time = web_get_int_property( HTTP_INFO_DOWNLOAD_TIME );

HttpRetCode = web_get_int_property( HTTP_INFO_RETURN_CODE );

lr_output_message("File size is %d ",File_Size);

    lr_output_message("Download Time is %d ",Download_time);

    lr_output_message("HTTP Return Code is %d ",HttpRetCode);

    lr_output_message("Message is %s " ,lr_eval_string("{FILED}"));


    if ((file = fopen(filename, "w+" )) == NULL) {

          lr_output_message("Unable to create %s", filename);
          return -1;
     }
//
     //j = fwrite(lr_eval_string("{FILED}"),i, 1, file);
    j = fwrite(lr_eval_string("{FILED}"),sizeof(lr_eval_string("{FILED}")) + 1000, 1, file);

     if ( i > 0)
          lr_output_message("Successfully wrote %d record", j );

     fclose(file);

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions