In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/03 Report--
We know that interface-based software automation testing has gone through four stages of development.
(1)。 Frameless phase (that is, simple recording / playback)
In the early days, automated testing did not have a framework, and automated testing was simply recorded / played back, with tools recording and recording the process or data of the operation and forming scripts. The process of repeating a manual operation by playing back a script. This pattern script is mixed with data. From the perspective of software development, this kind of development has a high degree of coupling, and we know that the idea of software engineering is high cohesion and low coupling. The simple recording and playback completely violates this idea, simple recording and playback, the reusability is very low, and the maintenance cost is very high.
(2)。 Data-driven framework phase
The biggest disadvantage of the frameless phase is that scripts are mixed with data. In order to solve this problem, the automated testing framework has developed to the stage of data-driven framework. The framework reads data from the data file and writes the read data from the data file into the script by parameterization (such as reading data from the database). Because different data corresponds to different test cases, the script is completely separated from the data, so the utilization rate of the script is improved and the maintenance cost of the script is greatly reduced. Although the data-driven framework solves the problem of script and data, it does not separate the tested object from the operation.
(3)。 Keyword driven framework phase
Keyword-driven framework is an improved framework model based on data-driven framework. It decomposes the test logic according to keywords to form the business logic encapsulated by data files and keywords. The main keywords include three types: tested object (Item), operation (Operation) and value (Value). Express it as Item.Operation (Value) in a pair-oriented form. The main ideas of keyword drive are: separation of script and data, separation of interface element name from test internal object name, separation of test description from specific implementation details.
(4)。 Hybrid model framework phase
The keyword-driven framework brings the automated testing framework to a new stage, and the automated testing tool QuickTest also makes good use of this concept, but in the actual development of automated testing, it is found that the keyword-driven framework brought by the testing tools can not complete the testing task well. Although the framework separates data from scripts, it cannot do so if you want to call data in test cases or output test results more flexibly; and it cannot be solved well if you need to read data from other file storage formats. Therefore, in the early stage of automated testing, engineers will develop a framework that conforms to the actual testing to support the later testing work, which is commonly known as the hybrid model automated testing framework.
Reference: Huang Wengao's QTP Automation Test and Framework Model Design
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.