LoadRunner upload File script Playback Error resolution method

Source: Internet
Author: User

loadrunner upload File script Playback error resolution method

most industry systems are now starting to achieve Paperless systems for electronic office, and as a system performance testers, after the completion of business scenarios and the development of indicators, need to start to prepare all kinds of test data and recording test scripts, sometimes some transactions involve file upload download, we need to verify the file upload success, Whether the server network bandwidth pressure, uploaded files can be parsed, normal display and other performance indicators verification. Therefore, when we record the script, we need to simulate the uploading of file things to simulate when multi-user concurrency can upload processing files and so on.

When recording the script, because the LR tool causes the replay script error, cannot upload normally, the reason is a variety of reasons, the following is based on the previous period of time a student in the stress test encountered problems, let me remote help to deal with, by the way, the problem cases are as follows:

under normal circumstances, when we record the upload file script, LR default does not go to the corresponding file path recorded in the script, which sometimes results in the playback of the script error message, resulting in playback failure, as follows the system business logic, in a business system transactions, such as Click to create a ticket, you need to upload PDF File , such as 31.pdf files, For example, we put the files that need to be uploaded in the specified directory, C packing directory,


At this point from the recorded script, we can find that, under normal circumstances, the corresponding upload file in the script does not record the corresponding path, such as:

When we play back the script, we will see an error message like this:

Workaround:

see the file specific storage path, such as directly put C Packing directory, it is recommended to include the absolute path address of the corresponding file in the script, as shown in the following script:

At this point in the replay, if playback is successful, the script is available.

If playback or failure occurs, the corresponding 31.pdf file is stored directly in the script file directory,

In the replay, see, generally can replay success.



LoadRunner upload File script Playback Error resolution method

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.