CN110806970A - Client test method and device based on simulation server response and electronic equipment - Google Patents

Client test method and device based on simulation server response and electronic equipment Download PDF

Info

Publication number
CN110806970A
CN110806970A CN201910881806.9A CN201910881806A CN110806970A CN 110806970 A CN110806970 A CN 110806970A CN 201910881806 A CN201910881806 A CN 201910881806A CN 110806970 A CN110806970 A CN 110806970A
Authority
CN
China
Prior art keywords
client
response information
test file
response
server
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.)
Pending
Application number
CN201910881806.9A
Other languages
Chinese (zh)
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.)
Beijing Youfu Computer Technology Co Ltd
Original Assignee
Beijing Youfu Computer Technology 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 Beijing Youfu Computer Technology Co Ltd filed Critical Beijing Youfu Computer Technology Co Ltd
Priority to CN201910881806.9A priority Critical patent/CN110806970A/en
Publication of CN110806970A publication Critical patent/CN110806970A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3696Methods or tools to render software testable

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a client test method, a device, electronic equipment and a computer readable medium based on simulation server response, which comprises the following steps: creating a test file locally at a client, wherein the test file is used for recording response information of a response of a simulation server; receiving user operation, and generating or modifying the response information in the test file according to the user operation; and when the step of sending a request to the server and acquiring response information is tested on the client, reading the response information corresponding to the request from the test file, and testing the client based on the response information. The method and the device can directly modify the response data in the local file of the mobile phone client, do not need to grab a packet by a connection agent to modify the response data, and are convenient for verifying the correctness of the app function of the mobile phone client.

Description

