CN111355629A - Client test method and device, computer equipment and storage medium - Google Patents

Client test method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN111355629A
CN111355629A CN202010096758.5A CN202010096758A CN111355629A CN 111355629 A CN111355629 A CN 111355629A CN 202010096758 A CN202010096758 A CN 202010096758A CN 111355629 A CN111355629 A CN 111355629A
Authority
CN
China
Prior art keywords
client
tested
target core
testing
sandbox network
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
CN202010096758.5A
Other languages
Chinese (zh)
Other versions
CN111355629B (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.)
Suzhou Yige Network Technology Co ltd
Original Assignee
Suzhou Yige Network 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 Suzhou Yige Network Technology Co ltd filed Critical Suzhou Yige Network Technology Co ltd
Priority to CN202010096758.5A priority Critical patent/CN111355629B/en
Publication of CN111355629A publication Critical patent/CN111355629A/en
Application granted granted Critical
Publication of CN111355629B publication Critical patent/CN111355629B/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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/50Monitoring users, programs or devices to maintain the integrity of platforms, e.g. of processors, firmware or operating systems
    • G06F21/52Monitoring users, programs or devices to maintain the integrity of platforms, e.g. of processors, firmware or operating systems during program execution, e.g. stack integrity ; Preventing unwanted data erasure; Buffer overflow
    • G06F21/53Monitoring users, programs or devices to maintain the integrity of platforms, e.g. of processors, firmware or operating systems during program execution, e.g. stack integrity ; Preventing unwanted data erasure; Buffer overflow by executing in a restricted environment, e.g. sandbox or secure virtual machine
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/30Profiles

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the invention discloses a method and a device for testing a client, computer equipment and a storage medium, wherein the method comprises the following steps: configuring a target core application and a target core configuration file requested by a client to be tested in a sandbox network; and connecting the client to be tested through the sandbox network, and testing the client to be tested according to the target core configuration file. The technical scheme of the embodiment of the invention can enrich the function test range of the client.

Description

