Method and system for synchronizing databases of client side and server side during automated testing

An automated testing and synchronization system technology, applied in structured data retrieval, database distribution/replication, software testing/debugging, etc., can solve the problem of long time required to verify whether the database file is correct, reduce test efficiency, and increase test cost and other issues, to achieve the effect of reducing test cost, improving test efficiency, and fast download speed

Active Publication Date: 2017-03-15
WUHAN DOUYU NETWORK TECH CO LTD
View PDF10 Cites 13 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] However, each time the client uploads the latest database file from the server, it not only takes a long time, which reduces the test efficiency, but also requires a large network traffic, which increases the test cost; at the same time, the verification of the entire database It takes a long time to check whether the file is correct, and it takes up a lot of memory, which makes the test efficiency even lower

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 synchronizing databases of client side and server side during automated testing
  • Method and system for synchronizing databases of client side and server side during automated testing
  • Method and system for synchronizing databases of client side and server side during automated testing

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0017] The present invention will be described in further detail below in conjunction with the accompanying drawings and embodiments.

[0018] see figure 1 As shown, the database synchronization method between the client and the server during automated testing in the embodiment of the present invention includes the following steps:

[0019] S1: When the application program performs automated testing on the client, the client calls the application interface address (http: / / 27.17.8.110:8989 / auto_server / db.php), initiates a database information acquisition request to the server, and the database information is obtained Including database version and database download address, go to S2.

[0020] S2: The client obtains and parses the database information returned by the server. The client compares the returned database version with the local database version to determine whether the database needs to be updated (downloaded). If so, go to S3, otherwise notify the upper application ...

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 method and a system for synchronizing databases of a client side and a server side during automated testing, and relates to the field of automated testing of application programs. The method comprises the following steps: when an application program is subjected to automated testing on the client side, the client side initiates a database information acquisition request to the server side; the client side acquires and analyzes the database information returned by the server side, splices database version acquired through analysis, database document size and database name form a character string, performs MD5 check on the character string and generates a local MD5 check code; and when the local MD5 check code is equal to an MD5 check value and the value of the database version acquired through analysis is more than the value of the local database version of the client side, the client side downloads the database document on the server side according to the database downloading address. According to the method and the system, the testing efficiency of the automated testing can be improved and the testing cost can be reduced; and the method and the system are very convenient for people to use and suitable for popularization.

Description

technical field [0001] The invention relates to the field of automated testing of application programs, in particular to a method and system for synchronizing databases between a client and a server during automated testing. Background technique [0002] During the automated testing process of the application program, the test rules are defined by the server side, and the automated testing is performed on the client side (such as a mobile phone, a tablet computer, etc.) according to relevant rules. Every time an automated test is performed, the client needs to download the latest database file from the server. After the download is complete, it needs to verify whether the entire database file is correct. [0003] However, each time the client uploads the latest database file from the server, it not only takes a long time, which reduces the test efficiency, but also requires a large network traffic, which increases the test cost; at the same time, the verification of the enti...

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/36G06F17/30
CPCG06F11/3668G06F16/219G06F16/27
Inventor 张磊
Owner WUHAN DOUYU NETWORK 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