CN110099275B - Application testing method, device, equipment and storage medium - Google Patents

Application testing method, device, equipment and storage medium Download PDF

Info

Publication number
CN110099275B
CN110099275B CN201910419851.2A CN201910419851A CN110099275B CN 110099275 B CN110099275 B CN 110099275B CN 201910419851 A CN201910419851 A CN 201910419851A CN 110099275 B CN110099275 B CN 110099275B
Authority
CN
China
Prior art keywords
address
server
testing
test
application
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
CN201910419851.2A
Other languages
Chinese (zh)
Other versions
CN110099275A (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.)
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Guangzhou Shikun Electronic Technology Co Ltd
Original Assignee
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Guangzhou Shikun Electronic 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 Guangzhou Shiyuan Electronics Thecnology Co Ltd, Guangzhou Shikun Electronic Technology Co Ltd filed Critical Guangzhou Shiyuan Electronics Thecnology Co Ltd
Priority to CN201910419851.2A priority Critical patent/CN110099275B/en
Publication of CN110099275A publication Critical patent/CN110099275A/en
Application granted granted Critical
Publication of CN110099275B publication Critical patent/CN110099275B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/362Software debugging
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N17/00Diagnosis, testing or measuring for television systems or their details
    • H04N17/004Diagnosis, testing or measuring for television systems or their details for digital television systems
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/436Interfacing a local distribution network, e.g. communicating with another STB or one or more peripheral devices inside the home
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/443OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB

Abstract

The invention discloses an application testing method, device, equipment and storage medium. The method comprises the following steps: reading a second address of a second test server from a mobile storage device accessed to the television, wherein the second test server and the first test server provide the same test service; replacing the first address of the first test server with the second address of the second test server; and starting the application to access the second test server for testing according to the second address. The method solves the problem that the influence of network factors cannot be eliminated when the server on line of the DUK certification mechanism is directly used for debugging and testing, realizes that a second test server which provides the same test service as the first test server is accessed through a second address, reduces the influence of the network factors on debugging and testing results, and improves the beneficial effect of accurate and definite testing.

Description