Client test method and device, computer equipment and storage medium
Technical Field
The embodiment of the invention relates to the technical field of testing, in particular to a method and a device for testing a client, computer equipment and a storage medium.
Background
The client, or called user side, refers to a program corresponding to the server and providing local services to the client. Because the client is directly connected with the user, the client needs to perform a function test before being released and used to detect the user experience condition of the client. The testable function range of the existing client test method is single.
Disclosure of Invention
The embodiment of the invention provides a method and a device for testing a client, computer equipment and a storage medium, which are used for enriching the function testing range of the client.
In a first aspect, an embodiment of the present invention provides a method for testing a client, including:
configuring a target core application and a target core configuration file requested by a client to be tested in a sandbox network;
and connecting the client to be tested through the sandbox network, and testing the client to be tested according to the target core configuration file.
In a second aspect, an embodiment of the present invention further provides a testing apparatus for a client, including:
the resource configuration module is used for configuring a target core application and a target core configuration file requested by a client to be tested in the sandbox network;
and the client testing module is used for connecting the client to be tested through the sandbox network and testing the client to be tested according to the target core configuration file.
In a third aspect, an embodiment of the present invention further provides a computer device, where the computer device includes:
one or more processors;
storage means for storing one or more programs;
when the one or more programs are executed by the one or more processors, the one or more processors implement the method for testing the client provided by any embodiment of the invention.
In a fourth aspect, an embodiment of the present invention further provides a computer storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the method for testing the client provided in any embodiment of the present invention.
The embodiment of the invention configures the target core application and the target core configuration file requested by the client to be tested in the sandbox network, so as to connect the client to be tested through the sandbox network and test the client to be tested according to the target core configuration file, thereby solving the problem of single test function of the existing client test method and enriching the function test range of the client.
Drawings
Fig. 1a is a flowchart of a testing method of a client according to an embodiment of the present invention;
FIG. 1b is a schematic diagram of testing a client to be tested through a sandbox network according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a testing apparatus of a client according to a second embodiment of the present invention;
fig. 3 is a schematic structural diagram of a computer device according to a third embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention.
It should be further noted that, for the convenience of description, only some but not all of the relevant aspects of the present invention are shown in the drawings. Before discussing exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart may describe the operations (or steps) as a sequential process, many of the operations can be performed in parallel, concurrently or simultaneously. In addition, the order of the operations may be re-arranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figure. The processes may correspond to methods, functions, procedures, subroutines, and the like.
Example one
Fig. 1a is a flowchart of a testing method for a client according to an embodiment of the present invention, where the method is applicable to a case where functions of the client are tested in a diversified manner using a sandbox network, and the method can be executed by a testing apparatus for the client, where the testing apparatus can be implemented in software and/or hardware, and can be generally integrated into a computer device and used in cooperation with the client to be tested. Accordingly, as shown in fig. 1a, the method comprises the following operations:
s110, configuring the target core application and the target core configuration file requested by the client to be tested in the sandbox network.
The target core application may be an application in the server for supporting the client to access, and for example, when the client to be tested is a game client, the target core application may be an authentication application or a recharge application. That is, the target core application may be adaptively set according to the type of the client to be tested and the functional requirement, and the embodiment of the present invention does not limit the specific type of the target core application. The client to be tested can be a client to be tested, such as a pre-release client or an upgrade client, and the embodiment of the invention does not limit the specific type of the client to be tested. The target core profile may be a core profile to which the client to be tested requests access from the server.
In the embodiment of the invention, in order to avoid the damage to the public network environment, the sandbox network can be used for testing the client to be tested. Specifically, a target core application and a target core configuration file matched with the client to be tested can be configured in the sandbox network, that is, a core resource of a server accessed by the client to be tested is copied into the sandbox network in a ratio of 1:1, so that a complete server environment is simulated to test the client to be tested.
In an optional embodiment of the present invention, before configuring the target core application and the target core configuration file requested by the client to be tested in the sandbox network, the method may further include: and building a DNS (Domain Name System) service of the sandbox network through DNSmasq.
DNSmasq is a small and convenient tool for configuring DNS and DHCP (Dynamic Host configuration protocol), is applicable to small networks, and provides a DNS function and an optional DHCP function. DNSmasq services domain names that are only locally applicable and are not present in DNS servers around the globe. Thus, the DNS service of the sandboxed network may be built through DNSmasq. Alternatively, the backend of the sandbox web page may be implemented by a way of a celery (distributed system that handles a large number of messages) in combination with a websocket (full duplex communication protocol based on TCP). The celery can ensure that tasks are asynchronous, and the websocket can return logs and states in the sandbox network to a Web (World Wide Web) page in real time. Optionally, the function of editing the configuration file on the web page may also be implemented by a vscode (a code editor).
In an optional embodiment of the present invention, configuring a target core configuration file requested by a client to be tested in a sandbox network may include: resolving the domain name of the target core configuration file into the sandbox network through DNSmasq.
And S120, connecting the client to be tested through the sandbox network, and testing the client to be tested according to the target core configuration file.
Correspondingly, after the target core application and the target core configuration file requested by the client to be tested are configured in the sandbox network, the client to be tested can be connected through the sandbox network, so that the client to be tested can be tested according to the target core configuration file.
In an optional embodiment of the present invention, the testing the client to be tested according to the target core configuration file may include: creating a testing environment matched with the client to be tested in the sandbox network; connecting the client to be tested through the sandbox network, and receiving an access request of the client to be tested; changing the target core configuration file; and if the reaction state of the client to be tested meets a first preset reaction state, determining that the client to be tested passes the test.
The first preset reaction state may be a reaction state expected by the client to be tested after the configuration file is destroyed. For example, the first preset reaction state may be to return corresponding error information, and the like.
Specifically, when testing a client to be tested according to a target core configuration file, a testing environment matched with the client to be tested needs to be created in a sandbox network, for example, a testing batch is established, the client to be tested is selected, and the testing batch is initialized and a file related to testing is prepared through the sandbox network. Different types of clients to be tested can establish a plurality of different test batches. It should be noted that the sandboxed network may also store a copy of the target core configuration file, so that when the target core configuration file is destroyed, the original target core configuration file may be written back. After the sandbox network creates a testing environment matching the client to be tested, the client to be tested may be connected to the sandbox network, for example, by a wireless connection. Since the sandbox network has the DNS service, DNSmasq can be automatically pointed to provide all the resolved content to the client to be tested through DNSmasq, even if the client to be tested accesses the resources in the sandbox network. That is, the sandbox network may receive an access request from a client to be tested. And then, changing a target core configuration file in the sandbox network, such as modifying relevant parameters of the configuration file, and determining that the client to be tested passes the test if the reaction state of the client to be tested meets a first preset reaction state.
In an optional embodiment of the present invention, after connecting the client to be tested through the sandbox network, the method may further include: creating a testing environment matched with the client to be tested in the sandbox network; connecting the client to be tested through the sandbox network, and receiving an access request of the client to be tested; changing the download file matched with the client to be tested; and if the reaction state of the client to be tested meets a second preset reaction state, determining that the client to be tested passes the test.
The second preset reaction state may be a reaction state expected by the client to be tested after the downloaded file is destroyed. For example, the second preset reaction state may be the return of error reporting information "no patch package can be obtained", and the like.
In the embodiment of the invention, the client to be tested can be tested according to the target core configuration file, and the downloaded file of the client to be tested in the sandbox network can be damaged after the client to be tested is connected through the sandbox network, so that the client to be tested can be tested. Specifically, a testing environment matched with the client to be tested needs to be created in the sandbox network, and then the client to be tested is connected through the sandbox network and receives an access request of the client to be tested. At this point, the domain name of the download request can be resolved to the inside of the sandbox network. And then, the downloaded file matched with the client to be tested in the sandbox network can be changed, such as modifying the relevant parameters of the downloaded file or deleting the downloaded file, and the like, and if the reaction state of the client to be tested meets a second preset reaction state, the client to be tested is determined to pass the test.
In an optional embodiment of the present invention, after connecting the client to be tested through the sandbox network, the method may further include: creating a testing environment matched with the client to be tested in the sandbox network; connecting the client to be tested through the sandbox network, and receiving an access request of the client to be tested; changing a downloading line corresponding to the client to be tested; and if the reaction state of the client to be tested meets a second preset reaction state, determining that the client to be tested passes the test.
The third preset reaction state may be a reaction state expected by the client to be tested after the download line is changed. Optionally, changing the download line corresponding to the client to be tested may include: and cutting off the corresponding download lines of one or more clients to be tested. Correspondingly, the third preset reaction state downloads the file normally or returns error reporting information of 'no available download line' and the like.
In the embodiment of the invention, after the client to be tested is connected through the sandbox network, the downloaded file of the client to be tested in the sandbox network can be damaged so as to test the client to be tested. Specifically, a testing environment matched with the client to be tested needs to be created in the sandbox network, and then the client to be tested is connected through the sandbox network and receives an access request of the client to be tested. At this point, the domain name of the download request can be resolved to the inside of the sandbox network. Then, the download lines corresponding to the clients to be tested in the sandbox network (at least two download lines are configured) may be changed, for example, one or more download lines are cut off. And if the reaction state of the client to be tested meets the third preset reaction state, determining that the client to be tested passes the test. For example, assuming that there are two download lines, when one download line is cut off, if the client to be tested can automatically switch to another download line for downloading, that is, the reaction state of the client to be tested is a normal download file, a third preset reaction state is met, and at this time, the user cannot perceive the download line switching operation of the client to be tested; when all two downloading lines are cut off, no available downloading line exists at the moment, and if the client to be tested can report the error information of 'no available downloading line', instead of directly collapsing or flashing back, the reaction state of the client to be tested meets a third preset reaction state.
Fig. 1b is a schematic diagram of testing a client to be tested through a sandbox network according to an embodiment of the present invention. In a specific example, as shown in fig. 1b, an extranet core application (not shown in fig. 1 b) may be configured in a sandbox environment (i.e., a sandbox network), and a domain name of a target core profile is resolved into the sandbox environment through DNSmasq, so as to implement configuration of the target core profile, i.e., core configuration 1, core configuration 2, and core configuration 3. The NAM system is a web system for sandboxing the sandbox environment, and the system may be connected to an SVN (version control system) to provide code resources and the like required for the NAM system to manage the sandbox environment. The sandbox environment may configure multiple sandbox servers, such as sandbox server 1 and sandbox server 2. When testing a client to be tested, a testing environment matched with the client to be tested can be created in a sandbox environment, and the client to be tested is connected through the sandbox network to receive an access request of the client to be tested. And then, the test of the quality-tested client can be realized by changing a target core configuration file, changing a download file and a download line matched with the quality-tested client and the like. As can be seen from fig. 1b, there may be multiple download lines, such as sandboxdl1 and sandboxdl2, which are reverse-proxied by multiple nignx (an HTTP and reverse proxy web server), respectively, and the sync tool may employ the lsync directory file real-time sync tool.
Therefore, the test method of the client provided by the embodiment of the invention can realize the test of the client to be tested by changing the core configuration file, the download line and other modes so as to check whether the function of the client to be tested in the simulated abnormal environment meets the expected abnormal processing.
The embodiment of the invention configures the target core application and the target core configuration file requested by the client to be tested in the sandbox network, so as to connect the client to be tested through the sandbox network and test the client to be tested according to the target core configuration file, thereby solving the problem of single test function of the existing client test method and enriching the function test range of the client.
Example two
Fig. 2 is a schematic diagram of a testing apparatus of a client according to a second embodiment of the present invention, as shown in fig. 2, the testing apparatus includes: a resource allocation module 210 and a client test module 220, wherein:
a resource configuration module 210, configured to configure a target core application and a target core configuration file requested by a client to be tested in a sandbox network;
and the client testing module 220 is configured to connect the client to be tested through the sandbox network, and test the client to be tested according to the target core configuration file.
The embodiment of the invention configures the target core application and the target core configuration file requested by the client to be tested in the sandbox network, so as to connect the client to be tested through the sandbox network and test the client to be tested according to the target core configuration file, thereby solving the problem of single test function of the existing client test method and enriching the function test range of the client.
Optionally, the apparatus further comprises: and the DNS service building module is used for building the domain name system DNS service of the sandbox network through DNSmasq.
Optionally, the resource configuration module 210 is specifically configured to: resolving the domain name of the target core configuration file into the sandbox network through DNSmasq.
Optionally, the client test module 220 is specifically configured to: creating a testing environment matched with the client to be tested in the sandbox network; connecting the client to be tested through the sandbox network, and receiving an access request of the client to be tested; changing the target core configuration file; and if the reaction state of the client to be tested meets a first preset reaction state, determining that the client to be tested passes the test.
Optionally, the apparatus further comprises: the second client testing module is used for creating a testing environment matched with the client to be tested in the sandbox network; connecting the client to be tested through the sandbox network, and receiving an access request of the client to be tested; changing the download file matched with the client to be tested; and if the reaction state of the client to be tested meets a second preset reaction state, determining that the client to be tested passes the test.
Optionally, the apparatus further comprises: the third client testing module is used for creating a testing environment matched with the client to be tested in the sandbox network; connecting the client to be tested through the sandbox network, and receiving an access request of the client to be tested; changing a downloading line corresponding to the client to be tested; and if the reaction state of the client to be tested meets a third preset reaction state, determining that the client to be tested passes the test.
Optionally, the third client testing module is specifically configured to: and cutting off one or more download lines corresponding to the clients to be tested.
The testing device of the client can execute the testing method of the client provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method. For details of the technique not described in detail in this embodiment, reference may be made to a method for testing a client provided in any embodiment of the present invention.
Since the testing apparatus of the client described above is an apparatus capable of executing the testing method of the client in the embodiment of the present invention, based on the testing method of the client described in the embodiment of the present invention, a person skilled in the art can understand the specific implementation of the testing apparatus of the client in the embodiment and various variations thereof, and therefore, how to implement the testing method of the client in the embodiment of the present invention by the testing apparatus of the client is not described in detail here. As long as a person skilled in the art implements the apparatus used in the method for testing the client in the embodiment of the present invention, the apparatus is within the scope of the present application.
EXAMPLE III
Fig. 3 is a schematic structural diagram of a computer device according to a third embodiment of the present invention. FIG. 3 illustrates a block diagram of a computer device 312 suitable for use in implementing embodiments of the present invention. The computer device 312 shown in FIG. 3 is only an example and should not bring any limitations to the functionality or scope of use of embodiments of the present invention.
As shown in FIG. 3, computer device 312 is in the form of a general purpose computing device. The components of computer device 312 may include, but are not limited to: one or more processors 316, a storage device 328, and a bus 318 that couples the various system components including the storage device 328 and the processors 316.
Bus 318 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MCA) bus, enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Computer device 312 typically includes a variety of computer system readable media. Such media may be any available media that is accessible by computer device 312 and includes both volatile and nonvolatile media, removable and non-removable media.
Storage 328 may include computer system readable media in the form of volatile Memory, such as Random Access Memory (RAM) 330 and/or cache Memory 332. The computer device 312 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 334 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 3, and commonly referred to as a "hard drive"). Although not shown in FIG. 3, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a Compact disk-Read Only Memory (CD-ROM), a Digital Video disk (DVD-ROM), or other optical media) may be provided. In these cases, each drive may be connected to bus 318 by one or more data media interfaces. Storage 328 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
Program 336 having a set (at least one) of program modules 326 may be stored, for example, in storage 328, such program modules 326 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which may comprise an implementation of a network environment, or some combination thereof. Program modules 326 generally carry out the functions and/or methodologies of embodiments of the invention as described herein.
The computer device 312 may also communicate with one or more external devices 314 (e.g., keyboard, pointing device, camera, display 324, etc.), with one or more devices that enable a user to interact with the computer device 312, and/or with any devices (e.g., network card, modem, etc.) that enable the computer device 312 to communicate with one or more other computing devices. Such communication may be through an Input/Output (I/O) interface 322. Also, computer device 312 may communicate with one or more networks (e.g., a Local Area Network (LAN), Wide Area Network (WAN), etc.) and/or a public Network, such as the internet, via Network adapter 320. As shown, network adapter 320 communicates with the other modules of computer device 312 via bus 318. It should be appreciated that although not shown in the figures, other hardware and/or software modules may be used in conjunction with the computer device 312, including but not limited to: microcode, device drivers, Redundant processing units, external disk drive arrays, disk array (RAID) systems, tape drives, and data backup storage systems, to name a few.
The processor 316 executes various functional applications and data processing, such as implementing the testing method of the client provided by the above-described embodiment of the present invention, by running the program stored in the storage 328.
That is, the processing unit implements, when executing the program: configuring a target core application and a target core configuration file requested by a client to be tested in a sandbox network; and connecting the client to be tested through the sandbox network, and testing the client to be tested according to the target core configuration file.
Example four
An embodiment of the present invention further provides a computer storage medium storing a computer program, where the computer program is used to execute a testing method of a client according to any one of the above embodiments of the present invention when executed by a computer processor: configuring a target core application and a target core configuration file requested by a client to be tested in a sandbox network; and connecting the client to be tested through the sandbox network, and testing the client to be tested according to the target core configuration file.
Computer storage media for embodiments of the invention may employ any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer 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 computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, 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. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer 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 computer readable signal medium may also be any computer readable medium that is not a computer 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 computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, Radio Frequency (RF), etc., or any suitable combination of the foregoing.
Computer 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, Smalltalk, 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 computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (10)

