CN111600959A - 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
CN111600959A
CN111600959A CN202010438284.8A CN202010438284A CN111600959A CN 111600959 A CN111600959 A CN 111600959A CN 202010438284 A CN202010438284 A CN 202010438284A CN 111600959 A CN111600959 A CN 111600959A
Authority
CN
China
Prior art keywords
network
extranet
network connection
intranet client
server
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010438284.8A
Other languages
Chinese (zh)
Other versions
CN111600959B (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

Images

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)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Environmental & Geological Engineering (AREA)
  • Computer And Data Communications (AREA)
  • Data Exchanges In Wide-Area Networks (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 for the intranet client, a network connection establishment request is generated by using the adjusted network request generation rule according to the acquired network connection instruction; sending the network connection establishment request to the extranet server to establish network connection with the extranet server; and interacting with the 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 do not need to be constructed manually through the script, missing of the constructed data cannot be generated, and the test efficiency can be greatly improved.

Description

Test data generation method and device for intranet client
Technical Field
The present application 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
The devices in the system architecture of the network game generally comprise a client and a server, and a player downloads a game client through a mobile phone or a computer and then is connected to the game server through a network, so as to enter a game to play the game experience. The game client and the game server are modified during the game development process to provide new functions for the player. Before the new function is online, a game test needs to be performed. The key point of the game test is to test the functions of the modified game client and the game server. After the test is passed, the modified codes of the game client and the game server can be released outside through the network, and the external player can experience the modified codes.
The conventional method for testing the intranet client generally comprises the following steps: the tester constructs the test related data of the intranet server through the script; the intranet client sends a network connection establishment request to the intranet server to establish network connection with the intranet server; by using the constructed test related data of the intranet server, the intranet client interacts with the intranet server through network connection so as to test the intranet client.
The applicant found in research that if there is a need to construct a large amount of test-related data during testing, the missing of the constructed data is easy to occur during the construction of the data, and the testing efficiency is greatly reduced.
Disclosure of Invention
In view of this, an object of the present application is to provide a method and an apparatus 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 test efficiency.
In a first aspect, an embodiment of the present application provides a method for generating test data of an intranet client, where the method is applied to an intranet client in a network test system, where the network test system includes the intranet client and an extranet server, and includes:
after the network request generation rule is adjusted according to the acquired configuration modification instruction for the intranet client, a network connection establishment request is generated by using the adjusted network request generation rule according to the acquired network connection instruction;
sending the network connection establishment request to the extranet server to establish network connection with the extranet server;
and interacting with the external network server through the established network connection to generate test data for testing the internal network client.
In a possible implementation manner, after adjusting a network request generation rule according to an obtained configuration modification instruction for an intranet client, generating a network connection establishment request by using the adjusted network request generation rule according to an obtained network connection instruction, includes:
loading a network request generation component according to the acquired configuration modification instruction for 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 embodiment, the network request generation rule includes any one or more of the following:
a current test state;
a screening status of an external network IP address;
DNS redirects the interference state of the network request to 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 an intranet client in a network test system, where the network test system includes the intranet client and an extranet server, and includes:
generating a network connection establishment request according to the obtained target extranet login credentials;
sending the network connection establishment request to the extranet server so that the extranet server verifies the target extranet login credential according to a standard extranet login credential and establishes network connection between the intranet client and the extranet server after the verification is passed;
and interacting with the 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, where the method 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 obtained target extranet login certificate;
verifying the target extranet login certificate according to a standard extranet login certificate, and establishing network connection between the intranet client and the extranet server after the target extranet login certificate passes the verification;
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 extranet login certificate according to the obtained certificate generation instruction;
and acquiring the standard extranet login credentials according to the acquired credential acquisition instruction.
In one possible embodiment, the method further comprises:
and timing after the standard extranet login certificate is generated, and setting the standard extranet login certificate as invalid after the timing reaches the preset time.
In a fourth aspect, an embodiment of the present application provides a device for generating test data of an intranet client, which is applied to an intranet client in a network test system, where the network test system includes the intranet client and an extranet server, and includes:
the generation module is used for adjusting the network request generation rule according to the acquired configuration modification instruction for the intranet client, and then generating a network connection establishment request by using the adjusted network request generation rule according to the acquired network connection instruction;
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 device for generating test data of an intranet client, which is applied to an intranet client in a network test system, where the network test system includes the intranet client and an extranet server, and includes:
the request generation module is used for generating a network connection establishment request according to the obtained target extranet login credentials;
the request sending module is used for sending the network connection establishment request to the extranet server so that the extranet server verifies the target extranet login credential according to a standard extranet login credential and establishes network connection between the intranet client and the extranet server after the target extranet login credential passes the verification;
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 device 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:
the request receiving module is used for receiving a network connection establishment request sent by an intranet client, and 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 extranet login certificate according to the standard extranet login certificate and establishing network connection between the intranet client and the extranet server after the target extranet login certificate passes the verification;
and the intranet interaction module is used for interacting with the intranet client through the established network connection to generate test data for testing the intranet client.
In a seventh aspect, an embodiment of the present application provides an electronic device, including: the electronic device comprises a processor, a storage medium and a bus, wherein the storage medium stores machine-readable instructions executable by the processor, when the electronic device runs, the processor and the storage medium communicate through the bus, and the processor executes the machine-readable instructions to execute the steps of the method in any possible implementation manner of the first aspect, the second aspect and the third aspect.
In an eighth aspect, the present application provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program performs the steps of the method in any possible implementation manner of the first aspect, the second aspect, and the third aspect.
The method for generating the test data 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 for the intranet client, a network connection establishment request is generated by using the adjusted network request generation rule according to the acquired network connection instruction; sending the network connection establishment request to the extranet server to establish network connection with the extranet server; and interacting with the external network server through the established network connection to generate test data for testing the internal network client. The scheme that this application provided not only appears constructing the omission of data easily when constructing the test relevant data through the script to the manual work among the prior art, can improve by greatly reduced efficiency of software testing's problem moreover, this application makes intranet client can generate the network connection through the network request generating rule of adjustment intranet client and establishes the request and send to the outer net server promptly to establish and outer net server between the network connection. Real data generated when the intranet client and the extranet server are connected through the network for interaction are used as test data of the intranet client, the test data do not need to be constructed manually through scripts, missing of the construction data cannot be generated, and the test efficiency can be greatly improved.
The embodiment of the present application further provides another method for generating test data of an intranet client, including: generating a network connection establishment request according to the obtained target extranet login credentials; sending the network connection establishment request to the extranet server so that the extranet server verifies the target extranet login credential according to a standard extranet login credential and establishes network connection between the intranet client and the extranet server after the verification is passed; and interacting with the external network server through the established network connection to generate test data for testing the internal network client. The scheme that this application provided, not only appear the omission of structure data easily when constructing the test relevant data through the script to the manual work among the prior art, but also can the greatly reduced efficiency of software testing's problem improves, this application passes through target extranet login credential and generates the network connection and establish the request and send to extranet server promptly, extranet server verifies target extranet login credential according to standard extranet login credential, establish the network connection between intranet client and the extranet server after verifying and passing through. Real data generated when the intranet client and the extranet server are connected through the network for interaction are used as test data of the intranet client, the test data do not need to be constructed manually through scripts, missing of the construction data cannot be generated, and the test efficiency can be greatly improved.
In order to make the aforementioned 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 required to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained from the drawings without inventive effort.
Fig. 1 shows a schematic structural diagram of a network test system provided in an embodiment of the present application;
fig. 2 is a flowchart illustrating a method for generating test data of an intranet client according to an embodiment of the present application;
fig. 3 is a flowchart illustrating 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 illustrating a test data generation apparatus of a first intranet client according to an embodiment of the present application;
fig. 5 is a schematic structural diagram illustrating a test data generation apparatus of a second intranet client according to an embodiment of the present application;
fig. 6 is a schematic structural diagram illustrating a test data generation apparatus of a third intranet client according to an embodiment of the present application;
fig. 7 shows a schematic structural diagram of an electronic device provided in an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, 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 obvious that the described embodiments are only a part of the embodiments of the present application, and not all the embodiments. The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present application without making any creative effort, shall fall within the protection scope of the present application.
In order to enable those skilled in the art to use the present disclosure, the following embodiments are given in conjunction with a specific application scenario "test data generation of an intranet client in a game scenario". It will be apparent to those skilled 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 application. Although the present application is described primarily in the context of "test data generation for intranet clients in a game scenario," it should be understood that this is merely one exemplary embodiment.
It should be noted that in the embodiments of the present application, the term "comprising" is used to indicate the presence of the features stated hereinafter, but does not exclude the addition of further features.
In a conventional scheme, as shown in fig. 1, a network test system includes an intranet client 100 and an intranet server 200. The intranet client 100 refers to a client in a local area network, and the intranet server 200 refers to a server in the local area network. The conventional method for testing the intranet client generally comprises the following steps: the tester constructs the test related data of the intranet server through the script; the intranet client sends a network connection establishment request to the intranet server to establish network connection with the intranet server; by using the constructed test related data of the intranet server, the intranet client interacts with the intranet server through network connection so as to test the intranet client. The applicant found in research that if there is a need to construct a large amount of test-related data during testing, the missing of the constructed data is easy to occur during the construction of the data, and the testing efficiency is greatly reduced. Based on this, embodiments of the present application provide a method and an apparatus for generating test data of an intranet client, which are described below by embodiments.
In the embodiment of the present application, as shown in fig. 1, the network test system includes an intranet client 100 and an extranet server 300. Extranet server 300 refers to a server that is accessible by an external network (as opposed to internally within a local area network). In addition, extranet client 400 refers to a client that is accessible by an extranet (as opposed to within a local area network), i.e., a client that is used by a wide range of users.
To facilitate understanding of the present embodiment, first, a detailed description is given to a test data generation method of a first intranet client disclosed in the embodiment of the present application.
Fig. 2 is a flowchart of a method for generating test data of an intranet client according to an embodiment of the present disclosure. As shown in fig. 2, the method applied to the intranet client 100 may include the following steps:
step S201, after the network request generation rule is adjusted according to the acquired configuration modification instruction for the intranet client 100, a network connection establishment request is generated by utilizing the adjusted network request generation rule according to the acquired network connection instruction;
step S202, sending the network connection establishment request to the extranet server 300 to establish the network connection with the extranet server 300;
step S203, interacting with the extranet server 300 through the established network connection to generate test data for testing the intranet client 100.
In step S201, the network request generation rule is used to characterize the rule to be followed by the network connection establishment request. The conventional network request generation rule is used to support the network connection establishment request between the intranet client 100 and the intranet server 200 and to shield the network connection establishment request between the intranet client 100 and the extranet server 300. According to the method and the system, the traditional network request generation rule is adjusted, 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 network request generation rule may include an account login related code and network configuration information in the intranet client 100. The embodiment is not limited to this, and other rules that can be followed by characterizing the network connection establishment request may be used as the network request generation rule. Specifically, the account login related code in the intranet client 100 is globals. The network configuration information is used to mask logging onto the extranet server in SDK mode. The network configuration information includes any one or more of: a current test state; a screening status of an external network IP address; DNS redirects the interference state of the network request to the IP address of the external network; and detecting the shielding state of the version number of the intranet client. And 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. And if the switch of the shielding state of the external network IP address is opened, shielding the external network IP address, thereby shielding the login of the external network server. If the switch for redirecting the interference state of the network request to the external network IP address by the DNS is turned on, the network request of the external network IP address is interfered, and the login of an external network server is interfered. And if the switch for detecting the shielding state of the version number of the intranet client is turned on, the login of the extranet server is shielded.
The configuration modification instruction is used to represent an instruction for modifying the configuration of the intranet client 100, and a conventional network request generation rule may be adjusted by 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, which is not limited in this embodiment. Specifically, the account login related code is modified by the modification instruction, and the network configuration information of the intranet client 100 is adjusted by the adjustment instruction, 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 instruction is used to characterize the instruction required by the intranet client 100 to establish a network connection with the extranet server 300. Generally, the network connection instruction refers to an extranet account number and an extranet server ID.
The network connection establishment request is used to characterize 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 extranet server 300 generated after logging in an extranet account and an extranet server ID by the account login 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 for the intranet client; and generating a network connection establishment request by using the network request generation component and the acquired network connection instruction.
The network request generation rules are adjusted when the network request generation component is loaded. The network request generation component is a component that integrates these functions. In this embodiment, when the network request generation component is loaded, modification including deletion, addition, editing, and the like is performed on the account login related code in the network request generation rule, so as to convert the account login mode of globals. And adjusting the 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 IP address of the external network to be closed, adjusting a switch of a DNS redirection interference state of a network request for the IP address of the external network to be closed, and adjusting a shielding state of detecting the version number of the client side of the internal network to be closed so as to remove 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. Thus, by sending the network connection establishment request to the extranet server 300, a network connection with the extranet server 300 can be established.
In step S203, the real data generated when the intranet client interacts with the extranet server through 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 scripts, missing of the construction data is avoided, and the test efficiency can be greatly improved.
When the user has the code modification right, the intranet client can generate a network connection establishment request and send the network connection establishment request to the extranet server by adjusting the network request generation rule of the intranet client, so that the network connection with the extranet server is established. Real data generated when the intranet client and the extranet server are connected through the network for interaction are used as test data of the intranet client, the test data do not need to be constructed manually through scripts, and test efficiency can be greatly improved. Moreover, since part of the functions of the server relate to a third-party interface, the functions cannot be realized in the intranet server. By using the method of the embodiment, functions and verification which cannot be simulated by the intranet server can be carried out in the intranet server, and the missing of structural data cannot be caused.
To illustrate the test data generation method of the intranet client, the following embodiments are specifically enumerated for explanation:
example 1
The embodiment provides a ticker test data generation method for an intranet client, which is applied to a network test system, and the system comprises: an intranet client and an extranet server.
The method comprises the following steps when in implementation:
after the network request generation rule is adjusted according to the acquired configuration modification instruction for the intranet client, a network connection establishment request is generated by using the adjusted network request generation rule according to the acquired network connection instruction;
sending the network connection establishment request to the extranet server to establish network connection with the extranet server;
and interacting with the external network server through the established network connection to generate ticker test data for testing the internal network client.
Because the number of messages related to the marquee is large, the testers cannot guarantee that all conditions are simulated, and the testers need to spend a large amount of time on simulating real data. By the method in embodiment 1, the ticker message that still pops up is successfully captured during the test process. And then the tester delivers the data collected in the test to the program for further modification, thereby efficiently completing the test task.
Example 2
The embodiment provides a game flash back test data generation method of an intranet client, which is applied to a network test system, and the system comprises: an intranet client and an extranet server.
The method comprises the following steps when in implementation:
after the network request generation rule is adjusted according to the acquired configuration modification instruction for the intranet client, a network connection establishment request is generated by using the adjusted network request generation rule according to the acquired network connection instruction;
sending the network connection establishment request to the extranet server to establish network connection with the extranet server;
and interacting with the external network server through the established network connection to generate game flash back test data for testing the internal network client.
Because the tester carries out simulation construction on the friend list, obvious memory occupation change is not found. Later testers find that although the friend list is easy to simulate, the friend list interface also comprises a large amount of other data such as chat records of players and friends, gift giving records, activity records of friends and the like, the data is difficult to construct, and the cause of the mortgage also exists in the data with high probability. Thus, real buddy data is complex and difficult to simulate. By the method in embodiment 2, the real account on the line is used to test the occupation of the memory, and finally, the cause of the stuck condition is successfully found.
Based on the same technical concept, the embodiment further provides a second test data generation method for the intranet client. The second method for generating test data of the intranet client disclosed in the embodiments of the present application is described in detail below.
Fig. 3 is a flowchart of a method for generating test data of an intranet client according to an embodiment of the present application. As shown in fig. 3, the following steps may be included:
step S301, 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 extranet server 300 receives a network connection establishment request sent by the intranet client 100;
step S304, the extranet server 300 verifies the target extranet login certificate according to the standard extranet login certificate, and establishes network connection between the intranet client 100 and the extranet server 300 after the verification is passed;
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 extranet login credential is used to characterize a credential required to log in to the extranet server, and may be in the form of a character string. The target extranet login credentials are the extranet login credentials that need to be verified.
The network connection establishment request refers to a request for the intranet client 100 and the extranet server 300 to establish a network connection, which is generated after logging in the target extranet login credential through the login portal.
In this embodiment, a login entry of an extranet login certificate is added to a GM (game master) panel. After a tester acquires an extranet login certificate from an extranet server through a front end (a webpage, a small program, small assistant software inside a company and the like), a target extranet login certificate is input into the login entrance according to the acquired extranet login certificate, and an intranet client acquires the input target extranet login certificate, 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 extranet login credential is used to represent the standard extranet login credential stored inside the extranet server and used to verify the target extranet login credential.
In this embodiment, the step of obtaining the standard extranet login credentials includes: generating a standard extranet login certificate according to the obtained certificate generation instruction; and acquiring the standard extranet login credentials according to the acquired credential acquisition instruction.
Specifically, the tester sends the credential generation instruction to the server through the front end (web page, applet, small helper software inside the company, etc.). The credential generation instruction includes an extranet account number and an extranet server ID that require login to the extranet server 300. The standard extranet login certificate is obtained by packaging data in the certificate generation instruction. The credential retrieval instruction refers to an instruction sent by the tester to the extranet server 300 actively for retrieving a standard extranet login credential.
In a possible embodiment, the standard extranet login credentials are generated and then timed out, and the standard extranet login credentials are set to be invalid after the timed out reaches a predetermined time, so that the valid time of the standard extranet login credentials can be limited.
The process of the extranet server 300 verifying the target extranet login credentials according to the standard extranet login credentials is as follows: and comparing whether the standard extranet login certificate is consistent with the data in the target extranet login certificate, if so, passing the verification, opening the login of the extranet server 300, and establishing the network connection with the extranet server 300.
In step S305, real data generated when the intranet client interacts with the extranet server through network connection is used as test data of the intranet client, so that the test data is not required to be constructed manually through scripts, missing of the construction data is avoided, 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 certificate and sent to the external network server, the external network server verifies the target external network login certificate according to the standard external network login certificate, and the network connection between the internal network client and the external network server is established after the verification is passed. Real data generated when the intranet client and the extranet server are connected through the network for interaction are used as test data of the intranet client, the test data do not need to be constructed manually through scripts, and test efficiency can be greatly improved. Moreover, since part of the functions of the server relate to a third-party interface, the functions cannot be realized in the intranet server. By using the method of the embodiment, functions and verification which cannot be simulated by the intranet server can be carried out in the intranet server, and the missing of structural data cannot be caused.
Example 3
The embodiment provides a method for generating test data of an intranet client chat message disappearance reason, 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 in implementation:
generating a network connection establishment request according to the obtained target extranet login credentials;
sending the network connection establishment request to the extranet server so that the extranet server verifies the target extranet login credential according to a standard extranet login credential and establishes network connection between the intranet client and the extranet server after the 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 messages of the internal network client.
Since the tester constructs a simple chat system by sending random messages through the robot, it is found that the problems described by the player cannot be reproduced. Because a great deal of different contents such as equipment, pictures, expressions, etc. can be transmitted in the chat, and the contents are difficult to construct really by using the robot. By the method in embodiment 3, the intranet client program is added with monitoring data such as the memory, the download speed, the upload speed and the like, and simultaneously, a large amount of logs are added to record the real-time situation of the chat interface, and then the intranet client logs in the external network environment to open the world chat channel and wait for the problem to reappear. And after the problem occurs, analyzing the recorded memory, speed and log, and successfully finding out the reason of the problem.
In summary, the two methods for generating test data of the intranet client provided by the embodiment of the present application have the following advantages: the workload of testing personnel 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 great deal 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 using the liveness of the online player under the condition of not constructing and using any test data. And the integrity of the test data can be improved. When a tester uses simulation data to test, the test omission often occurs because a part of events with small probability are ignored or functions which are rarely used are ignored. The test data in the invention is the on-line real data, and because the number of players is large, the invention has the capability of covering all playing methods, thereby ensuring the integrity of the test data. The method is suitable for testers with code modification authority and testers without code modification authority. According to the method and the system, the intranet client logs in the function module of the extranet server, so that the method and the system are more convenient and controllable, and meanwhile, data can be recorded. The technician can add limitation to the function according to the specific situation of the project, and the controllability is high. Meanwhile, since the logged-in extranet server does not support the GM command, the tester cannot gain a profit by this means. Fourthly, the method has natural confidentiality. Although the tester uses the intranet client to log in the extranet server. But because the modified content is modified by the client, the modified content does not affect other players. The tester can carry out operations such as team formation, chat and the like at ease.
Based on the same technical concept, embodiments of the present application further provide a test data generation apparatus for an intranet client, an electronic device, a computer storage medium, and the like, which may be referred to in the following embodiments.
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 disclosure. As shown in fig. 4, the apparatus is applied to an intranet client, and may include:
a generating module 401, configured to adjust a network request generation rule according to an obtained configuration modification instruction for an intranet client, and then generate a network connection establishment request according to an obtained network connection instruction and using the adjusted network request generation rule;
a sending module 402, configured to send the network connection establishment request to the extranet server to establish a network connection with the extranet server;
and an interaction module 403, configured to interact with the extranet server through the established network connection, so as to generate test data for testing the intranet 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 is applied to an intranet client, and may include:
a request generating module 501, configured to generate a network connection establishment request according to the obtained target extranet login credential;
a request sending module 502, configured to send the network connection establishment request to the extranet server, so that the extranet server verifies the target extranet login credential according to a standard extranet login credential, and establishes a network connection between the intranet client and the extranet server after the target extranet login credential passes the verification;
and an extranet interaction module 503, configured to interact with the extranet 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 test data generating device of a third intranet client according to an embodiment of the present application. As shown in fig. 6, the apparatus, applied to an 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 extranet login credential;
a request verification module 602, configured to verify the target extranet login credential according to a standard extranet login credential, and establish a network connection between the intranet client and the extranet server after the verification is passed;
and 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.
An embodiment of the present application discloses an electronic device, as shown in fig. 7, including: a processor 701, a memory 702, and a bus 703, the memory 702 storing machine-readable instructions executable by the processor 701, the processor 701 and the memory 702 communicating via the bus 703 when the electronic device is operating. The machine readable instructions, when executed by the processor 701, perform the method described in the foregoing method embodiment, and specific implementation may refer to the method embodiment, which is not described herein again.
The computer program product for performing the test data generation method for the intranet client according to the embodiment of the present application includes a computer readable storage medium storing a nonvolatile program code executable by a processor, where instructions included in the program code may be used to execute the method described in the foregoing method embodiment, and specific implementation may refer to the method embodiment, and is not described herein again.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one logical division, and there may be other divisions when actually implemented, and for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of devices or units through some communication interfaces, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed 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 can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into 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 or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
Finally, it should be noted that: the above-mentioned embodiments are only specific embodiments of the present application, and are used for illustrating the technical solutions of the present application, but not limiting the same, and the scope of the present application is not limited thereto, and although the present application is described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: any person skilled in the art can modify or easily conceive the technical solutions described in the foregoing embodiments or equivalent substitutes for some technical features within the technical scope disclosed in the present application; such modifications, changes or substitutions do not depart from the spirit and scope of the exemplary embodiments of the present application, and are intended to be covered by 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. A test data generation method of an intranet client is characterized in that the method is applied to the intranet client in a network test system, the network test system comprises the intranet client and an extranet server, and the method comprises the following steps:
after the network request generation rule is adjusted according to the acquired configuration modification instruction for the intranet client, a network connection establishment request is generated by using the adjusted network request generation rule according to the acquired network connection instruction;
sending the network connection establishment request to the extranet server to establish network connection with the extranet server;
and interacting with the external network server through the established network connection to generate test data for testing the internal network client.
2. The method according to claim 1, wherein after adjusting the network request generation rule according to the obtained configuration modification instruction for the intranet client, generating a network connection establishment request by using the adjusted network request generation rule according to the obtained network connection instruction, comprises:
loading a network request generation component according to the acquired configuration modification instruction for 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;
a screening status of an external network IP address;
DNS redirects the interference state of the network request to the IP address of the external network;
and detecting the shielding state of the version number of the intranet client.
4. A test data generation method of an intranet client is characterized in that the method is applied to the intranet client in a network test system, the network test system comprises the intranet client and an extranet server, and the method comprises the following steps:
generating a network connection establishment request according to the obtained target extranet login credentials;
sending the network connection establishment request to the extranet server so that the extranet server verifies the target extranet login credential according to a standard extranet login credential and establishes network connection between the intranet client and the extranet server after the verification is passed;
and interacting with the external network server through the established network connection to generate test data for testing the internal network client.
5. A test data generation method of an intranet client is characterized in that the method is applied to an extranet server in a network test system, the network test system comprises the intranet client and the extranet server, 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 obtained target extranet login certificate;
verifying the target extranet login certificate according to a standard extranet login certificate, and establishing network connection between the intranet client and the extranet server after the target extranet login certificate passes the verification;
and interacting with the intranet client through the established network connection to generate test data for testing the intranet client.
6. The method of claim 5, further comprising:
generating a standard extranet login certificate according to the obtained certificate generation instruction;
and acquiring the standard extranet login credentials according to the acquired credential acquisition instruction.
7. The method of claim 6, further comprising:
and timing after the standard extranet login certificate is generated, and setting the standard extranet login certificate as invalid after the timing reaches the preset time.
8. The utility model provides a test data generation device of intranet client, its characterized in that is applied to the intranet client among the network test system, network test system includes intranet client and extranet server, includes:
the generation module is used for adjusting the network request generation rule according to the acquired configuration modification instruction for the intranet client, and then generating a network connection establishment request by using the adjusted network request generation rule according to the acquired network connection instruction;
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.
9. The utility model provides a test data generation device of intranet client, its characterized in that is applied to the intranet client among the network test system, network test system includes intranet client and extranet server, includes:
the request generation module is used for generating a network connection establishment request according to the obtained target extranet login credentials;
the request sending module is used for sending the network connection establishment request to the extranet server so that the extranet server verifies the target extranet login credential according to a standard extranet login credential and establishes network connection between the intranet client and the extranet server after the target extranet login credential passes the verification;
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.
10. The utility model provides a test data generation device of intranet client, its characterized in that, is applied to the extranet server among the network test system, the network test system includes intranet client and extranet server, includes:
the request receiving module is used for receiving a network connection establishment request sent by an intranet client, and 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 extranet login certificate according to the standard extranet login certificate and establishing network connection between the intranet client and the extranet server after the target extranet login certificate passes the verification;
and the intranet interaction module is used for interacting with the intranet client through the established network connection to generate test data for testing 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 via the bus when the electronic device is operating, the processor executing the machine-readable instructions to perform the steps of the method according to any one of claims 1 to 7.
12. A computer-readable storage medium, having stored thereon a computer program which, when being executed by a processor, is adapted to carry out the steps of the method according to any one 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 true CN111600959A (en) 2020-08-28
CN111600959B 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)

