Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

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 the problem of low test efficiency caused by binding test case codes and test cases in the prior art

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

Embodiment Construction

[0054] In order to make the above objects, features and advantages of the present application more obvious and comprehensible, the present application will be further described in detail below in conjunction with the accompanying drawings and specific implementation methods.

[0055] For assertion processing in testing, in order to improve processing efficiency, the present application proposes an assertion processing method and system, which realize automatic execution of assertions in a configurable manner.

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

[0057] refer to figure 1 , is a flow chart of an assertion processing method under test described in the embodiment of the present application.

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

[0059] Step 101, receiving a test request;

[0060] Step 102, performing data initializ...

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
Features
  • Generate Ideas
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More