1. A method for testing a client, comprising:
configuring a target core application and a target core configuration file requested by a client to be tested in a sandbox network;
and connecting the client to be tested through the sandbox network, and testing the client to be tested according to the target core configuration file.
2. The method of claim 1, prior to configuring the target core application and the target core configuration file requested by the client to be tested in the sandboxed network, further comprising:
and building a Domain Name System (DNS) service of the sandbox network through DNSmasq.
3. The method of claim 1, wherein configuring the target core configuration file requested by the client to be tested in the sandboxed network comprises:
resolving the domain name of the target core configuration file into the sandbox network through DNSmasq.
4. The method of claim 1, wherein testing the client to be tested according to the target core configuration file comprises:
creating a testing environment matched with the client to be tested in the sandbox network;
connecting the client to be tested through the sandbox network, and receiving an access request of the client to be tested;
changing the target core configuration file;
and if the reaction state of the client to be tested meets a first preset reaction state, determining that the client to be tested passes the test.
5. The method of claim 1, further comprising, after connecting the client under test over the sandbox network:
creating a testing environment matched with the client to be tested in the sandbox network;
connecting the client to be tested through the sandbox network, and receiving an access request of the client to be tested;
changing the download file matched with the client to be tested;
and if the reaction state of the client to be tested meets a second preset reaction state, determining that the client to be tested passes the test.
6. The method of claim 1, further comprising, after connecting the client under test over the sandbox network:
creating a testing environment matched with the client to be tested in the sandbox network;
connecting the client to be tested through the sandbox network, and receiving an access request of the client to be tested;
changing a downloading line corresponding to the client to be tested;
and if the reaction state of the client to be tested meets a third preset reaction state, determining that the client to be tested passes the test.
7. The method of claim 6, wherein changing the download line corresponding to the client to be tested comprises:
and cutting off one or more download lines corresponding to the clients to be tested.
8. A testing apparatus for a client, comprising:
the resource configuration module is used for configuring a target core application and a target core configuration file requested by a client to be tested in the sandbox network;
and the client testing module is used for connecting the client to be tested through the sandbox network and testing the client to be tested according to the target core configuration file.
9. A computer device, characterized in that the computer device comprises:
one or more processors;
storage means for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement a method of testing the client as recited in any of claims 1-7.
10. A computer storage medium on which a computer program is stored, which program, when being executed by a processor, carries out a method for testing a client as claimed in any one of claims 1 to 7.
CN202010096758.5A 2020-02-17 2020-02-17 Client test method and device, computer equipment and storage medium Active CN111355629B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010096758.5A CN111355629B (en) 2020-02-17 2020-02-17 Client test method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010096758.5A CN111355629B (en) 2020-02-17 2020-02-17 Client test method and device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111355629A true CN111355629A (en) 2020-06-30
CN111355629B CN111355629B (en) 2021-01-15

