CN107566211B - Method, device and system for accessing test equipment - Google Patents

Method, device and system for accessing test equipment Download PDF

Info

Publication number
CN107566211B
CN107566211B CN201710729285.6A CN201710729285A CN107566211B CN 107566211 B CN107566211 B CN 107566211B CN 201710729285 A CN201710729285 A CN 201710729285A CN 107566211 B CN107566211 B CN 107566211B
Authority
CN
China
Prior art keywords
equipment
domain name
terminal
address
network service
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710729285.6A
Other languages
Chinese (zh)
Other versions
CN107566211A (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.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201710729285.6A priority Critical patent/CN107566211B/en
Publication of CN107566211A publication Critical patent/CN107566211A/en
Application granted granted Critical
Publication of CN107566211B publication Critical patent/CN107566211B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The disclosure relates to a method, a device and a system for accessing test equipment, and belongs to the technical field of computers. The method comprises the following steps: acquiring an access request sent by a terminal, wherein the access request comprises a domain name of a network service requested by the terminal; when the domain name is the designated domain name, redirecting to a first equipment address according to the stored corresponding relation; sending the first equipment address to the terminal, wherein the first equipment address is used for the terminal to access the test equipment through the wireless access equipment; the problem that the terminal cannot access the test equipment due to the fact that the terminal does not have the permission of modifying the system file when the terminal is triggered to access the test equipment by modifying the system file in the terminal is solved; the universality of the method for accessing the test equipment is improved.

Description

Method, device and system for accessing test equipment
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a method, an apparatus, and a system for accessing a test device.
Background
Generally, the network service provided by the network service device needs to be updated with the update of the operating system in the terminal. The updated network service is required to be used by not only the terminal after the operating system is updated, but also the terminal before the operating system is updated. Thus, the updated web service needs to be compatible with different versions of the operating system. The network service may be a web page, a network interface, etc.
Currently, testing devices are used to detect whether a web service can run on different versions of an operating system. At this time, a connection between a terminal for requesting a network service to be distributed on the test device and the test device needs to be established.
Disclosure of Invention
In order to solve the problems in the related art, the present disclosure provides a method, an apparatus, and a system for accessing a test device.
According to a first aspect of embodiments of the present disclosure, there is provided a method for accessing a test device, the method including:
the method comprises the steps that wireless access equipment acquires an access request sent by a terminal, wherein the access request comprises a domain name of a network service requested by the terminal;
when the domain name is the appointed domain name of the network service tested by the testing equipment, the wireless access equipment redirects to a first equipment address according to a stored corresponding relation, wherein the corresponding relation is used for modifying the equipment address corresponding to the appointed domain name from a second equipment address to the first equipment address, and the second equipment address is the address of the network service equipment providing the network service;
and the wireless access equipment sends the first equipment address to the terminal, and the first equipment address is used for the terminal to access the test equipment through the wireless access equipment.
Optionally, the method further comprises:
when the equipment identification is a specified equipment identification, the wireless access equipment executes the step that when the domain name is a specified domain name of the network service tested by the testing equipment, the wireless access equipment redirects to a first equipment address according to the stored corresponding relation;
the specified equipment identification is the equipment identification of the test terminal, and the test terminal is the terminal to be accessed to the test equipment.
Optionally, the method further comprises:
the wireless access equipment receives a security certificate sent by the testing equipment, and the security certificate is pre-installed in the testing equipment;
the wireless access equipment sends the security certificate to the terminal, the security certificate is used for the terminal to verify the security of the test equipment, and the wireless access equipment is accessed to the test equipment when the verification is passed.
Optionally, the security certificate sent by the testing device is the same as the security certificate in the network service device.
Optionally, the method further comprises:
the wireless access equipment receives a network service request sent by the terminal, wherein the network service request comprises the first equipment address;
and the wireless access equipment sends the network service request to the test equipment according to the first equipment address.
Optionally, the method further comprises:
when the domain name is not the designated domain name, the wireless access equipment sends the domain name to a DNS (domain name server), and the DNS server determines a third equipment address corresponding to the domain name, wherein the third equipment address is the address of other network service equipment providing network service corresponding to the domain name;
the wireless access device receiving the third device address;
and the wireless access equipment sends the third equipment address to the terminal, and the third equipment address is used for the terminal to access the other network service equipment through the wireless access equipment.
According to a second aspect of the embodiments of the present disclosure, there is provided an apparatus for accessing a test device, the apparatus comprising:
the terminal comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is configured to acquire an access request sent by a terminal, and the access request comprises a domain name of a network service requested by the terminal;
a redirection module configured to redirect to a first device address according to a stored correspondence when the domain name is a specified domain name of a network service tested by a test device, where the correspondence is used to modify a device address corresponding to the specified domain name from a second device address to the first device address, and the second device address is an address of a network service device providing the network service;
a first sending module configured to send the first device address to the terminal, where the first device address is used for the terminal to access the test device through the wireless access device.
Optionally, the redirecting module is further configured to, when the device identifier is a specified device identifier, execute the step of determining the first device address according to the stored correspondence when the domain name is the specified domain name, where the specified device identifier is the device identifier of the test terminal.
Optionally, the apparatus further comprises:
the first receiving module is configured to receive a security certificate sent by the testing equipment, and the security certificate is pre-installed in the testing equipment;
and the second sending module is configured to send the security certificate to the terminal, wherein the security certificate is used for verifying the security of the testing equipment by the terminal, and the testing equipment is accessed through the wireless access equipment when the verification is passed.
Optionally, the security certificate sent by the testing device is the same as the security certificate in the network service device.
Optionally, the apparatus further comprises:
a second receiving module configured to receive a network service request sent by the terminal, where the network service request includes the first device address;
a third sending module configured to send the network service request to the test device according to the first device address.
Optionally, the apparatus further comprises:
a fourth sending module, configured to send the domain name to a DNS server when the domain name is not the specified domain name, and determine, by the DNS server, a third device address corresponding to the domain name, where the third device address is an address of another network service device that provides a network service corresponding to the domain name;
a third receiving module configured to receive the third device address;
a fifth sending module, configured to send the third device address to the terminal, where the third device address is used for the terminal to access the other network service devices through the wireless access device.
According to a third aspect of the embodiments of the present disclosure, there is provided a system for accessing a test device, the system comprising: the system comprises a terminal, wireless access equipment and test equipment;
the terminal is used for sending an access request to the wireless access equipment;
the wireless access equipment comprises the device provided by the second aspect;
the testing equipment is used for testing whether the network service supports running on the terminal or not, and the testing equipment is provided with a safety certificate.
According to a fourth aspect of embodiments of the present disclosure, there is provided an apparatus for accessing a test device, the apparatus comprising a processor; a memory coupled to the processor; and program instructions stored on the memory, which when executed by the processor, implement the method of accessing a test device provided by the first aspect.
According to a fourth aspect of embodiments of the present disclosure, there is provided a computer readable medium, the program instructions when executed by a processor implement the method of accessing a test device provided by the first aspect.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
the corresponding relation between the appointed domain name and the equipment address of the testing equipment is set in the wireless access equipment, so that when the terminal requests the network service corresponding to the appointed domain name, the wireless access equipment can trigger the terminal to access the testing equipment according to the corresponding relation; the problem that the terminal cannot access the test equipment due to the fact that the terminal does not have the permission of modifying the system file when the terminal is triggered to access the test equipment by modifying the system file in the terminal is solved; the terminal can be triggered to access the test equipment without modifying the system file of the terminal, so that the terminal can be triggered to access the test equipment under the condition that the permission of modifying the system file in the terminal is not available, and the universality of the method for accessing the test equipment is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure.
Fig. 1 is a schematic structural diagram illustrating a system for accessing test equipment according to an exemplary embodiment.
FIG. 2 is a flow chart illustrating a method of accessing a test device in accordance with an exemplary embodiment.
Fig. 3 is a diagram illustrating a correspondence relationship according to an example embodiment.
FIG. 4 is a flow chart illustrating a method of accessing a test device according to another exemplary embodiment.
FIG. 5 is a block diagram illustrating an apparatus for accessing test equipment in accordance with an exemplary embodiment.
Fig. 6 is a block diagram of a wireless access device according to an example embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
First, several terms to which the present disclosure relates will be introduced.
The wireless access device: for the terminal to access a Wireless Fidelity (WiFi) network.
Alternatively, the wireless access device may be a router, a mobile phone with wireless sharing function, a tablet computer, a laptop portable computer, a desktop computer, and other electronic devices.
Network service: refers to a service provided by a network service device for a terminal. Optionally, the network service device is a server. Such as: the network service is a web access service or a network interface service provided by a browsing server, an electronic transaction service provided by an electronic commerce server, an instant messaging service provided by an instant messaging server, and the like.
Optionally, different network service devices provide different network services or the same network service for the terminal.
The operating system installed in the terminal may be updated, and at this time, the network service provided by the network service device for the terminal needs to be adapted to the operating system of the terminal, so as to ensure that the terminal normally operates the network service. That is, the web service needs to be updated as the operating system is updated. The network service needs to be published in the test device in advance before being published to the network service device to detect whether the network service supports running on different terminals.
Testing equipment: a device installed with a test version of a network service. The test equipment is used for detecting whether the installed network service supports running on different terminals.
Optionally, different terminals are installed with different versions of operating systems, such as: the version of the operating system of the terminal 1 is 4.0, and the version of the operating system of the terminal 2 is 4.2; and/or different terminals have different device models, such as: the equipment model of the terminal 1 is x meter 6, and the equipment model of the terminal 2 is x meter 6 plus; and/or different terminal device types may differ, such as: the terminal 1 is a mobile phone, and the terminal 2 is a tablet computer.
The test device may be a mobile phone, a tablet computer, an e-book reader, an MP3(Moving Picture experts Group Audio Layer III, mpeg compression standard Audio Layer 3) player, an MP4(Moving Picture experts Group Audio Layer IV, mpeg compression standard Audio Layer 4) player, a laptop, a desktop, a server, and other electronic devices.
Optionally, the test device may install a test version of the web service; alternatively, test versions of at least two network services are installed.
Optionally, the test version of the network service in the test device may be the same as or different from the network service released in the network service device.
In one example, if a test version of a web service installed in a test device is capable of running on different versions of operating systems and a developer does not optimize the test version of the web service, the test version of the web service is the same as the web service published in the web service device.
In another example, if a test version of a web service installed in a test device can only run on a partial version of an operating system, and a developer needs to optimize the test version of the web service, the test version of the web service is different from the web service released in the web service device.
The Domain Name (Domain Name) of the web service of the test version issued in the test device is the same as the Domain Name of the web service issued in the web service device, and the device address of the test device is different from the device address of the web service device.
Optionally, the device address is an Internet Protocol (IP) address.
When testing whether the network service supports running on different terminals by the test equipment, at least one terminal needs to be accessed to the test equipment. Optionally, in this embodiment, a terminal to be connected to the test device is referred to as a test terminal.
In the related art, the test terminal is accessed to the test device by modifying the device address corresponding to the domain name of the network service into the device address of the test terminal in the system file of the test terminal. Since the system file can only be modified in a specific scenario, such as: in the scenario of obtaining the ROOT permission of the operating system, therefore, for the scenario in which the system file cannot be modified, the test equipment cannot be accessed to the test equipment. Based on the above technical problem, the embodiments of the present disclosure provide the following technical solutions.
Fig. 1 is a schematic structural diagram illustrating a system for accessing a test device according to an exemplary embodiment, where the system includes at least one terminal 110, a wireless access device 120, and a test device 130.
At least one terminal 110 previously accesses a wireless network provided by the wireless access device 120. The terminal 110 has a function of requesting a network service.
Terminal 110 sends an access request for requesting access to a device providing a network service through wireless access device 120 before requesting the network service. The access request carries the domain name of the network service requested by the terminal 110.
Wireless access device 120 obtains an access request sent by terminal 110.
Optionally, in this embodiment, the wireless access device 120 presets a corresponding relationship between the specified domain name and the device address of the testing device. Wherein the specified domain name is a domain name of a network service that the test device needs to test.
Optionally, the number of domain names specified in wireless access device 120 is at least one.
The wireless access device 120 is configured to detect whether the domain name in the access request is a specified domain name, and send a device address corresponding to the specified domain name to the terminal 110 when the domain name is the specified domain name.
The terminal 110 accesses the test device 130 through the wireless access device 120 according to the received device address. At this time, the terminal 110 is a test terminal.
Wherein, the wireless access device 120 and the testing device 130 are connected in advance through the wireless network.
Optionally, the terminal 110 may request a network service that the testing device does not need to test, at this time, the wireless access device 120 does not store the device address corresponding to the Domain Name of the network service, and the wireless access device 120 determines that the Domain Name is not a specified Domain Name, and needs to request the Domain Name System (DNS) server for the device address corresponding to the Domain Name of the network service, and send the device address to the terminal 110.
The present embodiment will be described by taking, as an example, the wireless access device 120 as an execution subject of each of the embodiments described below.
Fig. 2 is a flow chart illustrating a method of accessing a test device according to an exemplary embodiment, which may include several steps as follows.
In step 201, an access request sent by a terminal is acquired.
The access request is for requesting access to a device providing a network service requested by the terminal. The access request includes a domain name of the network service requested by the terminal.
Alternatively, the network service requested by the terminal may be a network service tested by the testing device, or may be a network service not requiring the testing device.
Before requesting a network service, a terminal needs to acquire an address of a device providing the network service, and at this time, an access request is sent to a DNS server through a wireless access device. Accordingly, the wireless access device acquires the access request.
The DNS server is used for analyzing the domain name and acquiring the equipment identifier corresponding to the domain name.
In step 202, when the domain name is the specified domain name of the network service tested by the testing device, the domain name is redirected to the first device address according to the stored corresponding relation.
The specified domain name is the domain name of the network service tested by the test equipment. The test equipment is used for detecting whether the network service tested by the test equipment supports running on different test terminals, and the test terminal refers to a terminal accessed to the test equipment.
Such as: and if the network service tested by the testing equipment is a webpage access service provided by the xx website, the domain name of the xx website is designated.
Optionally, at least one specified domain name is stored in the wireless access device. The wireless access equipment detects whether the domain name in the access request is the specified domain name by detecting whether the specified domain name matched with the domain name in the access request exists in the stored at least one specified domain name.
And when the specified domain name matched with the domain name in the access request exists in at least one specified domain name stored in the wireless access equipment, determining the domain name in the access request as the specified domain name.
The corresponding relation comprises the corresponding relation between the specified domain name and the first equipment address of the testing equipment. The corresponding relation is used for modifying the equipment address corresponding to the specified domain name from a second equipment address to a first equipment address, and the second equipment address is the address of the network service equipment providing the network service tested by the testing equipment.
Optionally, the network service device providing the network service tested by the testing device provides the same network service as the testing device.
Optionally, the correspondence is set in the wireless access device by a developer; or the corresponding relation is stored by default when the wireless access equipment leaves a factory; or the corresponding relation is obtained by modifying the second device address corresponding to the specified domain name into the first device address by a developer, and at this time, the corresponding relation between the specified domain name and the second device address is stored in the wireless access device in advance.
When the domain name is the designated domain name, it is indicated that the network service corresponding to the domain name is the network service that the test device needs to test, and therefore, the terminal needs to be accessed to the test device.
Optionally, the wireless access device stores a corresponding relationship between the specified domain name and the device address of the test device, and the first device address corresponding to the domain name in the access request may be determined by querying the corresponding relationship.
Referring to fig. 3, it is assumed that the domain name in the access request acquired by the wireless access device is domain.com, and the stored corresponding relationship 300 includes domain.com, at this time, the domain name is a designated domain name, and according to the corresponding relationship 300, the first device address corresponding to domain.com is 166.111.1.11.
In step 203, a first device address is sent to the terminal, where the first device address is used for the terminal to access the test device through the wireless access device.
After the wireless access equipment inquires out the first equipment address corresponding to the domain name in the access request, the first equipment address is sent to the terminal, and the terminal can access the test equipment according to the first equipment address.
Optionally, the accessing of the terminal to the test device means: the terminal sends a network service request to the test equipment through the wireless access equipment, wherein the network service request carries a first equipment address; the wireless access equipment forwards the network service request to the test equipment according to the first equipment address; and the test equipment provides network service for the terminal according to the network service request.
Illustratively, when the network service requested by the terminal is a service for accessing a web page, the network service request is a hypertext Transfer Protocol (HTTP) request, and the HTTP request carries a first device address.
In summary, according to the method for accessing a test device provided by the present disclosure, by setting a corresponding relationship between a specified domain name and a device address of the test device in a wireless access device, when a terminal requests a network service corresponding to the specified domain name, the wireless access device may trigger the terminal to access the test device according to the corresponding relationship; the problem that the terminal cannot access the test equipment due to the fact that the terminal does not have the permission of modifying the system file when the terminal is triggered to access the test equipment by modifying the system file in the terminal is solved; the terminal can be triggered to access the test equipment without modifying the system file of the terminal, so that the terminal can be triggered to access the test equipment under the condition that the permission of modifying the system file in the terminal is not available, and the universality of the method for accessing the test equipment is improved.
Alternatively, the network service requested by the terminal may not be the network service that the test device needs to test, and at this time, the domain name of the wireless access device is not the specified domain name in step 202.
Based on the embodiment shown in fig. 2, fig. 4 is a flowchart illustrating a method for accessing a testing device according to another exemplary embodiment, where after step 201, if the domain name in the access request is not the specified domain name, the method includes the following steps.
In step 204, an access request is sent to the DNS server.
When the domain name is not the designated domain name, the wireless access device does not store the device address corresponding to the domain name, the wireless access device sends the domain name in the access request to the DNS server, and the DNS server determines the third device address corresponding to the domain name. And the DNS server sends the determined address of the third device to the wireless access device.
The third device address is an identification of the other network service device that provides the network service corresponding to the domain name.
In step 205, a third device address is received.
And the wireless access equipment receives the third equipment address sent by the DNS server.
In step 206, the third device address is sent to the terminal.
And the terminal accesses other network service equipment according to the third equipment address.
In summary, according to the method for accessing a test device provided by the present disclosure, when the domain name in the access request is not the designated domain name, the domain name is sent to the DNS server, and the third device identifier corresponding to the domain name is resolved by the DNS server, so that a terminal that does not request the network service corresponding to the designated domain name can obtain the third device identifier, and access other network service devices according to the third device identifier, thereby expanding the application range of the wireless access device.
Optionally, based on the foregoing embodiments, the wireless access device stores at least one specified device identifier, where the specified device identifier is a device identifier of the test terminal, and before step 202, the wireless access device detects whether the device identifier in the access request is the specified device identifier; when the device identifier is the specified device identifier, it indicates that the terminal sending the access request is the test terminal, and at this time, the wireless access device executes step 202.
In this case, the access request sent by the terminal carries the device identifier of the terminal.
Optionally, when the device identifier is not the specified device identifier, it is stated that the terminal sending the access request is not the test terminal, and at this time, the wireless access device does not need to detect whether the domain name in the access request is the specified domain name, and directly sends the access request to the DSN server, and the DSN server analyzes the domain name in the access request to obtain the third device identifier.
Alternatively, the device identification may be a Media Access Control (MAC) address; or, an Equipment Identification Code (EIC).
In the embodiment, whether the terminal is tested or not is detected before whether the domain name is detected to be the designated domain name or not, so that the wireless access device does not need to detect the domain name in the access device when the terminal is not the test terminal, and the resources of the terminal are saved.
Optionally, after receiving the network service request sent by the terminal, the test device sends a pre-installed security certificate to the terminal through the wireless access device, so that the terminal verifies the security of the test device.
Correspondingly, the wireless access equipment receives the security certificate sent by the testing equipment; the wireless access equipment sends the security certificate to the terminal, the terminal receives the security certificate, verifies the security of the testing equipment according to the security certificate, and accesses the testing equipment through the wireless access equipment when the verification is passed.
The security certificate sent by the testing device is the same as the security certificate in the network service device.
The terminal verifies the security of the testing device according to the security certificate, including but not limited to: detecting whether the security certificate is expired; and/or detecting whether the security certificate is a preset version.
In this embodiment, the security certificate is installed in the test device, so that the test device can be disguised as the network service provided by the first network service device for the terminal, which not only ensures that the terminal can normally access the network service provided by the test device, but also improves the security when the terminal accesses the network service provided by the test device.
The following are embodiments of the disclosed apparatus that may be used to perform embodiments of the disclosed methods. For details not disclosed in the embodiments of the apparatus of the present disclosure, refer to the embodiments of the method of the present disclosure.
Fig. 5 is a block diagram illustrating an operation performing apparatus according to an exemplary embodiment. The device has the functions of realizing the method examples, and the functions can be realized by hardware or by hardware executing corresponding software. The apparatus is applied to a first terminal device, and may include: an acquisition module 510, a redirection module 520 and a first sending module 530.
An obtaining module 510 configured to obtain an access request sent by a terminal, where the access request includes a domain name of a network service requested by the terminal;
a redirection module 520, configured to redirect, when the domain name is a specified domain name of a network service tested by a testing device, the wireless access device to a first device address according to a stored correspondence, where the correspondence is used to modify a device address corresponding to the specified domain name from a second device address to the first device address, and the second device address is an address of a network service device providing the network service;
a first sending module 530 configured to send the first device address to the terminal, where the first device address is used for the terminal to access the test device through the wireless access device.
Optionally, the redirecting module is further configured to, when the device identifier is a specified device identifier, perform the step of redirecting the wireless access device to a first device address according to the stored correspondence when the domain name is a specified domain name of a network service tested by the testing device;
the specified equipment identification is the equipment identification of the test terminal, and the test terminal is the terminal to be accessed to the test equipment.
Optionally, the apparatus further comprises: the device comprises a first receiving module and a second sending module.
The first receiving module is configured to receive a security certificate sent by the testing equipment, and the security certificate is pre-installed in the testing equipment;
and the second sending module is configured to send the security certificate to the terminal, wherein the security certificate is used for verifying the security of the testing equipment by the terminal, and the testing equipment is accessed through the wireless access equipment when the verification is passed.
Optionally, the security certificate sent by the testing device is the same as the security certificate in the first network service device.
Optionally, the apparatus further comprises: the device comprises a second receiving module and a third sending module.
A second receiving module configured to receive a network service request sent by the terminal, where the network service request includes the first device address;
a third sending module configured to send the network service request to the test device according to the first device address.
Optionally, the apparatus further comprises: the device comprises a fourth sending module, a third receiving module and a fifth sending module.
A fourth sending module, configured to send the domain name to a domain name system DNS server when the domain name is not the specified domain name, and determine a third device address corresponding to the domain name by the DNS server, where the third device address is an address of another network service device that provides a network service corresponding to the domain name;
a third receiving module configured to receive the third device address;
a fifth sending module, configured to send the third device address to the terminal, where the third device address is used for the terminal to access the other network service devices through the wireless access device.
It should be noted that, when the apparatus provided in the foregoing embodiment implements the functions thereof, only the division of the above functional modules is illustrated, and in practical applications, the above functions may be distributed by different functional modules according to actual needs, that is, the content structure of the device is divided into different functional modules, so as to complete all or part of the functions described above.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
An exemplary embodiment of the present disclosure also provides an operation executing apparatus, which can implement the method for accessing a testing device provided by the present disclosure, the apparatus is used in a wireless access device, the apparatus includes a processor, a memory connected to the processor, and program instructions stored in the memory, and the processor executes the program instructions to implement the following steps:
the method comprises the steps that wireless access equipment acquires an access request sent by a terminal, wherein the access request comprises a domain name of a network service requested by the terminal;
when the domain name is the appointed domain name of the network service tested by the testing equipment, the wireless access equipment redirects to a first equipment address according to a stored corresponding relation, wherein the corresponding relation is used for modifying the equipment address corresponding to the appointed domain name from a second equipment address to the first equipment address, and the second equipment address is the address of the network service equipment providing the network service;
and the wireless access equipment sends the first equipment address to the terminal, and the first equipment address is used for the terminal to access the test equipment through the wireless access equipment.
An exemplary embodiment of the present disclosure also provides a computer readable medium, on which program instructions are stored, and the program instructions, when executed by a processor, implement the method for accessing a testing device provided by the above-mentioned various method embodiments.
Referring to fig. 6, a schematic structural diagram of a wireless access device according to an exemplary embodiment of the present invention is shown. The wireless access apparatus 600 includes: a processor 611, a communication bus 612, and a memory 613.
The processor 611 may include one or more Central Processing Units (CPUs).
The memory 613 is coupled to the processor 611 via a communication bus 612.
The memory 613 is used for storing program instructions which are executed by the processor 611 to implement the method of accessing the test equipment provided by the various method embodiments described above.
Optionally, wireless access device 600 also includes a communication interface 614. The communication interface 614 is coupled to the processor 611 by a bus 612.
Alternatively, the memory 613 may be implemented by any type of volatile or non-volatile memory device or combination thereof, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk.
Communication interface 614 may comprise a wired network interface, such as an ethernet interface, or may comprise a wireless network interface. The communication interface 614 is used for receiving data packets sent by the upper/lower level devices and/or forwarding the data packets to the upper/lower level devices.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is to be limited only by the terms of the appended claims.

Claims (13)

1. A method of accessing test equipment, the method comprising:
the method comprises the steps that wireless access equipment acquires an access request sent by a terminal, wherein the access request comprises a domain name of a network service requested by the terminal, and when an appointed domain name matched with the domain name in the access request exists in at least one appointed domain name stored in the wireless access equipment, the domain name in the access request is determined to be the appointed domain name of the network service tested by testing equipment;
when the domain name is the appointed domain name of the network service tested by the testing equipment, the wireless access equipment redirects to a first equipment address according to a stored corresponding relation, wherein the corresponding relation is used for modifying the equipment address corresponding to the appointed domain name from a second equipment address to the first equipment address, and the second equipment address is the address of the network service equipment providing the network service; when the domain name is not the designated domain name, the wireless access device sends the domain name to a Domain Name System (DNS) server, the DNS server determines a third device address corresponding to the domain name, the third device address is an address of other network service devices providing network services corresponding to the domain name, and the wireless access device receives the third device address;
and the wireless access equipment sends the first equipment address or the third equipment address to the terminal, wherein the first equipment address is used for the terminal to access the test equipment through the wireless access equipment, and the third equipment address is used for the terminal to access the other network service equipment through the wireless access equipment.
2. The method of claim 1, further comprising:
when the equipment identification is a specified equipment identification, the wireless access equipment executes the step that when the domain name is a specified domain name of the network service tested by the testing equipment, the wireless access equipment redirects to a first equipment address according to the stored corresponding relation;
the specified equipment identification is the equipment identification of the test terminal, and the test terminal is the terminal to be accessed to the test equipment.
3. The method of claim 1, further comprising:
the wireless access equipment receives a security certificate sent by the testing equipment, and the security certificate is pre-installed in the testing equipment;
the wireless access equipment sends the security certificate to the terminal, the security certificate is used for the terminal to verify the security of the test equipment, and the wireless access equipment is accessed to the test equipment when the verification is passed.
4. The method of claim 3, wherein the security certificate sent by the testing device is the same as a security certificate in the network service device.
5. The method of any of claims 1 to 4, further comprising:
the wireless access equipment receives a network service request sent by the terminal, wherein the network service request comprises the first equipment address;
and the wireless access equipment sends the network service request to the test equipment according to the first equipment address.
6. An apparatus for accessing test equipment, the apparatus comprising:
the access control device comprises an acquisition module, a detection module and a processing module, wherein the acquisition module is configured to acquire an access request sent by a terminal, the access request comprises a domain name of a network service requested by the terminal, and when a specified domain name matched with the domain name in the access request exists in at least one specified domain name stored in the wireless access device, the domain name in the access request is determined to be the specified domain name of the network service tested by the testing device;
a redirection module configured to redirect to a first device address according to a stored correspondence when the domain name is a specified domain name of a network service tested by a test device, where the correspondence is used to modify a device address corresponding to the specified domain name from a second device address to the first device address, and the second device address is an address of a network service device providing the network service; when the domain name is not the designated domain name, the wireless access device sends the domain name to a Domain Name System (DNS) server, the DNS server determines a third device address corresponding to the domain name, the third device address is an address of other network service devices providing network services corresponding to the domain name, and the wireless access device receives the third device address;
a first sending module, configured to send the first device address or the third device address to the terminal, where the first device address is used for the terminal to access the test device through the wireless access device, and the third device address is used for the terminal to access the other network service device through the wireless access device.
7. The apparatus of claim 6, further comprising:
the redirection module is further configured to execute the step of redirecting to a first device address according to the stored corresponding relation when the domain name is the specified domain name of the network service tested by the testing device when the device identifier is the specified device identifier;
the specified equipment identification is the equipment identification of the test terminal, and the test terminal is the terminal to be accessed to the test equipment.
8. The apparatus of claim 6, further comprising:
the first receiving module is configured to receive a security certificate sent by the testing equipment, and the security certificate is pre-installed in the testing equipment;
and the second sending module is configured to send the security certificate to the terminal, wherein the security certificate is used for verifying the security of the testing equipment by the terminal, and the testing equipment is accessed through the wireless access equipment when the verification is passed.
9. The apparatus of claim 8, wherein the security certificate sent by the testing device is the same as a security certificate in the network service device.
10. The apparatus of any of claims 6 to 9, further comprising:
a second receiving module configured to receive a network service request sent by the terminal, where the network service request includes the first device address;
a third sending module configured to send the network service request to the test device according to the first device address.
11. A system for accessing test equipment, the system comprising: the system comprises a terminal, wireless access equipment and test equipment;
the terminal is used for sending an access request to the wireless access equipment;
the wireless access device comprises the apparatus of any one of claims 6 to 10;
the testing equipment is used for testing whether the network service supports running on the terminal or not, and the testing equipment is provided with a safety certificate.
12. An apparatus for accessing test equipment, the apparatus comprising a processor; a memory coupled to the processor; and program instructions stored on the memory which, when executed by the processor, implement a method of accessing test equipment according to any one of claims 1 to 5.
13. A computer-readable medium, on which program instructions are stored, which program instructions, when executed by a processor, implement a method of accessing a test device according to any one of claims 1 to 5.
CN201710729285.6A 2017-08-23 2017-08-23 Method, device and system for accessing test equipment Active CN107566211B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710729285.6A CN107566211B (en) 2017-08-23 2017-08-23 Method, device and system for accessing test equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710729285.6A CN107566211B (en) 2017-08-23 2017-08-23 Method, device and system for accessing test equipment

Publications (2)

Publication Number Publication Date
CN107566211A CN107566211A (en) 2018-01-09
CN107566211B true CN107566211B (en) 2020-10-09

Family

ID=60976645

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710729285.6A Active CN107566211B (en) 2017-08-23 2017-08-23 Method, device and system for accessing test equipment

Country Status (1)

Country Link
CN (1) CN107566211B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111371638B (en) * 2020-02-18 2022-01-18 深圳市晨北科技有限公司 Intelligent equipment testing method and device, server and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103095865A (en) * 2013-02-21 2013-05-08 无锡豪居智能科技有限公司 Intelligent main controlling system of internet of things based on multiple controlling modes
CN103581213A (en) * 2012-07-19 2014-02-12 阿里巴巴集团控股有限公司 Shared Hosts file application method, equipment and system
CN103973704A (en) * 2014-05-23 2014-08-06 北京奇虎科技有限公司 Domain name resolution method, device and system based on WIFI device
CN105391811A (en) * 2014-08-29 2016-03-09 腾讯科技(深圳)有限公司 DNS (domain name resolution) method, access method for application server, and terminal
CN105430108A (en) * 2014-08-25 2016-03-23 腾讯科技(深圳)有限公司 Test environment accessing method and proxy server

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2896159B1 (en) * 2012-09-17 2019-11-06 Netsweeper (Barbados) Inc. Network address and hostname mapping in policy service

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103581213A (en) * 2012-07-19 2014-02-12 阿里巴巴集团控股有限公司 Shared Hosts file application method, equipment and system
CN103095865A (en) * 2013-02-21 2013-05-08 无锡豪居智能科技有限公司 Intelligent main controlling system of internet of things based on multiple controlling modes
CN103973704A (en) * 2014-05-23 2014-08-06 北京奇虎科技有限公司 Domain name resolution method, device and system based on WIFI device
CN105430108A (en) * 2014-08-25 2016-03-23 腾讯科技(深圳)有限公司 Test environment accessing method and proxy server
CN105391811A (en) * 2014-08-29 2016-03-09 腾讯科技(深圳)有限公司 DNS (domain name resolution) method, access method for application server, and terminal

Also Published As

Publication number Publication date
CN107566211A (en) 2018-01-09

Similar Documents

Publication Publication Date Title
US9392075B1 (en) URLs with IP-generated codes for link security in content networks
KR102166589B1 (en) Method and apparatus for realizing communication between web page and native application, and electronic device
WO2016101635A1 (en) Method, apparatus and device for synchronizing login status, and computer storage medium
CN104333548B (en) The method and system of local service are accessed in https webpages
CN104836812A (en) Portal authentication method, device and system
US10437577B2 (en) Systems and methods for mobile application installation
US20210314156A1 (en) Authentication method, content delivery network cdn, and content server
CN104168339A (en) Method and device for preventing domain name from being intercepted
CN112995163A (en) Resource access authentication method and device, storage medium and electronic equipment
CN109819033A (en) A kind of resource file loading method and system
CN111241523B (en) Authentication processing method, device, equipment and storage medium
CN113938886A (en) Identity authentication platform test method, device, equipment and storage medium
CN109510799B (en) Page display method, browser client, equipment and storage medium
US10834555B2 (en) System and method for facilitating carrier-specific configuration of a user device based on pre-stored information for multiple carriers
CN108541000B (en) Method, medium and device for detecting network connection
CN107566211B (en) Method, device and system for accessing test equipment
CN107979577B (en) Terminal authentication method and device
US11411887B2 (en) Method and device for performing traffic control on user equipment
CN114585055B (en) Vehicle-mounted WiFi access method, vehicle controller, cloud server and mobile terminal
CN114885024B (en) Routing method, device, equipment and medium of application instance
CN107770143B (en) Method and device for verifying client validity
CN112685719B (en) Single sign-on method, device, system, computer equipment and storage medium
CN111506846B (en) Web page generation method and device, electronic equipment and storage medium
CN108092974B (en) Internet access authentication method and device
KR101329788B1 (en) SSO Method Based on Server In Mobile Environment

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