Summary of qtp automated software testing framework

Source: Internet
Author: User

It is found that writing automated test scripts is not difficult. What is difficult is that you cannot find the direction of the test framework. Without a good test framework, the written test scripts are very difficult to maintain, if the software interface or function changes slightly, there will be great changes.

I found a framework that is very good. I personally think that my current understanding of the framework is not in place.

Http://www.cnblogs.com/nckiki/articles/244202.html

1. Data-driven framework

This framework is basically used as a sub-framework, because whatever framework is used, it is basically included, this framework separates the test data from the test script to facilitate data modification.

2. Test script Modularization

The modular framework of the test script must be created to represent the application under the test. Program (Application-under-test) module, small and independent scripts of parts and functions. Then, these scripts are grouped into larger tests in a hierarchical manner to implement a specific test case. Among all the frameworks I will mention, such frameworks should be the easiest to master. Building an abstraction layer in front of a component to hide other components of the application is a well-known programming strategy. It isolates applications from component modifications and specifies the adequacy in application design. To improve the maintainability and measurability of the test suite, the test script modular framework applies the principles of abstraction or encapsulation. When the control is moved or changed, you only need to modify the underlying script of the call control, instead of all test cases of the Control. 3. the framework of the Test Library module test library is very similar to the modular framework of the test script and has the same advantages. However, it divides the test application into processes and functions, rather than scripts. This framework requires the creation of library files (sqabasic libraries, APIs, DLLs, etc.) that represent the application modules, parts, and functions under the test ). Then these library files are directly called by the test case script. If the control changes, you only need to modify the library file and update all scripts that call the control.
Related Article

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.