Family

ID=71194032

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010096758.5A Active CN111355629B (en) 2020-02-17 2020-02-17 Client test method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111355629B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111831566A (en) * 2020-07-17 2020-10-27 北京字节跳动网络技术有限公司 Test method, test device, electronic equipment and computer readable storage medium
CN118626398A (en) * 2024-08-09 2024-09-10 山东启芯软件科技有限公司 Celery distributed EDA tool testing method and system

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101616039A (en) * 2009-04-24 2009-12-30 北京德瑞海普科技有限公司 The release method of test script of Topology Discovery Network Based
US20130014259A1 (en) * 2006-01-23 2013-01-10 University Of Washington Through Its Center For Commercialization Detection of spyware threats within virtual machine
CN103699479A (en) * 2012-09-27 2014-04-02 百度在线网络技术(北京)有限公司 Sandbox testing environment constitution system and sandbox testing environment constitution method
CN104750537A (en) * 2013-12-31 2015-07-01 腾讯科技(深圳)有限公司 Test case execution method and device
CN108183900A (en) * 2017-12-28 2018-06-19 北京奇虎科技有限公司 A kind of method, server, client and system for digging the detection of ore deposit script
CN109194567A (en) * 2018-08-31 2019-01-11 百度在线网络技术(北京)有限公司 Method and apparatus for retransmission of information
CN109347828A (en) * 2018-10-22 2019-02-15 北京达佳互联信息技术有限公司 File Upload and Download method, apparatus, electronic equipment and storage medium
CN109815106A (en) * 2017-11-21 2019-05-28 腾讯科技(深圳)有限公司 The interactive function test method and device of information release platform
CN109962820A (en) * 2017-12-22 2019-07-02 中移(苏州)软件技术有限公司 A kind of detection method and detection platform of cloud platform
CN110096295A (en) * 2019-05-08 2019-08-06 吉旗(成都)科技有限公司 The hot update method and system of multimode mobile application based on ReactNative
CN110287112A (en) * 2019-06-25 2019-09-27 网易(杭州)网络有限公司 Maintaining method, device and the readable storage medium storing program for executing of client
US20190342169A1 (en) * 2017-10-04 2019-11-07 Servicenow, Inc. Guided configuration item class creation in a remote network management platform

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130014259A1 (en) * 2006-01-23 2013-01-10 University Of Washington Through Its Center For Commercialization Detection of spyware threats within virtual machine
CN101616039A (en) * 2009-04-24 2009-12-30 北京德瑞海普科技有限公司 The release method of test script of Topology Discovery Network Based
CN103699479A (en) * 2012-09-27 2014-04-02 百度在线网络技术(北京)有限公司 Sandbox testing environment constitution system and sandbox testing environment constitution method
CN104750537A (en) * 2013-12-31 2015-07-01 腾讯科技(深圳)有限公司 Test case execution method and device
US20190342169A1 (en) * 2017-10-04 2019-11-07 Servicenow, Inc. Guided configuration item class creation in a remote network management platform
CN109815106A (en) * 2017-11-21 2019-05-28 腾讯科技(深圳)有限公司 The interactive function test method and device of information release platform
CN109962820A (en) * 2017-12-22 2019-07-02 中移(苏州)软件技术有限公司 A kind of detection method and detection platform of cloud platform
CN108183900A (en) * 2017-12-28 2018-06-19 北京奇虎科技有限公司 A kind of method, server, client and system for digging the detection of ore deposit script
CN109194567A (en) * 2018-08-31 2019-01-11 百度在线网络技术(北京)有限公司 Method and apparatus for retransmission of information
CN109347828A (en) * 2018-10-22 2019-02-15 北京达佳互联信息技术有限公司 File Upload and Download method, apparatus, electronic equipment and storage medium
CN110096295A (en) * 2019-05-08 2019-08-06 吉旗(成都)科技有限公司 The hot update method and system of multimode mobile application based on ReactNative
CN110287112A (en) * 2019-06-25 2019-09-27 网易(杭州)网络有限公司 Maintaining method, device and the readable storage medium storing program for executing of client

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111831566A (en) * 2020-07-17 2020-10-27 北京字节跳动网络技术有限公司 Test method, test device, electronic equipment and computer readable storage medium
CN118626398A (en) * 2024-08-09 2024-09-10 山东启芯软件科技有限公司 Celery distributed EDA tool testing method and system
CN118626398B (en) * 2024-08-09 2024-10-15 山东启芯软件科技有限公司 Celery distributed EDA tool testing method and system

