web automated testing - automatic test pattern Introduction

A linear test

  What is the linear test?

    Produced by recording or writing steps for the application of the corresponding linear script, each test script independent, and no dependence call, the user simply to simulate full operational scenarios

  Shortcoming

    1, high development costs, duplicate operations between test cases, had to repeat these operations each use case to record or write, such as logging in and out of the operation of each use case

    2, high maintenance costs, there is duplication between the test operation, the operation is repeated when these changes had to modify, such as change log input block is positioned, each comprising all modifications must log in Example

Second, the modular test drive

  What is modular test drive

    Since the linear defect test is obvious, therefore reference the idea of ​​a modular programming language, the operation is repeated to separate a common module, during execution of the need to use with the embodiment of this module is called when the operation were so maximize the elimination of the duplication and increase the maintainability of test cases

  advantage

    1, to improve development efficiency, do not repeat the same operation scripting, such as logon module has written a follow-up have logged in to place a direct call  

    2, simplifying the complexity of maintenance, such as logging in the input box positioning changes only need to modify login module, do not need to make any changes for any call log module

  Shortcoming

    When there are multiple different data Repeat to repeat or write a script, such as the first login user name is Joe Smith, John Doe next log in with a user name, then you have to repeat to write a login script

Third, data-driven testing

  What is a data-driven testing

    In order to address the shortcomings of different modular drive test designed, i.e. the parametric data, the input data vary due output result

  advantage

    Script for data separation, and enhance the reusability of scripts

Fourth, the keyword-driven testing

  What is keyword-driven testing

    Appreciated that the data driver, the data is simply replaced by the keyword, the test results caused by varying the key change, such as the frame robotframework

  advantage

    The underlying code package after taking a name, the name became a keyword, you do not need to know the code, just know that you can use keywords

  Shortcoming

    High learning costs, the latter difficult to maintain reliability will deteriorate, confined within their own framework

 

 

      

 

 

 

 

 

 

 

 

      

        

Guess you like

Origin www.cnblogs.com/puti306/p/11878461.html