Client test method and device based on simulation server response and electronic equipment
Technical Field
The invention relates to the field of computer information processing, in particular to a client test method and device based on simulation server response, electronic equipment and a computer readable medium.
Background
In the prior art, when a client test is performed, a test request is sent to a server through the client, response data between the client and the server is captured by proxy tools such as fiddler and the like, a tester sends the client after modifying the response data, and the steps of verifying whether the response of the client is correct and the like are completed.
In the prior art, a remotely connected server needs to be called, and the server needs to provide response data, so that the method has the problems of slow test result, long waiting time and low test efficiency.
Disclosure of Invention
The technical problem to be solved by the invention is how to improve the client testing efficiency.
One aspect of the present invention provides a client testing method based on a simulation server response, which is characterized by comprising:
creating a test file locally at a client, wherein the test file is used for recording response information of a response of a simulation server;
receiving user operation, and generating or modifying the response information in the test file according to the user operation;
and when the step of sending a request to the server and acquiring response information is tested on the client, reading the response information corresponding to the request from the test file, and testing the client based on the response information.
According to a preferred embodiment of the present invention, the creating a test file locally at the client further includes:
configuring response information simulating response of a server based on different application scenes of the client;
and creating a test file locally at the client according to the response information.
According to a preferred embodiment of the present invention, further comprising: and modifying the response information of the test file based on different application scenes of the client.
According to a preferred embodiment of the present invention, before reading the response information corresponding to the request from the test file, the method further includes: and granting the client side the right to read the test file simulating the response information of the server side response.
According to a preferred embodiment of the present invention, the testing the client based on the response information further includes: verifying whether the client is normal when executing the corresponding request based on the response information; and verifying whether the result is correct after the client executes the corresponding request based on the response information.
According to a preferred embodiment of the present invention, further comprising: setting a mode of a client for acquiring response information, wherein the mode of the client for acquiring the response information comprises the following steps: and acquiring response information of the test file created locally for simulating the response of the server or acquiring the response information of the response of the server.
According to a preferred embodiment of the present invention, further comprising: and selecting txt text, doc text, rtf text, xls text or pdf text as the text type of the test file.
According to a preferred embodiment of the present invention, further comprising: and setting the data content of the response information of the test file for simulating the server response to be consistent with the data content of the response information of the server response.
According to a preferred embodiment of the present invention, further comprising: and converting the response information corresponding to the request read from the test file into information which can be processed by the client through data exchange.
A second aspect of the present invention provides a client testing apparatus based on a simulated server response, including:
the system comprises a test file creating module, a simulation server and a test file generating module, wherein the test file creating module is used for creating a test file locally at a client, and the test file is used for recording response information of a response of the simulation server;
the response information modification module is used for receiving user operation and generating or modifying the response information in the test file according to the user operation;
and the client test module is used for reading the response information corresponding to the request from the test file and testing the client based on the response information when the steps of sending the request to the server and acquiring the response information are tested on the client.
According to a preferred embodiment of the present invention, the test file creating module further includes:
the response information configuration unit is used for configuring response information of the response of the simulation server side based on different application scenes of the client side;
and the test file creating unit is used for creating a test file locally at the client according to the response information.
According to a preferred embodiment of the present invention, further comprising: and the response information modifying unit is used for modifying the response information of the test file based on different application scenes of the client.
According to a preferred embodiment of the present invention, further comprising: and the permission granting module is used for granting the permission of the client to read the test file simulating the response information of the server response.
According to a preferred embodiment of the present invention, the client test module further includes: a first verifying unit, configured to verify whether the client executes the corresponding request normally based on the response information; and
and the second verification unit is used for verifying whether the result is correct after the client executes the corresponding request based on the response information.
According to a preferred embodiment of the present invention, further comprising: the acquisition mode setting module is used for setting a mode of acquiring the response information by the client, and the mode of acquiring the response information by the client comprises the following steps: and acquiring response information of the test file created locally for simulating the response of the server or acquiring the response information of the response of the server.
According to a preferred embodiment of the present invention, further comprising: and the text type selection module is used for selecting txt text, doc text, rtf text, xls text or pdf text as the text type of the test file.
According to a preferred embodiment of the present invention, further comprising: and the data content setting module is used for setting the data content of the response information of the test file for simulating the response of the server, so that the data content is consistent with the data content of the response information of the response of the server.
According to a preferred embodiment of the present invention, further comprising: and the data conversion module is used for converting the response information read from the test file and corresponding to the request into information which can be processed by the client through data exchange.
A third aspect of the present invention provides an electronic apparatus, wherein the electronic apparatus comprises: a processor; and the number of the first and second groups,
a memory storing computer executable instructions that, when executed, cause the processor to perform any of the methods.
A fourth aspect of the invention provides a computer readable storage medium, wherein the computer readable storage medium stores one or more programs which, when executed by a processor, implement any of the methods.
The technical scheme of the invention has the following beneficial effects:
according to the invention, the test file for simulating the server is created locally, so that the problem of direct connection with the server in the test process is avoided, and the problems of slow test result, long waiting time and low test efficiency are solved.
Drawings
In order to make the technical problems solved by the present invention, the technical means adopted and the technical effects obtained more clear, the following will describe in detail the embodiments of the present invention with reference to the accompanying drawings. It should be noted, however, that the drawings described below are only drawings of exemplary embodiments of the invention, from which other embodiments can be derived by those skilled in the art without inventive step.
FIG. 1 is a schematic diagram illustrating a client testing process performed by a server in the prior art;
FIG. 2 is a schematic diagram of a client testing principle based on simulation of server response according to the present invention;
FIG. 3 is a schematic flow chart of a client testing method based on simulation of server response according to the present invention;
FIG. 4 is a flowchart illustrating a client testing method based on simulated server responses according to an embodiment of the present invention;
FIG. 5 is a block diagram of a client test device based on simulated server responses according to the present invention;
FIG. 6 is a block diagram of an electronic device architecture for client testing based on simulation of server responses in accordance with the present invention;
FIG. 7 is a schematic diagram of a computer readable storage medium of the present invention.
Detailed Description
Exemplary embodiments of the present invention will now be described more fully with reference to the accompanying drawings. The exemplary embodiments, however, may be embodied in many different forms and should not be construed as limited to the embodiments set forth herein. Rather, these exemplary embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of the invention to those skilled in the art. The same reference numerals denote the same or similar elements, components, or parts in the drawings, and thus their repetitive description will be omitted.
Features, structures, characteristics or other details described in a particular embodiment do not preclude the fact that the features, structures, characteristics or other details may be combined in a suitable manner in one or more other embodiments in accordance with the technical idea of the invention.
In describing particular embodiments, the present invention has been described with reference to features, structures, characteristics or other details that are within the purview of one skilled in the art to provide a thorough understanding of the embodiments. One skilled in the relevant art will recognize, however, that the invention may be practiced without one or more of the specific features, structures, characteristics, or other details.
The flow charts shown in the drawings are merely illustrative and do not necessarily include all of the contents and operations/steps, nor do they necessarily have to be performed in the order described. For example, some operations/steps may be decomposed, and some operations/steps may be combined or partially combined, so that the actual execution sequence may be changed according to the actual situation.
The block diagrams shown in the figures are functional entities only and do not necessarily correspond to physically separate entities. I.e. these functional entities may be implemented in the form of software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor means and/or microcontroller means.
It will be understood that, although the terms first, second, third, etc. may be used herein to describe various elements, components, or sections, these terms should not be construed as limiting. These phrases are used to distinguish one from another. For example, a first device may also be referred to as a second device without departing from the spirit of the present invention.
The term "and/or" and/or "includes any and all combinations of one or more of the associated listed items.
FIG. 1 is a schematic diagram illustrating a client testing process performed by a server in the prior art; fiddler is one of the debugging tools commonly used in the art that can record http and https requests from both client and server sides. Allowing the tester to monitor, set breakpoints, and even modify input and output data.
The buddy is a packet capturing tool, when a client accesses a server through a browser, a request is formed, the buddy is positioned between the requests, and when the browser sends the request, the request passes through the buddy first and then goes to the server; when the server has the data returned to the browser for display, the data also passes through the fixdler firstly, and then the data is displayed in the browser, and in the process, the fixdler captures the whole process of the request and the response.
However, in the prior art, the server is required to provide response data, so that the method has the problems of slow test result, long waiting time and low test efficiency.
FIG. 2 is a schematic diagram of a client testing principle based on simulation of server response according to the present invention; such as
As shown in fig. 2, when the client terminal tests, the server is no longer connected through the fixdler, but a test file is created on the same mobile terminal as the client terminal, and is used for simulating the response of the server terminal.
FIG. 3 is a schematic flow chart of a client testing method based on simulation of server response according to the present invention; as shown in fig. 3, the method of the present invention comprises the steps of:
s301: and creating a test file locally at the client, wherein the test file is used for recording response information of the response of the simulation server.
Wherein the creating a test file locally at the client further comprises:
configuring response information simulating response of a server based on different application scenes of the client;
and creating a test file locally at the client according to the response information.
The method of the invention also comprises the following steps: and selecting txt text, doc text, rtf text, xls text or pdf text as the text type of the test file.
The method of the invention also comprises the following steps: and setting the data content of the response information of the test file for simulating the server response to be consistent with the data content of the response information of the server response.
S302: and receiving user operation, and generating or modifying the response information in the test file according to the user operation.
The method of the invention also comprises the following steps: and modifying the response information of the test file based on different application scenes of the client.
S303: and when the step of sending a request to the server and acquiring response information is tested on the client, reading the response information corresponding to the request from the test file, and testing the client based on the response information.
Before reading the response information corresponding to the request from the test file, the method further includes: and granting the client side the right to read the test file simulating the response information of the server side response.
Wherein the testing the client based on the response information further comprises: verifying whether the client is normal when executing the corresponding request based on the response information; and verifying whether the result is correct after the client executes the corresponding request based on the response information.
The method of the invention also comprises the following steps: setting a mode of a client for acquiring response information, wherein the mode of the client for acquiring the response information comprises the following steps: and acquiring response information of the test file created locally for simulating the response of the server or acquiring the response information of the response of the server.
The method of the invention also comprises the following steps: and converting the response information corresponding to the request read from the test file into information which can be processed by the client through data exchange.
FIG. 4 is a flowchart illustrating a client testing method based on simulated server responses according to an embodiment of the present invention; the method of the present invention is further explained by way of specific examples, as shown in fig. 4.
And according to different application scenes of the client, configuring response information simulating the response of the server, and according to the response information, creating a test file in a directory of the mobile terminal where the client is located. As an example, the text type of the test file may select the editable txt text.
And editing the test file to set the data content of the response information in the test file to be consistent with the data content of the response information of the server. Wherein, the data content consistency can be realized by setting the same data grid.
After the test text is created, a function for acquiring the test text needs to be added to the client.
After adding the function of acquiring the test text on the client, the client can select two modes to request response data, request to acquire the response information of the locally created test file or request to acquire the response information of the server.
If the data in the test file is selected to be requested to be read as the data issued by the server, a tester can directly change the data of the test file in different local scenes of the client, so that the effect of simulating the response data of the server is achieved, and the correctness of the app in different data scenes is verified.
It should be noted that the client can read the data content of the test text only after the client is granted the right to read the test file.
When the step of sending a request to a server and acquiring response information is tested on a client, the response information corresponding to the request is read from the test file, and the response information corresponding to the request read from the test file is converted into information which can be processed by the client through data exchange.
Verifying whether the client is normal when executing the corresponding request based on the response information; and verifying whether the result is correct after the client executes the corresponding request based on the response information.
It should be noted that the client may be a test version of app.
Those skilled in the art will appreciate that all or part of the steps to implement the above-described embodiments are implemented as programs (computer programs) executed by a computer data processing apparatus. When the computer program is executed, the method provided by the invention can be realized. Furthermore, the computer program may be stored in a computer readable storage medium, which may be a readable storage medium such as a magnetic disk, an optical disk, a ROM, a RAM, or a storage array composed of a plurality of storage media, such as a magnetic disk or a magnetic tape storage array. The storage medium is not limited to centralized storage, but may be distributed storage, such as cloud storage based on cloud computing.
Embodiments of the apparatus of the present invention are described below, which may be used to perform method embodiments of the present invention. The details described in the device embodiments of the invention should be regarded as complementary to the above-described method embodiments; reference is made to the above-described method embodiments for details not disclosed in the apparatus embodiments of the invention.
Those skilled in the art will appreciate that the modules in the above-described embodiments of the apparatus may be distributed as described in the apparatus, and may be correspondingly modified and distributed in one or more apparatuses other than the above-described embodiments. The modules of the above embodiments may be combined into one module, or further split into multiple sub-modules.
FIG. 5 is a block diagram of a client test device based on simulated server responses according to the present invention; as shown in fig. 5, the apparatus of the present invention comprises: the system comprises a test file creating module, a response information modifying module and a client testing module.
The system comprises a test file creating module, a simulation server and a test file generating module, wherein the test file creating module is used for creating a test file locally at a client, and the test file is used for recording response information of a response of the simulation server;
the response information modification module is used for receiving user operation and generating or modifying the response information in the test file according to the user operation;
and the client test module is used for reading the response information corresponding to the request from the test file and testing the client based on the response information when the steps of sending the request to the server and acquiring the response information are tested on the client.
Wherein the test file creating module further comprises: a response information configuration unit and a test file creation unit.
And the response information configuration unit is used for configuring response information simulating the response of the server based on different application scenes of the client.
And the test file creating unit is used for creating a test file locally at the client according to the response information.
The test file creating module also comprises a response information modifying unit.
And the response information modifying unit is used for modifying the response information of the test file based on different application scenes of the client.
The invention also discloses a client test device based on the response of the simulation server, comprising: and a permission granting module.
And the permission granting module is used for granting the permission of the client to read the test file simulating the response information of the server response.
Wherein, the client test module further comprises: a first authentication unit and a second authentication unit.
A first verifying unit, configured to verify whether the client executes the corresponding request normally based on the response information; and
and the second verification unit is used for verifying whether the result is correct after the client executes the corresponding request based on the response information.
The invention also discloses a client test device based on the response of the simulation server, comprising: and an acquisition mode setting module.
The acquisition mode setting module is used for setting a mode of acquiring the response information by the client, and the mode of acquiring the response information by the client comprises the following steps: and acquiring response information of the test file created locally for simulating the response of the server or acquiring the response information of the response of the server.
The invention also discloses a client test device based on the response of the simulation server, comprising: and a text type selection module.
And the text type selection module is used for selecting txt text, doc text, rtf text, xls text or pdf text as the text type of the test file.
The invention also discloses a client test device based on the response of the simulation server, comprising: and a data content setting module.
And the data content setting module is used for setting the data content of the response information of the test file for simulating the response of the server, so that the data content is consistent with the data content of the response information of the response of the server.
The invention also discloses a client test device based on the response of the simulation server, comprising: and a data conversion module.
And the data conversion module is used for converting the response information read from the test file and corresponding to the request into information which can be processed by the client through data exchange.
In the following, embodiments of the electronic device of the present invention are described, which may be regarded as specific physical implementations for the above-described embodiments of the method and apparatus of the present invention. Details described in the embodiments of the electronic device of the invention should be considered supplementary to the embodiments of the method or apparatus described above; for details which are not disclosed in embodiments of the electronic device of the invention, reference may be made to the above-described embodiments of the method or the apparatus.
FIG. 6 is a block diagram of an electronic device architecture for client testing based on simulation of server responses in accordance with the present invention. An electronic device 600 according to this embodiment of the invention is described below with reference to fig. 6. The electronic device 600 shown in fig. 6 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present invention.
As shown in fig. 6, the electronic device 600 is embodied in the form of a general purpose computing device. The components of the electronic device 600 may include, but are not limited to: at least one processing unit 610, at least one storage unit 620, a bus 630 that connects the various system components (including the storage unit 620 and the processing unit 610), a display unit 640, and the like.
Wherein the storage unit stores program code executable by the processing unit 610 to cause the processing unit 610 to perform steps according to various exemplary embodiments of the present invention described in the above-mentioned electronic prescription flow processing method section of the present specification. For example, the processing unit 610 may perform the steps as shown in fig. 3.
The storage unit 620 may include readable media in the form of volatile memory units, such as a random access memory unit (RAM)6201 and/or a cache memory unit 6202, and may further include a read-only memory unit (ROM) 6203.
The memory unit 620 may also include a program/utility 6204 having a set (at least one) of program modules 6205, such program modules 6205 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which, or some combination thereof, may comprise an implementation of a network environment.
Bus 630 may be one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
The electronic device 600 may also communicate with one or more external devices 700 (e.g., keyboard, pointing device, bluetooth device, etc.), with one or more devices that enable a user to interact with the electronic device 600, and/or with any devices (e.g., router, modem, etc.) that enable the electronic device 600 to communicate with one or more other computing devices. Such communication may occur via an input/output (I/O) interface 650. Also, the electronic device 600 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network such as the Internet) via the network adapter 660. The network adapter 660 may communicate with other modules of the electronic device 600 via the bus 630. It should be appreciated that although not shown in the figures, other hardware and/or software modules may be used in conjunction with the electronic device 600, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments of the present invention described herein may be implemented by software, or by software in combination with necessary hardware. Therefore, the technical solution according to the embodiment of the present invention can be embodied in the form of a software product, which can be stored in a computer-readable storage medium (which can be a CD-ROM, a usb disk, a removable hard disk, etc.) or on a network, and includes several instructions to make a computing device (which can be a personal computer, a server, or a network device, etc.) execute the above-mentioned method according to the present invention. The computer program, when executed by a data processing apparatus, enables the computer readable medium to implement the above-described method of the invention, namely: creating a test file locally at a client, wherein the test file is used for recording response information of a response of a simulation server; receiving user operation, and generating or modifying the response information in the test file according to the user operation; and when the step of sending a request to the server and acquiring response information is tested on the client, reading the response information corresponding to the request from the test file, and testing the client based on the response information.
The computer program may be stored on one or more computer readable media, as shown in FIG. 7. The computer readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The computer readable storage medium may include a propagated data signal with readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A readable storage medium may also be any readable medium that is not a readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a readable storage medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., through the internet using an internet service provider).
In summary, the invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art will appreciate that some or all of the functionality of some or all of the components in embodiments in accordance with the invention may be implemented in practice using a general purpose data processing device such as a microprocessor or a Digital Signal Processor (DSP). The present invention may also be embodied as apparatus or device programs (e.g., computer programs and computer program products) for performing a portion or all of the methods described herein. Such programs implementing the present invention may be stored on computer-readable media or may be in the form of one or more signals. Such a signal may be downloaded from an internet website or provided on a carrier signal or in any other form.
While the foregoing embodiments have described the objects, aspects and advantages of the present invention in further detail, it should be understood that the present invention is not inherently related to any particular computer, virtual machine or electronic device, and various general-purpose machines may be used to implement the present invention. The invention is not to be considered as limited to the specific embodiments thereof, but is to be understood as being modified in all respects, all changes and equivalents that come within the spirit and scope of the invention.

