Share a recent automated testing framework

Source: Internet
Author: User

Share a diagram of your own recent automated testing framework.
Testing of data, entrance to general scheduled tasks. You can add parameters to select the scope to perform the task, or select a default execution scope. Validation tests are for ETL testing, field validation in the database (by correspondence, interface, or SQL checksum).

Tool class
    • Database Tools class: Defines some database-related operations, primarily for operating MySQL. Customize some additions and deletions to simplify SQL;
    • Message related Tool class: A tool class for sending messages;
    • Timer task Tool Class: Temporarily use the selenium to operate the web, and subsequent changes to the call Jar package form, because the company internal scheduled tasks do not support python;
    • Send Request Tool class: Relatively simple, get, post and other methods of the request operation;
    • Assert Tool class: Customize some special assertions, including sorting, converting data formats and characters, etc.;
    • Other tools: e-mail, write logs, etc.;
Core Business Framework
    • Base class Layer: Defines the base class and some general configuration items so that the test case can be easily integrated, data preparation, including environment check scripts and data preparation scripts, and recovery of previously destroyed data after all tests are completed, and after the test is interrupted (error or unexplained interruption), Maintain the problem site and retain the means to restore the initial data;
    • Class, object definition layer: Encapsulates all used interfaces, libraries, and fields into classes and objects, and customizes some types of exceptions;
    • A business relation defines a layer: a validation rule is defined to this level. Defines the validation rules for each object: Objects, objects, object->sql, objects, and the JSON returned by the interface;
    • Test Case Layer: Define testing cases, write the specific business logic, and encapsulate them into test scenarios;
    • The test suite/test case corresponds to the definition layer: the test suite that the organization needs to perform tests, support for group execution, regular match execution, all use case execution, and support for setting up from external Web pages;
    • Test Report Generator: Sends a test report message to a custom recipient after all test execution has completed, or after an outage has been performed.
Configuration file
    • Multi-Threaded Execution configuration file: whether to use multi-threaded execution method to speed up the case and set the number of threads;
Peripheral Systems/Tools
    • Environment Check script: Before performing the test, check whether the environment meets the test start requirements;
    • Data Preparation script: Backup the data before execution for subsequent recovery; inject specific/random test data;
    • Data Recovery script: Restore the backup data;
    • Mock platform: Analog interface return, convenient to construct some specific data; architecture is flask+mongodb;
    • Test suite Configuration page: In the External configuration page, configure the case to be executed;
    • Database: Using MySQL

Share a recent automated testing framework

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.