Create an on-demand automated test script with rational functional tester

Source: Internet
Author: User
Tags regular expression

Introduction: IBM Rational Functional Tester is an automated testing tool for Java,. Net, and WEB applications launched by IBM with powerful editors and support for a variety of scripting languages, as well as integrated scriptassure technology, pattern matching Features and data-driven to enhance the flexibility of test scripts. With this tool, testers can easily record or write scripts for automated testing, greatly improving test efficiency.

Software in the development process is constantly changing, after each version of the replacement will inevitably cause the interface, function changes, you can say "the only constant, is change." This puts a high demand on automated testing: on-demand. The scripts for automated tests must have a fairly adaptive ability to work properly in all environments. Only improve the reusability of the script and compatibility, automated testing has practical significance, or as the software versions of the changes, release, testers can only keep to update the script, resulting in inefficient, human and material resources of a great waste.

To achieve this goal, we can start with the following two aspects:

1 Make full use of the powerful functions of rational functional tester, such as scriptassure? Technology, regular expression, data-driven, Rational functional Tester API, etc.

2 properly write and optimize the script. The test process is abstracted sketchy, and the critical process is validated as necessary.

This article will start by recording a simple script, step by step to transform and improve, and constantly improve the adaptability of the script, so that it can get rid of all kinds of shackles, flexible and reliable in the changeable test environment smoothly.

A bond from the initial recording environment

In this paper we take this simple Web page test scenario as an example: The user enters the IBM website, searches for the keyword "Lotus", and verifies that the "www.lotus.com" link exists in the result set.

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.