CN113891368A - Network environment display method and device, storage medium and electronic equipment - Google Patents

Network environment display method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN113891368A
CN113891368A CN202111227052.9A CN202111227052A CN113891368A CN 113891368 A CN113891368 A CN 113891368A CN 202111227052 A CN202111227052 A CN 202111227052A CN 113891368 A CN113891368 A CN 113891368A
Authority
CN
China
Prior art keywords
network
parameter
control
network environment
type
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111227052.9A
Other languages
Chinese (zh)
Inventor
蒋政胜
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Tencent Network Information Technology Co Ltd
Original Assignee
Shenzhen Tencent Network Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Tencent Network Information Technology Co Ltd filed Critical Shenzhen Tencent Network Information Technology Co Ltd
Priority to CN202111227052.9A priority Critical patent/CN113891368A/en
Publication of CN113891368A publication Critical patent/CN113891368A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/06Testing, supervising or monitoring using simulated traffic
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiment of the application discloses a network environment display method, a device, a storage medium and electronic equipment, wherein the method comprises the steps of establishing connection with a first network, wherein parameters of the first network are first network parameters; responding to a triggering instruction of a network environment setting control, and acquiring a second network parameter, wherein the second network parameter is different from the first network parameter; displaying a network environment associated control, wherein the network environment associated control is a control displayed when the parameter of the network environment where the terminal equipment is located is the second network parameter; wherein the parameter comprises a network type parameter or a network resource parameter. According to the embodiment of the application, the terminal equipment can recognize the changed network information as the network information under the real network environment, the corresponding performance is generated, the dependence on the real network environment is eliminated, the use convenience of the terminal equipment is improved, the test efficiency can be improved when the terminal equipment is used in a test scene, and the implementation of automatic test and batch test is facilitated.

Description

