CN111600959B - Test data generation method and device for intranet client - Google Patents

Test data generation method and device for intranet client Download PDF

Info

Publication number
CN111600959B
CN111600959B CN202010438284.8A CN202010438284A CN111600959B CN 111600959 B CN111600959 B CN 111600959B CN 202010438284 A CN202010438284 A CN 202010438284A CN 111600959 B CN111600959 B CN 111600959B
Authority
CN
China
Prior art keywords
network
server
client
intranet
external 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.)
Active
Application number
CN202010438284.8A
Other languages
Chinese (zh)
Other versions
CN111600959A (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.)
Netease Hangzhou Network Co Ltd
Original Assignee
Netease Hangzhou Network 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 Netease Hangzhou Network Co Ltd filed Critical Netease Hangzhou Network Co Ltd
Priority to CN202010438284.8A priority Critical patent/CN111600959B/en
Publication of CN111600959A publication Critical patent/CN111600959A/en
Application granted granted Critical
Publication of CN111600959B publication Critical patent/CN111600959B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Computer And Data Communications (AREA)

Abstract

The application provides a method and a device for generating test data of an intranet client, wherein the method comprises the following steps: after the network request generation rule is adjusted according to the acquired configuration modification instruction aiming at the intranet client, generating a network connection establishment request according to the acquired network connection instruction by utilizing the adjusted network request generation rule; sending the network connection establishment request to the external network server to establish network connection with the external network server; and interacting with an external network server through the established network connection to generate test data for testing the internal network client. According to the embodiment of the application, the test data are not required to be constructed manually through the script, the lack of the constructed data is avoided, and the test efficiency can be greatly improved.

Description