Claims (10)

1. A client test method based on simulation server response is characterized by comprising the following steps:
creating a test file locally at a client, wherein the test file is used for recording response information of a response of a simulation server;
receiving user operation, and generating or modifying the response information in the test file according to the user operation;
and when the step of sending a request to the server and acquiring response information is tested on the client, reading the response information corresponding to the request from the test file, and testing the client based on the response information.
2. The method of claim 1, wherein the creating the test file locally at the client further comprises:
configuring response information simulating response of a server based on different application scenes of the client;
and creating a test file locally at the client according to the response information.
3. The method of any of claims 1-2, further comprising:
and modifying the response information of the test file based on different application scenes of the client.
4. The method of any of claims 1-3, further comprising, prior to reading response information corresponding to the request from the test file:
and granting the client side the right to read the test file simulating the response information of the server side response.
5. The method of any of claims 1-4, wherein the testing the client based on the response information further comprises:
verifying whether the client is normal when executing the corresponding request based on the response information; and
and verifying whether the result is correct after the client executes the corresponding request based on the response information.
6. The method of any one of claims 1-5, further comprising:
setting a mode of a client for acquiring response information, wherein the mode of the client for acquiring the response information comprises the following steps: and acquiring response information of the test file created locally for simulating the response of the server or acquiring the response information of the response of the server.
7. The method of any one of claims 1-6, further comprising:
and selecting txt text, doc text, rtf text, xls text or pdf text as the text type of the test file.
8. A client test device based on simulation server response is characterized by comprising:
the system comprises a test file creating module, a simulation server and a test file generating module, wherein the test file creating module is used for creating a test file locally at a client, and the test file is used for recording response information of a response of the simulation server;
the response information modification module is used for receiving user operation and generating or modifying the response information in the test file according to the user operation;
and the client test module is used for reading the response information corresponding to the request from the test file and testing the client based on the response information when the steps of sending the request to the server and acquiring the response information are tested on the client.
9. An electronic device, wherein the electronic device comprises:
a processor; and the number of the first and second groups,
a memory storing computer-executable instructions that, when executed, cause the processor to perform the method of any of claims 1-7.
10. A computer readable storage medium, wherein the computer readable storage medium stores one or more programs which, when executed by a processor, implement the method of any of claims 1-7.
CN201910881806.9A 2019-09-18 2019-09-18 Client test method and device based on simulation server response and electronic equipment Pending CN110806970A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910881806.9A CN110806970A (en) 2019-09-18 2019-09-18 Client test method and device based on simulation server response and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910881806.9A CN110806970A (en) 2019-09-18 2019-09-18 Client test method and device based on simulation server response and electronic equipment