Cited By (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 (8)

* 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
US20120144050A1 (en) * 2010-12-06 2012-06-07 Red Hat, Inc. Methods for accessing external network via proxy server
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

Patent Citations (8)

* 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
US20120144050A1 (en) * 2010-12-06 2012-06-07 Red Hat, Inc. Methods for accessing external network via proxy server
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

Cited By (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

Also Published As

Publication number Publication date
CN111600959B (en) 2024-02-09

Similar Documents

Publication Publication Date Title
US10243679B2 (en) Vulnerability detection
US10387656B2 (en) Integrated interactive application security testing
US10628294B2 (en) Mock services for software infrastructures
US9185039B1 (en) Application testing through object level code inspection
US9465718B2 (en) Filter generation for load testing managed environments
KR101196522B1 (en) Stress test system for online game server based on script and method thereof
CN112187585B (en) Network protocol testing method and device
CN105740154A (en) Webgame test script generation method and device
EP3433782B1 (en) Integrated interactive application security testing
CN106559289A (en) The concurrent testing method and device of SSLVPN gateways
KR101199485B1 (en) Method and apparatus for testing online performance on client/server
Rathaus et al. Open source fuzzing tools
CN113934621A (en) Fuzzy test method, system, electronic device and medium
CN111522749A (en) Page testing method and device, readable storage medium and electronic equipment
CN111600959A (en) Test data generation method and device for intranet client
CN104702463A (en) Method, device and system for bypass testing of multiple machine rooms
US9043440B2 (en) Automatic WSDL download of client emulation for a testing tool
CN113722164A (en) Method, system and storage medium for automatic testing of mobile terminal and remote real machine debugging
CN106390458B (en) Webpage game on-hook method, server, mobile terminal and browser client
KR20130017386A (en) Method and apparatus for testing stability of game server
CN111045946A (en) Game testing method and device and electronic equipment
CN112052173B (en) Skill effect modification method, skill effect modification device, skill effect modification equipment and storage medium
CN112468356B (en) Router interface testing method, device, electronic equipment and storage medium
Ostermueller Troubleshooting Java Performance: Detecting Anti-Patterns with Open Source Tools
CN117692377B (en) VPN verification test method, device and equipment for network target range and storage medium

Legal Events

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