Test data generation method and device for intranet client
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method and an apparatus for generating test data of an intranet client.
Background
Devices in the system architecture of online gaming generally include a client and a server, where players download game clients via a cell phone or computer and connect to the game server via a network to enter into the gaming experience. The game client and game server may be modified during game development to provide new functionality to the player. Before a new function comes on-line, a game test needs to be performed. The focus of game testing is to test the functionality of the modified game client and game server. Through the test, the codes of the modified game client and the game server can be released outside the network, and the codes can be experienced by external players.
The conventional method for testing the intranet client generally comprises the following steps: a tester constructs test related data of the intranet server through the script; the intranet client sends a network connection establishment request to the intranet server so as to establish network connection with the intranet server; and the intranet client interacts with the intranet server through network connection by utilizing the constructed testing related data of the intranet server so as to test the intranet client.
The applicant found in the study that if there is a need in the prior art to construct a large amount of test-related data, the data is not only easily lost but also the test efficiency is greatly reduced when constructing the data.
Disclosure of Invention
In view of this, the present application aims to provide a method and a device for generating test data of an intranet client, which do not need to manually construct test data through scripts, do not generate missing of the constructed data, and can greatly improve the test efficiency.
In a first aspect, an embodiment of the present application provides a method for generating test data of an intranet client, which is applied to the intranet client in a network test system, where the network test system includes an intranet client and an extranet server, and includes:
After the network request generation rule is adjusted according to the acquired configuration modification instruction aiming at the intranet client, generating a network connection establishment request according to the acquired network connection instruction by utilizing the adjusted network request generation rule;
sending the network connection establishment request to the external network server to establish network connection with the external network server;
and interacting with an external network server through the established network connection to generate test data for testing the internal network client.
In one possible implementation manner, after adjusting the network request generation rule according to the acquired configuration modification instruction for the intranet client, generating the network connection establishment request according to the acquired network connection instruction by using the adjusted network request generation rule, including:
loading a network request generation component according to the acquired configuration modification instruction aiming at the intranet client;
and generating a network connection establishment request by using the network request generation component and the acquired network connection instruction.
In one possible implementation, the network request generation rule includes any one or more of the following:
A current test state;
shielding state of the external network IP address;
the DNS redirects the interference state of the network request of the IP address of the external network;
and detecting the shielding state of the version number of the intranet client.
In a second aspect, an embodiment of the present application provides a method for generating test data of an intranet client, which is applied to the intranet client in a network test system, where the network test system includes an intranet client and an extranet server, and includes:
generating a network connection establishment request according to the acquired target external network login credentials;
sending the network connection establishment request to the external network server so that the external network server verifies the target external network login credentials according to the standard external network login credentials, and establishing network connection between an internal network client and the external network server after verification is passed;
and interacting with an external network server through the established network connection to generate test data for testing the internal network client.
In a third aspect, an embodiment of the present application provides a method for generating test data of an intranet client, which is applied to an extranet server in a network test system, where the network test system includes the intranet client and the extranet server, and includes:
Receiving a network connection establishment request sent by an intranet client, wherein the network connection establishment request is generated according to an acquired target extranet login credential;
verifying the target external network login credentials according to the standard external network login credentials, and establishing network connection between an internal network client and an external network server after the verification is passed;
and interacting with the intranet client through the established network connection to generate test data for testing the intranet client.
In one possible embodiment, the method further comprises:
generating a standard external network login credential according to the acquired credential generation instruction;
and acquiring the standard external network login credentials according to the acquired credential acquisition instructions.
In one possible embodiment, the method further comprises:
and after the standard foreign network login credentials are generated, timing, and setting the standard foreign network login credentials to be invalid after the timing reaches a preset time.
In a fourth aspect, an embodiment of the present application provides a test data generating device of an intranet client, which is applied to the intranet client in a network test system, where the network test system includes an intranet client and an extranet server, and includes:
The generation module is used for generating a network connection establishment request by utilizing the regulated network request generation rule according to the acquired network connection instruction after regulating the network request generation rule according to the acquired configuration modification instruction aiming at the intranet client;
the sending module is used for sending the network connection establishment request to the external network server so as to establish network connection with the external network server;
and the interaction module is used for interacting with the external network server through the established network connection so as to generate test data for testing the internal network client.
In a fifth aspect, an embodiment of the present application provides a test data generating device of an intranet client, which is applied to the intranet client in a network test system, where the network test system includes an intranet client and an extranet server, and includes:
the request generation module is used for generating a network connection establishment request according to the acquired target external network login credentials;
the request sending module is used for sending the network connection establishment request to the external network server so that the external network server verifies the target external network login credentials according to the standard external network login credentials, and establishes network connection between an internal network client and the external network server after the verification is passed;
And the external network interaction module is used for interacting with the external network server through the established network connection so as to generate test data for testing the internal network client.
In a sixth aspect, an embodiment of the present application provides a test data generating device of an intranet client, which is applied to an extranet server in a network test system, where the network test system includes the intranet client and the extranet server, and includes:
the request receiving module is used for receiving a network connection establishment request sent by an intranet client, wherein the network connection establishment request is generated according to the acquired target extranet login credentials;
the request verification module is used for verifying the target external network login credentials according to the standard external network login credentials, and establishing network connection between the internal network client and the external network server after the verification is passed;
and the intranet interaction module is used for interacting with the intranet client through the established network connection and generating test data for testing the intranet client.
In a seventh aspect, embodiments of the present application provide an electronic device, including: a processor, a storage medium and a bus, the storage medium storing machine-readable instructions executable by the processor, the processor and the storage medium communicating over the bus when the electronic device is running, the processor executing the machine-readable instructions to perform the steps of the method of any one of the possible implementations of the first, second and third aspects.
In an eighth aspect, embodiments of the present application provide a computer readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the method described in any of the possible implementations of the first, second and third aspects.
The test data generation method of the intranet client provided by the embodiment of the application comprises the following steps: after the network request generation rule is adjusted according to the acquired configuration modification instruction aiming at the intranet client, generating a network connection establishment request according to the acquired network connection instruction by utilizing the adjusted network request generation rule; sending the network connection establishment request to the external network server to establish network connection with the external network server; and interacting with an external network server through the established network connection to generate test data for testing the internal network client. According to the scheme provided by the application, the problem that the lack of construction data is easy to occur and the testing efficiency is greatly reduced when related data is manually constructed and tested through scripts in the prior art is solved, namely, the intranet client can generate a network connection establishment request and send the network connection establishment request to the external network server by adjusting the network request generation rule of the intranet client, so that network connection between the intranet client and the external network server is established. The real data generated when the intranet client and the extranet server interact through the network connection are used as the test data of the intranet client, the test data are not required to be constructed manually through scripts, the lack of the constructed data is avoided, and the test efficiency can be greatly improved.
The embodiment of the application also provides another test data generation method of the intranet client, which comprises the following steps: generating a network connection establishment request according to the acquired target external network login credentials; sending the network connection establishment request to the external network server so that the external network server verifies the target external network login credentials according to the standard external network login credentials, and establishing network connection between an internal network client and the external network server after verification is passed; and interacting with an external network server through the established network connection to generate test data for testing the internal network client. According to the scheme, the problem that the lack of construction data is easy to occur and the testing efficiency is greatly reduced when related data is manually constructed and tested through scripts in the prior art is solved, namely, the network connection establishment request is generated through the target external network login credentials and sent to the external network server, the external network server verifies the target external network login credentials according to the standard external network login credentials, and network connection between an internal network client and the external network server is established after verification is passed. The real data generated when the intranet client and the extranet server interact through the network connection are used as the test data of the intranet client, the test data are not required to be constructed manually through scripts, the lack of the constructed data is avoided, and the test efficiency can be greatly improved.
In order to make the above objects, features and advantages of the present application more comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the embodiments will be briefly described below, it being understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered limiting the scope, and that other related drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 shows a schematic structural diagram of a network test system according to an embodiment of the present application;
fig. 2 shows a flowchart of a method for generating test data of an intranet client according to an embodiment of the present application;
fig. 3 is a flowchart of another method for generating test data of an intranet client according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a test data generating device of a first intranet client according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a test data generating device of a second intranet client according to an embodiment of the present application;
Fig. 6 is a schematic structural diagram of a test data generating device of a third intranet client according to an embodiment of the present application;
fig. 7 shows a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
For the purposes of making the objects, technical solutions and advantages of the embodiments of the present application more clear, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are only some embodiments of the present application, but not all embodiments. The components of the embodiments of the present application, which are generally described and illustrated in the figures herein, may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present application, as provided in the accompanying drawings, is not intended to limit the scope of the application, as claimed, but is merely representative of selected embodiments of the application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present application without making any inventive effort, are intended to be within the scope of the present application.
In order to enable those skilled in the art to use the present disclosure, the following embodiments are presented in connection with a specific application scenario "test data generation of intranet clients in a game scenario". It will be apparent to those having ordinary skill in the art that the general principles defined herein may be applied to other embodiments and applications without departing from the spirit and scope of the present application. Although the present application is described primarily in the context of "test data generation for intranet clients in a gaming scenario," it should be understood that this is but one exemplary embodiment.
It should be noted that the term "comprising" will be used in the embodiments of the present application to indicate the presence of the features stated hereinafter, but not to exclude the addition of other features.
In a conventional solution, as shown in fig. 1, a network test system includes an intranet client 100 and an intranet server 200. Intranet client 100 refers to a client within a local area network, and intranet server 200 refers to a server within a local area network. The conventional method for testing the intranet client generally comprises the following steps: a tester constructs test related data of the intranet server through the script; the intranet client sends a network connection establishment request to the intranet server so as to establish network connection with the intranet server; and the intranet client interacts with the intranet server through network connection by utilizing the constructed testing related data of the intranet server so as to test the intranet client. The applicant found in the study that if there is a need in the prior art to construct a large amount of test-related data, the data is not only easily lost but also the test efficiency is greatly reduced when constructing the data. Based on this, the embodiment of the application provides a method and a device for generating test data of an intranet client, and the following description is given by the embodiment.
In this embodiment, as shown in fig. 1, the network testing system includes an intranet client 100 and an extranet server 300. The extranet server 300 refers to a server that is accessible to an external network (as opposed to within a local area network). In addition, the extranet client 400 refers to a client that can be accessed by an external network (with respect to the inside of the local area network), that is, a client used by a wide range of users.
For the sake of understanding the present embodiment, first, a detailed description is given of a test data generating method of the first intranet client disclosed in the embodiments of the present application.
Referring to fig. 2, a flowchart of a method for generating test data of an intranet client according to an embodiment of the present application is provided. As shown in fig. 2, the method applied to the intranet client 100 may include the following steps:
step 201, after adjusting the network request generation rule according to the obtained configuration modification instruction for the intranet client 100, generating a network connection establishment request according to the obtained network connection instruction by using the adjusted network request generation rule;
step S202, the network connection establishment request is sent to the external network server 300 to establish the network connection with the external network server 300;
In step S203, the external network server 300 interacts with the established network connection to generate test data for testing the internal network client 100.
In step S201, the network request generation rule is used to characterize a rule to be followed by the network connection establishment request. Conventional network request generation rules are used to support network connection establishment requests between intranet client 100 and intranet server 200, and to mask network connection establishment requests between intranet client 100 and extranet server 300. The present application adjusts the conventional network request generation rule, so that the adjusted network request generation rule supports the network connection establishment request between the intranet client 100 and the extranet server 300.
In this embodiment, the network request generation rule may include account login related codes and network configuration information in the intranet client 100. The present embodiment is not limited thereto, and other rules that can characterize the network connection establishment request to follow may be used as the network request generation rule. Specifically, the account login related code in the intranet client 100 is globals. Py, which only supports the intranet client 100 to log on the intranet server, but does not support the intranet client 100 to log on the extranet server 300. The network configuration information is used to mask the login to the external network server in the SDK manner. The network configuration information includes any one or more of the following: a current test state; shielding state of the external network IP address; the DNS redirects the interference state of the network request of the IP address of the external network; and detecting the shielding state of the version number of the intranet client. The current test state is used for representing the test state of the current client, and if the test state of the current client is the test state, the login of the external network server is shielded. When the switch of the shielding state of the external network IP address is opened, the external network IP address is shielded, thereby shielding the login of the external network server. If the switch of the interference state of the DNS redirection network request to the IP address of the external network is opened, the network request of the IP address of the external network is interfered, and thus the login of the server of the external network is interfered. And if a switch for detecting the shielding state of the version number of the intranet client is opened, the login of the extranet server is shielded.
The configuration modification instruction is used to characterize an instruction for modifying the configuration of the intranet client 100, and the conventional network request generation rule may be adjusted using the configuration modification instruction, so that the adjusted network request generation rule supports a network connection establishment request between the intranet client 100 and the extranet server 300.
In this embodiment, the configuration modification instruction may include a modification instruction for modifying an account login related code of the intranet client 100 and an adjustment instruction for adjusting network configuration information of the intranet client 100, and the embodiment is not limited thereto. Specifically, the modification instruction is used to modify the account login related code, and the adjustment instruction is used to adjust the network configuration information of the intranet client 100, so that the account login mode and the network configuration information of the intranet client 100 can be adjusted to the account login mode and the network configuration information of the extranet client.
The network connection instructions are used to characterize the instructions required for the intranet client 100 to establish a network connection with the extranet server 300. Typically, the network connection instruction refers to an extranet account number and an extranet server ID.
The network connection establishment request characterizes a request for establishing a network connection between the intranet client 100 and the extranet server 300. In the present embodiment, the network connection establishment request refers to a request for establishing a network connection with the external network server 300 generated after the external network account and the external network server ID are registered through the account registration mode of the SDK.
In one possible implementation, step S201 may include: loading a network request generation component according to the acquired configuration modification instruction aiming at the intranet client; and generating a network connection establishment request by using the network request generation component and the acquired network connection instruction.
When the network request generation component is loaded, the network request generation rules are adjusted. The network request generation component is a component that integrates these functions. In this embodiment, when the network request generating component is loaded, the account login related code in the network request generating rule is modified, including deletion, addition, editing, etc., so as to convert the account login mode of global. Py into the account login mode of SDK (Software Development Kit ), so that the intranet client 100 can log in the extranet server 300; and adjusting network configuration information of the intranet client 100, for example: and adjusting the current test state to be a non-test state, adjusting a switch of a shielding state of the external network IP address to be closed, adjusting a switch of an interference state of a network request of the DNS redirection to the external network IP address to be closed, and adjusting a shielding state of detecting the version number of the internal network client to be closed so as to release shielding of an account login mode of the SDK.
In step S202, the account login mode and the network configuration information of the intranet client 100 may be adjusted to the account login mode and the network configuration information of the extranet client in step S201. In this way, the network connection establishment request is transmitted to the external network server 300, and a network connection with the external network server 300 can be established.
In step S203, the real data generated when the intranet client and the extranet server interact through the network connection is used as the test data of the intranet client, so that the test data is not required to be constructed manually through a script, the lack of the constructed data is avoided, and the test efficiency can be greatly improved.
When the user has the code modification right, the network request generation rule of the intranet client is adjusted to enable the intranet client to generate a network connection establishment request and send the network connection establishment request to the extranet server, so that network connection between the intranet client and the extranet server is established. The real data generated when the intranet client and the extranet server interact through network connection are used as the test data of the intranet client, the test data do not need to be constructed manually through scripts, and the test efficiency can be greatly improved. And, since part of the server's functionality involves a third party interface, it cannot be implemented in an intranet server. The method of the embodiment can be used for carrying out the function and verification which cannot be simulated by the intranet server in the extranet server, and the lack of constructional data can not be generated.
In order to describe the test data generation method of the intranet client, the following embodiments are specifically described:
example 1
The embodiment provides a horse race lamp test data generation method of an intranet client, which is applied to a network test system, and the system comprises the following steps: an intranet client and an extranet server.
The method comprises the following steps when being realized:
after the network request generation rule is adjusted according to the acquired configuration modification instruction aiming at the intranet client, generating a network connection establishment request according to the acquired network connection instruction by utilizing the adjusted network request generation rule;
sending the network connection establishment request to the external network server to establish network connection with the external network server;
and interacting with an external network server through the established network connection to generate horse race lamp test data for testing the internal network client.
Because the ticker involves more messages, it is difficult for the tester to ensure that all conditions are simulated, and the tester needs more time to simulate real data. By the method of example 1, a ticker message that still pops up was successfully captured during the test. And then, the tester sends the data collected in the test to the program for further modification, so that the test task is efficiently completed.
Example 2
The embodiment provides a game flash test data generation method of an intranet client, which is applied to a network test system, and the system comprises the following steps: an intranet client and an extranet server.
The method comprises the following steps when being realized:
after the network request generation rule is adjusted according to the acquired configuration modification instruction aiming at the intranet client, generating a network connection establishment request according to the acquired network connection instruction by utilizing the adjusted network request generation rule;
sending the network connection establishment request to the external network server to establish network connection with the external network server;
and interacting with an external network server through the established network connection to generate game flash back test data for testing the internal network client.
Since the testers simulated the buddy list, no significant memory footprint change was found. Later testers find that although the buddy list is easier to simulate, the buddy list interface also comprises a great amount of other data such as chat records of players and buddies, records of gifts, activity records of buddies and the like, the data construction difficulty is high, and the cause of the blocking is also in the data with high probability. Thus, real buddy data is complex and difficult to simulate. Through the method in embodiment 2, the real account number on line is used to test the memory occupation, and finally the cause of the card is successfully found.
Based on the same technical conception, the embodiment also provides a second test data generation method of the intranet client. The following describes in detail a test data generating method of the second intranet client disclosed in the embodiment of the present application.
Referring to fig. 3, a flowchart of a method for generating test data of an intranet client according to an embodiment of the present application is shown. As shown in fig. 3, the following steps may be included:
step 301, the intranet client 100 generates a network connection establishment request according to the obtained target extranet login credentials;
step S302, the intranet client 100 sends the network connection establishment request to the extranet server 300;
step S303, the external network server 300 receives a network connection establishment request sent by the internal network client 100;
step S304, the external network server 300 verifies the target external network login credentials according to the standard external network login credentials, and establishes network connection between the internal network client 100 and the external network server 300 after the verification is passed;
in step S305, the intranet client 100 interacts with the extranet server 300 through the established network connection to generate test data for testing the intranet client 100.
In step S301, the external network login credentials are used to characterize credentials required for logging in to the external network server, and may be in the form of a character string. The target external network login credentials are the external network login credentials which need to be verified.
The network connection establishment request refers to a request for establishing a network connection between the intranet client 100 and the extranet server 300 generated after the target extranet login credentials are logged in through the login portal.
In this embodiment, a login entry for an extranet login credential is added to a GM (game manager) panel. After a tester obtains an external network login credential from an external network server through a front end (a webpage, an applet, internal small assistant software of a company and the like), a target external network login credential is input into the login inlet according to the obtained external network login credential, and an internal network client obtains the input target external network login credential, so that a network connection establishment request is generated.
In step S302, the intranet client 100 sends the network connection establishment request to the extranet server 300 by calling an interface for communication with the extranet server.
In step S304, the standard external network login credential is used for characterizing a standard external network login credential stored in the external network server and used for verifying the target external network login credential.
In this embodiment, the step of obtaining the standard extranet login credential includes: generating a standard external network login credential according to the acquired credential generation instruction; and acquiring the standard external network login credentials according to the acquired credential acquisition instructions.
Specifically, the tester sends a credential generation instruction to the server through the front end (web page, applet, corporate internal small assistant software, etc.). The credential generation instructions include an extranet account number and an extranet server ID that are required to log into the extranet server 300. The standard extranet login certificate is obtained by packaging data in a certificate generation instruction. The credential acquisition instruction refers to an instruction for acquiring a standard foreign network login credential that the tester actively transmits to the foreign network server 300.
In one possible implementation, the standard foreign network login credential is timed after being generated, and the standard foreign network login credential is set to be invalid after the timing reaches a predetermined time, so that the valid time of the standard foreign network login credential can be limited.
The process of the foreign network server 300 verifying the target foreign network login credential according to the standard foreign network login credential is: and comparing whether the standard external network login credentials are consistent with the data in the target external network login credentials, if so, verifying to pass, and opening the login of the external network server 300 to establish network connection with the external network server 300.
In step S305, the real data generated when the intranet client and the extranet server interact through the network connection is used as the test data of the intranet client, the test data is not required to be constructed manually through a script, the lack of the constructed data is not generated, and the test efficiency can be greatly improved.
When the user does not have the code modification right, a network connection establishment request can be generated through the target external network login credentials and sent to the external network server, the external network server verifies the target external network login credentials according to the standard external network login credentials, and network connection between the internal network client and the external network server is established after verification is passed. The real data generated when the intranet client and the extranet server interact through network connection are used as the test data of the intranet client, the test data do not need to be constructed manually through scripts, and the test efficiency can be greatly improved. And, since part of the server's functionality involves a third party interface, it cannot be implemented in an intranet server. The method of the embodiment can be used for carrying out the function and verification which cannot be simulated by the intranet server in the extranet server, and the lack of constructional data can not be generated.
Example 3
The embodiment provides a test data generation method for the disappearance reason of chat messages of an intranet client, which is applied to a network test system, and the system comprises the following steps: an intranet client and an extranet server.
The method comprises the following steps when being realized:
generating a network connection establishment request according to the acquired target external network login credentials;
sending the network connection establishment request to the external network server so that the external network server verifies the target external network login credentials according to the standard external network login credentials, and establishing network connection between an internal network client and the external network server after verification is passed;
and interacting with the external network server through the established network connection to generate test data for testing the disappearance reason of the chat message of the internal network client.
Since the tester constructs a simple chat system by sending random messages through the robot, it was found that the player-described problem could not be reproduced. Because a lot of different contents such as equipment, pictures, expressions, etc. can be sent in the chat, the contents are difficult to be actually constructed by a robot. Through the method in embodiment 3, the monitoring of data such as memory, downloading speed, uploading speed and the like is added in the intranet client program, and simultaneously, a large number of real-time conditions of log record chat interfaces are added, then the intranet client logs in the extranet environment, opens world chat channels and waits for the problem to reappear. After the problem occurs, the recorded memory, speed and log are analyzed, and the cause of the problem is successfully found.
In summary, the two test data generation methods of the intranet client provided by the embodiments of the present application have the following advantages: (1) the workload of the testers can be greatly reduced. In order to simulate a real use environment, a tester often needs to spend a large amount of time to construct a large amount of simulation data, and then calls various tools to synchronize the data to an intranet server for testing. In this process, the tester spends a lot of time and labor. By using the scheme provided by the embodiment of the application, a more real test environment can be naturally constructed by utilizing the liveness of online players under the condition that any test data is not constructed and used. (2) The integrity of the test data may be improved. When using the simulation data to test, the test personnel often neglect part of the probability occurrence events or neglect the rarely used functions, so that the test is omitted. The test data in the invention is online real data, and because of a plurality of players, the invention has the capability of covering all playing methods, thereby ensuring the integrity of the test data. (3) The method is applicable to testers with code modification rights and testers without code modification rights. According to the method and the device, the function of logging in the external network server by the internal network client is modularized, so that the method and the device are more convenient and controllable, and meanwhile, the data can be recorded. The technician can add a limit to the function according to the specific condition of the project, and has higher controllability. Meanwhile, since the logged-in foreign network server does not support GM instructions, the tester cannot gain advantage by this means. (4) Has natural confidentiality. Although the tester uses the intranet client to log into the extranet server. But since the modification content is a client modification, no influence is exerted on other players. The testers can perform operations such as team formation, chatting and the like with confidence.
Based on the same technical conception, the embodiment of the application also provides a test data generating device, an electronic device, a computer storage medium and the like of the intranet client, and the following embodiment can be seen.
Fig. 4 is a schematic structural diagram of a first test data generating device for an intranet client according to an embodiment of the present application. As shown in fig. 4, the apparatus applied to an intranet client may include:
the generating module 401 is configured to generate a network connection establishment request according to the acquired network connection instruction and the adjusted network request generation rule after adjusting the network request generation rule according to the acquired configuration modification instruction for the intranet client;
a sending module 402, configured to send the network connection establishment request to the external network server, so as to establish a network connection with the external network server;
the interaction module 403 is configured to interact with the external network server through the established network connection to generate test data for testing the internal network client.
Fig. 5 is a schematic structural diagram of a test data generating device of a second intranet client according to an embodiment of the present application. As shown in fig. 5, the apparatus applied to an intranet client may include:
A request generating module 501, configured to generate a network connection establishment request according to the obtained target external network login credential;
a request sending module 502, configured to send the network connection establishment request to the external network server, so that the external network server verifies the target external network login credential according to a standard external network login credential, and establishes network connection between an internal network client and an external network server after verification is passed;
the external network interaction module 503 is configured to interact with an external network server through the established network connection, so as to generate test data for testing the intranet client.
Fig. 6 is a schematic structural diagram of a third test data generating device for an intranet client according to an embodiment of the present application. As shown in fig. 6, the apparatus applied to the extranet server may include:
a request receiving module 601, configured to receive a network connection establishment request sent by an intranet client, where the network connection establishment request is generated according to an obtained target external network login credential;
the request verification module 602 is configured to verify the target external network login credential according to a standard external network login credential, and establish a network connection between the internal network client and the external network server after the verification is passed;
The intranet interaction module 603 is configured to interact with the intranet client through the established network connection, and generate test data for testing the intranet client.
The embodiment of the application discloses an electronic device, as shown in fig. 7, including: a processor 701, a memory 702 and a bus 703, said memory 702 storing machine readable instructions executable by said processor 701, said processor 701 and said memory 702 communicating via the bus 703 when the electronic device is running. The machine readable instructions, when executed by the processor 701, perform the method described in the foregoing method embodiments, and specific implementation may refer to the method embodiments and are not described herein.
The computer program product for performing the method for generating test data of the intranet client provided in the embodiment of the present application includes a computer readable storage medium storing non-volatile program code executable by a processor, where the program code includes instructions for executing the method described in the foregoing method embodiment, and specific implementation may refer to the method embodiment and will not be described herein.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described systems, apparatuses and units may refer to corresponding procedures in the foregoing method embodiments, and are not repeated herein.
In the several embodiments provided in this application, it should be understood that the disclosed systems, devices, and methods may be implemented in other manners. The above-described apparatus embodiments are merely illustrative, for example, the division of the units is merely a logical function division, and there may be other manners of division in actual implementation, and for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some communication interface, device or unit indirect coupling or communication connection, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in each embodiment of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a non-volatile computer readable storage medium executable by a processor. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
Finally, it should be noted that: the foregoing examples are merely specific embodiments of the present application, and are not intended to limit the scope of the present application, but the present application is not limited thereto, and those skilled in the art will appreciate that while the foregoing examples are described in detail, the present application is not limited thereto. Any person skilled in the art may modify or easily conceive of the technical solution described in the foregoing embodiments, or make equivalent substitutions for some of the technical features within the technical scope of the disclosure of the present application; such modifications, changes or substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present application, and are intended to be included in the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (12)