Network environment display method and device, storage medium and electronic equipment
Technical Field
The embodiment of the application relates to the technical field of computers, in particular to a network environment display method, a network environment display device, a storage medium and electronic equipment.
Background
In the related art, terminal equipment needs to be used based on a real network, for example, if a user wants to use the terminal equipment in a weak network environment such as an elevator, an underground garage and the like, the user needs to carry the terminal equipment to go to the real weak network environment such as the elevator, the underground garage and the like, and then the terminal equipment can generate an application performance corresponding to the weak network environment, for example, if the user wants the terminal equipment to run an application program in a flow-free snap ring environment, a real flow-free card needs to be installed for the equipment, and frequent plugging and unplugging of the flow-free card is time-consuming and labor-consuming. That is, the related art lacks means capable of autonomously constructing a specific network environment, thereby causing inconvenience in using a terminal device based on the specific network environment.
Disclosure of Invention
In order to improve convenience of using a terminal device based on a specific network environment, embodiments of the present application provide a network environment display method, apparatus, storage medium, and electronic device.
In one aspect, an embodiment of the present application provides a network environment display method, where the method is applied to a terminal device, and the method includes:
establishing connection with a first network, wherein the parameters of the first network are first network parameters;
responding to a triggering instruction of a network environment setting control, and acquiring a second network parameter, wherein the second network parameter is different from the first network parameter;
displaying a network environment associated control, wherein the network environment associated control is a control displayed when the parameter of the network environment where the terminal equipment is located is the second network parameter;
wherein the parameter comprises a network type parameter or a network resource parameter.
On the other hand, an embodiment of the present application provides a network environment display apparatus, where the apparatus is applied to a terminal device, and the apparatus includes:
the connection establishing module is used for establishing connection with a first network, and the parameters of the first network are first network parameters;
the network parameter acquisition module is used for responding to a trigger instruction of a network environment setting control to acquire a second network parameter, and the second network parameter is different from the first network parameter;
the control display module is used for displaying a network environment associated control, wherein the network environment associated control is displayed when the parameter of the network environment where the terminal equipment is located is the second network parameter;
wherein the parameter comprises a network type parameter or a network resource parameter.
In another aspect, an embodiment of the present application provides a computer-readable storage medium, where at least one instruction or at least one program is stored in the computer-readable storage medium, and the at least one instruction or the at least one program is loaded and executed by a processor to implement a network environment display method as described above.
In another aspect, an embodiment of the present application provides an electronic device, including at least one processor, and a memory communicatively connected to the at least one processor; the memory stores instructions executable by the at least one processor, and the at least one processor implements the network environment display method by executing the instructions stored in the memory.
In another aspect, the present application provides a computer program product including a computer program or instructions, and the computer program or instructions, when executed by a processor, implement a network environment display method as described above.
The embodiment of the application provides a network environment display method, a network environment display device, a storage medium and equipment. The method provided by the embodiment of the application can enable the terminal equipment to recognize the changed network information as the network information under the real network environment, so that the corresponding performance is generated, the terminal equipment can generate the corresponding performance by constructing the false network environment sensed by the terminal equipment, so that the dependence on the real network environment is avoided, the convenience in use of the terminal equipment is improved, the test efficiency can be remarkably improved when the method is used in a test scene, and the method is favorable for implementing automatic test and batch test.
Drawings
In order to more clearly illustrate the technical solutions and advantages of the embodiments of the present application or the related art, the drawings used in the description of the embodiments or the related art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without inventive efforts.
Fig. 1 is a schematic flowchart of a network environment display method provided in an embodiment of the present application;
FIG. 2 is a schematic diagram of a first control provided by an embodiment of the present application;
fig. 3 is a schematic view of a setting interface of a network type parameter in a second network parameter provided in an embodiment of the present application;
fig. 4 is an operation representation diagram of a terminal device provided in an embodiment of the present application;
fig. 5 is a schematic diagram of a setting interface of a network resource parameter in a second network parameter provided in an embodiment of the present application;
FIG. 6 is a schematic diagram of an open/close control interface of the method in the present embodiment according to the present application;
fig. 7 is a schematic diagram of an operation process of a terminal device in a case that a network status modification control provided in an embodiment of the present application points to shutdown;
fig. 8 is a schematic diagram of an operation process of a terminal device when a network state modification control provided in an embodiment of the present application is pointing to on;
fig. 9 is a schematic diagram of another operation process of the terminal device when the network status modification control provided in the embodiment of the present application is pointing to open;
fig. 10 is a schematic diagram of network scene switching provided in an embodiment of the present application;
FIG. 11 is a block diagram of a method provided in an embodiment of the present application;
fig. 12 is a block diagram of a network environment display device according to an embodiment of the present application;
fig. 13 is a hardware structural diagram of an apparatus for implementing the method provided by the embodiment of the present application.
Detailed Description
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 of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application without any creative effort belong to the protection scope of the embodiments in the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of the embodiments of the present application and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application described herein are capable of operation in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or server that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
In order to make the objects, technical solutions and advantages disclosed in the embodiments of the present application more clearly apparent, the embodiments of the present application are described in further detail below with reference to the accompanying drawings and the embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the embodiments of the application and are not intended to limit the embodiments of the application.
In the following, the terms "first", "second" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of the present embodiment, "a plurality" means two or more unless otherwise specified. In order to facilitate understanding of the above technical solutions and the technical effects thereof in the embodiments of the present application, the embodiments of the present application first explain related terms:
Wi-Fi: wireless communication technology, also known as mobile hotspots, is primarily a local area network technology that uses radio waves to provide high-speed network access to Wi-Fi enabled mobile devices. It not only allows mobile devices such as smartphones, laptops and tablets to connect to the internet, but also allows them to communicate wirelessly with each other.
2G: the second generation of mobile phone communication technical specification takes digital voice transmission technology as a core. Generally defined as the inability to directly transfer information such as e-mail, software, etc.; only has the technical specification of communication of the mobile phone of conversation and some transmission such as time, date and the like. However, the mobile phone short message can be executed in some specifications thereof.
3G: the third generation mobile communication technology refers to a cellular mobile communication technology supporting high-speed data transmission. The 3G service is capable of transmitting voice and data information simultaneously. The 3G is a generation mobile communication system that combines wireless communication with multimedia communication such as the internet.
4G: fourth generation mobile information systems, networking technology typically associated with mobile telephone systems that use short-range radio stations to facilitate mobile device communications over an area comprised of cells and transceivers. A 4G network means that the device is accompanied by a cellular plan that uses cellular signals to connect to the internet.
5G: the fifth generation mobile communication technology is a new generation broadband mobile communication technology with the characteristics of high speed, low time delay and large connection, and is a network infrastructure for realizing man-machine-object interconnection.
Multi-client identification module (SIM): the subscriber identity module card of the terminal equipment, different SIM cards can carry different network services. Such as: when a user of the today's first card uses the today's first card to operate the application of the today's first card, the flow fee can be ignored, the user of the rice flour king card can avoid the flow when using the application supported by the rice flour king card, and the user of the Tengchong King card can have a discount without the flow fee when using the application supported by the Tengchong King card.
In some scenarios, it may be necessary to place the terminal device in a specific network environment for use, for example, in some occasions with higher security requirements, the terminal device is required to operate in an encrypted low-speed secure network, and in some test scenarios, the terminal device is required to operate in a network adapted to the test scenario. In the related art, in order to achieve the purpose of using the terminal device in a certain specific network environment, the terminal device often needs to be placed in the certain specific network environment, which causes inconvenience in use of the terminal device.
Taking a test as an example, in order to test the operation performance of the terminal device in multiple different network environments, the multiple different network environments need to be actually constructed for the terminal device, for example, if the operation performance of the terminal device is required to be tested under the condition of carrying an SIM card of a certain network service, the SIM card needs to be inserted, the SIM card is not convenient to obtain and plug, and extra cost is generated. Specifically, if it is required to test whether the flow-free logic display of the queen card of a certain application program on the terminal device is normal in the environment of the queen card, the queen card needs to be opened by an operator at first, then the queen card needs to be charged, the queen card is manually inserted into the terminal device, and the flow-free logic display of the queen card can be tested whether the flow-free logic display of the queen card is normal or not only when the certain application program is operated on the terminal device. The queen card may also need to be pulled out when other operations unrelated to the queen card are performed.
For another example, if the test terminal device is required to operate only in a certain special weak network environment, a tester is required to carry the test terminal to the real weak network environment for testing, and the weak network environment may exist in an elevator or a basement in operation, which obviously further causes inconvenience in testing. If the running performance of the terminal device in various network environments needs to be tested, the real network environment of the terminal device needs to be frequently changed, which obviously further aggravates the inconvenience, and the dependence on the real network environment is too high, so that the automation of the testing process is difficult to realize.
In view of this, an embodiment of the present application provides a network environment display method, which may change network information acquired by a terminal device in a real networking state through real networking, so that the terminal device recognizes the changed network information as network information in the real network environment, and generates a corresponding performance, that is, the network environment constructed in the present application is not a real network environment but a false network environment sensed by the terminal device, and by constructing the false network environment, the terminal device may generate the corresponding performance, so as to get rid of dependence on the real network environment, improve convenience of use of the terminal device, significantly improve testing efficiency when used in a testing scene, and facilitate implementation of automatic testing and batch testing.
Embodiments of the present application may relate to cloud technology and cloud gaming. The cloud technology is a hosting technology for unifying series resources such as hardware, software, network and the like in a wide area network or a local area network to realize the calculation, storage, processing and sharing of data. The cloud technology is a general term of network technology, information technology, integration technology, management platform technology, application technology and the like applied based on a cloud computing business model, can form a resource pool, is used as required, and is flexible and convenient. Cloud computing technology will become an important support. Background services of the technical network system require a large amount of computing and storage resources, such as video websites, picture-like websites and more web portals. With the high development and application of the internet industry, each article may have its own identification mark and needs to be transmitted to a background system for logic processing, data in different levels are processed separately, and various industrial data need strong system background support and can only be realized through cloud computing.
The cloud game is an online game technology based on a cloud computing technology. Cloud game technology enables light-end equipment with relatively limited graphics processing and data computing capabilities to run high-quality games. The game on demand or the game live broadcast can be carried out based on the cloud game.
A network environment display method according to an embodiment of the present application is described below, and fig. 1 is a flowchart illustrating a network environment display method according to an embodiment of the present application, where the method operation steps according to the embodiment or the flowchart are provided, but more or less operation steps may be included based on conventional or non-inventive labor. The order of steps recited in the embodiments is merely one manner of performing the steps in a multitude of orders and does not represent the only order of execution. When a practical system, terminal device or server product executes, it may execute sequentially or in parallel (for example, in the context of parallel processors or multi-threaded processing) according to the embodiments or methods shown in the drawings, and the methods may include:
s101, connection with a first network is established, and the parameters of the first network are first network parameters.
The network environment display method in the embodiment of the application can be operated on terminal equipment, and the terminal equipment in the embodiment of the application includes but is not limited to a mobile phone, a computer, an intelligent voice interaction device, an intelligent household appliance, a vehicle-mounted terminal and the like. The embodiment of the invention can be applied to various scenes, including but not limited to cloud technology, artificial intelligence, intelligent traffic, driving assistance, video media, instant messaging and the like.
In the embodiment of the present disclosure, the terminal device establishes a connection relationship with the first network, so that the terminal device may be in a network state, which is a basis that the terminal device may interactively communicate with a server, where the server may refer to a server corresponding to an application program running in the terminal device. Taking the example of running the live broadcast application in the terminal device, the terminal device may communicate with a server corresponding to the live broadcast application based on the first network, and the terminal device generates a corresponding running performance, such as playing live broadcast content, displaying live broadcast gifts and other live broadcast rooms, by obtaining data transmitted by the server based on the first network. Even if the terminal device runs the application program in the false network environment constructed in the present application, the communication between the application program and the corresponding server is substantially still dependent on the first network, that is, the first network is the network basis for the application program running in the terminal device.
The embodiment of the present application does not limit the specific type of the first network, and the first network may be a Wi-Fi network, a 4G network, or a 5G network, as long as a network basis on which the operation depends can be provided for the application program in the terminal device.
S102, responding to a trigger instruction of setting a control for the network environment, and acquiring a second network parameter, wherein the second network parameter is different from the first network parameter.
In order to construct a false network environment for a terminal device, in the case that a network base is constructed in the previous step, the network parameter corresponding to the false network environment is obtained in this step. The embodiment of the application does not limit the first network parameter and the second network parameter. The first network parameter or the second network parameter may include a network type parameter or a network resource parameter, where the network type parameter represents a type corresponding to the network, such as a wireless network or a wired network, and a 3G network or a 5G network. The network resource parameter represents a state of the network, and the network resource parameter is not limited in the embodiment of the present application, for example, the network resource parameter may include a bandwidth, a network speed, a packet loss rate, jitter, or a time delay.
Illustratively, the network type parameter in the first network parameter may be a Wi-Fi type, a 4G type, or a 5G type, and the network type parameter in the second network parameter may be a Wi-Fi type, a 3G type, a 2G type, a 4G type, a 5G type, a bluetooth type, a hotspot type, or a type corresponding to a subscriber identity module carrying a preset network service. The embodiment of the present application does not limit the preset network service, and for example, the preset network service may be Tencent King card service, today's first card service, or rice noodle King card service. For example, the network resource parameter in the first network parameter may be: the network delay is 50ms, the packet loss rate is 0.011%, and the jitter variance is 500, while the network resource parameter in the second network parameter can be the network delay 90ms, the packet loss rate is 0.013%, and the jitter variance 520.
The embodiment of the application aims to construct a false network environment different from a real network environment, so that the second network parameter is different from the first network parameter. In one embodiment, the second network parameter may be set through a visualization operation.
And S103, displaying a network environment associated control, wherein the network environment associated control is a control displayed when the parameter of the network environment where the terminal equipment is located is the second network parameter.
In this embodiment, step 101 establishes a connection with a first network, so that the terminal device is in a real networking state, that is, a network basis for running an application program in the terminal device is constructed, and a parameter corresponding to the network basis is a first network parameter, and the network environment associated control displayed in step 103 is a control displayed under the condition of a second network parameter, that is, the application program obtains a network state parameter corresponding to a false network environment, thereby achieving the following effect: from the perspective of the application program, the application program enjoys real network service under the false network environment, so that the application program can operate in the network environment, and meanwhile, the network state of the network environment is considered to point to the second network parameter (false network environment), and an operation performance corresponding to the second network parameter is generated. Taking the first network as Wi-Fi and the network type parameter of the second network parameter as the queen card as an example, the application program operated by the mobile terminal may mistakenly think that the application program operates in the network provided by the queen card, so as to generate a corresponding operation performance without actually constructing a real queen card network for the application program.
In order to display a network environment associated control adapted to a second network parameter, in the embodiment of the present application, in response to a situation that a network state request is obtained, a first response may be output according to the second network parameter, and the network environment associated control may be displayed according to the first response. Specifically, the application may be caused to acquire a false network parameter (second network parameter) by a hijacking operation. In one embodiment, the network status request may be hijacked, and the first response may be generated and output according to the second network parameter. In another embodiment, a second response may be hijacked, the first network parameter in the second response is modified into the second network parameter to obtain the first response, and the first response is output, where the second response is a response of the operating system to the network status request.
In an embodiment, when the network resource parameter in the second network parameter is different from the network resource parameter in the first network parameter, a first resource is adjusted based on the network resource parameter in the second network parameter, where the first resource is a resource of the first network received by the terminal device. The method for adjusting the first resource is not limited in the embodiment of the application, and the first resource can be adjusted by itself or can be adjusted by accessing an open source Software Development Kit (SDK).
The false network environment to be constructed can be selected based on a scene, that is, the second network parameter can be adapted to a first scene, and the first scene is a real use scene or a test scene of the terminal device. For example, if the terminal device needs to be tested in a weak network scenario, the network type in the second network parameter may be set to 2G or 3G, and the bandwidth is reduced appropriately.
In an embodiment, when the network environment setting control includes a first control, a scene pointed by the first control is taken as the first scene in response to a trigger instruction for the first control, and the second network parameter is determined according to the first scene. Referring to fig. 2, a schematic diagram of a first control is shown, the first control may include five scenarios of normal network, elevator (WiFi and traffic), elevator (signal is very poor), elevator (signal is good), elevator (base station switch), china unicom, and operators in each scenario, such as china telecom, china unicom or china mobile, can be selected, by selecting any one of five scenarios, the corresponding second network parameters may be determined, so that the bandwidth, operator, delay, packet loss rate, etc. in the second network parameters automatically conform to the selected scenario, and through the setting of the first control in fig. 2, the scene can be flexibly switched, different false network environments are provided for the terminal equipment, the use or the test is convenient, and a user can really see whether the simulation scene is consistent with the test scene in the test environment, so that the situation that the scene is inconsistent during the test is avoided.
In an embodiment, in a case that the network environment setting control includes a second control, in response to a trigger instruction for the second control, the network type parameter in the second network parameter is assigned according to the network type pointed by the second control. Please refer to fig. 3, which shows a schematic diagram of a setting interface of the network type parameter in the second network parameter. The clear identifier indicates that a false network environment is not constructed, the free identifier indicates that a network environment (such as a king card) carrying a SIM card of some preset network services is constructed, the wifi identifier indicates that a wireless network environment is constructed, the 4G identifier indicates that a 4G network environment is constructed, the 3G identifier indicates that a 3G network environment is constructed, the 2G identifier indicates that a 2G network environment is constructed, and the none identifier indicates that a network-free environment is constructed. For example, if the application program in the terminal device needs to run in the environment of the queen card, the free identifier is selected to set the network type parameter of the second network parameter to the network type corresponding to the queen card, the terminal device can obtain the false network environment of the queen card type by executing the steps S101-S103, and the application program can generate the running performance in the environment of the queen card after running the application program on the terminal device. When the application program needs to be switched to operate in the 4G environment, the network type parameter in the second network parameter can be set to the network type corresponding to the 4G only by selecting the 4G identifier, so that the false network environment of the 4G type is obtained, and after the application program is operated on the terminal equipment, the application program can generate the operation performance in the 4G environment. When the application program needs to be switched to 2G or 3G or even runs in a network-free environment, only the corresponding identifier needs to be selected. Therefore, the switching of the network types does not need to change the real network any more, and the plug of the king card is not needed, so that the method is convenient and efficient.
Referring to fig. 4, an operation representation diagram of the terminal device is shown. The leftmost image is the running performance of the terminal equipment under the condition that the wifi identification is selected, the upper left image is the running performance of the terminal equipment under the condition that the wifi identification is selected, the upper right image is the running performance of the terminal equipment under the condition that the none identification is selected, the lower left image is the running performance of the terminal equipment under the condition that the free identification is selected under a non-5G network, and the lower right image is the running performance of the terminal equipment under the condition that the free identification is selected under the 5G network.
In another embodiment, in a case that the network environment setting control includes a third control, in response to a trigger instruction for the third control, the network resource parameter in the second network parameter is assigned according to the resource parameter pointed by the third control. Please refer to fig. 5, which shows a schematic diagram of a setting interface of the network resource parameter in the second network parameter. The network resource parameter in the second network parameter can be set by setting parameters such as bandwidth, packet loss rate, time delay, jitter variance and the like. For example, if the bandwidth of the network resource parameter in the second network parameter is lower than the bandwidth in the first network parameter, the speed limit processing is performed on the first network accessed by the terminal device to adapt to the bandwidth in the second network parameter, so that the application program run by the terminal device can generate the running performance corresponding to the second network parameter.
Of course, in some embodiments, it may be further controlled whether the method in the embodiments of the present application is implemented. Please refer to fig. 6, which illustrates a schematic diagram of an open/close control interface according to the method of the present embodiment. By triggering the network state modification control, whether the method in the embodiment of the application is implemented can be controlled. The method in the embodiment of the present application is not triggered when the network state modification control is pointed to be closed, and is triggered when the network state modification control is pointed to be opened.
Please refer to fig. 7, which shows a schematic diagram of the operation process of the terminal device in the case that the network status modification control is pointing to off. The terminal device is connected with a real network (which may be a Wi-Fi network) during running, and after the application program is started, the application program can acquire a network state, and the network state is not modified, so that the application program generates a running expression corresponding to the real network.
Please refer to fig. 8, which illustrates a schematic diagram of the operation process of the terminal device when the network status modification control is pointing to on. The terminal device is connected with a real network (which may be a Wi-Fi network) during running, after the application program is started, a second network parameter (such as a free identifier) is set, the application program can be triggered to acquire a network state, the first network parameter of the real network environment is modified into the second network parameter (such as Wi-Fi is modified into a King card network environment), and then the application program generates a corresponding running performance under the King card network environment. Specifically, the test user connects to the real Wi-Fi first, and confirms that the Wi-Fi network is normal. At this time, the corresponding application program is started to enter, a debugging panel of the application program is opened, then the mode is switched to the free mode through a debugging switch, at this time, the application program can be triggered to acquire the network state again, obviously, the acquired first network parameter (Wi-Fi) starts a hijacking method to forcibly modify the first network parameter into the second network parameter (free), and the application program can think that the User is connected with the king card at this time, so the test User can test a User Interface (User Interface, UI) related to the king card without actually inserting the king card, but the network on the bottom layer is also the Wi-Fi network.
Please refer to fig. 9, which illustrates another operation process diagram of the terminal device when the network status modification control is pointing to be turned on. The terminal device is connected with a real network (which may be a Wi-Fi network) during running, after an application program is started, a second network parameter is set (for example, bandwidth is set at a low value, and a network type is selected to be 2G), the application program can be triggered to acquire a network state, a first network parameter of a real network environment is modified to the second network parameter (for example, Wi-Fi is modified to be 2G), a network adjusting program can be triggered to limit bandwidth corresponding to the first network, and therefore the application program can generate running performance corresponding to a weak network environment with bandwidth at a low value under 2G.
Referring to fig. 10, a network scenario switch diagram in an exemplary embodiment is shown. A test user can connect Wi-Fi (first network) in the test process to enable an application program to have a real accessible network environment, and then network scenes are switched according to test requirements. For example, if the 4G identifier is selected, the application may default to the network connected to the application is 4G, but the underlying network bandwidth is unchanged, that is, the real bandwidth of the first network, and then the application may pop up a 4G traffic viewing prompt at this time, and according to the prompt, it may test whether the traffic viewing prompt logic of the application is correct, and click to determine whether normal pull viewing is possible. After the execution of the required test case is completed, the test user can restore to the default state by selecting the clear identifier, so that the test user can restore to the default state quickly without influencing the execution of other test cases. It should be noted here that if the viewing experience of the network quality on the application needs to be tested, the network resource parameters in the second network parameters need to be changed, for example, a weak network environment such as an elevator is created, and whether the bandwidth and packet loss jitter rate of the network under these scenes meet the test requirements or not is seen in real time, so that a transparent test can be performed, and the test result is prevented from deviating due to unreasonable setting of the scenes. If the test user selects the weak network, the speed limit processing can be carried out on the first network to achieve the purpose of simulating the weak network.
Please refer to fig. 11, which illustrates a frame diagram of an implementation of the method in the embodiment of the present application. The solid line part embodies the logic of setting the network parameter of the false network environment perceived by the terminal device as the network type parameter in the second network parameter, which can be realized by hijacking operation. The dotted line part embodies the logic to set the network resource parameter of the false network environment to the network resource parameter in the second network parameter, which can be achieved by an external SDK. By providing a false network environment for the terminal equipment, the use and the test of the terminal equipment can be independent of a real network environment, the operation convenience of a user is obviously improved, and by taking the UI test of an application program on the terminal equipment as an example, the UI automatic test can be realized, and the test efficiency is obviously improved. Please refer to table 1, which shows the differences between the present application and the related art in the test scenario:
TABLE 1
Figure BDA0003314529120000131
According to the network environment display method provided by the embodiment of the application, the terminal equipment can recognize the changed network information as the network information under the real network environment, so that the corresponding performance is generated, the terminal equipment can generate the corresponding performance by constructing the false network environment sensed by the terminal equipment, so that the dependence on the real network environment is eliminated, the use convenience of the terminal equipment is improved, the test efficiency can be obviously improved when the terminal equipment is used in a test scene, and the implementation of automatic test and batch test is facilitated.
Referring to fig. 12, a block diagram of a network environment display device in this embodiment is shown, where the device includes:
a connection establishing module 101, configured to establish a connection with a first network, where a parameter of the first network is a first network parameter;
a network parameter obtaining module 102, configured to obtain a second network parameter in response to a trigger instruction for setting a control in a network environment, where the second network parameter is different from the first network parameter;
a control display module 103, configured to display a network environment associated control, where the network environment associated control is a control displayed when a parameter of a network environment in which the terminal device is located is the second network parameter;
wherein, the parameters comprise network type parameters or network resource parameters.
In an embodiment, the apparatus further includes a network status processing module, configured to, in response to a situation that the network status request is obtained, output a first response according to the second network parameter; and the control display module is used for displaying the network environment associated control according to the first response.
In an embodiment, the network status processing module is configured to perform the following operations:
hijacking the network state request, and generating and outputting the first response according to the second network parameter;
or the like, or, alternatively,
hijacking a second response, modifying the first network parameter in the second response into the second network parameter to obtain the first response, and outputting the first response, wherein the second response is the response of the operating system to the network state request.
In an embodiment, the network status processing module is further configured to, when a network resource parameter in the second network parameter is different from a network resource parameter in the first network parameter, adjust a first resource based on the network resource parameter in the second network parameter, where the first resource is a resource of the first network received by the terminal device.
In an embodiment, the second network parameter is adapted to a first scenario, where the first scenario is a real usage scenario or a test scenario of the terminal device.
In an embodiment, the network parameter obtaining module is configured to perform the following operations:
under the condition that the network environment setting control comprises a first control, responding to a trigger instruction of the first control, taking a scene pointed by the first control as the first scene, and determining the second network parameters according to the first scene;
or the like, or, alternatively,
under the condition that the network environment setting control comprises a second control, responding to a trigger instruction of the second control, and assigning a network type parameter in the second network parameter according to the network type pointed by the second control;
or the like, or, alternatively,
and under the condition that the network environment setting control comprises a third control, responding to a trigger instruction of the third control, and assigning the network resource parameter in the second network parameter according to the resource parameter pointed by the third control.
In an embodiment, when the second network parameter includes the network type parameter, the network type parameter includes a Wi-Fi type, a 3G type, a 2G type, a 4G type, a 5G type, a bluetooth type, a hotspot type, or a type corresponding to a subscriber identity module carrying a preset network service.
Specifically, the embodiment of the present application discloses a network environment display device and the corresponding method embodiments described above, all based on the same inventive concept. For details, please refer to the method embodiment, which is not described herein.
Embodiments of the present application also provide a computer program product or computer program comprising computer instructions stored in a computer-readable storage medium. The processor of the computer device reads the computer instructions from the computer readable storage medium, and the processor executes the computer instructions to cause the computer device to execute the network environment display method.
Embodiments of the present application further provide a computer-readable storage medium, where the computer-readable storage medium may store a plurality of instructions. The instructions may be adapted to be loaded by a processor and to perform a network environment displaying method according to an embodiment of the present application.
In an embodiment, the network environment display method includes:
establishing connection with a first network, wherein the parameters of the first network are first network parameters;
responding to a triggering instruction of a network environment setting control, and acquiring a second network parameter, wherein the second network parameter is different from the first network parameter;
displaying a network environment associated control, wherein the network environment associated control is a control displayed when the parameter of the network environment where the terminal equipment is located is the second network parameter;
wherein the parameter comprises a network type parameter or a network resource parameter.
In another embodiment, before the displaying the network environment association control, the method further comprises: responding to the condition of acquiring the network state request, and outputting a first response according to the second network parameter;
the display network environment association control comprises: and displaying the network environment associated control according to the first response.
In another embodiment, the outputting a first response according to the second network parameter in response to acquiring the network status request includes:
hijacking the network state request, and generating and outputting the first response according to the second network parameter;
or the like, or, alternatively,
hijacking a second response, modifying the first network parameter in the second response into the second network parameter to obtain the first response, and outputting the first response, wherein the second response is the response of the operating system to the network state request.
In another embodiment, after the acquiring the second network parameter in response to the triggering instruction for the network environment setting control, the method further includes:
and under the condition that the network resource parameter in the second network parameter is different from the network resource parameter in the first network parameter, adjusting a first resource based on the network resource parameter in the second network parameter, wherein the first resource is the resource of the first network received by the terminal equipment.
In another embodiment, the method further comprises:
the second network parameter is adapted to a first scenario, and the first scenario is a real usage scenario or a test scenario of the terminal device.
In another embodiment, the obtaining the second network type in response to the triggering instruction for the network environment setting control includes:
under the condition that the network environment setting control comprises a first control, responding to a trigger instruction of the first control, taking a scene pointed by the first control as the first scene, and determining the second network parameters according to the first scene;
or the like, or, alternatively,
under the condition that the network environment setting control comprises a second control, responding to a trigger instruction of the second control, and assigning a network type parameter in the second network parameter according to the network type pointed by the second control;
or the like, or, alternatively,
and under the condition that the network environment setting control comprises a third control, responding to a trigger instruction of the third control, and assigning the network resource parameter in the second network parameter according to the resource parameter pointed by the third control.
In another embodiment, in a case that the second network parameter includes the network type parameter, the network type parameter includes a Wi-Fi type, a 3G type, a 2G type, a 4G type, a 5G type, a bluetooth type, a hotspot type, or a type corresponding to a subscriber identity module carrying a preset network service.
Further, fig. 13 is a schematic hardware configuration diagram of an apparatus for implementing the method provided in the embodiment of the present application, and the apparatus may participate in forming or containing the device or system provided in the embodiment of the present application. As shown in fig. 13, the device 10 may include one or more (shown as 102a, 102b, … …, 102 n) processors 102 (the processors 102 may include, but are not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA, etc.), a memory 104 for storing data, and a transmission device 106 for communication functions. Besides, the method can also comprise the following steps: a display, an input/output interface (I/O interface), a Universal Serial Bus (USB) port (which may be included as one of the ports of the I/O interface), a network interface, a power source, and/or a camera. It will be understood by those skilled in the art that the structure shown in fig. 13 is only an illustration and is not intended to limit the structure of the electronic device. For example, device 10 may also include more or fewer components than shown in FIG. 13, or have a different configuration than shown in FIG. 13.
It should be noted that the one or more processors 102 and/or other data processing circuitry described above may be referred to generally herein as "data processing circuitry". The data processing circuitry may be embodied in whole or in part in software, hardware, firmware, or any combination thereof. Further, the data processing circuitry may be a single, stand-alone processing module, or incorporated in whole or in part into any of the other elements in the device 10 (or mobile device). As referred to in the embodiments of the application, the data processing circuit acts as a processor control (e.g. selection of a variable resistance termination path connected to the interface).
The memory 104 may be used to store software programs and modules of application software, such as program instructions/data storage devices corresponding to the methods described above in the embodiments of the present application, and the processor 102 executes various functional applications and data processing by running the software programs and modules stored in the memory 104, so as to implement the network environment display method described above. The memory 104 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, memory 104 may further include memory located remotely from processor 102, which may be connected to device 10 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device 106 is used for receiving or transmitting data via a network. Specific examples of such networks may include wireless networks provided by the communication provider of the device 10. In one example, the transmission device 106 includes a network adapter (NIC) that can be connected to other network devices through a base station so as to communicate with the internet. In one example, the transmission device 106 can be a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.
The display may be, for example, a touch screen type Liquid Crystal Display (LCD) that may enable a user to interact with a user interface of the device 10 (or mobile device).
It should be noted that: the sequence of the embodiments of the present application is only for description, and does not represent the advantages and disadvantages of the embodiments. And specific embodiments thereof have been described above. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
The embodiments in the present application are described in a progressive manner, and the same and similar parts among the embodiments can be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, as for the device and server embodiments, since they are substantially similar to the method embodiments, the description is simple, and the relevant points can be referred to the partial description of the method embodiments.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, and the program may be stored in a computer-readable storage medium, and the storage medium may be a read-only memory, a magnetic disk or an optical disk.
The above description is only a preferred embodiment of the present application and should not be taken as limiting the present application, and any modifications, equivalents, improvements and the like made within the spirit and principle of the present application should be included in the scope of the present application.