Also Published As

Publication number Publication date
CN111355629B (en) 2021-01-15

Similar Documents

Publication Publication Date Title
US11144439B2 (en) Emulation-based testing of a microservices architecture
US9910765B2 (en) Providing testing environments for software applications using virtualization and a native hardware layer
US11636016B2 (en) Cloud simulation and validation system
CN107395420B (en) Server performance testing method and system, electronic device and storage medium
CN109450736B (en) Network interface test method and device, medium and computing equipment
CN111459506B (en) Deep learning platform cluster deployment method and device, medium and electronic equipment
CN111355629B (en) Client test method and device, computer equipment and storage medium
CN113485927B (en) Test data generation method, device, equipment and storage medium
CN112667228A (en) Application program construction method and device and computer equipment
WO2023065749A1 (en) Distributed database embedding method and apparatus, and device and storage medium
CN112650689A (en) Test method, test device, electronic equipment and storage medium
WO2023084345A1 (en) Automated deployment of enterprise archive with dependency on application server via script
CN111782231A (en) Service deployment method and device
CN113709243B (en) Equipment remote control method and device, electronic equipment and storage medium
CN113448730B (en) Service processing method, device, computer equipment and storage medium
CN113468067B (en) Application program debugging method and device, electronic equipment and computer readable medium
CN110677307A (en) Service monitoring method, device, equipment and storage medium
CN112394907A (en) Container-based delivery system construction method, application delivery method and delivery system
CN112910956B (en) Resource creation method and device and electronic equipment
CN107247661B (en) Method and system for supporting automatic verification of installation package of application
CN104714760A (en) Method and device for read and write storage device
CN112181930B (en) File management method and device for virtual switching matrix
CN112416509B (en) Virtual machine control system and related equipment
CN115080109A (en) Multi-cloud-end environment joint debugging method, device, system and equipment based on hybrid development
CN115309657A (en) Method, device, medium and program product for providing test case

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
CP02 Change in the address of a patent holder

Address after: 215000 17F, friendship time building, No. 68, Qitai Road, Suzhou Industrial Park, Suzhou area, China (Jiangsu) pilot Free Trade Zone, Suzhou, Jiangsu

Patentee after: SUZHOU YIGE NETWORK TECHNOLOGY Co.,Ltd.

Address before: Room 201-203, No.55 Qunxing Road, Suzhou Industrial Park, Suzhou, Jiangsu, 215006

Patentee before: SUZHOU YIGE NETWORK TECHNOLOGY Co.,Ltd.

CP02 Change in the address of a patent holder