Application testing method, device, equipment and storage medium
Technical Field
The present invention relates to information network technologies, and in particular, to a method, an apparatus, a device, and a storage medium for testing an application.
Background
With the development of information network technology, televisions also have system and network communication functions. The existing televisions (especially those with android systems) can be generally pre-installed with applications. The user can access different operator contents through the pre-installed applications to acquire different data.
In china, debugging and testing are performed by directly using an online server of a DUK (Digital UK) certification authority, and a UK private network is required. When the test result is failure, it cannot be determined whether the cause of the test failure is the network or the application itself.
Disclosure of Invention
The invention provides an application testing method, device, equipment and storage medium, which aim to solve the problem that the influence of network factors cannot be eliminated when a server on-line with a DUK certification authority is directly used for debugging and testing.
In a first aspect, an embodiment of the present invention provides an application testing method, where an application is installed in a television, and a first address of a first testing server is set in the application, where the method includes:
reading a second address of a second test server from a mobile storage device accessed to the television, wherein the second test server and the first test server provide the same test service;
replacing the first address of the first test server with the second address of the second test server;
and starting the application to access the second test server for testing according to the second address.
On the basis, the reading of the second address of the second test server from the mobile storage device accessing the television comprises:
receiving a restart signal acting on the television;
and reading a second address of a second test server from the mobile storage equipment accessed to the television according to the restarting signal.
On the basis, the reading of the second address of the second test server from the mobile storage device accessing the television comprises:
receiving a start signal acting on the application;
and reading a second address of a second test server from the mobile storage equipment accessed to the television according to the starting signal.
On the basis, the reading of the second address of the second test server from the mobile storage device accessing the television comprises:
determining a file from a mobile storage device accessed to the television, wherein the file is used for storing a second address of a second test server;
reading a second address of the second test server from the file.
On the basis, the number of the second addresses is two or more, each second address is associated with attribute information, and the attribute information is used for indicating the application of the test;
the starting the application to access the second test server for testing according to the second address includes:
determining a target address, wherein the target address is a second address of which the attribute information points to the same application;
and starting the application to access the second test server for testing according to the target address respectively.
On this basis, still include:
receiving a pulling-out message generated when the mobile storage device is pulled out;
and replacing the first address of the first test server with the second address of the second test server according to the unplugging message.
In a second aspect, an embodiment of the present invention further provides an application testing method, where an application is installed in a television, and a first address of a first testing server is set in the application, where the method includes:
receiving a second address of a second testing server, wherein the second address of the second testing server is stored in a mobile storage device accessed to the television, and the second testing server and the first testing server provide the same testing service;
and accessing the second test server according to the second address to test.
On the basis, the number of the second addresses is two or more, each second address is associated with attribute information, and the attribute information is used for indicating the application of the test;
the accessing the second test server according to the second address for testing includes:
determining a target address, wherein the target address is a second address of which the attribute information points to the same application;
and accessing the second test server to test according to the target address respectively.
On this basis, the accessing the second test server according to the target addresses respectively for testing includes:
starting processes, wherein each process is used for establishing communication connection with a test server corresponding to each target address;
closing other processes except the target process, wherein the target process is the first process for completing the establishment of communication connection;
and accessing the second test server for testing through the communication connection.
On the basis, the second test server is a virtual server, and the virtual server and the television are in the same local area network; the first test server is outside the local area network.
In a third aspect, an embodiment of the present invention further provides an application testing apparatus, where an application is installed in a television, and a first address of a first testing server is set in the application, where the apparatus includes:
the second address acquisition module is used for reading a second address of a second test server from the mobile storage equipment accessed to the television, and the second test server and the first test server provide the same test service;
the first address replacing module is used for replacing the second address of the second testing server with the first address of the first testing server;
and the first test execution module is used for starting the application to access the second test server for testing according to the second address.
In a fourth aspect, an embodiment of the present invention further provides an application testing apparatus, where an application is installed in a television, and a first address of a first testing server is set in the application, where the apparatus includes:
a second address receiving module, configured to receive a second address of a second testing server, where the second address of the second testing server is stored in a mobile storage device accessing the television, and the second testing server and the first testing server provide the same testing service;
and the second test execution module is used for accessing the second test server according to the second address to execute the test.
In a fifth aspect, an embodiment of the present invention further provides an electronic device, including:
one or more processors;
a memory for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement a method of testing an application as in any one of the embodiments.
In a sixth aspect, the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements a method for testing an application according to any one of the embodiments.
The invention reads the second address of the second test server from the mobile storage device accessed to the television, and the second test server and the first test server provide the same test service; replacing the first address of the first test server with the second address of the second test server; and starting the application to access the second test server according to the second address for testing. The problem that the influence of network factors cannot be eliminated when a server on line of a DUK certification mechanism is directly used for debugging and testing is solved, a second test server which provides the same test service as the first test server is accessed through a second address, the influence of the network factors on debugging and testing results is reduced, and the beneficial effect of accurate and definite testing is improved.
Drawings
Fig. 1 is a flowchart of an application testing method according to an embodiment of the present invention;
fig. 2 is a flowchart of an application testing method according to a second embodiment of the present invention;
fig. 3 is a flowchart of an application testing method according to a third embodiment of the present invention;
fig. 4 is a flowchart of an application testing method according to a fourth embodiment of the present invention;
fig. 5 is a structural diagram of a testing apparatus applied in a fifth embodiment of the present invention;
fig. 6 is a structural diagram of a testing apparatus applied in a sixth embodiment of the present invention;
fig. 7 is a schematic structural diagram of an electronic device according to a seventh embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
For the sake of easy understanding of the scheme described in the embodiments of the present application, several terms appearing in the embodiments of the present application will be explained below.
A television: generally refers to devices that utilize electronic technology as well as devices to transmit moving image pictures and audio signals. The television in the application refers in particular to a network television, which is based on a broadband high-speed IP (Internet Protocol, Protocol for interconnection between networks) network, takes network video resources as a main body, takes a television, a personal computer and handheld equipment as display terminals, and is accessed to a broadband network through a set top box or a computer, so that services such as a digital television, a time-shift television, an interactive television and the like are realized.
Optionally, the television is equipped with systems, such as: android system (Android), apple system (macOS), and the like. Meanwhile, the television is provided with applications.
The application comprises the following steps: the application here is specifically an application that can be installed and used in a television. An application is accessed on a television essentially by taking the application's corresponding address (uniform resource locator) and then displaying the content retrieved from the server by the address through the browser. The application integrates a browser function, and an address, namely the first address in the embodiment, is preset in the application function.
The mobile storage device: refers to a portable data storage device with a storage medium and (typically) itself having the capability to read and write to the medium with little or no assistance from other devices, such as a computer.
Optionally, the mobile storage device is a mobile hard disk, a USB (Universal Serial Bus) disk, and various memory cards.
The test server: a test server is a device that provides computing services. Under a network environment, the server is divided into a file server, a database server, an application server, a WEB server and the like according to different service types provided by the server. In the application, the test server can respond to the request of the application in the television and provide test content to the application.
Generally, the test server may be configured as a master/standby server (dual-server hot-standby system). The dual-computer hot standby system is the minimum unit of cluster, namely, a central server is installed into two servers which are mutually backup, and only one server runs at the same time. When one running server fails and cannot be started, the other backup server can be quickly and automatically started and run (generally about several minutes), so that the normal running of the whole network system is ensured. The working mechanism of dual-computer hot standby actually provides a fault automatic recovery capability for the central server of the whole network system.
In the present application, the test server is divided into a first test server and a second test server, which are determined according to the range of the local area network where the test server and the television are located. The second test server and the television are located in the same local area network, and the first test server is located outside the local area network. The second test server may be a virtual server.
Of course, the first test server and the second test server are only referred to by the reference, and do not mean that only two servers are involved in the present application.
Address: the address is used to indicate the location of the resource requested by the application. It can be understood that the application needs to establish a communication connection with the test server pointed by the address through the address to perform a resource request of the test content.
In this application, the address is divided into a first address and a second address, which is determined by which server the address is directed to. The first address points to a first test server and the second address points to a second test server.
Example one
Fig. 1 is a flowchart of an application testing method according to an embodiment of the present invention. The embodiment can be applied to replacing the first address set by the application installed in the television through the mobile storage device, so that the second test server is accessed to test according to the second address. The method may be performed by an application testing apparatus, which may be implemented in software and/or hardware, and which is generally configured in an electronic device, typically provided in a processor. Referring to fig. 1, the method specifically includes:
and S101, reading a second address of a second test server from the mobile storage device accessed to the television.
And when the television is accessed to the mobile storage equipment, reading the file of the mobile storage equipment, and determining a second address pointing to the second test server.
Generally, a second address pointing to the second test server may be stored in a special file of the mobile storage device, and a manner of reading the second address from the mobile storage device may be set as follows: reading the special file in the mobile storage device as long as the mobile storage device is accessed in the running process of the television; or, the mobile storage device is accessed in the running process of the television, only the general files in the mobile storage device are read, and the special files are checked and read only when the television is started.
S102, replacing the first address of the first test server with the second address of the second test server.
S103, starting the application to access the second test server for testing according to the second address.
Steps S102-S103 describe the steps of launching an application and web site replacement, and since they have an association, the two steps are described together.
The application is integrated with a browser function module, and meanwhile, a first address pointing to a first test server outside the local area network is stored in the application. Under the condition that the replacement does not occur, the application accesses the first server according to the first address and downloads the test content to test the application. And under the condition that the replacement occurs, after a certain application is started, blocking a first address sent by the application to the browser functional module, and replacing a second address pointing to the second test server with the first address. And the application accesses the second server according to the second address and downloads the test content to test the application.
The embodiment of the invention reads the second address of the second test server from the mobile storage equipment accessed to the television, and the second test server and the first test server provide the same test service; replacing the first address of the first test server with the second address of the second test server; and starting the application to access the second test server according to the second address for testing. The problem that the influence of network factors cannot be eliminated when a server on line of a DUK certification mechanism is directly used for debugging and testing is solved, a second test server which provides the same test service as the first test server is accessed through a second address, the influence of the network factors on debugging and testing results is reduced, and the beneficial effect of accurate and definite testing is improved.
Example two
Fig. 2 is a flowchart of an application testing method according to a second embodiment of the present invention. The present embodiment is a refinement based on the first embodiment, and describes in detail a specific method for reading a second address of a second testing server from a mobile storage device accessing the television and starting the application to access the second testing server for testing according to the second address. Referring to fig. 2, the method specifically includes:
s201, determining a file from the mobile storage device accessed to the television, wherein the file is used for storing a second address of a second test server.
And when the mobile storage device is detected to be connected to the television, searching files for storing the second address of the second test server from the mobile storage files.
In general, the file for storing the second address of the second test server is typically a special file F, which is defined in the code for identifying the name of the redirected file, and which typically holds the redirected address.
S202, reading a second address of the second test server from the file.
And after determining a file for storing the second address of the second test server from the mobile storage file, reading the second address of the second test server from the file.
In one implementation, the manner of reading the second address from the mobile storage device may be set as: receiving a start signal acting on the application; and reading a second address of a second test server from the mobile storage equipment accessed to the television according to the starting signal. That is, it is set that the special file in the mobile storage device is checked only by accessing the mobile storage device during the running process of the television, and when a certain application is started, the content in the special file is read.
In one implementation, the manner of reading the second address from the mobile storage device may be set as: receiving a restart signal acting on the television; and reading a second address of a second test server from the mobile storage equipment accessed to the television according to the restarting signal. That is, the mobile storage device is accessed during the running process of the television, only the general files in the mobile storage device are read, and the special files are checked and read only when the television is started.
S203, replacing the first address of the first test server with the second address of the second test server.
The number of the second addresses is two or more, each second address is associated with attribute information, and the attribute information is used for indicating the application of the test.
I.e. the number of second addresses in the file is multiple. And determining the application corresponding to the second address according to the address association attribute of each second address.
The second address of the second test server is compared to the first address of the first test server, in which case one application may correspond to a plurality of second addresses.
And S204, determining a target address.
And determining the application corresponding to the second address according to the address association attribute of each second address, and determining the second address(s) corresponding to each application as the target address corresponding to the application.
S205, starting the application to access the second test server for testing according to the target address respectively.
And receiving a starting signal generated by starting the application, and accessing the target address according to the target address corresponding to the application so as to access the second test server for testing according to the target address respectively.
Because a plurality of target addresses point to the second test server, the connection mode can be common disconnection reconnection; or simultaneously establishing communication connection with the test server corresponding to each target address, and closing other processes establishing communication connection after the first communication connection is established.
S206, receiving a pulling-out message generated when the mobile storage device is pulled out.
And detecting the equipment state of the mobile storage equipment, and generating pull-out information when the mobile storage equipment is pulled out.
And S207, replacing the first address of the first test server with the second address of the second test server according to the unplugging message.
And when the unplugging message is received, replacing the first address of the first test server with the second address of the second test server, so that the default address in the application is restored to the originally set address.
The embodiment of the invention reads the second address of the second test server from the mobile storage equipment accessed to the television, and the second test server and the first test server provide the same test service; replacing the first address of the first test server with the second address of the second test server; and starting the application to access the second test server according to the second address for testing. The problem that the influence of network factors cannot be eliminated when a server on line of a DUK certification mechanism is directly used for debugging and testing is solved, a second test server which provides the same test service as the first test server is accessed through a second address, the influence of the network factors on debugging and testing results is reduced, and the beneficial effect of accurate and definite testing is improved.
EXAMPLE III
Fig. 3 is a flowchart of an application testing method according to a third embodiment of the present invention. The embodiment may be applicable to a scenario where a second address of a second test server is received and the second test server is accessed for testing according to the second address. The method may be performed by an application testing apparatus, which may be implemented in software and/or hardware, and which is generally configured in an electronic device, typically provided in a processor. Referring to fig. 3, the method specifically includes:
s301, receiving a second address of the second test server.
S302, accessing the second test server according to the second address for testing.
The present embodiment is a description from the application side. And the application obtains a second address of a second test server stored in the mobile storage device, replaces the originally default first address with the second address, and sends the second address to the browser function so as to access the second address.
And the second test server provides the same test service with the first test server. The second test server is a virtual server and is in the same local area network with the television; and the first test server is outside the local area network.
The embodiment of the invention receives the second address of the second test server and accesses the second test server to test according to the second address. The problem that the influence of network factors cannot be eliminated when a server on line of a DUK certification mechanism is directly used for debugging and testing is solved, a second test server which provides the same test service as the first test server is accessed through a second address, the influence of the network factors on debugging and testing results is reduced, and the beneficial effect of accurate and definite testing is improved.
Example four
Fig. 4 is a flowchart of an application testing method according to a fourth embodiment of the present invention. The present embodiment is a refinement performed on the basis of the third embodiment, and describes in detail a specific method for accessing the second test server to perform a test according to the second address. Referring to fig. 4, the method specifically includes:
s401, receiving a second address of a second test server.
The application receives a second address of a second test server stored in the mobile storage device.
The number of the second addresses is two or more, each second address is associated with attribute information, and the attribute information is used for indicating the application of the test.
I.e. the number of second addresses in the file is multiple. And determining the application corresponding to the second address according to the address association attribute of each second address.
The second address of the second test server is compared to the first address of the first test server, in which case one application may correspond to a plurality of second addresses.
S402, determining a target address, wherein the target address is a second address of which the attribute information points to the same application.
And determining the application corresponding to the second address according to the address association attribute of each second address, and determining the second address(s) corresponding to each application as the target address corresponding to the application.
And S403, accessing the second test server to test according to the target address respectively.
In one embodiment, the connectable mode may be a general disconnection reconnection; the second test server is accessed through any one target address, and if the communication connection is not established within the preset time, another target address is selected to establish the communication connection. And after a pass connection is established through a target address, accessing the second test server through the communication connection for testing.
In a specific implementation, the test server may be a start process, and each process is configured to establish a communication connection with the test server corresponding to each target address; closing other processes except the target process, wherein the target process is the first process for completing the establishment of communication connection; and accessing the second test server for testing through the communication connection. Namely, the communication connection is established with the test server corresponding to each target address at the same time, and after the first communication connection is established, other processes which are establishing the communication connection are closed. And accessing the second test server through the communication connection for testing.
The embodiment of the invention receives the second address of the second test server and accesses the second test server to test according to the second address. The problem that the influence of network factors cannot be eliminated when a server on line of a DUK certification mechanism is directly used for debugging and testing is solved, a second test server which provides the same test service as the first test server is accessed through a second address, the influence of the network factors on debugging and testing results is reduced, and the beneficial effect of accurate and definite testing is improved.
EXAMPLE five
Fig. 5 is a structural diagram of an applied testing apparatus according to a fifth embodiment of the present invention. The method comprises the following steps: a second address obtaining module 51, a first address replacing module 52 and a first test proceeding module 53. Wherein the content of the first and second substances,
a second address obtaining module 51, configured to read a second address of a second test server from a mobile storage device accessing the television, where the second test server provides the same test service as the first test server;
a first address replacing module 52, configured to replace the first address of the first test server with the second address of the second test server;
and a first test proceeding module 53, configured to start the application, so as to access the second test server for testing according to the second address.
The embodiment of the invention reads the second address of the second test server from the mobile storage equipment accessed to the television, and the second test server and the first test server provide the same test service; replacing the first address of the first test server with the second address of the second test server; and starting the application to access the second test server according to the second address for testing. The problem that the influence of network factors cannot be eliminated when a server on line of a DUK certification mechanism is directly used for debugging and testing is solved, a second test server which provides the same test service as the first test server is accessed through a second address, the influence of the network factors on debugging and testing results is reduced, and the beneficial effect of accurate and definite testing is improved.
On the basis of the above embodiment, the second address obtaining module 51 is further configured to:
receiving a restart signal acting on the television;
and reading a second address of a second test server from the mobile storage equipment accessed to the television according to the restarting signal.
On the basis of the above embodiment, the second address obtaining module 51 is further configured to:
receiving a start signal acting on the application;
and reading a second address of a second test server from the mobile storage equipment accessed to the television according to the starting signal.
On the basis of the above embodiment, the second address obtaining module 51 is further configured to:
determining a file from a mobile storage device accessed to the television, wherein the file is used for storing a second address of a second test server;
reading a second address of the second test server from the file.
On the basis of the above embodiment, the number of the second addresses is two or more, each second address is associated with attribute information, and the attribute information is used for indicating a tested application. The first test proceeding module 53 is further configured to:
determining a target address, wherein the target address is a second address of which the attribute information points to the same application;
and starting the application to access the second test server for testing according to the target address respectively.
On the basis of the above embodiment, the apparatus further includes an address restoring module, configured to:
receiving a pulling-out message generated when the mobile storage device is pulled out;
and replacing the first address of the first test server with the second address of the second test server according to the unplugging message.
The testing device for an application provided in this embodiment can be used to execute the testing method for an application provided in the first and second embodiments, and has corresponding functions and advantages.
EXAMPLE six
Fig. 6 is a structural diagram of a testing apparatus applied in a sixth embodiment of the present invention. The method comprises the following steps: a second address receiving module 61 and a second test proceeding module 62.
A second address receiving module 61, configured to receive a second address of a second testing server, where the second address of the second testing server is stored in a mobile storage device accessing the television, and the second testing server and the first testing server provide the same testing service;
and a second test performing module 62, configured to access the second test server according to the second address to perform a test.
The embodiment of the invention receives the second address of the second test server and accesses the second test server to test according to the second address. The problem that the influence of network factors cannot be eliminated when a server on line of a DUK certification mechanism is directly used for debugging and testing is solved, a second test server which provides the same test service as the first test server is accessed through a second address, the influence of the network factors on debugging and testing results is reduced, and the beneficial effect of accurate and definite testing is improved.
On the basis of the above embodiment, the number of the second addresses is two or more, each second address is associated with attribute information, and the attribute information is used for indicating a tested application. The second test proceeding module 62 is further configured to:
determining a target address, wherein the target address is a second address of which the attribute information points to the same application;
and accessing the second test server to test according to the target address respectively.
On the basis of the above embodiment, the accessing the second test server to perform the test according to the target addresses respectively includes:
starting processes, wherein each process is used for establishing communication connection with a test server corresponding to each target address;
closing other processes except the target process, wherein the target process is the first process for completing the establishment of communication connection;
and accessing the second test server for testing through the communication connection.
On the basis of the above embodiment, the second test server is a virtual server, and the virtual server and the television are in the same local area network; the first test server is outside the local area network. The testing device for an application provided by the embodiment can be used for executing the testing method for an application provided by the third embodiment and the fourth embodiment, and has corresponding functions and beneficial effects.
EXAMPLE seven
Fig. 7 is a schematic structural diagram of an electronic device according to a seventh embodiment of the present invention. As shown in fig. 7, the electronic apparatus includes a processor 70, a memory 71, a communication module 72, an input device 73, and an output device 74; the number of the processors 70 in the electronic device may be one or more, and one processor 70 is taken as an example in fig. 7; the processor 70, the memory 71, the communication module 72, the input device 73 and the output device 74 in the electronic device may be connected by a bus or other means, and the bus connection is exemplified in fig. 7.
The memory 71 is used as a computer-readable storage medium for storing software programs, computer-executable programs, and modules corresponding to the test method of an application (for example, the second address obtaining module 51, the first address replacing module 52, and the first test performing module 53 in the test apparatus of an application) (for example, the second address receiving module 61 and the second test performing module 62 in the test apparatus of an application) in the present embodiment. The processor 70 executes various functional applications and data processing of the electronic device by executing software programs, instructions and modules stored in the memory 71, that is, implements the above-described testing method of one application.
The memory 71 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to use of the electronic device, and the like. Further, the memory 71 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, the memory 71 may further include memory located remotely from the processor 70, which may be connected to the electronic device through a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
And the communication module 72 is used for establishing connection with the display screen and realizing data interaction with the display screen. The input device 73 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the electronic apparatus.
The electronic device provided by this embodiment of the present invention can execute the test method for the application provided by any embodiment of the present invention, and has corresponding functions and advantages.
Example eight
An eighth embodiment of the present invention further provides a storage medium containing computer-executable instructions, which when executed by a computer processor, are configured to perform a method for testing an application, the method including:
reading a second address of a second test server from a mobile storage device accessed to the television, wherein the second test server and the first test server provide the same test service;
replacing the first address of the first test server with the second address of the second test server;
and starting the application to access the second test server for testing according to the second address.
Or the like, or, alternatively,
receiving a second address of a second testing server, wherein the second address of the second testing server is stored in a mobile storage device accessed to the television, and the second testing server and the first testing server provide the same testing service;
and accessing the second test server according to the second address to test.
Of course, the storage medium provided by the embodiments of the present invention contains computer-executable instructions, and the computer-executable instructions are not limited to the method operations described above, and may also perform related operations in the test method of the application provided by any embodiment of the present invention.
From the above description of the embodiments, it is obvious for those skilled in the art that the present invention can be implemented by software and necessary general hardware, and certainly, can also be implemented by hardware, but the former is a better embodiment in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which can be stored in a computer-readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a FLASH Memory (FLASH), a hard disk or an optical disk of a computer, and includes instructions for enabling a computer electronic device (which may be a personal computer, a server, or a network electronic device) to execute the methods according to the embodiments of the present invention.
It should be noted that, in the embodiment of the test apparatus for application, the included units and modules are only divided according to functional logic, but are not limited to the above division as long as the corresponding functions can be implemented; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present invention.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (14)

