Method and system for processing assertion in test

A processing method and test data technology, applied in the field of testing, can solve problems such as low test efficiency, and achieve the effect of avoiding the problem of test difficulty, improving test efficiency, and flexible data initialization and configuration.

Active Publication Date: 2012-12-26
ALIBABA GRP HLDG LTD
View PDF4 Cites 23 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0007] This application provides an assertion processing method and system in testing to solve th

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and system for processing assertion in test
  • Method and system for processing assertion in test
  • Method and system for processing assertion in test

Examples

Experimental program
Comparison scheme
Effect test

Example Embodiment

[0054] In order to make the above objectives, features and advantages of the application more obvious and understandable, the application will be further described in detail below in conjunction with the drawings and specific implementations.

[0055] Regarding the assertion processing in the test, in order to improve the processing efficiency, this application proposes an assertion processing method and system, which realizes the automated execution of the assertion in a configurable manner.

[0056] The implementation process of the method described in the present application will be described in detail below through embodiments.

[0057] Reference figure 1 , Is a flowchart of an assertion processing method in a test according to an embodiment of the present application.

[0058] Take the database test as an example, the processing flow is as follows:

[0059] Step 101: Receive a test request;

[0060] Step 102: Perform data initialization according to the test request to obtain initia...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The application provides a method and a system for processing assertion in a test to solve the problem of low test efficiency due to the fact that a test case code and a test case are bound in the prior art. The method comprises the following steps of: receiving a test request; carrying out data initialization according to the test request to obtain initial test data; analyzing a pre-configured assertion file, and obtaining an analysis result, and carrying out assertion treatment on the initial test data according to the analysis result. According to the application, automation execution of the assertion in the test is achieved by a configurable mode; aiming at different test cases, only the assertion file is needed to be compiled and configured in each test, and the test case code is not needed to be recompiled, so that test efficiency is greatly improved. Furthermore, for a tester who does not understand a concrete programming language, a series of problems of test difficulties due to the fact that the tester has no development skills also can be avoided.

Description

technical field [0001] The present application relates to testing technology, in particular to a method and system for assertion processing in testing. Background technique [0002] In the process of software testing, testers generally conduct black-box testing, and verify whether the functions provided by the system are correct or not by checking the interface interfaces provided by the system. However, black-box testing has relatively large limitations. In the testing process, the system required to be delivered for testing is a system that can operate normally, and it is impossible to verify whether the functions of the internal modules of the system meet the requirements of the test plan. For the above reasons, developers and testers with programming skills will adopt a white-box testing approach for testing. [0003] In white box testing, assertions are often used to find logic errors when testing against a database. When writing code, programmers always make some ass...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06F11/36
Inventor 植晶晶张文波
Owner ALIBABA GRP HLDG LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products