Claims (11)

1. A network environment display method is applied to a terminal device, and comprises the following steps:
establishing connection with a first network, wherein the parameters of the first network are first network parameters;
responding to a triggering instruction of a network environment setting control, and acquiring a second network parameter, wherein the second network parameter is different from the first network parameter;
displaying a network environment associated control, wherein the network environment associated control is a control displayed when the parameter of the network environment where the terminal equipment is located is the second network parameter;
wherein the parameter comprises a network type parameter or a network resource parameter.
2. The method of claim 1, wherein prior to displaying the network environment association control, the method further comprises: responding to the condition of acquiring the network state request, and outputting a first response according to the second network parameter;
the display network environment association control comprises: and displaying the network environment associated control according to the first response.
3. The method according to claim 2, wherein the outputting a first response according to the second network parameter in response to obtaining the network status request comprises:
hijacking the network state request, and generating and outputting the first response according to the second network parameter;
or the like, or, alternatively,
hijacking a second response, modifying the first network parameter in the second response into the second network parameter to obtain the first response, and outputting the first response, wherein the second response is the response of the operating system to the network state request.
4. The method of claim 1, wherein after the acquiring the second network parameter in response to the triggering instruction for the network environment setting control, the method further comprises:
and under the condition that the network resource parameter in the second network parameter is different from the network resource parameter in the first network parameter, adjusting a first resource based on the network resource parameter in the second network parameter, wherein the first resource is the resource of the first network received by the terminal equipment.
5. The method according to any of claims 1-4, wherein the second network parameter is adapted to a first scenario, the first scenario being a real usage scenario or a test scenario of the terminal device.
6. The method of claim 5, wherein the obtaining the second network type in response to the triggering instruction for the network environment setting control comprises:
under the condition that the network environment setting control comprises a first control, responding to a trigger instruction of the first control, taking a scene pointed by the first control as the first scene, and determining the second network parameters according to the first scene;
or the like, or, alternatively,
under the condition that the network environment setting control comprises a second control, responding to a trigger instruction of the second control, and assigning a network type parameter in the second network parameter according to the network type pointed by the second control;
or the like, or, alternatively,
and under the condition that the network environment setting control comprises a third control, responding to a trigger instruction of the third control, and assigning the network resource parameter in the second network parameter according to the resource parameter pointed by the third control.
7. The method according to claim 1, wherein if the second network parameter includes the network type parameter, the network type parameter includes a Wi-Fi type, a 3G type, a 2G type, a 4G type, a 5G type, a bluetooth type, a hotspot type, or a type corresponding to a subscriber identity module carrying a preset network service.
8. A network environment display device, wherein the device is applied to a terminal device, the device comprises:
the connection establishing module is used for establishing connection with a first network, and the parameters of the first network are first network parameters;
the network parameter acquisition module is used for responding to a trigger instruction of a network environment setting control to acquire a second network parameter, and the second network parameter is different from the first network parameter;
the control display module is used for displaying a network environment associated control, wherein the network environment associated control is displayed when the parameter of the network environment where the terminal equipment is located is the second network parameter;
wherein the parameter comprises a network type parameter or a network resource parameter.
9. A computer-readable storage medium, wherein at least one instruction or at least one program is stored in the computer-readable storage medium, and the at least one instruction or the at least one program is loaded by a processor and executed to implement a network environment display method according to any one of claims 1 to 7.
10. An electronic device comprising at least one processor, and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the at least one processor implements a network environment display method as claimed in any one of claims 1 to 7 by executing the instructions stored by the memory.
11. A computer program product comprising computer programs or instructions which, when executed by a processor, implement a network environment display method as claimed in any one of claims 1 to 7.
CN202111227052.9A 2021-10-21 2021-10-21 Network environment display method and device, storage medium and electronic equipment Pending CN113891368A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111227052.9A CN113891368A (en) 2021-10-21 2021-10-21 Network environment display method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111227052.9A CN113891368A (en) 2021-10-21 2021-10-21 Network environment display method and device, storage medium and electronic equipment