Publications (1)

Publication Number Publication Date
CN110806970A true CN110806970A (en) 2020-02-18

Family

ID=69487660

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910881806.9A Pending CN110806970A (en) 2019-09-18 2019-09-18 Client test method and device based on simulation server response and electronic equipment

Country Status (1)

Country Link
CN (1) CN110806970A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111367803A (en) * 2020-03-03 2020-07-03 北京九州云动科技有限公司 Method and system for improving testing efficiency of client software
CN111596968A (en) * 2020-04-28 2020-08-28 上海帆一尚行科技有限公司 Security reinforcement system, method thereof, server, client, electronic device and storage medium
CN112751716A (en) * 2021-01-05 2021-05-04 厦门亿联网络技术股份有限公司 Test method and system for controlling response of file server and electronic equipment
CN112799970A (en) * 2021-04-08 2021-05-14 腾讯科技(深圳)有限公司 Test data processing method, device, electronic equipment and medium
CN112817570A (en) * 2021-02-07 2021-05-18 上海星融汽车科技有限公司 Method and system for simulating data through MOCK
CN112988588A (en) * 2021-03-26 2021-06-18 广州博冠信息科技有限公司 Client software debugging method and device, storage medium and electronic equipment
CN113206755A (en) * 2021-04-20 2021-08-03 北京异乡旅行网络科技有限公司 Method and device for problem location

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103905258A (en) * 2012-12-24 2014-07-02 百度国际科技(深圳)有限公司 Method and apparatus for testing data uploading function of client
CN107729246A (en) * 2017-10-13 2018-02-23 广州阿里巴巴文学信息技术有限公司 For the auxiliary test methods of intended application, device, equipment and storage medium
CN108228444A (en) * 2016-12-14 2018-06-29 阿里巴巴集团控股有限公司 A kind of test method and device
US10089219B1 (en) * 2017-01-20 2018-10-02 Intuit Inc. Mock server for testing
CN109308266A (en) * 2018-11-30 2019-02-05 北京微播视界科技有限公司 Construction method, test method, device, equipment and the medium of test case
CN109670803A (en) * 2018-10-25 2019-04-23 深圳壹账通智能科技有限公司 Method, apparatus, medium and the electronic equipment tested before online trading

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103905258A (en) * 2012-12-24 2014-07-02 百度国际科技(深圳)有限公司 Method and apparatus for testing data uploading function of client
CN108228444A (en) * 2016-12-14 2018-06-29 阿里巴巴集团控股有限公司 A kind of test method and device
US10089219B1 (en) * 2017-01-20 2018-10-02 Intuit Inc. Mock server for testing
CN107729246A (en) * 2017-10-13 2018-02-23 广州阿里巴巴文学信息技术有限公司 For the auxiliary test methods of intended application, device, equipment and storage medium
CN109670803A (en) * 2018-10-25 2019-04-23 深圳壹账通智能科技有限公司 Method, apparatus, medium and the electronic equipment tested before online trading
CN109308266A (en) * 2018-11-30 2019-02-05 北京微播视界科技有限公司 Construction method, test method, device, equipment and the medium of test case

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111367803A (en) * 2020-03-03 2020-07-03 北京九州云动科技有限公司 Method and system for improving testing efficiency of client software
CN111596968A (en) * 2020-04-28 2020-08-28 上海帆一尚行科技有限公司 Security reinforcement system, method thereof, server, client, electronic device and storage medium
CN111596968B (en) * 2020-04-28 2023-10-17 上海帆一尚行科技有限公司 Security reinforcement system and method, server side, client side, electronic equipment and storage medium thereof
CN112751716A (en) * 2021-01-05 2021-05-04 厦门亿联网络技术股份有限公司 Test method and system for controlling response of file server and electronic equipment
CN112751716B (en) * 2021-01-05 2023-10-17 厦门亿联网络技术股份有限公司 Test method and system for controlling response of file server and electronic equipment
CN112817570A (en) * 2021-02-07 2021-05-18 上海星融汽车科技有限公司 Method and system for simulating data through MOCK
CN112988588A (en) * 2021-03-26 2021-06-18 广州博冠信息科技有限公司 Client software debugging method and device, storage medium and electronic equipment
CN112988588B (en) * 2021-03-26 2023-11-28 广州博冠信息科技有限公司 Client software debugging method and device, storage medium and electronic equipment
CN112799970A (en) * 2021-04-08 2021-05-14 腾讯科技(深圳)有限公司 Test data processing method, device, electronic equipment and medium
CN112799970B (en) * 2021-04-08 2021-07-06 腾讯科技(深圳)有限公司 Test data processing method, device, electronic equipment and medium
CN113206755A (en) * 2021-04-20 2021-08-03 北京异乡旅行网络科技有限公司 Method and device for problem location