1. The test data generation method of the intranet client is characterized by being applied to the intranet client in a network test system, wherein the network test system comprises the intranet client and an extranet server, the intranet client represents the client positioned in a local area network, and the extranet server represents a server accessible by an external network opposite to the local area network, and the method comprises the following steps:
after the network request generation rule is adjusted according to the acquired configuration modification instruction aiming at the intranet client, generating a network connection establishment request according to the acquired network connection instruction by utilizing the adjusted network request generation rule;
sending the network connection establishment request to the external network server to establish network connection with the external network server;
and interacting with the external network server through the established network connection, and taking real data generated when the internal network client and the external network server interact through the network connection as test data of the internal network client.
2. The method according to claim 1, wherein after adjusting the network request generation rule according to the acquired configuration modification instruction for the intranet client, generating the network connection establishment request according to the acquired network connection instruction by using the adjusted network request generation rule, comprising:
Loading a network request generation component according to the acquired configuration modification instruction aiming at the intranet client;
and generating a network connection establishment request by using the network request generation component and the acquired network connection instruction.
3. The method of claim 2, wherein the network request generation rule comprises any one or more of:
a current test state;
shielding state of the external network IP address;
the DNS redirects the interference state of the network request of the IP address of the external network;
and detecting the shielding state of the version number of the intranet client.
4. The test data generation method of the intranet client is characterized by being applied to the intranet client in a network test system, wherein the network test system comprises the intranet client and an extranet server, the intranet client represents the client positioned in a local area network, and the extranet server represents a server accessible by an external network opposite to the local area network, and the method comprises the following steps:
generating a network connection establishment request according to the acquired target external network login credentials;
sending the network connection establishment request to the external network server so that the external network server verifies the target external network login credentials according to the standard external network login credentials, and establishing network connection between an internal network client and the external network server after verification is passed;
And interacting with the external network server through the established network connection, and taking real data generated when the internal network client and the external network server interact through the network connection as test data of the internal network client.
5. The test data generation method of the intranet client is characterized by being applied to an extranet server in a network test system, wherein the network test system comprises the intranet client and the extranet server, the intranet client represents the client positioned in a local area network, and the extranet server represents a server accessible by an external network opposite to the local area network, and the method comprises the following steps:
receiving a network connection establishment request sent by an intranet client, wherein the network connection establishment request is generated according to an acquired target extranet login credential;
verifying the target external network login credentials according to the standard external network login credentials, and establishing network connection between an internal network client and an external network server after the verification is passed;
and interacting with the intranet client through the established network connection, and taking real data generated when the intranet client interacts with the extranet server through the network connection as test data of the intranet client.
6. The method as recited in claim 5, further comprising:
generating a standard external network login credential according to the acquired credential generation instruction;
and acquiring the standard external network login credentials according to the acquired credential acquisition instructions.
7. The method as recited in claim 6, further comprising:
and after the standard foreign network login credentials are generated, timing, and setting the standard foreign network login credentials to be invalid after the timing reaches a preset time.
8. The utility model provides a test data generation device of intranet customer end which characterized in that is applied to the intranet customer end in the network test system, network test system includes intranet customer end and outer net server, and intranet customer end characterization is located the customer end in the local LAN, and outer net server characterization the server that the relative external network of local LAN can visit includes:
the generation module is used for generating a network connection establishment request by utilizing the regulated network request generation rule according to the acquired network connection instruction after regulating the network request generation rule according to the acquired configuration modification instruction aiming at the intranet client;
The sending module is used for sending the network connection establishment request to the external network server so as to establish network connection with the external network server;
and the interaction module is used for interacting with the external network server through the established network connection, and taking real data generated when the internal network client side interacts with the external network server through the network connection as test data of the internal network client side.
9. The utility model provides a test data generation device of intranet customer end which characterized in that is applied to the intranet customer end in the network test system, network test system includes intranet customer end and outer net server, and intranet customer end characterization is located the customer end in the local LAN, and outer net server characterization the server that the relative external network of local LAN can visit includes:
the request generation module is used for generating a network connection establishment request according to the acquired target external network login credentials;
the request sending module is used for sending the network connection establishment request to the external network server so that the external network server verifies the target external network login credentials according to the standard external network login credentials, and establishes network connection between an internal network client and the external network server after the verification is passed;
And the external network interaction module is used for interacting with the external network server through the established network connection, and taking real data generated when the internal network client and the external network server interact through the network connection as test data of the internal network client.
10. The utility model provides a test data generation device of intranet customer end which characterized in that is applied to the outer net server in the network test system, network test system includes intranet customer end and outer net server, and intranet customer end characterization is located the customer end in the local LAN, and outer net server characterization the relative external network of local LAN can the server that accesses, includes:
the request receiving module is used for receiving a network connection establishment request sent by an intranet client, wherein the network connection establishment request is generated according to the acquired target extranet login credentials;
the request verification module is used for verifying the target external network login credentials according to the standard external network login credentials, and establishing network connection between the internal network client and the external network server after the verification is passed;
and the intranet interaction module is used for interacting with the intranet client through the established network connection, and taking real data generated when the intranet client interacts with the extranet server through the network connection as test data of the intranet client.
11. An electronic device, comprising: a processor, a storage medium and a bus, the storage medium storing machine-readable instructions executable by the processor, the processor and the storage medium communicating over the bus when the electronic device is running, the processor executing the machine-readable instructions to perform the steps of the method of any one of claims 1 to 7.
12. A computer-readable storage medium, characterized in that it has stored thereon a computer program which, when executed by a processor, performs the steps of the method according to any of claims 1 to 7.
CN202010438284.8A 2020-05-21 2020-05-21 Test data generation method and device for intranet client Active CN111600959B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010438284.8A CN111600959B (en) 2020-05-21 2020-05-21 Test data generation method and device for intranet client

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010438284.8A CN111600959B (en) 2020-05-21 2020-05-21 Test data generation method and device for intranet client