Publications (1)

Publication Number Publication Date
CN113891368A true CN113891368A (en) 2022-01-04

Family

ID=79004099

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111227052.9A Pending CN113891368A (en) 2021-10-21 2021-10-21 Network environment display method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN113891368A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104092579A (en) * 2014-02-12 2014-10-08 腾讯科技(深圳)有限公司 Simulating method and device for network types
CN104735414A (en) * 2015-03-25 2015-06-24 江苏物联网研究发展中心 Semi-physical simulation method for video monitoring system
US20180206136A1 (en) * 2017-01-17 2018-07-19 Tutela Technologies Ltd. System and Method for Evaluating Wireless Device and/or Wireless Network Performance
CN109075991A (en) * 2016-02-26 2018-12-21 诺基亚通信公司 Cloud verifying and test automation
CN110611600A (en) * 2018-06-14 2019-12-24 福建天晴数码有限公司 Network state information acquisition method and system
CN112235300A (en) * 2020-10-14 2021-01-15 腾讯科技(深圳)有限公司 Cloud virtual network vulnerability detection method, system and device and electronic equipment
CN112242931A (en) * 2020-11-11 2021-01-19 北京百度网讯科技有限公司 Network environment reproduction method, terminal, platform, electronic device and readable medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104092579A (en) * 2014-02-12 2014-10-08 腾讯科技(深圳)有限公司 Simulating method and device for network types
CN104735414A (en) * 2015-03-25 2015-06-24 江苏物联网研究发展中心 Semi-physical simulation method for video monitoring system
CN109075991A (en) * 2016-02-26 2018-12-21 诺基亚通信公司 Cloud verifying and test automation
US20180206136A1 (en) * 2017-01-17 2018-07-19 Tutela Technologies Ltd. System and Method for Evaluating Wireless Device and/or Wireless Network Performance
CN110611600A (en) * 2018-06-14 2019-12-24 福建天晴数码有限公司 Network state information acquisition method and system
CN112235300A (en) * 2020-10-14 2021-01-15 腾讯科技(深圳)有限公司 Cloud virtual network vulnerability detection method, system and device and electronic equipment
CN112242931A (en) * 2020-11-11 2021-01-19 北京百度网讯科技有限公司 Network environment reproduction method, terminal, platform, electronic device and readable medium

