CN112637008A - Link simulation test method, device, system, computer equipment and storage medium - Google Patents

Link simulation test method, device, system, computer equipment and storage medium Download PDF

Info

Publication number
CN112637008A
CN112637008A CN202011475159.0A CN202011475159A CN112637008A CN 112637008 A CN112637008 A CN 112637008A CN 202011475159 A CN202011475159 A CN 202011475159A CN 112637008 A CN112637008 A CN 112637008A
Authority
CN
China
Prior art keywords
link
tested
application
request
test
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202011475159.0A
Other languages
Chinese (zh)
Other versions
CN112637008B (en
Inventor
阮伙星
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Pinwei Software Co Ltd
Original Assignee
Guangzhou Pinwei Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Pinwei Software Co Ltd filed Critical Guangzhou Pinwei Software Co Ltd
Priority to CN202011475159.0A priority Critical patent/CN112637008B/en
Publication of CN112637008A publication Critical patent/CN112637008A/en
Application granted granted Critical
Publication of CN112637008B publication Critical patent/CN112637008B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/04Processing captured monitoring data, e.g. for logfile generation

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Mining & Analysis (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The application relates to a link simulation test method, a device, a system, computer equipment and a storage medium. The method comprises the following steps: receiving a link to-be-tested request, wherein the link to-be-tested request comprises a link identifier, called service information and a tested application identifier; determining a corresponding application to be tested according to the application to be tested identifier; sending the link to-be-tested request to the tested application so that the tested application calls the matched target simulation service according to the called service information in the link to-be-tested request; sending the link identification to a target simulation service, and acquiring target simulation data corresponding to the link identification returned by the target simulation service; sending the target simulation data to the application to be tested so that the application to be tested performs simulation test according to the target simulation data to obtain a tested result; and receiving the measured result and returning the measured result to the target terminal. By adopting the method, only specific links can be simulated without influencing other links, so that the link simulation efficiency is improved.

Description

Link simulation test method, device, system, computer equipment and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a link simulation test method, apparatus, system, computer device, and storage medium.
Background
At present, micro service becomes a very popular term in the internet technology, and the idea of the micro service architecture is to split the whole service into independent templates according to the service field. Each micro-service module is deployed independently, and the relationship between the micro-services is loosely coupled. Then, the current scheme for osp (open platform) micro-service simulation is mainly performed for a specific server and method, logic and return data to be simulated need to be written in advance in a page or code mode, and when simulation is not needed, corresponding simulation configuration needs to be disabled, so that simulation of other links is affected.
Disclosure of Invention
In view of the above, it is necessary to provide a link simulation test method, device, system, computer device, and storage medium that can simulate only a specific link without affecting other links, thereby improving the link simulation efficiency.
A link simulation test method, the method comprising:
receiving a link to-be-tested request, wherein the link to-be-tested request comprises a link identifier, called service information and a tested application identifier;
determining a corresponding application to be tested according to the application to be tested identifier;
sending the link to-be-tested request to the tested application so that the tested application calls the matched target simulation service according to the called service information in the link to-be-tested request;
sending the link identification to a target simulation service, and acquiring target simulation data corresponding to the link identification returned by the target simulation service;
sending the target simulation data to the application to be tested so that the application to be tested performs simulation test according to the target simulation data to obtain a tested result;
and receiving the measured result and returning the measured result to the target terminal.
In one embodiment, the link simulation test method further includes: acquiring a test request parameter corresponding to a link to-be-tested request; and determining the target simulation data, the test request parameters and the tested result as link records corresponding to the link identifiers, and sending the link records to a cache region for caching.
In one embodiment, determining the corresponding application under test according to the application under test identifier includes: acquiring a candidate test application, wherein the candidate test application comprises a candidate test application identifier; and determining the candidate test application corresponding to the candidate test application identification corresponding to the tested application identification as the tested application.
In one embodiment, acquiring target simulation data corresponding to the link identifier returned by the target simulation service includes: the target simulation service acquires candidate simulation data, wherein the candidate simulation data comprises corresponding candidate link identifications; and the target simulation service determines the candidate simulation data corresponding to the candidate link identification which is the same as the link identification as the target simulation data and returns the target simulation data.
A link simulation test system, the system comprising:
the link simulation test device is used for receiving a link to-be-tested request, determining a corresponding tested application according to the tested application identifier, and sending the link to-be-tested request to the tested application;
the tested application is used for calling the matched target simulation service according to the called service information in the link to-be-tested request;
the link simulation test equipment is used for sending the link identification to the target simulation service;
and the target simulation service is used for acquiring target simulation data corresponding to the link identification. And returning to the link simulation test equipment;
the link simulation test equipment is used for sending the target simulation data to the application to be tested;
the tested application is used for carrying out simulation test according to the target simulation data to obtain a tested result and returning the tested result to the link simulation test equipment;
and the link simulation test equipment is used for receiving the tested result and returning the tested result to the target terminal.
A link simulation test apparatus, the apparatus comprising:
the test request receiving module is used for receiving a link to-be-tested request, wherein the link to-be-tested request comprises a link identifier, called service information and a tested application identifier;
the tested application determining module is used for determining the corresponding tested application according to the tested application identifier;
the test request sending module is used for sending the link to-be-tested request to the to-be-tested application so that the to-be-tested application calls the matched target simulation service according to the called service information in the link to-be-tested request;
the link identification sending module is used for sending the link identification to the target simulation service and acquiring target simulation data which is returned by the target simulation service and corresponds to the link identification;
the simulation data sending module is used for sending the target simulation data to the application to be tested so that the application to be tested performs simulation test according to the target simulation data to obtain a result to be tested;
and the measured result receiving module is used for receiving the measured result and returning the measured result to the target terminal.
A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the following steps when executing the computer program:
receiving a link to-be-tested request, wherein the link to-be-tested request comprises a link identifier, called service information and a tested application identifier;
determining a corresponding application to be tested according to the application to be tested identifier;
sending the link to-be-tested request to the tested application so that the tested application calls the matched target simulation service according to the called service information in the link to-be-tested request;
sending the link identification to a target simulation service, and acquiring target simulation data corresponding to the link identification returned by the target simulation service;
sending the target simulation data to the application to be tested so that the application to be tested performs simulation test according to the target simulation data to obtain a tested result;
and receiving the measured result and returning the measured result to the target terminal.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of:
receiving a link to-be-tested request, wherein the link to-be-tested request comprises a link identifier, called service information and a tested application identifier;
determining a corresponding application to be tested according to the application to be tested identifier;
sending the link to-be-tested request to the tested application so that the tested application calls the matched target simulation service according to the called service information in the link to-be-tested request;
sending the link identification to a target simulation service, and acquiring target simulation data corresponding to the link identification returned by the target simulation service;
sending the target simulation data to the application to be tested so that the application to be tested performs simulation test according to the target simulation data to obtain a tested result;
and receiving the measured result and returning the measured result to the target terminal.
The link simulation test method, the device, the system, the computer equipment and the storage medium receive a link to-be-tested request, wherein the link to-be-tested request comprises a link identifier, called service information and a tested application identifier; determining a corresponding application to be tested according to the application to be tested identifier; sending the link to-be-tested request to the tested application so that the tested application calls the matched target simulation service according to the called service information in the link to-be-tested request; sending the link identification to a target simulation service, and acquiring target simulation data corresponding to the link identification returned by the target simulation service; sending the target simulation data to the application to be tested so that the application to be tested performs simulation test according to the target simulation data to obtain a tested result; and receiving the measured result and returning the measured result to the target terminal. Therefore, the corresponding link can be identified through the link identification in the link request to be tested, so that the link simulation is carried out.
Drawings
FIG. 1 is a diagram of an exemplary implementation of a link simulation test method;
FIG. 2 is a flow diagram illustrating a method for link simulation testing in one embodiment;
FIG. 3 is a block diagram of a link simulation test system according to one embodiment;
FIG. 4 is a block diagram of a link simulation test system according to another embodiment;
FIG. 5 is a block diagram of a link simulation test apparatus according to an embodiment;
FIG. 6 is a diagram illustrating an internal structure of a computer device according to an embodiment;
FIG. 7 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The link simulation test method provided by the application can be applied to the application environment shown in fig. 1. Wherein the terminal 102 communicates with the server 104 via a network. The terminal 102 may be, but not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices, and the server 104 may be implemented by an independent server or a server cluster formed by a plurality of servers. The application under test, the target simulation service, may be one component or any number of components in the server 104.
Specifically, the terminal 102 sends a link to-be-tested request to the server 104, where the link to-be-tested request includes a link identifier, called service information and a tested application identifier, determines a corresponding tested application according to the tested application identifier, sends the link to-be-tested request to the tested application, so that the tested application calls a matched target simulation service according to the called service information in the link to-be-tested request, sends the link identifier to the target simulation service, obtains target simulation data corresponding to the link identifier returned by the target simulation service, and sends the target simulation data to the tested application, so that the tested application performs a simulation test according to the target simulation data, obtains a tested result, receives the tested result, and returns the tested result to the terminal 102.
In one embodiment, as shown in fig. 2, a link simulation testing method is provided, which is described by taking the method as an example applied to the server in fig. 1, and includes the following steps:
step 202, receiving a link request to be tested, where the link request to be tested includes a link identifier, called service information, and a tested application identifier.
And step 204, determining the corresponding application to be tested according to the application to be tested identifier.
The link to-be-tested request is used for invoking link simulation, and can be triggered by a front end to generate a corresponding link to-be-tested request, wherein the link to-be-tested request can be an invoking link mock request. The link to-be-tested request comprises a link identifier, called service information and a tested application identifier, wherein the link identifier is used for uniquely identifying a link to be called, a matched link can be found through the link identifier, different links correspond to different link identifiers, the called service information is all information related to a called service, the corresponding called service can be determined through the called service information, and the called service information comprises all related information of the called service, including the name of the called service, the content of the called service and the like.
The link to-be-tested request further includes a tested application identifier, where the tested application identifier is used to uniquely identify the tested application, so that the tested application can communicate with the called service, corresponding logic exists inside the tested application, and the link to-be-tested request can be forwarded to the corresponding called service through the tested application. Further, the corresponding tested application can be determined according to the tested application identifier in the link to-be-tested request, and since different tested applications correspond to different tested application identifiers, the matched tested application can be determined according to the tested application identifier in the link to-be-tested request.
In one embodiment, determining the corresponding application under test according to the application under test identifier includes: acquiring a candidate test application, wherein the candidate test application comprises a candidate test application identifier; and determining the candidate test application corresponding to the candidate test application identification corresponding to the tested application identification as the tested application.
The specific method for determining the corresponding tested application according to the tested application identifier may be to acquire all pre-stored candidate test applications, where the candidate test applications may be determined in advance according to business requirements, actual application scenarios, or product requirements and stored, each candidate test application includes the corresponding candidate test application identifier, different candidate test applications correspond to different candidate test application identifiers, and the corresponding candidate test applications may be found and determined through the candidate test application identifiers. Further, the matched tested application may be determined according to the tested application identifier and the candidate test application identifier, specifically, whether the candidate test application identifier is the same as the tested application identifier is compared, and the candidate test application corresponding to the candidate test application identifier that is the same as the tested application identifier is determined as the tested application corresponding to the tested application identifier.
And step 206, sending the link to-be-tested request to the to-be-tested application so that the to-be-tested application calls the matched target simulation service according to the called service information in the link to-be-tested request.
And step 208, sending the link identifier to the target simulation service, and acquiring target simulation data corresponding to the link identifier returned by the target simulation service.
After the corresponding tested application is determined according to the tested application identifier, the link to-be-tested request can be forwarded to the corresponding called service through the tested application, the link to-be-tested request can be sent to the tested application, and after the tested application receives the link to-be-tested request, the matched target simulation service can be called according to the called service information in the link to-be-tested request. The called service information is all information related to the called service, the corresponding called service can be determined through the called service information, and the called service information comprises all related information of the called service, including the name of the called service, the content of the called service and the like.
Further, after the target simulation service is determined, the link to-be-tested request can be sent to the target simulation service, after the target simulation service receives the link to-be-tested request, the target simulation service searches for matched target simulation data according to the link identifier in the link to-be-tested request, and since the candidate link identifier and the corresponding candidate simulation data can be stored in association in advance, the target simulation service can obtain the corresponding target simulation data according to the link identifier after receiving the link to-be-tested request.
In one embodiment, obtaining target simulation data corresponding to a link identifier returned by a target simulation service comprises: and the target simulation service acquires candidate simulation data, the candidate simulation data comprise corresponding candidate link identifications, and the target simulation service determines the candidate simulation data corresponding to the candidate link identifications identical to the link identifications as the target simulation data and returns the target simulation data.
The obtaining of the target simulation data corresponding to the link identifier returned by the target simulation service may specifically be that the target simulation service obtains all stored candidate simulation data in advance, each candidate simulation data includes a corresponding candidate link identifier, and a relationship between the candidate simulation data and the corresponding candidate link identifier may be determined in advance according to a service requirement, an actual application scenario, or a product requirement, and is stored in association.
Further, the target simulation data may be determined according to the candidate link identifier corresponding to each candidate simulation data and the link identifier in the link request to be tested, specifically, whether the candidate link identifier is the same as the link identifier in the link request to be tested is compared, the candidate simulation data corresponding to the candidate link identifier that is the same as the link identifier in the link request to be tested is determined and the target simulation data is returned to the execution main body server through communication.
And step 210, sending the target simulation data to the application to be tested, so that the application to be tested performs simulation test according to the target simulation data to obtain a test result.
And step 212, receiving the measured result and returning the measured result to the target terminal.
After the target simulation data are obtained, the target simulation data are sent to the application to be tested, and the application to be tested can perform simulation test according to the target simulation data to obtain a result to be tested. Specifically, the application under test performs a simulation test by using internal predetermined internal logic and combining target simulation data, so as to obtain a test result.
Further, the application under test may send the test result to the execution subject server, and return the test result to the target terminal through the execution subject server. The target terminal may be a request terminal corresponding to the link request to be tested, or may be another terminal, and may be determined according to actual service requirements and application scenarios.
In the link simulation test method, a link to-be-tested request is received, wherein the link to-be-tested request comprises a link identifier, called service information and a tested application identifier; determining a corresponding application to be tested according to the application to be tested identifier; sending the link to-be-tested request to the tested application so that the tested application calls the matched target simulation service according to the called service information in the link to-be-tested request; sending the link identification to a target simulation service, and acquiring target simulation data corresponding to the link identification returned by the target simulation service; sending the target simulation data to the application to be tested so that the application to be tested performs simulation test according to the target simulation data to obtain a tested result; and receiving the measured result and returning the measured result to the target terminal. Therefore, the corresponding link can be identified through the link identification in the link request to be tested, so that the link simulation is carried out.
In one embodiment, the link simulation test method further comprises: and acquiring a test request parameter corresponding to a link request to be tested, determining target simulation data, the test request parameter and a tested result as a link record corresponding to a link identifier, and sending the link record to a cache region for caching.
The link to-be-tested request comprises corresponding test request parameters, wherein the test request parameters are all parameter information related to the link to-be-tested request, the test request parameters corresponding to the link to-be-tested request are obtained, target simulation data, the test request parameters and a tested result are determined to be link records corresponding to link identifications, and the link records are sent to a cache region to be cached. The target simulation data, the test request parameter, and the measured result are determined as the link record corresponding to the link identifier, and specifically, the target simulation parameter, the measured result, and the target simulation data are packaged together to form the link record corresponding to the link identifier, and the link record is sent to the cache area for caching. The cache area may be one or any number of components in the execution main server, or may be a separate cache device.
It should be understood that, although the steps in the above-described flowcharts are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least a portion of the steps in the above-described flowcharts may include multiple sub-steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of performing the sub-steps or the stages is not necessarily sequential, but may be performed alternately or alternatingly with other steps or at least a portion of the sub-steps or stages of other steps.
In one embodiment, as shown in FIG. 3, there is provided a link simulation test system 300, comprising:
the link simulation test device 302 is configured to receive a link request to be tested, where the link request to be tested includes a link identifier, called service information, and a tested application identifier, determine a corresponding tested application according to the tested application identifier, and send the link request to be tested to the tested application.
And the tested application 304 is used for calling the matched target simulation service according to the called service information in the link to be tested request.
The link simulation test equipment 302 is configured to send the link identification to the target simulation service 306.
And the target simulation service 306 is used for acquiring target simulation data corresponding to the link identification. And returns to the link simulation test equipment.
And the link simulation test equipment 302 is used for sending the target simulation data to the application to be tested.
And the tested application 304 is used for performing simulation test according to the target simulation data to obtain a tested result, and returning the tested result to the link simulation test equipment.
And the link simulation test equipment 302 is used for receiving the tested result and returning the tested result to the target terminal.
The application to be tested and the target simulation service may be separate functional devices, or may be one component or any number of components in the link simulation test device, which is not limited herein and may be determined according to actual business requirements, product requirements, or application scenarios.
In one embodiment, as shown in FIG. 4, the link simulation test system 300 further comprises:
and the link setting device 308 is configured to send a link setting request to the link data caching device, where the link setting request includes a link identifier to be set and corresponding set link simulation data.
And the link data caching device 310 is configured to perform associated storage on the link identifier to be set and the set link simulation data according to the link setting request.
The link simulation test system 300 further includes a link setting device 308, where the link setting device 308 is configured to send a link setting request to the link data caching device 310, where the link setting request is used to request setting of a link, and a link identifier and corresponding link simulation data may be set through the link setting request, where the link setting request includes a to-be-set link identifier and corresponding set link simulation data, and a relationship between the to-be-set link identifier and the corresponding set link simulation data may be determined according to a service requirement, an actual application scenario, or a product requirement.
Further, after receiving the link setting request, the link data caching device 310 may perform associated storage on the link identifier to be set and the set link simulation data according to the link setting request, so as to facilitate subsequent application.
In one embodiment, the link simulation test device is further configured to obtain a test request parameter corresponding to a link request to be tested, determine target simulation data, the test request parameter, and a tested result as a link record corresponding to a link identifier, send the link record to the link data cache device for caching, and send a current link record obtaining request to the link data cache device, where the current link record obtaining request includes the current link identifier, and the link data cache device is further configured to search for a current link record corresponding to the current link identifier according to the current link record obtaining request, and return the current link record to the target terminal, and the target terminal is further configured to receive the current link record.
The link simulation test equipment acquires the test request parameters corresponding to the link request to be tested, determines target simulation data, the test request parameters and the tested result as link records corresponding to the link identification, and sends the link records to the link data cache equipment for caching. The target simulation data, the test request parameter, and the measured result are determined as link records corresponding to the link identifier, and specifically, the target simulation parameter, the measured result, and the target simulation data are packaged together to form the link records corresponding to the link identifier, and the link records are sent to the link data caching device for caching.
Further, in the application process, the target terminal may send a current link record obtaining request to the link data caching device, where the current link record obtaining request is currently used to request to obtain a current link record, and the current link record obtaining request includes a current link identifier. And after receiving the current link record acquisition request, the link data cache equipment searches the current link record corresponding to the current link identification according to the current link record acquisition request and returns the current link record to the target terminal, and the target terminal is also used for receiving the current link record. The link identifiers and the link records are stored in a correlated manner, the corresponding link records can be searched through the link identifiers, and different link records correspond to different link identifiers.
In one embodiment, as shown in fig. 5, there is provided a link simulation test apparatus 500, comprising: a test request receiving module 502, a tested application determining module 504, a test request sending module 506, a link identifier sending module 508, an analog data sending module 510, and a tested result receiving module 512, wherein:
the test request receiving module 502 is configured to receive a link request to be tested, where the link request to be tested includes a link identifier, called service information, and a tested application identifier.
The tested application determining module 504 is configured to determine a corresponding tested application according to the tested application identifier.
And the test request sending module 506 is configured to send the link request to be tested to the application to be tested, so that the application to be tested calls the matched target simulation service according to the called service information in the link request to be tested.
The link identifier sending module 508 is configured to send the link identifier to the target simulation service, and obtain target simulation data corresponding to the link identifier returned by the target simulation service.
The analog data sending module 510 is configured to send the target analog data to the application under test, so that the application under test performs an analog test according to the target analog data to obtain a result under test.
And the measured result receiving module 512 is configured to receive the measured result and return the measured result to the target terminal.
In an embodiment, the link simulation testing apparatus 500 is further configured to obtain a test request parameter corresponding to a link request to be tested, determine target simulation data, the test request parameter, and a tested result as a link record corresponding to a link identifier, and send the link record to the cache area for caching.
In one embodiment, the tested application determining module 504 is further configured to obtain a candidate test application, where the candidate test application includes a candidate test application identifier, and determine a candidate test application corresponding to the candidate test application identifier corresponding to the tested application identifier as the tested application.
For the specific definition of the link simulation test device, reference may be made to the above definition of the link simulation test method, which is not described herein again. The modules in the link simulation test device can be wholly or partially implemented by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as shown in fig. 6. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the computer device is used for storing the measured results. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a link simulation testing method.
In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as shown in fig. 7. The computer device includes a processor, a memory, a network interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a link simulation testing method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the configurations shown in fig. 6 or 7 are merely block diagrams of some configurations relevant to the present disclosure, and do not constitute a limitation on the computing devices to which the present disclosure may be applied, and that a particular computing device may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing the following steps when executing the computer program: receiving a link to-be-tested request, wherein the link to-be-tested request comprises a link identifier, called service information and a tested application identifier; determining a corresponding application to be tested according to the application to be tested identifier; sending the link to-be-tested request to the tested application so that the tested application calls the matched target simulation service according to the called service information in the link to-be-tested request; sending the link identification to a target simulation service, and acquiring target simulation data corresponding to the link identification returned by the target simulation service; sending the target simulation data to the application to be tested so that the application to be tested performs simulation test according to the target simulation data to obtain a tested result; and receiving the measured result and returning the measured result to the target terminal.
In one embodiment, the processor, when executing the computer program, further performs the steps of: acquiring a test request parameter corresponding to a link to-be-tested request; and determining the target simulation data, the test request parameters and the tested result as link records corresponding to the link identifiers, and sending the link records to a cache region for caching.
In one embodiment, the processor, when executing the computer program, further performs the steps of: acquiring a candidate test application, wherein the candidate test application comprises a candidate test application identifier; and determining the candidate test application corresponding to the candidate test application identification corresponding to the tested application identification as the tested application.
In one embodiment, the processor, when executing the computer program, further performs the steps of: the target simulation service acquires candidate simulation data, wherein the candidate simulation data comprises corresponding candidate link identifications; and the target simulation service determines the candidate simulation data corresponding to the candidate link identification which is the same as the link identification as the target simulation data and returns the target simulation data.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of: receiving a link to-be-tested request, wherein the link to-be-tested request comprises a link identifier, called service information and a tested application identifier; determining a corresponding application to be tested according to the application to be tested identifier; sending the link to-be-tested request to the tested application so that the tested application calls the matched target simulation service according to the called service information in the link to-be-tested request; sending the link identification to a target simulation service, and acquiring target simulation data corresponding to the link identification returned by the target simulation service; sending the target simulation data to the application to be tested so that the application to be tested performs simulation test according to the target simulation data to obtain a tested result; and receiving the measured result and returning the measured result to the target terminal.
In one embodiment, the processor, when executing the computer program, further performs the steps of: acquiring a test request parameter corresponding to a link to-be-tested request; and determining the target simulation data, the test request parameters and the tested result as link records corresponding to the link identifiers, and sending the link records to a cache region for caching.
In one embodiment, the processor, when executing the computer program, further performs the steps of: acquiring a candidate test application, wherein the candidate test application comprises a candidate test application identifier; and determining the candidate test application corresponding to the candidate test application identification corresponding to the tested application identification as the tested application.
In one embodiment, the processor, when executing the computer program, further performs the steps of: the target simulation service acquires candidate simulation data, wherein the candidate simulation data comprises corresponding candidate link identifications; and the target simulation service determines the candidate simulation data corresponding to the candidate link identification which is the same as the link identification as the target simulation data and returns the target simulation data.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A link simulation test method, the method comprising:
receiving a link to-be-tested request, wherein the link to-be-tested request comprises a link identifier, called service information and a tested application identifier;
determining a corresponding application to be tested according to the application to be tested identifier;
sending the link to-be-tested request to the tested application so that the tested application calls the matched target simulation service according to the called service information in the link to-be-tested request;
sending the link identification to the target simulation service, and acquiring target simulation data corresponding to the link identification returned by the target simulation service;
sending the target simulation data to the application to be tested so that the application to be tested performs simulation test according to the target simulation data to obtain a tested result;
and receiving the measured result and returning the measured result to the target terminal.
2. The method of claim 1, further comprising:
acquiring a test request parameter corresponding to the link to-be-tested request;
and determining the target simulation data, the test request parameters and the tested result as link records corresponding to the link identifiers, and sending the link records to a cache region for caching.
3. The method of claim 1, wherein determining the corresponding application under test according to the application under test identifier comprises:
obtaining a candidate test application, wherein the candidate test application comprises a candidate test application identifier;
and determining the candidate test application corresponding to the candidate test application identifier corresponding to the tested application identifier as the tested application.
4. The method of claim 1, wherein the obtaining target simulation data corresponding to the link identifier returned by the target simulation service comprises:
the target simulation service acquires candidate simulation data, wherein the candidate simulation data comprises corresponding candidate link identifications;
and the target simulation service determines the candidate simulation data corresponding to the candidate link identification which is the same as the link identification as the target simulation data and returns the target simulation data.
5. A link simulation test system, the system comprising:
the link simulation test device is used for receiving a link to-be-tested request, determining a corresponding tested application according to the tested application identifier, and sending the link to-be-tested request to the tested application, wherein the link to-be-tested request comprises a link identifier, called service information and a tested application identifier;
the tested application is used for calling matched target simulation service according to the called service information in the link to-be-tested request;
the link simulation test equipment is used for sending the link identification to the target simulation service;
and the target simulation service is used for acquiring target simulation data corresponding to the link identification. And returning to the link simulation test equipment;
the link simulation test equipment is used for sending the target simulation data to the application to be tested;
the tested application is used for carrying out simulation test according to the target simulation data to obtain a tested result and returning the tested result to the link simulation test equipment;
and the link simulation test equipment is used for receiving the tested result and returning the tested result to the target terminal.
6. The method of claim 5, wherein the system further comprises:
the link setting device is used for sending a link setting request to the link data caching device, wherein the link setting request comprises a link identifier to be set and corresponding link simulation data to be set;
and the link data caching device is used for storing the link identifier to be set and the set link simulation data in a correlation manner according to the link setting request.
7. The method of claim 6, wherein the link simulation test device is further configured to obtain a test request parameter corresponding to the link request to be tested; determining the target simulation data, the test request parameters and the tested result as link records corresponding to the link identifications, and sending the link records to link data caching equipment for caching;
the target terminal is further configured to send a current link record acquisition request to the link data caching device, where the current link record acquisition request includes a current link identifier;
the link data caching device is further configured to search a current link record corresponding to the current link identifier according to the current link record acquisition request, and return the current link record to the target terminal;
the target terminal is further configured to receive the current link record.
8. A link simulation test apparatus, the apparatus comprising:
the system comprises a test request receiving module, a test request receiving module and a test result generating module, wherein the test request receiving module is used for receiving a link to-be-tested request, and the link to-be-tested request comprises a link identifier, called service information and a tested application identifier;
the tested application determining module is used for determining the corresponding tested application according to the tested application identifier;
the test request sending module is used for sending the link to-be-tested request to the tested application so that the tested application calls the matched target simulation service according to the called service information in the link to-be-tested request;
the link identification sending module is used for sending the link identification to the target simulation service and acquiring target simulation data which is returned by the target simulation service and corresponds to the link identification;
the simulation data sending module is used for sending the target simulation data to the application to be tested so that the application to be tested performs simulation test according to the target simulation data to obtain a tested result;
and the measured result receiving module is used for receiving the measured result and returning the measured result to the target terminal.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the steps of the method of any of claims 1 to 4 are implemented when the computer program is executed by the processor.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 4.
CN202011475159.0A 2020-12-14 2020-12-14 Link simulation test method, device, system, computer equipment and storage medium Active CN112637008B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011475159.0A CN112637008B (en) 2020-12-14 2020-12-14 Link simulation test method, device, system, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011475159.0A CN112637008B (en) 2020-12-14 2020-12-14 Link simulation test method, device, system, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112637008A true CN112637008A (en) 2021-04-09
CN112637008B CN112637008B (en) 2022-08-09

Family

ID=75313733

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011475159.0A Active CN112637008B (en) 2020-12-14 2020-12-14 Link simulation test method, device, system, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112637008B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113946502A (en) * 2021-09-07 2022-01-18 北京达佳互联信息技术有限公司 Test method, test device, electronic equipment and storage medium
CN115174383A (en) * 2022-05-30 2022-10-11 青岛海尔科技有限公司 Device updating method, storage medium and electronic device
CN116795723A (en) * 2023-08-21 2023-09-22 建信金融科技有限责任公司 Chain unit test processing method and device and computer equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2017142238A (en) * 2016-01-19 2017-08-17 テクトロニクス・インコーポレイテッドTektronix,Inc. Test and measurement device and method of selecting specific link training information
CN108400901A (en) * 2018-01-02 2018-08-14 深圳壹账通智能科技有限公司 Test method, terminal device and the computer readable storage medium of application
CN110765024A (en) * 2019-10-29 2020-02-07 百度在线网络技术(北京)有限公司 Simulation test method, simulation test device, electronic equipment and computer-readable storage medium
CN111611121A (en) * 2020-04-09 2020-09-01 浙江口碑网络技术有限公司 Hardware simulation test method, device and equipment
CN111711544A (en) * 2020-05-15 2020-09-25 北京奇艺世纪科技有限公司 Link dial testing method and device, electronic equipment and storage medium
WO2020236469A1 (en) * 2019-05-17 2020-11-26 Citrix Systems, Inc. Systems and methods for managing client requests to access services provided by a data center

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2017142238A (en) * 2016-01-19 2017-08-17 テクトロニクス・インコーポレイテッドTektronix,Inc. Test and measurement device and method of selecting specific link training information
CN108400901A (en) * 2018-01-02 2018-08-14 深圳壹账通智能科技有限公司 Test method, terminal device and the computer readable storage medium of application
WO2020236469A1 (en) * 2019-05-17 2020-11-26 Citrix Systems, Inc. Systems and methods for managing client requests to access services provided by a data center
CN110765024A (en) * 2019-10-29 2020-02-07 百度在线网络技术(北京)有限公司 Simulation test method, simulation test device, electronic equipment and computer-readable storage medium
CN111611121A (en) * 2020-04-09 2020-09-01 浙江口碑网络技术有限公司 Hardware simulation test method, device and equipment
CN111711544A (en) * 2020-05-15 2020-09-25 北京奇艺世纪科技有限公司 Link dial testing method and device, electronic equipment and storage medium

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113946502A (en) * 2021-09-07 2022-01-18 北京达佳互联信息技术有限公司 Test method, test device, electronic equipment and storage medium
CN115174383A (en) * 2022-05-30 2022-10-11 青岛海尔科技有限公司 Device updating method, storage medium and electronic device
CN115174383B (en) * 2022-05-30 2024-03-22 青岛海尔科技有限公司 Equipment updating method, storage medium and electronic device
CN116795723A (en) * 2023-08-21 2023-09-22 建信金融科技有限责任公司 Chain unit test processing method and device and computer equipment
CN116795723B (en) * 2023-08-21 2023-11-21 建信金融科技有限责任公司 Chain unit test processing method and device and computer equipment

Also Published As

Publication number Publication date
CN112637008B (en) 2022-08-09

Similar Documents

Publication Publication Date Title
CN110008118B (en) Page data testing method and device, computer equipment and storage medium
CN112637008B (en) Link simulation test method, device, system, computer equipment and storage medium
CN108446116B (en) Application program page generation method and device, computer equipment and storage medium
CN109460527B (en) Product data configuration method, device, computer equipment and storage medium
CN110008117A (en) Page test method, device, computer equipment and storage medium
CN110866198B (en) Static resource caching method, system, device, computer equipment and storage medium
CN108427613B (en) Abnormal interface positioning method and device, computer equipment and storage medium
CN110941555B (en) Test case recommendation method and device, computer equipment and storage medium
CN109586948A (en) Update method, apparatus, computer equipment and the storage medium of system configuration data
CN108848000B (en) Network request testing method and device, computer equipment and storage medium
CN109726134B (en) Interface test method and system
CN110782277A (en) Resource processing method, resource processing device, computer equipment and storage medium
CN110321284B (en) Test data entry method, device, computer equipment and storage medium
CN108959384B (en) Webpage data acquisition method and device, computer equipment and storage medium
CN109039751A (en) Configure method, apparatus, computer equipment and the storage medium of routing
CN111581271A (en) Interface parameter determination method and device, computer equipment and storage medium
CN110609683B (en) Conversation robot configuration method and device, computer equipment and storage medium
CN111209061A (en) Method and device for filling in user information, computer equipment and storage medium
CN108304289B (en) Terminal fingerprint test method and device, computer equipment and storage medium
CN110516172B (en) Resource calling method and device, computer equipment and storage medium
CN112446723A (en) Method, computer-readable storage medium, and apparatus for determining user invitation relationship
CN111398701B (en) Equipment test method, device, computer equipment and storage medium
CN110222290B (en) Page generation method and device, computer equipment and storage medium
CN108966154B (en) Method and device for sending short messages in group, computer equipment and storage medium
CN112783866A (en) Data reading method and device, computer equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant