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

A mock platform-based testing method for simulating third-party data sources

A test method and data source technology, applied in the direction of electrical digital data processing, software testing/debugging, error detection/correction, etc., can solve problems such as unstable environment, timeout, and failure to meet the test data of front-end testers, so as to ensure stability High performance, high portability, and convenient expansion

Active Publication Date: 2022-08-02
SUNING CONSUMER FINANCE CO LTD
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] 1) The test data provided by the third-party service provider is relatively simple and the environment is unstable, and abnormal situations such as timeout often occur, and the test data provided at the same time cannot fully meet the test requirements
[0004] 2) Some third-party service providers do not have a test environment and can only provide a production environment. As long as the environment is called successfully, the corresponding fee will be charged
[0005] 3) It cannot meet the needs of front-end testers to configure test data for special situations, and one application request covers multiple third-party services
[0006] 4) Unable to realize the requirements of automated testing

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
  • A mock platform-based testing method for simulating third-party data sources

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0033] The present invention will be further described in detail by the following examples. The following examples are to explain the present invention and the present invention is not limited to the following examples.

[0034] like figure 1 As shown, a kind of simulation third-party data source testing method based on MOCK platform of the present invention is characterized in that comprising the following steps:

[0035] Step 1: Build a MOCK platform between the automated test platform and the third-party platform;

[0036] MOCK platform includes user configuration module, custom service configuration module, management data source rule module, delete data source rule module, batch import rule module and batch export rule module;

[0037] The user configuration module is used to configure the account and password of the system user, which has facilitated the management of users who log in to the MOCK platform system;

[0038] The custom service configuration module is 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
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a test method for simulating a third-party data source based on a MOCK platform. A MOCK platform is built between the automatic test platform and the third-party platform; Save to REDIS server, MOCK platform will store user-configured service information and rule matching information to REDIS server; during automated test platform test, according to rule matching, match user-configured rules, directly call the data stored in MOCK platform, and return the calling result To the automated test platform; the automated test platform gives a pass or rejection result according to the third-party platform data message returned by the MOCK platform; the automated test platform compares the correctness of the test results according to the results returned by the test system. The present invention maintains and manages third-party data sources in a unified manner, can ensure the stability of the data sources, avoid abnormal situations such as timeout, and ensure fast and efficient testing.

Description

technical field [0001] The invention relates to a method for testing a simulated third-party data source, in particular to a method for testing a simulated third-party data source based on a MOCK platform. Background technique [0002] As the business volume of domestic consumer finance companies continues to increase, dozens of third-party services need to be invoked to verify users' qualifications, including education, income, mobile phone consumption, court dishonesty, and personal credit reports, and they rely on these services to a certain extent. to expand their business. However, there are still many deficiencies in the content and use of domestic third-party data sources: [0003] 1) The test data provided by the third-party service provider is relatively simple and the environment is unstable, and abnormal situations such as timeouts often occur. At the same time, the test data provided cannot fully meet the test requirements. [0004] 2) Some third-party service ...

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 Patents(China)
IPC IPC(8): G06F11/36
CPCG06F11/3684G06F11/3688
Inventor 周云梅王卫卫
Owner SUNING CONSUMER FINANCE CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products