Create an advanced upload file test case in Rational performance Tester

Source: Internet
Author: User

About this article

Many WEB applications offer an upload feature that allows users to publish or store files in binary content. Even though IBM? The Rational? Performance Tester provides the ability to manipulate binary content in test records, but sometimes you may need to make more in-depth customizations. The examples in this article show how to use the basic file substitution functionality in Rational performance Tester, and how to create more complex tests using multiple files and multiple platforms.

Record upload Transaction

Upload transactions can be logged in a regular manner. The following example provides steps for a web-based application that uses HTTP, but these concepts also apply to other network protocols.

Start the Rational performance Tester HTTP logger and create a Test from New recording, as shown in Figure 1.

Figure 1. Create a new test setting

The Web browser specified in the logger (Windows > Preferences > RPT HTTP Recording) is started and you can use it to perform upload transactions.

Skills:

Make sure that you insert a comment or a transaction using the Rational Performance Tester toolbar before performing the upload so that you can easily identify it in later tests.

Figure 2. Recorder Test Annotation Toolbar

The test is automatically generated when the logger is stopped and the browser is closed.

Rational Performance Tester automatically detects binary content based on its association with variable mimefilecontent, as shown in Figure 3.

Figure 3. Build test

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.