Similar Documents

Publication Publication Date Title
CN110806970A (en) Client test method and device based on simulation server response and electronic equipment
US9916230B1 (en) White box testing
US10250721B2 (en) System and method for testing applications with a load tester and testing translator
JP6045134B2 (en) Parallel workload simulation for application performance testing
CN106550038B (en) Data configuration diagnosis system and method of digital control system
CN112100079B (en) Test method and system based on simulation data calling and electronic equipment
CN109450736B (en) Network interface test method and device, medium and computing equipment
CN107404418B (en) Internet product testing method, device, equipment and storage medium
CN108984202B (en) Electronic resource sharing method and device and storage medium
US9589087B2 (en) Verification environments utilizing hardware description languages
CN112579446A (en) Interface testing method and device, electronic equipment and storage medium
CN112363938A (en) Data processing method and device, electronic equipment and storage medium
CN111459814A (en) Automatic test case generation method and device and electronic equipment
CN112084102A (en) Interface pressure testing method and device
CN110609786A (en) Software testing method and device, computer equipment and storage medium
CN111666201A (en) Regression testing method, device, medium and electronic equipment
CN113495498B (en) Simulation method, simulator, device and medium for hardware device
CN114745313A (en) Terminal remote testing method and device, electronic equipment and readable medium
CN110795338B (en) Front-end and back-end interaction-based automatic testing method and device and electronic equipment
CN113535499A (en) Multi-type concurrent memory access flow verification method supporting multi-core shared access
US20210141868A1 (en) Heterogeneous-computing based emulator
CN112579428A (en) Interface testing method and device, electronic equipment and storage medium
WO2024000917A1 (en) Non-intrusive, pluggable front-end build transfer acceleration method and apparatus
CN110309038B (en) Performance test method and device, electronic equipment and computer readable storage medium
CN110825438B (en) Method and device for simulating data processing of artificial intelligence chip

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
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20200218

WD01 Invention patent application deemed withdrawn after publication