Similar Documents

Publication Publication Date Title
EP4013003A1 (en) Communication protocol switching method, apparatus and system
CN107148009B (en) Multi-standard mobile communication network internet data flow measuring device and method thereof
CN103744729B (en) The computer system of system capable of switching operation
CN102710549B (en) To be established a communications link the method for relation, terminal and system by shooting
WO2019184658A1 (en) Profile switching method and apparatus, and mobile terminal
EP2930898A1 (en) Method for sharing file and handheld device
CN113992958B (en) Multi-window same-screen interaction method, terminal and storage medium
CN103546345A (en) Method and device for testing performance of communication equipment
CN107509051A (en) Long-range control method, device, terminal and computer-readable recording medium
CN104615421A (en) Virtual gift display method and device
CN112328318B (en) Method, device and storage medium for automatic planning of proprietary cloud platform
EP3783957A1 (en) Transmission path switching method and device
CN104052801B (en) A kind of information processing method and electronic equipment
CN111182515A (en) Network distribution method, device, terminal and computer storage medium
CN104750237A (en) Multi-screen interactive connection method and device as well as electronic equipment
CN105516972A (en) Network connection method and device
CN113301135A (en) Data sharing method
CN112423068A (en) Smart television debugging method and device, mobile terminal and readable storage medium
CN113891368A (en) Network environment display method and device, storage medium and electronic equipment
CN104580296A (en) Method, device and terminals for sharing resources
CN113824612B (en) Network equipment compatibility testing method, terminal equipment and storage medium
CN112272223B (en) Application running method and device, server and computer readable storage medium
CN114500129A (en) Information processing method and electronic equipment
CN106488537A (en) Sending method, device and mobile terminal
CN116661955B (en) Hardware access method, device, electronic equipment and storage medium

Legal Events

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