Publications (2)

Publication Number Publication Date
CN111600959A CN111600959A (en) 2020-08-28
CN111600959B true CN111600959B (en) 2024-02-09

Family

ID=72183955

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010438284.8A Active CN111600959B (en) 2020-05-21 2020-05-21 Test data generation method and device for intranet client

Country Status (1)

Country Link
CN (1) CN111600959B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114401119A (en) * 2021-12-27 2022-04-26 中国电信股份有限公司 Method, device and system for detecting interconnection of internal network and external network and readable storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101674232A (en) * 2008-09-10 2010-03-17 北京艾科网信科技有限公司 Server, method and system of access control
CN103067958A (en) * 2012-12-28 2013-04-24 中国科学院深圳先进技术研究院 Network convergence testing method and system of wireless sensor network and mobile communication network
CN106375493A (en) * 2016-10-10 2017-02-01 腾讯科技(深圳)有限公司 Cross-network communication method and proxy servers
CN106992899A (en) * 2016-01-20 2017-07-28 泰康保险集团股份有限公司 A kind of network interface test device and method
WO2017181682A1 (en) * 2016-04-20 2017-10-26 上海斐讯数据通信技术有限公司 Management system and method for gateway apparatus
CN108200222A (en) * 2017-12-27 2018-06-22 郑州云海信息技术有限公司 A kind of method, apparatus and equipment of cluster accessing outer network from inner network
CN109582583A (en) * 2018-12-14 2019-04-05 平安健康保险股份有限公司 Method for testing software, device, computer equipment and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8806040B2 (en) * 2010-12-06 2014-08-12 Red Hat, Inc. Accessing external network via proxy server

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101674232A (en) * 2008-09-10 2010-03-17 北京艾科网信科技有限公司 Server, method and system of access control
CN103067958A (en) * 2012-12-28 2013-04-24 中国科学院深圳先进技术研究院 Network convergence testing method and system of wireless sensor network and mobile communication network
CN106992899A (en) * 2016-01-20 2017-07-28 泰康保险集团股份有限公司 A kind of network interface test device and method
WO2017181682A1 (en) * 2016-04-20 2017-10-26 上海斐讯数据通信技术有限公司 Management system and method for gateway apparatus
CN106375493A (en) * 2016-10-10 2017-02-01 腾讯科技(深圳)有限公司 Cross-network communication method and proxy servers
CN108200222A (en) * 2017-12-27 2018-06-22 郑州云海信息技术有限公司 A kind of method, apparatus and equipment of cluster accessing outer network from inner network
CN109582583A (en) * 2018-12-14 2019-04-05 平安健康保险股份有限公司 Method for testing software, device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN111600959A (en) 2020-08-28

