Testing method and device

A testing method and testing device technology, which are applied in the field of testing methods and devices of automated units, can solve problems such as low efficiency, easy to cause omissions, etc., and achieve the effects of eliminating cumbersome operations, reducing the possibility of omissions, and improving testing efficiency.

Inactive Publication Date: 2014-07-23
BEIJING JINGDONG SHANGKE INFORMATION TECH CO LTD
View PDF3 Cites 12 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The technical problem to be solved by the present invention is to overcome the defect that the process of judging whether the actual result of the unit test is consistent with the expected result in the prior art relies on manual inspection one by one, which is inefficient and easy to cause omissions, and provides an automated testing method and The device can automatically compare the actual test results with the expected results and display the differences between the two, eliminating the cumbersome operations of manually viewing one by one, improving test efficiency and reducing the possibility of omissions

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
  • Testing method and device
  • Testing method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0042] The present invention is further illustrated below by means of examples, but the present invention is not limited to the scope of the examples.

[0043] refer to figure 1 , the test method includes the following steps:

[0044] S 1 1. Prepare a test file according to a set excel data format, including basic data and expected result data in the test file, the test file is stored in a worksheet of excel, and the basic data is converted into a database language and stored in the database;

[0045] S 2 , using the basic data as input data to execute the unit test of the test file, and output the actual test result data after the unit test is completed;

[0046] S 3 , extracting the expected result data from the test file in the excel data format;

[0047] S 4 , determining query conditions according to the expected result data and the excel data format, and searching the database based on the query conditions to obtain actual test result data corresponding to the quer...

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 invention discloses a testing method and device. The testing method comprises the steps of preparing a testing file, the testing file comprises basic data and expected outcome data, the testing file is stored in an excel worksheet, and the basic data are converted into data language to be stored in a data base; the basic data are used as input data for executing unit testing of the testing file, and after unit testing is completed, actual testing result data are output; the expected result data are extracted from the testing file in an excel data format; a query condition is determined, and the data base is searched based on the query condition to acquire the actual testing data corresponding to the query condition; the expected result data and the actual testing result data are compared to obtain difference information. According to the testing method and device, an actual testing result and an expected result can be automatically compared to display the difference of the actual testing result and the expected result, the complex operation of manually checking item by item is avoided, the testing efficiency is improved, and the probability of omitting is lowered.

Description

technical field [0001] The invention relates to a testing method and device, in particular to a testing method and device for an automation unit. Background technique [0002] After using the Java development language (an object-oriented programming language that can write cross-platform application software) to write a piece of program code to complete a certain business logic, it is necessary to verify whether the code can achieve the expected effect of the program design , so you need to use unit testing tools to unit test this program code; and start this program code requires some basic data as the input data of the program. After the test is completed, check the output data of the program to judge whether the business logic of the program is correct. Before using the unit test tool for unit testing, it is necessary to prepare the basic data for the business logic of this test, and in the unit test, it is necessary to assert whether the tested business logic is complet...

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
Patent Type & Authority Applications(China)
IPC IPC(8): G06F11/36
Inventor 孙超汤中明卫建
Owner BEIJING JINGDONG SHANGKE INFORMATION TECH CO 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