1. A method for testing an application is characterized in that the application is installed in a television, a first address of a first test server is set in the application, and the method comprises the following steps:
reading a second address of a second test server from a mobile storage device accessed to the television, wherein the second test server and the first test server provide the same test service;
replacing the first address of the first test server with the second address of the second test server;
starting the application to access the second test server for testing according to the second address;
the second testing server and the television are in the same local area network, and the first testing server is located outside the local area network.
2. The method of claim 1, wherein reading the second address of the second test server from the mobile storage device accessing the television comprises:
receiving a restart signal acting on the television;
and reading a second address of a second test server from the mobile storage equipment accessed to the television according to the restarting signal.
3. The method of claim 1, wherein reading the second address of the second test server from the mobile storage device accessing the television comprises:
receiving a start signal acting on the application;
and reading a second address of a second test server from the mobile storage equipment accessed to the television according to the starting signal.
4. The method of any of claims 1-3, wherein reading the second address of the second test server from the mobile storage device accessing the television comprises:
determining a file from a mobile storage device accessed to the television, wherein the file is used for storing a second address of a second test server;
reading a second address of the second test server from the file.
5. The method according to claim 3, wherein the number of the second addresses is two or more, each of the second addresses is associated with attribute information, and the attribute information is used for indicating application of a test;
the starting the application to access the second test server for testing according to the second address includes:
determining a target address, wherein the target address is a second address of which the attribute information points to the same application;
and starting the application to access the second test server for testing according to the target address respectively.
6. The method according to any one of claims 1-3, further comprising:
receiving a pulling-out message generated when the mobile storage device is pulled out;
and replacing the second address of the second test server with the first address of the first test server according to the unplugging message.
7. A method for testing an application is characterized in that the application is installed in a television, a first address of a first test server is set in the application, and the method comprises the following steps:
receiving a second address of a second testing server, wherein the second address of the second testing server is stored in a mobile storage device accessed to the television, and the second testing server and the first testing server provide the same testing service;
accessing the second test server according to the second address to test;
the second testing server and the television are in the same local area network, and the first testing server is located outside the local area network.
8. The method according to claim 7, wherein the number of the second addresses is two or more, each of the second addresses is associated with attribute information, and the attribute information is used for indicating application of a test;
the accessing the second test server according to the second address for testing includes:
determining a target address, wherein the target address is a second address of which the attribute information points to the same application;
and accessing the second test server to test according to the target address respectively.
9. The method of claim 8, wherein accessing the second test server for testing according to the target addresses respectively comprises:
starting processes, wherein each process is used for establishing communication connection with a test server corresponding to each target address;
closing other processes except the target process, wherein the target process is the first process for completing the establishment of communication connection;
and accessing the second test server for testing through the communication connection.
10. The method according to any of claims 7-9, wherein the second test server is a virtual server.
11. An apparatus for testing an application, wherein the application is installed in a television, and a first address of a first test server is set in the application, the apparatus comprising:
the second address acquisition module is used for reading a second address of a second test server from the mobile storage equipment accessed to the television, and the second test server and the first test server provide the same test service;
the first address replacing module is used for replacing the second address of the second testing server with the first address of the first testing server;
the first test execution module is used for starting the application to access the second test server for testing according to the second address;
the second testing server and the television are in the same local area network, and the first testing server is located outside the local area network.
12. An apparatus for testing an application, wherein the application is installed in a television, and a first address of a first test server is set in the application, the apparatus comprising:
a second address receiving module, configured to receive a second address of a second testing server, where the second address of the second testing server is stored in a mobile storage device accessing the television, and the second testing server and the first testing server provide the same testing service;
the second test execution module is used for accessing the second test server according to the second address to execute the test;
the second testing server and the television are in the same local area network, and the first testing server is located outside the local area network.
13. An electronic device, comprising:
one or more processors;
a memory for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement a method of testing an application as claimed in any one of claims 1 to 10.
14. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out a method for testing an application according to any one of claims 1 to 10.
CN201910419851.2A 2019-05-20 2019-05-20 Application testing method, device, equipment and storage medium Active CN110099275B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910419851.2A CN110099275B (en) 2019-05-20 2019-05-20 Application testing method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910419851.2A CN110099275B (en) 2019-05-20 2019-05-20 Application testing method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110099275A CN110099275A (en) 2019-08-06
CN110099275B true CN110099275B (en) 2021-03-05