Similar Documents

Publication Publication Date Title
AU2019268206B2 (en) Mission-based, game-implemented cyber training system and method
US11666817B2 (en) Mission-based, game-implemented cyber training system and method
US10387656B2 (en) Integrated interactive application security testing
KR100962532B1 (en) System for load regenerating using packets of load test and its method
US20030182408A1 (en) Load test system for a server and method of use
CN106559289A (en) The concurrent testing method and device of SSLVPN gateways
CN111294333B (en) Construction system of open type adaptive vulnerability drilling platform
KR101199485B1 (en) Method and apparatus for testing online performance on client/server
US20100138813A1 (en) Method and apparatus for testing online performance on client/server architecture
EP3433782B1 (en) Integrated interactive application security testing
CN111600959B (en) Test data generation method and device for intranet client
CN103853651B (en) Method for testing software and device
CN111045946A (en) Game testing method and device and electronic equipment
US9043440B2 (en) Automatic WSDL download of client emulation for a testing tool
CN111935176B (en) Anti-cheating system and method for network security CTF competition
KR20130017386A (en) Method and apparatus for testing stability of game server
Tabuyo-Benito et al. Forensics analysis of an on-line game over steam platform
CN112468356B (en) Router interface testing method, device, electronic equipment and storage medium
Hance et al. Development of a Multi-purpose Fuzzer to Perform Assessment as Input to a Cybersecurity Risk Assessment and Analysis System
KR20130065810A (en) Method, server, terminal, and recording medium for providing report function in game
CN116680681A (en) Equipment burning data checking method, ioT platform and user terminal
YOU et al. Penetration Testing
CN118105712A (en) Method and system for processing player data
Gaukel Security and Usability Testing of Smartphone Security (S2) Lab
CN118690397A (en) Interactive protocol evaluation method, device, equipment and medium

Legal Events

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