Family

ID=67448644

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910419851.2A Active CN110099275B (en) 2019-05-20 2019-05-20 Application testing method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110099275B (en)

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104239207A (en) * 2014-09-17 2014-12-24 广州华多网络科技有限公司 Method and device for debugging application program
CN108363662A (en) * 2018-01-29 2018-08-03 深圳壹账通智能科技有限公司 A kind of applied program testing method, storage medium and terminal device

Also Published As

Publication number Publication date
CN110099275A (en) 2019-08-06

Similar Documents

Publication Publication Date Title
US10963286B2 (en) Live migration method and apparatus for virtual machine passthrough device
US9542302B2 (en) System and method for remote debugging of an application in an image forming apparatus over a network
US20190372804A1 (en) Method and apparatus for operating smart network interface card
CN111314452B (en) Shell access method, device, equipment and storage medium of cloud mobile phone
CN111669284B (en) OpenStack automatic deployment method, electronic device, storage medium and system
CN110633046A (en) Storage method and device of distributed system, storage equipment and storage medium
CN111858296A (en) Interface test method, device, equipment and storage medium
CN114253864A (en) Service testing method and device, electronic equipment and storage medium
CN116302352A (en) Cluster disaster recovery processing method and device, electronic equipment and storage medium
CN114328097A (en) File monitoring method and device, electronic equipment and storage medium
CN104517067A (en) Method, device and system for data access
CN112968927B (en) Log extraction method, log extraction device, storage medium and electronic equipment
EP4060484A1 (en) Control method and control device for enabling operations of application program in multiple systems
CN110099275B (en) Application testing method, device, equipment and storage medium
CN111177260A (en) Database remote copying method and device and electronic equipment
WO2022078119A1 (en) Cross-device data sharing method and related device
CN114185804A (en) Interface testing method and device and terminal equipment
US11729246B2 (en) Apparatus and method for determining types of uniform resource locator
CN110572375B (en) IP address proxy method and device
KR101286434B1 (en) Method of synchronizing file and system for the same
CN113760631A (en) Page loading duration determination method, device, equipment and storage medium
CN111488306A (en) Attack and defense architecture system and construction method thereof
CN112804373B (en) Interface domain name determining method and device, electronic equipment and storage medium
CN112261051B (en) User registration method, device and system
CN116302711B (en) Disaster recovery method and device based on cloud platform mirror image, 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
GR01 Patent grant
GR01 Patent grant