CN112911283A - Smart television testing method and device - Google Patents

Smart television testing method and device Download PDF

Info

Publication number
CN112911283A
CN112911283A CN202110161978.6A CN202110161978A CN112911283A CN 112911283 A CN112911283 A CN 112911283A CN 202110161978 A CN202110161978 A CN 202110161978A CN 112911283 A CN112911283 A CN 112911283A
Authority
CN
China
Prior art keywords
test
intelligent television
television
command
smart
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110161978.6A
Other languages
Chinese (zh)
Other versions
CN112911283B (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.)
Hunan Happly Sunshine Interactive Entertainment Media Co Ltd
Original Assignee
Hunan Happly Sunshine Interactive Entertainment Media 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 Hunan Happly Sunshine Interactive Entertainment Media Co Ltd filed Critical Hunan Happly Sunshine Interactive Entertainment Media Co Ltd
Priority to CN202110161978.6A priority Critical patent/CN112911283B/en
Publication of CN112911283A publication Critical patent/CN112911283A/en
Application granted granted Critical
Publication of CN112911283B publication Critical patent/CN112911283B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N17/00Diagnosis, testing or measuring for television systems or their details
    • H04N17/04Diagnosis, testing or measuring for television systems or their details for receivers

Abstract

The invention provides a method and a device for testing an intelligent television, wherein the method comprises the following steps: and acquiring an application installation package, and sending the application installation package to each intelligent television to be tested. And constructing a test script corresponding to each intelligent television, and simulating a test environment service corresponding to each intelligent television in the set reverse proxy server. And running each test script to send each corresponding test command to each intelligent television. And detecting whether the smart television feeds back a response message corresponding to the test command within a preset time period, and if so, monitoring the interaction process of each smart television and the corresponding test environment service. And after the interaction is finished, acquiring each test data corresponding to each smart television, analyzing and processing each test data, generating a test report corresponding to each smart television, sending the test report to the server, and finishing the test. By applying the method provided by the invention, the testing efficiency of the intelligent television can be improved, and the labor cost is reduced.

Description

Smart television testing method and device
Technical Field
The invention relates to the technical field of intelligent televisions, in particular to a method and a device for testing an intelligent television.
Background
With the function of the smart television becoming more and more rich, a user can select to install different television application software in the process of using the smart television, and in the process of developing the television application software, in order to adapt to applications of various types of smart televisions and improve the use experience of the user, the television application is usually required to be tested.
In the prior art, in order to ensure that the application software can meet various configurations of the smart television, the test of the smart television is realized in a manual test mode. In the test process of the intelligent television, the application software in the television needs to be manually opened, various functions in the application software are tested one by one, the running state of the screen of the intelligent television is observed, and finally the test process and related test results are manually recorded. Therefore, when the number of the smart televisions to be tested is too large, the manual testing mode is not only inefficient, but also wastes a large amount of human resources.
Disclosure of Invention
In view of this, the invention provides a method for testing smart televisions, by which a plurality of smart televisions can be tested simultaneously, and the testing efficiency of the smart televisions is improved.
The invention also provides a testing device of the intelligent television, which is used for ensuring the realization and the application of the method in practice.
A smart television testing method comprises the following steps:
when each preset intelligent television needs to be tested, acquiring an application installation package for testing each intelligent television;
sending the application installation package to each intelligent television so as to install application software corresponding to the application installation package in each intelligent television;
acquiring configuration information corresponding to each intelligent television, and constructing a test script corresponding to each intelligent television based on each configuration information, wherein each test script comprises at least one test command;
determining a set reverse proxy server, simulating a test environment service corresponding to each intelligent television in the reverse proxy server, setting a plurality of request results corresponding to different parameter requests in each test environment service, wherein each test environment service is used for returning a request result corresponding to the parameter request when receiving the parameter request sent by the corresponding intelligent television through the reverse proxy server;
running each test script to send each test command in the test script corresponding to each intelligent television, so that after each intelligent television receives each test command, each intelligent television sends a parameter request corresponding to each test command to a test environment service corresponding to the intelligent television through the reverse proxy server;
after each test command is sent to each intelligent television, whether each intelligent television feeds back a response message responding to each test command within a preset time period is detected;
if the response message responding to each test command is fed back by each intelligent television within a preset time period, monitoring the interactive process of interaction between each intelligent television and each test environment service;
when the interaction between each intelligent television and each test environment service is finished, obtaining each test data generated in each intelligent television;
and analyzing and processing the test data corresponding to each intelligent television, generating a test report corresponding to each intelligent television, sending each test report to a preset server, and finishing the test of each intelligent television.
The above method, optionally, further includes:
if any response message which does not respond to any test command and is not fed back by the intelligent television exists in the preset time period, the test command which does not feed back the response message is sent to the intelligent television again.
Optionally, in the method, the constructing a test script corresponding to each smart television based on each piece of configuration information includes:
determining control equipment matched with each intelligent television and each key operation control arranged in each control equipment based on the configuration information corresponding to each intelligent television;
identifying each page operation control associated with the application software in the television page corresponding to each smart television by using a preset positioning module;
determining key operation contents corresponding to each key operation control in control equipment matched with each intelligent television, and generating each key operation command corresponding to each intelligent television through the key operation contents corresponding to each key operation control;
determining page operation content corresponding to each page operation control in a television page corresponding to each smart television, and generating each page operation command corresponding to each smart television according to the page operation content corresponding to each page operation control;
generating a test script corresponding to each intelligent television based on each key operation command and each page operation command corresponding to each intelligent television; and each key operation command and each page operation command are each test command in the test script.
Optionally, the simulating, in the reverse proxy server, a test environment service corresponding to each smart tv includes:
writing third-party service applications corresponding to the smart televisions by using a preset Django framework, and setting application addresses of the third-party service applications;
and reading the hosts file corresponding to the reverse proxy server, and modifying the hosts file based on the application address of each third-party service application so as to simulate the test environment service corresponding to each intelligent television in the reverse proxy server.
Optionally, in the method, the analyzing and processing the test data corresponding to each smart television to generate the test report corresponding to each smart television includes:
performing data cleaning on each test data corresponding to each smart television to obtain each cleaned test data;
acquiring a target result corresponding to each set request result in each test environment service;
analyzing each cleaned test data corresponding to each intelligence to obtain each test result of each intelligent television;
comparing each test result of each intelligent television with each target result in the corresponding test environment service to determine whether the intelligent television with abnormal test exists;
if any intelligent television with abnormal test exists, analyzing each test result of each intelligent television with abnormal test, determining the abnormal grade of each intelligent television with abnormal test, and generating an abnormal test report corresponding to each intelligent television with abnormal test based on the abnormal grade of each intelligent television and each test result;
generating a normal test report corresponding to each intelligent television which is not tested abnormally based on each test result of each intelligent television which is not tested abnormally;
and generating a test report corresponding to each intelligent television based on each abnormal test report and each normal test report.
An intelligent television testing device comprises:
the first acquisition unit is used for acquiring an application installation package for testing each preset intelligent television when the intelligent television needs to be tested;
the first sending unit is used for sending the application installation package to each intelligent television so as to install application software corresponding to the application installation package in each intelligent television;
the construction unit is used for acquiring configuration information corresponding to each intelligent television and constructing a test script corresponding to each intelligent television based on each configuration information, wherein each test script comprises at least one test command;
the simulation unit is used for determining a set reverse proxy server and simulating a test environment service corresponding to each intelligent television in the reverse proxy server, a plurality of different request results corresponding to parameter requests are set in each test environment service, and each test environment service is used for returning a request result corresponding to the parameter request when receiving the parameter request sent by the corresponding intelligent television through the reverse proxy server;
the running unit is used for running each test script so as to send each test command in the corresponding test script to each intelligent television, so that after each intelligent television receives each test command, a parameter request corresponding to each test command is sent to the test environment service corresponding to the intelligent television through the reverse proxy server;
the detection unit is used for detecting whether each intelligent television feeds back a response message responding to each test command within a preset time period after each test command is sent to each intelligent television;
the monitoring unit is used for monitoring the interaction process of each intelligent television and each test environment service if the intelligent television feeds back a response message responding to each test command in a preset time period;
the second obtaining unit is used for obtaining each test data generated in each intelligent television when each intelligent television finishes the interaction with each test environment service;
and the generating unit is used for analyzing and processing each test data corresponding to each intelligent television, generating a test report corresponding to each intelligent television, sending each test report to a preset server, and finishing the test of each intelligent television.
The above apparatus, optionally, further comprises:
and the second sending unit is used for sending the test command without the response message back to the smart television again if any response message which does not respond to any test command and is not fed back by the smart television exists in the preset time period.
The above apparatus, optionally, the building unit includes:
the determining subunit is configured to determine, based on the configuration information corresponding to each smart television, a control device matched with each smart television and each key operation control set in each control device;
the positioning subunit is used for applying a preset positioning module and identifying each page operation control associated with the application software in the television page corresponding to each smart television;
the first generation subunit is configured to determine key operation content corresponding to each key operation control in the control device matched with each smart television, and generate each key operation command corresponding to each smart television according to the key operation content corresponding to each key operation control;
the second generating subunit is configured to determine page operation content corresponding to each page operation control in a television page corresponding to each smart television, so as to generate each page operation command corresponding to each smart television through the page operation content corresponding to each page operation control;
the third generating subunit is configured to generate a test script corresponding to each smart television based on each key operation command and each page operation command corresponding to each smart television; and each key operation command and each page operation command are each test command in the test script.
The above apparatus, optionally, the simulation unit includes:
the setting subunit is used for applying a preset Django framework, compiling a third-party service application corresponding to each intelligent television and setting an application address of each third-party service application;
and the simulation subunit is used for reading the hosts file corresponding to the reverse proxy server, and modifying the hosts file based on the application address of each third-party service application so as to simulate the test environment service corresponding to each intelligent television in the reverse proxy server.
The above apparatus, optionally, the generating unit includes:
the processing subunit is used for performing data cleaning on each test data corresponding to each smart television to obtain each cleaned test data;
the acquisition subunit is configured to acquire a target result corresponding to each request result set in each test environment service;
the analysis subunit is used for analyzing each cleaned test data corresponding to each intelligent television to obtain each test result of each intelligent television;
the comparison subunit is used for comparing each test result of each intelligent television with each target result in the corresponding test environment service to determine whether the intelligent television with abnormal test exists;
the fourth generating subunit is configured to, if any intelligent television with abnormal test exists, analyze each test result of each intelligent television with abnormal test, determine an abnormal level of each intelligent television with abnormal test, and generate an abnormal test report corresponding to each intelligent television with abnormal test based on the abnormal level of each intelligent television and each test result;
the fifth generating subunit is configured to generate, based on each test result of each intelligent television which is not tested abnormally, a normal test report corresponding to each intelligent television which is not tested abnormally;
and the sixth generating subunit is configured to generate a test report corresponding to each smart television based on each of the abnormal test reports and the normal test reports.
A storage medium comprises stored instructions, wherein when the instructions are executed, a device where the storage medium is located is controlled to execute the intelligent television testing method.
An electronic device comprising a memory and one or more instructions, wherein the one or more instructions are stored in the memory and configured to be executed by the one or more processors to perform the smart television testing method.
Compared with the prior art, the invention has the following advantages:
the invention provides a smart television testing method, which comprises the following steps: and acquiring an application installation package, and sending the application installation package to each intelligent television to be tested. And constructing a test script corresponding to each intelligent television, and simulating a test environment service corresponding to each intelligent television in the set reverse proxy server. And running each test script to send each corresponding test command to each intelligent television. And detecting whether the smart television feeds back a response message corresponding to the test command within a preset time period, and if so, monitoring the interaction process of each smart television and the corresponding test environment service. And after the interaction is finished, acquiring each test data corresponding to each smart television, analyzing and processing each test data, generating a test report corresponding to each smart television, sending the test report to the server, and finishing the test. By applying the method provided by the invention, the testing efficiency of the intelligent television can be improved, and the labor cost is reduced.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a flowchart of a method for testing a smart television according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of an intelligent television testing system according to an embodiment of the present invention;
fig. 3 is a flowchart of another method of testing a smart television according to an embodiment of the present invention;
fig. 4 is a flowchart of another method of testing a smart television according to an embodiment of the present invention;
fig. 5 is a device structure diagram of an intelligent television testing device according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In this application, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions, and the terms "comprises", "comprising", or any other variation thereof are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The invention is operational with numerous general purpose or special purpose computing device environments or configurations. For example: personal computers, server computers, hand-held or portable devices, tablet-type devices, multi-processor apparatus, distributed computing environments that include any of the above devices or equipment, and the like.
The embodiment of the invention provides a smart television testing method, which can be applied to various system platforms, wherein an execution main body of the method can be a computer terminal or a processor of various mobile devices, and a flow chart of the method is shown in fig. 1 and specifically comprises the following steps:
s101: when the preset intelligent televisions need to be tested, the application installation packages for testing the intelligent televisions are obtained.
In the embodiment of the present invention, the application installation package may be an installation package of the latest version of the system application software of each smart television. When application software in each intelligent television needs to be updated or certain application software needs to be installed in each intelligent television, testing each intelligent television in advance is needed; or testing the intelligent television before the intelligent television is put into use.
S102: and sending the application installation package to each intelligent television so as to install the application software corresponding to the application installation package in each intelligent television.
In the embodiment of the invention, after receiving the application installation package, the smart television installs the application software corresponding to the application installation package.
S103: and acquiring configuration information corresponding to each intelligent television, and constructing a test script corresponding to each intelligent television based on each configuration information.
Wherein each of the test scripts contains at least one test command.
In the embodiment of the present invention, the configuration information corresponding to the smart television includes information of the MAC address, IP, television model, number, television function, supported network interface, and supporting device of the smart television. The information of the matched equipment comprises the set top box, television remote control equipment and other equipment matched with the intelligent television.
It should be noted that each test command in each test script is a related instruction for simulating a user to perform remote control operation and television control operation on a television control in the process of actually applying the smart television.
S104: and determining the set reverse proxy server, and simulating the test environment service corresponding to each intelligent television in the reverse proxy server.
And each test environment service is used for returning the request result corresponding to the parameter request when receiving the parameter request sent by the corresponding smart television via the reverse proxy server.
In the embodiment of the invention, the reverse proxy server is an interface for interaction between each intelligent television and each test environment service. When the smart television tests the application software, a server side interacting with the smart television does not need to be set, and only a parameter request needs to be sent to the reverse proxy server. The method comprises the steps that a test environment service corresponding to each intelligent television is arranged in a reverse proxy server, when the intelligent television sends a parameter request to the reverse proxy server, the reverse proxy server sends the parameter request to the test environment service corresponding to the intelligent television, and the test environment service feeds back a corresponding request result according to the parameter request sent by the reverse proxy server.
S105: and running each test script to send each test command in the test script corresponding to each intelligent television, so that after each intelligent television receives each test command, the reverse proxy server sends a parameter request corresponding to each test command to the test environment service corresponding to the intelligent television.
In the embodiment of the invention, after the reverse proxy server is constructed and the test environment service corresponding to each intelligent television is simulated in the reverse proxy server, the preset trigger is used for triggering and running the test script corresponding to each intelligent television. The trigger may be a githhook specifically, and the trigger is mainly used for triggering a test script to start testing the smart television after a latest installation package is constructed and generated. And in the process of running each test script, each test command in the corresponding test script is respectively sent to each smart television. And after receiving any one test command, the intelligent television sends a parameter request corresponding to the test command to the reverse proxy server according to the currently received test command.
It should be noted that each test command in each test script has its corresponding execution sequence, and when each test command is sent to the smart television, the test commands are sent in sequence according to the execution process of its corresponding test script.
S106: after each test command is sent to each intelligent television, whether each intelligent television feeds back a response message responding to each test command in a preset time period is detected.
In the embodiment of the invention, after receiving the test command, the smart television needs to feed back the response message that the test command has been received, but in the process of sending the test command to each smart television, the smart television may not receive the test command due to other reasons such as network abnormality. Therefore, after the test command is sent to the smart television corresponding to the test command, whether the smart television feeds back the response message corresponding to the test command within a preset time period needs to be detected.
S107: and if the response message responding to each test command is fed back by each intelligent television within a preset time period, monitoring the interactive process of interaction between each intelligent television and each test environment service.
In the embodiment of the invention, if the response message fed back by the smart television is received in the preset time period, the smart television is represented to have received the test command. And after the intelligent televisions are determined to have received the test commands, monitoring the interaction process of interaction between each intelligent television and the corresponding test environment.
For each intelligent television, the interactive process of the intelligent television and the corresponding test environment service interaction is as follows: when the smart television receives the test command, generating a parameter request corresponding to the test command, and sending the parameter request to a reverse proxy server corresponding to the smart television. After receiving a parameter request of the intelligent television, the reverse proxy server forwards the parameter request to a test environment service corresponding to the intelligent television; after receiving the parameter request, the testing environment service analyzes the parameter request to obtain the identification information contained in the parameter request and corresponding to the testing command, and returns the corresponding parameter to the smart television according to the identification information, wherein the parameter returned by the testing environment service is a request result.
S108: and when the interaction between each intelligent television and each test environment service is finished, obtaining each test data generated in each intelligent television.
In the implementation of the invention, each test data generated in the smart television is a test result obtained by the smart television executing corresponding operation according to each received request result. And when the interaction between any intelligent television and the corresponding test environment service is finished, representing that the test script corresponding to the intelligent television is finished to run. And when all the intelligent televisions finish interaction with the corresponding test environment services, acquiring each test data generated in each intelligent television.
S109: and analyzing and processing the test data corresponding to each intelligent television, generating a test report corresponding to each intelligent television, sending each test report to a preset server, and finishing the test of each intelligent television.
In the embodiment of the invention, each test data corresponding to each smart television is analyzed and processed, specifically, whether each test data meets the set test condition, whether corresponding operation is executed according to the request result sent by the test environment service, whether the operation process is correct and the like are analyzed. Meanwhile, the test data is subjected to processing such as strengthening and denoising. After data are analyzed and processed, a test report corresponding to each smart television is generated, the test report is sent to a preset server, the server maintains the test report, and the test of each smart television is finished.
In the intelligent television testing method provided by the embodiment of the invention, when each intelligent television needs to be tested, the application installation package for testing the intelligent television is obtained and connected with each intelligent television so as to send the application installation package to each intelligent television. And after receiving the application installation package, the smart television installs corresponding application software. And if the application software is installed in the smart television, updating the application software according to the application installation package. The method comprises the steps of obtaining configuration information of each intelligent television, compiling a test script corresponding to each intelligent television through the configuration information, and constructing corresponding test scripts aiming at different intelligent televisions due to the fact that the configuration information of each intelligent television is different in the development process, so that the intelligent televisions are tested through the test scripts. Before a test script corresponding to each intelligent television is run, the reverse proxy server corresponding to each intelligent television is determined to be constructed, and the intelligent television can send a corresponding parameter request to the reverse proxy server when executing specified operation on application software so as to obtain a request result and execute corresponding operation. A plurality of test environment services are simulated in the reverse proxy server, and each test environment service corresponds to each intelligent television one by one and is used for providing a corresponding request result for the intelligent television. And after the reverse proxy server is constructed and each test environment service is simulated, each test script is operated. And in the process of running each test script, sequentially sending each test command corresponding to the corresponding test script to each smart television according to the specific execution process of the test script. After the test commands are sent to the intelligent televisions, whether the intelligent televisions feed back the response messages corresponding to the test commands in a preset time period or not is detected. And if the feedback is received, monitoring the interactive process of the intelligent television interacting with the corresponding test environment. When the interaction between each intelligent television and the corresponding test environment service is finished, each test data generated in each intelligent television is obtained, each test data is analyzed and processed to generate a test report corresponding to each intelligent television, the test report is sent to a preset server, the server maintains the test report, and the test process of the intelligent televisions is finished.
It should be noted that, in the present invention, after the test report is sent to the server, the maintenance staff of the smart television obtains the test report through the server, and determines the relevant information of each smart television in the test process according to the test data in the test report.
It should be further noted that the smart television sends a corresponding parameter request to the reverse proxy server according to the received test command, for example, if the test command sent to the smart television is "screen capture", the smart television generates a corresponding parameter request according to the "screen capture" command and sends the parameter request to the reverse proxy server. And the reverse proxy server forwards the parameter request to a test environment service corresponding to the intelligent television. After receiving the parameter request corresponding to the screen capture, the testing environment service returns 404 an error to the smart television if the parameter corresponding to the set parameter request corresponding to the screen capture is a return error, and the 404 error is a request result. And the intelligent television performs 404 an error prompt operation according to the request result. And if the test command sent to the intelligent television is 'screen recording', the intelligent television generates a corresponding parameter request according to the 'screen recording' command and sends the parameter request to the reverse proxy server. The reverse proxy server forwards the parameter request to a test environment corresponding to the intelligent television. After receiving the parameter request corresponding to the screen recording, the testing environment service returns a request result for starting the screen recording to the smart television if the parameter corresponding to the set parameter request corresponding to the screen recording is the screen recording starting. And the intelligent television carries out screen recording operation according to the request result.
By applying the method provided by the embodiment of the invention, the testing efficiency of the intelligent television can be improved, and the labor cost can be reduced.
In the method provided by the embodiment of the present invention, after each test command corresponding to each smart television is sent to each smart television, it is required to detect whether the smart television feeds back a response message, and specifically, if a response message that does not respond to any test command is not fed back by any smart television within a preset time period, a test command that does not feed back a response message is sent to the smart television again.
It can be understood that, in the process of sending each test command to the smart television, each test command needs to be sent to the smart television in sequence according to the running process of the test script, and after sending a test instruction to the smart television each time, it needs to detect whether the smart television feeds back a response message corresponding to the test command within a preset time period. If the smart television does not feed back the response message within the preset time period, the test command is determined to be failed to send, and the test command needs to be sent to the smart television again, so that the smart television can execute corresponding operation according to the test command.
Referring to fig. 2, corresponding to the smart television testing method provided in the foregoing implementation, the present invention provides a smart television testing system, which includes a testing system 200, a smart television cluster 300, and a universal server 400; the test system 200 comprises a test server 201, a reverse proxy server 202 and a log server 203, and the intelligent television cluster 300 comprises a plurality of intelligent televisions 301. The general server 400 is a server that receives the test report in S109.
The test server 201 is used for connecting each smart television 301 and sending the application installation package to each smart television 301; the test script corresponding to each smart television 301 is constructed, and when each test script is run, each test command in the test script corresponding to each smart television 301 is sent to each smart television 301, and a response message corresponding to each test command fed back by the smart television 301 is received. The reverse proxy server 202 is configured to simulate a test environment service corresponding to each smart television 301 after determining that each smart television 301 installs application software corresponding to an application installation package, use the reverse proxy server 202 as an interface interacting with each smart television, receive a parameter request sent by the smart television 301, forward the parameter request to the test environment service corresponding to the smart television 301, and return a corresponding request result through the test environment service. The log server 203 is configured to monitor an interaction process between each smart television 301 and each test environment service, acquire each test data in each smart television 301 after the interaction is completed, analyze and process each test data, generate a corresponding test report, and send the test report to the general server 400. The smart television 301 is used for installing application software corresponding to the application installation package after receiving the application installation package; after receiving a test command sent by the test server 201, returning a response message corresponding to the test command; generating a corresponding parameter request according to the test command, and sending the parameter request to the reverse proxy server 202; when receiving the request result returned by the reverse proxy server 202, executing the corresponding operation according to the request result, and generating the corresponding test data according to the operation process. The general server 400 is configured to receive a test report, maintain the test report, and receive a request for processing, such as querying the test report, by a maintenance worker. By the system provided by the embodiment of the invention, the test efficiency of testing the intelligent television can be accelerated.
The method provided in the embodiment of the present invention, based on the content of S103 and the process of constructing the test script corresponding to each smart television based on each piece of configuration information, as shown in fig. 3, may specifically include:
s501: and determining control equipment matched with each intelligent television and each key operation control arranged in each control equipment based on the configuration information corresponding to each intelligent television.
In the embodiment of the present invention, the configuration information corresponding to the smart television includes information of the MAC address, IP, television model, number, television function, supported network interface, and supporting device of the smart television. The intelligent television comprises a remote control device, a set top box and other devices. The control equipment is a remote controller matched with the intelligent television, and each key operation control piece arranged on the control equipment is a button on the remote controller.
It should be noted that in the embodiment of the present invention, all the key operation controls of the control device of the smart television may be obtained and identified through the uiautomation. The UiAutomator is a UI testing frame written by Java and promoted by Google, and the content and the path of each element control of the page are analyzed by scanning and analyzing the page through the frame.
S502: and identifying each page operation control associated with the application software in the television page corresponding to each intelligent television by using a preset positioning module.
In the embodiment of the invention, the positioning module identifies the page operation control of the television page through a plurality of positioning methods such as id, text information, xpath and the like. Specifically, the method for the UiAutomator to position the control on the television page mainly comprises the following steps:
1. positioning a control ID, wherein the positioning method is find _ element _ by _ ID ();
2. positioning through text information, wherein the positioning method is find _ element _ by _ name ();
3. positioning by an xpath method, wherein the positioning method is find _ element _ by _ xpath ();
4. positioning through the classname of the control, wherein the method is find _ element _ by _ class _ name ();
5. and positioning through the android automator, wherein the positioning method is find _ element _ by _ android _ automator ().
The page operation control comprises a television page picture, a button, a file, an input box, a pop-up box and the like.
S503: and determining the key operation content corresponding to each key operation control in the control equipment matched with each intelligent television, and generating each key operation command corresponding to each intelligent television according to the key operation content corresponding to each key operation control.
In the embodiment of the present invention, the operation content corresponding to each key operation control in the control device includes on, off, down, up, back, main menu, and the like. And generating a corresponding key operation command according to each key operation content.
It should be noted that each key operation command may specifically be an adb command. The ADB (Android Debug Bridge) is used for connecting the smart tv to perform operation processing according to the IP address of the smart tv.
S504: determining page operation content corresponding to each page operation control in a television page corresponding to each smart television, and generating each page operation command corresponding to each smart television according to the page operation content corresponding to each page operation control.
In the embodiment of the present invention, the page operation content corresponding to each page operation control includes opening a barrage, closing the barrage, selecting definition, switching, and the like. And generating a corresponding page operation command according to each key operation content.
It should be noted that the page operation command may specifically be an adb command.
S505: generating a test script corresponding to each intelligent television based on each key operation command and each page operation command corresponding to each intelligent television; and each key operation command and each page operation command are each test command in the test script.
In the embodiment of the invention, each key operation command and each page operation command can be written through a Python language, and then a Python script, each key operation command and each page operation command are written to write a test script corresponding to the smart television.
It should be noted that the compiling process of the test script is specifically compiling in an Appium test framework, and since most of the systems of televisions on the market are Android systems, the selected automatic test framework is Appium.
Further, each test command of the test script corresponding to each smart television includes a key operation command of the television remote control device for simulating key operation, and each key operation command includes: a key _ ENTER key, a key _ DPAD _ CENTER determination key, a key _ DPAD _ UP navigation key, a key _ DPAD _ DOWN navigation key, a key _ DPAD _ LEFT navigation key, a key _ DPAD _ RIGHT navigation key, a key _ PAGE _ UP PAGE-UP key, a key _ PAGE _ DOWN PAGE-DOWN key, etc.
In the intelligent television testing method provided by the embodiment of the invention, the application testing framework is applied to realize the corresponding operation of the television page and the control equipment of the intelligent television. Specifically, based on the configuration information of each smart television, the control device matched with each smart television and the key operation control of each control device are determined, and a command corresponding to each key is generated through the key operation content corresponding to each key operation control. And when the page operation control is identified, the application positioning module is operated by each page in the television page, and generates a corresponding page operation command according to the page operation content corresponding to each page operation control. Each key operation command and each page operation command corresponding to the smart television are test commands for testing the smart television, and each test command is used for simulating a process of sending an operation instruction to the smart television when a user applies the application software. And generating a test script corresponding to each intelligent television by applying a Python language according to each test command corresponding to each intelligent television.
By applying the method provided by the embodiment of the invention, the corresponding test script is generated according to the simulation control equipment and the mode of controlling the television page, so that the operation of a real user is simulated, and the test efficiency of the intelligent television is improved.
In the method provided in the embodiment of the present invention, based on the content of the above S104, the simulating, in the reverse proxy server, the test environment service corresponding to each smart television may specifically include:
and writing third-party service application corresponding to each intelligent television by using a preset Django framework, and setting an application address of each third-party service application.
And reading the hosts file corresponding to the reverse proxy server, and modifying the hosts file based on the application address of each third-party service application so as to simulate the test environment service corresponding to each intelligent television in the reverse proxy server.
In the intelligent television testing method provided by the embodiment of the invention, the reverse proxy server is a nginx proxy server built through nginx configuration. And the reverse proxy server is used as an interface of the parameter request, and different request results are returned according to different parameter requests. And writing third-party service applications corresponding to each intelligent television by using the Django framework, describing results corresponding to different parameters of the corresponding intelligent television in each third-party service application, and setting corresponding application addresses. After the application address of each third-party service application is obtained, testing environment services corresponding to each intelligent television are generated by modifying hosts files in the reverse proxy server. The hosts file has the functions of establishing association between the domain name and the IP, modifying the domain name in the hosts file after determining the application address of the third-party service application, enabling each third-party service application to be associated to the reverse proxy server, and simulating test environment service interacting with the smart television for each third-party service application.
By applying the method provided by the embodiment of the invention, a more complex test scene can be provided for the intelligent television through a mode of simulating the test environment service, and the test of the intelligent television can be more comprehensively realized.
In the method provided in the embodiment of the present invention, based on the content of S109, the process of analyzing and processing each test data corresponding to each smart television to generate a test report corresponding to each smart television is shown in fig. 4, and specifically may include:
s601: and performing data cleaning on each test data corresponding to each smart television to obtain each cleaned test data.
In the embodiment of the invention, data cleaning is a series of processes of carrying out de-duplication and de-noising on data and checking data consistency.
S602: and acquiring a target result corresponding to each set request result in each test environment service.
In the embodiment of the invention, each request result corresponds to a standard operation target result in the test environment service. For example, if the request result of the parameter request corresponding to the corresponding "screen capture" in the test environment is a return 404 error, the target result of the operation corresponding to the request result is a television page display 404 error.
S603: and analyzing the cleaned test data corresponding to each intelligent television to obtain each test result of each intelligent television.
In the embodiment of the invention, the operation result of operating the application software after the intelligent television receives the request result every time is the test result obtained through the cleaned test data.
S604: and comparing each test result of each intelligent television with each target result in the corresponding test environment service to determine whether the intelligent television with abnormal test exists.
In the embodiment of the invention, the test result of the intelligent television after actual operation is compared with the target result of the original standard operation to determine whether the intelligent television operates correctly, so as to determine whether the intelligent television tests abnormally.
S605: if any intelligent television with abnormal test exists, analyzing each test result of each intelligent television with abnormal test, determining the abnormal grade of each intelligent television with abnormal test, and generating an abnormal test report corresponding to each intelligent television with abnormal test based on the abnormal grade of each intelligent television and each test result.
In the embodiment of the invention, the abnormal grade of the intelligent television is graded according to each corresponding test result, the abnormal grade of the intelligent television is judged according to the set judgment standard, if most of the test results of the intelligent television are inconsistent with the corresponding target results or the results have larger difference, the abnormal grade of the intelligent television is higher, otherwise, the grade is lower. For the smart television with the lower abnormal level, there may be a certain test result similar to the set target result, but the original target result is not affected, and the smart television may be processed differently, for example: after receiving 404 the request result with the error, the smart television does not display 404 the error on the television page, but directly prompts that the operation cannot be performed, and then can judge that the test result is similar to the target result, and the corresponding abnormal level is lower.
S606: and generating a normal test report corresponding to each intelligent television which is not tested abnormally based on each test result of each intelligent television which is not tested abnormally.
S607: and generating a test report corresponding to each intelligent television based on each abnormal test report and each normal test report.
In the embodiment of the invention, the test reports of the intelligent televisions comprise abnormal test reports and normal test reports.
In the intelligent television testing method provided by the embodiment of the invention, after the testing of each intelligent television is finished, whether the intelligent television is abnormal in the actual operation process needs to be analyzed according to the testing result of the intelligent television, after each testing data of each intelligent television is cleaned, the testing result in each testing data is analyzed, the target result is compared, the intelligent television with the abnormal testing is selected, the abnormal grade corresponding to each intelligent television with the abnormal testing is determined, a corresponding abnormal testing report is generated, and similarly, each intelligent television without the abnormal testing also generates a corresponding normal testing report, and the two testing reports are combined to generate the final testing report. After sending the test report to the server, the maintenance personnel can choose to view the normal test report or the abnormal test report in the test report.
By applying the method provided by the embodiment of the invention, the test report corresponding to each intelligent television is generated, so that each intelligent television is maintained according to the test report.
The specific implementation procedures and derivatives thereof of the above embodiments are within the scope of the present invention.
Corresponding to the method described in fig. 1, an embodiment of the present invention further provides a smart television testing apparatus, which is used to implement the method in fig. 1 specifically, and the smart television testing apparatus provided in the embodiment of the present invention may be applied to a computer terminal or various mobile devices, and a schematic structural diagram of the smart television testing apparatus is shown in fig. 5, and specifically includes:
the first obtaining unit 701 is configured to obtain an application installation package for testing each preset smart television when each preset smart television needs to be tested;
a first sending unit 702, configured to send the application installation package to each smart television, so as to install application software corresponding to the application installation package in each smart television;
the constructing unit 703 is configured to obtain configuration information corresponding to each smart television, and construct a test script corresponding to each smart television based on each configuration information, where each test script includes at least one test command;
the simulation unit 704 is configured to determine a set reverse proxy server, and simulate a test environment service corresponding to each smart television in the reverse proxy server, where each test environment service sets a plurality of different request results corresponding to parameter requests, and each test environment service is configured to return a request result corresponding to the parameter request when receiving a parameter request sent by the corresponding smart television via the reverse proxy server;
the running unit 705 is configured to run each test script to send each test command in the corresponding test script to each smart television, so that after each smart television receives each test command, the reverse proxy server sends a parameter request corresponding to each test command to a test environment service corresponding to the smart television;
the detecting unit 706 is configured to detect whether each smart television feeds back a response message responding to each test command within a preset time period after each test command is sent to each smart television;
a monitoring unit 707, configured to monitor an interaction process of interaction between each smart television and each test environment service if, within a preset time period, each smart television has fed back a response message responding to each test command;
a second obtaining unit 708, configured to obtain, when each smart television finishes interacting with each test environment service, each test data generated in each smart television;
the generating unit 709 is configured to analyze and process each test data corresponding to each smart television, generate a test report corresponding to each smart television, send each test report to a preset server, and end the test on each smart television.
In the intelligent television testing device provided by the embodiment of the invention, when each intelligent television needs to be tested, the application installation package for testing the intelligent television is obtained, and the application installation package is sent to each intelligent television. And installing corresponding application software for the smart television. And acquiring the configuration information of each intelligent television, and compiling the test script corresponding to each intelligent television according to the configuration information. And before the test script corresponding to each intelligent television is run, determining the constructed reverse proxy server corresponding to each intelligent television. A plurality of test environment services are simulated in the reverse proxy server, and each test environment service corresponds to each intelligent television one by one and is used for providing a corresponding request result for the intelligent television. And after the reverse proxy server is constructed and each test environment service is simulated, each test script is operated. And in the process of running each test script, sequentially sending each test command corresponding to the corresponding test script to each smart television according to the specific execution process of the test script. After the test commands are sent to the intelligent televisions, whether the intelligent televisions feed back the response messages corresponding to the test commands in a preset time period or not is detected. And if the feedback is received, monitoring the interactive process of the intelligent television interacting with the corresponding test environment. When the interaction between each intelligent television and the corresponding test environment service is finished, each test data generated in each intelligent television is obtained, each test data is analyzed and processed to generate a test report corresponding to each intelligent television, the test report is sent to a preset server, the server maintains the test report, and the test process of the intelligent televisions is finished.
By applying the device provided by the embodiment of the invention, the testing efficiency of the intelligent television can be improved, and the labor cost is reduced.
The device provided by the embodiment of the invention further comprises:
and the second sending unit is used for sending the test command without the response message back to the smart television again if any response message which does not respond to any test command and is not fed back by the smart television exists in the preset time period.
In the apparatus provided in the embodiment of the present invention, the constructing unit 703 includes:
the determining subunit is configured to determine, based on the configuration information corresponding to each smart television, a control device matched with each smart television and each key operation control set in each control device;
the positioning subunit is used for applying a preset positioning module and identifying each page operation control associated with the application software in the television page corresponding to each smart television;
the first generation subunit is configured to determine key operation content corresponding to each key operation control in the control device matched with each smart television, and generate each key operation command corresponding to each smart television according to the key operation content corresponding to each key operation control;
the second generating subunit is configured to determine page operation content corresponding to each page operation control in a television page corresponding to each smart television, so as to generate each page operation command corresponding to each smart television through the page operation content corresponding to each page operation control;
the third generating subunit is configured to generate a test script corresponding to each smart television based on each key operation command and each page operation command corresponding to each smart television; and each key operation command and each page operation command are each test command in the test script.
In the apparatus provided in the embodiment of the present invention, the simulation unit 704 includes:
the setting subunit is used for applying a preset Django framework, compiling a third-party service application corresponding to each intelligent television and setting an application address of each third-party service application;
and the simulation subunit is used for reading the hosts file corresponding to the reverse proxy server, and modifying the hosts file based on the application address of each third-party service application so as to simulate the test environment service corresponding to each intelligent television in the reverse proxy server.
In the apparatus provided in the embodiment of the present invention, the generating unit 709 includes:
the processing subunit is used for performing data cleaning on each test data corresponding to each smart television to obtain each cleaned test data;
the acquisition subunit is configured to acquire a target result corresponding to each request result set in each test environment service;
the analysis subunit is used for analyzing each cleaned test data corresponding to each intelligent television to obtain each test result of each intelligent television;
the comparison subunit is used for comparing each test result of each intelligent television with each target result in the corresponding test environment service to determine whether the intelligent television with abnormal test exists;
the fourth generating subunit is configured to, if any intelligent television with abnormal test exists, analyze each test result of each intelligent television with abnormal test, determine an abnormal level of each intelligent television with abnormal test, and generate an abnormal test report corresponding to each intelligent television with abnormal test based on the abnormal level of each intelligent television and each test result;
the fifth generating subunit is configured to generate, based on each test result of each intelligent television which is not tested abnormally, a normal test report corresponding to each intelligent television which is not tested abnormally;
and the sixth generating subunit is configured to generate a test report corresponding to each smart television based on each of the abnormal test reports and the normal test reports.
The specific working processes of each unit and sub-unit in the intelligent television testing device disclosed in the above embodiment of the present invention can refer to the corresponding contents in the intelligent television testing method disclosed in the above embodiment of the present invention, and are not described herein again.
The embodiment of the invention also provides a storage medium, wherein the storage medium comprises stored instructions, and when the instructions are executed, the equipment where the storage medium is located is controlled to execute the intelligent television testing method.
An electronic device is provided in an embodiment of the present invention, and the structural diagram of the electronic device is shown in fig. 6, which specifically includes a memory 801 and one or more instructions 802, where the one or more instructions 802 are stored in the memory 801 and configured to be executed by the one or more processors 803 to perform the following operations:
when each preset intelligent television needs to be tested, acquiring an application installation package for testing each intelligent television;
sending the application installation package to each intelligent television so as to install application software corresponding to the application installation package in each intelligent television;
acquiring configuration information corresponding to each intelligent television, and constructing a test script corresponding to each intelligent television based on each configuration information, wherein each test script comprises at least one test command;
determining a set reverse proxy server, simulating a test environment service corresponding to each intelligent television in the reverse proxy server, setting a plurality of request results corresponding to different parameter requests in each test environment service, wherein each test environment service is used for returning a request result corresponding to the parameter request when receiving the parameter request sent by the corresponding intelligent television through the reverse proxy server;
running each test script to send each test command in the test script corresponding to each intelligent television, so that after each intelligent television receives each test command, each intelligent television sends a parameter request corresponding to each test command to a test environment service corresponding to the intelligent television through the reverse proxy server;
after each test command is sent to each intelligent television, whether each intelligent television feeds back a response message responding to each test command within a preset time period is detected;
if the response message responding to each test command is fed back by each intelligent television within a preset time period, monitoring the interactive process of interaction between each intelligent television and each test environment service;
when the interaction between each intelligent television and each test environment service is finished, obtaining each test data generated in each intelligent television;
and analyzing and processing the test data corresponding to each intelligent television, generating a test report corresponding to each intelligent television, sending each test report to a preset server, and finishing the test of each intelligent television.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, the system or system embodiments are substantially similar to the method embodiments and therefore are described in a relatively simple manner, and reference may be made to some of the descriptions of the method embodiments for related points. The above-described system and system embodiments are only illustrative, wherein the units described as separate parts may or may not be physically separate, and the parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both.
To clearly illustrate this interchangeability of hardware and software, various illustrative components and steps have been described above generally in terms of their functionality. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A smart television testing method is characterized by comprising the following steps:
when each preset intelligent television needs to be tested, acquiring an application installation package for testing each intelligent television;
sending the application installation package to each intelligent television so as to install application software corresponding to the application installation package in each intelligent television;
acquiring configuration information corresponding to each intelligent television, and constructing a test script corresponding to each intelligent television based on each configuration information, wherein each test script comprises at least one test command;
determining a set reverse proxy server, simulating a test environment service corresponding to each intelligent television in the reverse proxy server, setting a plurality of request results corresponding to different parameter requests in each test environment service, wherein each test environment service is used for returning a request result corresponding to the parameter request when receiving the parameter request sent by the corresponding intelligent television through the reverse proxy server;
running each test script to send each test command in the test script corresponding to each intelligent television, so that after each intelligent television receives each test command, each intelligent television sends a parameter request corresponding to each test command to a test environment service corresponding to the intelligent television through the reverse proxy server;
after each test command is sent to each intelligent television, whether each intelligent television feeds back a response message responding to each test command within a preset time period is detected;
if the response message responding to each test command is fed back by each intelligent television within a preset time period, monitoring the interactive process of interaction between each intelligent television and each test environment service;
when the interaction between each intelligent television and each test environment service is finished, obtaining each test data generated in each intelligent television;
and analyzing and processing the test data corresponding to each intelligent television, generating a test report corresponding to each intelligent television, sending each test report to a preset server, and finishing the test of each intelligent television.
2. The method of claim 1, further comprising:
if any response message which does not respond to any test command and is not fed back by the intelligent television exists in the preset time period, the test command which does not feed back the response message is sent to the intelligent television again.
3. The method according to claim 1, wherein the constructing a test script corresponding to each smart television based on each piece of configuration information comprises:
determining control equipment matched with each intelligent television and each key operation control arranged in each control equipment based on the configuration information corresponding to each intelligent television;
identifying each page operation control associated with the application software in the television page corresponding to each smart television by using a preset positioning module;
determining key operation contents corresponding to each key operation control in control equipment matched with each intelligent television, and generating each key operation command corresponding to each intelligent television through the key operation contents corresponding to each key operation control;
determining page operation content corresponding to each page operation control in a television page corresponding to each smart television, and generating each page operation command corresponding to each smart television according to the page operation content corresponding to each page operation control;
generating a test script corresponding to each intelligent television based on each key operation command and each page operation command corresponding to each intelligent television; and each key operation command and each page operation command are each test command in the test script.
4. The method according to claim 1, wherein simulating each of the smart tv corresponding test environment services in the reverse proxy server comprises:
writing third-party service applications corresponding to the smart televisions by using a preset Django framework, and setting application addresses of the third-party service applications;
and reading the hosts file corresponding to the reverse proxy server, and modifying the hosts file based on the application address of each third-party service application so as to simulate the test environment service corresponding to each intelligent television in the reverse proxy server.
5. The method according to claim 1, wherein the analyzing and processing the test data corresponding to each smart television to generate a test report corresponding to each smart television comprises:
performing data cleaning on each test data corresponding to each smart television to obtain each cleaned test data;
acquiring a target result corresponding to each set request result in each test environment service;
analyzing each cleaned test data corresponding to each intelligence to obtain each test result of each intelligent television;
comparing each test result of each intelligent television with each target result in the corresponding test environment service to determine whether the intelligent television with abnormal test exists;
if any intelligent television with abnormal test exists, analyzing each test result of each intelligent television with abnormal test, determining the abnormal grade of each intelligent television with abnormal test, and generating an abnormal test report corresponding to each intelligent television with abnormal test based on the abnormal grade of each intelligent television and each test result;
generating a normal test report corresponding to each intelligent television which is not tested abnormally based on each test result of each intelligent television which is not tested abnormally;
and generating a test report corresponding to each intelligent television based on each abnormal test report and each normal test report.
6. The utility model provides an intelligent television testing arrangement which characterized in that includes:
the first acquisition unit is used for acquiring an application installation package for testing each preset intelligent television when the intelligent television needs to be tested;
the first sending unit is used for sending the application installation package to each intelligent television so as to install application software corresponding to the application installation package in each intelligent television;
the construction unit is used for acquiring configuration information corresponding to each intelligent television and constructing a test script corresponding to each intelligent television based on each configuration information, wherein each test script comprises at least one test command;
the simulation unit is used for determining a set reverse proxy server and simulating a test environment service corresponding to each intelligent television in the reverse proxy server, a plurality of different request results corresponding to parameter requests are set in each test environment service, and each test environment service is used for returning a request result corresponding to the parameter request when receiving the parameter request sent by the corresponding intelligent television through the reverse proxy server;
the running unit is used for running each test script so as to send each test command in the corresponding test script to each intelligent television, so that after each intelligent television receives each test command, a parameter request corresponding to each test command is sent to the test environment service corresponding to the intelligent television through the reverse proxy server;
the detection unit is used for detecting whether each intelligent television feeds back a response message responding to each test command within a preset time period after each test command is sent to each intelligent television;
the monitoring unit is used for monitoring the interaction process of each intelligent television and each test environment service if the intelligent television feeds back a response message responding to each test command in a preset time period;
the second obtaining unit is used for obtaining each test data generated in each intelligent television when each intelligent television finishes the interaction with each test environment service;
and the generating unit is used for analyzing and processing each test data corresponding to each intelligent television, generating a test report corresponding to each intelligent television, sending each test report to a preset server, and finishing the test of each intelligent television.
7. The apparatus of claim 6, further comprising:
and the second sending unit is used for sending the test command without the response message back to the smart television again if any response message which does not respond to any test command and is not fed back by the smart television exists in the preset time period.
8. The apparatus of claim 6, wherein the building unit comprises:
the determining subunit is configured to determine, based on the configuration information corresponding to each smart television, a control device matched with each smart television and each key operation control set in each control device;
the positioning subunit is used for applying a preset positioning module and identifying each page operation control associated with the application software in the television page corresponding to each smart television;
the first generation subunit is configured to determine key operation content corresponding to each key operation control in the control device matched with each smart television, and generate each key operation command corresponding to each smart television according to the key operation content corresponding to each key operation control;
the second generating subunit is configured to determine page operation content corresponding to each page operation control in a television page corresponding to each smart television, so as to generate each page operation command corresponding to each smart television through the page operation content corresponding to each page operation control;
the third generating subunit is configured to generate a test script corresponding to each smart television based on each key operation command and each page operation command corresponding to each smart television; and each key operation command and each page operation command are each test command in the test script.
9. The apparatus of claim 6, wherein the analog unit comprises:
the setting subunit is used for applying a preset Django framework, compiling a third-party service application corresponding to each intelligent television and setting an application address of each third-party service application;
and the simulation subunit is used for reading the hosts file corresponding to the reverse proxy server, and modifying the hosts file based on the application address of each third-party service application so as to simulate the test environment service corresponding to each intelligent television in the reverse proxy server.
10. The apparatus of claim 6, wherein the generating unit comprises:
the processing subunit is used for performing data cleaning on each test data corresponding to each smart television to obtain each cleaned test data;
the acquisition subunit is configured to acquire a target result corresponding to each request result set in each test environment service;
the analysis subunit is used for analyzing each cleaned test data corresponding to each intelligent television to obtain each test result of each intelligent television;
the comparison subunit is used for comparing each test result of each intelligent television with each target result in the corresponding test environment service to determine whether the intelligent television with abnormal test exists;
the fourth generating subunit is configured to, if any intelligent television with abnormal test exists, analyze each test result of each intelligent television with abnormal test, determine an abnormal level of each intelligent television with abnormal test, and generate an abnormal test report corresponding to each intelligent television with abnormal test based on the abnormal level of each intelligent television and each test result;
the fifth generating subunit is configured to generate, based on each test result of each intelligent television which is not tested abnormally, a normal test report corresponding to each intelligent television which is not tested abnormally;
and the sixth generating subunit is configured to generate a test report corresponding to each smart television based on each of the abnormal test reports and the normal test reports.
CN202110161978.6A 2021-02-05 2021-02-05 Smart television testing method and device Active CN112911283B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110161978.6A CN112911283B (en) 2021-02-05 2021-02-05 Smart television testing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110161978.6A CN112911283B (en) 2021-02-05 2021-02-05 Smart television testing method and device

Publications (2)

Publication Number Publication Date
CN112911283A true CN112911283A (en) 2021-06-04
CN112911283B CN112911283B (en) 2023-03-24

Family

ID=76122871

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110161978.6A Active CN112911283B (en) 2021-02-05 2021-02-05 Smart television testing method and device

Country Status (1)

Country Link
CN (1) CN112911283B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113590393A (en) * 2021-07-08 2021-11-02 深圳Tcl新技术有限公司 Intelligent equipment testing method and device, electronic equipment and storage medium
CN114253159A (en) * 2021-12-10 2022-03-29 安徽中家智锐科技有限公司 Control method and system for electric appliance test environment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103473174A (en) * 2013-09-10 2013-12-25 四川长虹电器股份有限公司 Cloud testing method for application software of intelligent televisions
US20130346476A1 (en) * 2012-06-21 2013-12-26 Go Daddy Operating Company, LLC Serving Website Content According to User Status
EP3091453A1 (en) * 2015-05-06 2016-11-09 Vestel Elektronik Sanayi ve Ticaret A.S. Designing a longevity test for a smart tv
CN106776320A (en) * 2016-12-16 2017-05-31 四川长虹电器股份有限公司 Android intelligent terminal automatization test system and method
CN107135390A (en) * 2017-05-08 2017-09-05 湖南快乐阳光互动娱乐传媒有限公司 The automated testing method and system of a kind of TV applications
CN110830796A (en) * 2019-11-01 2020-02-21 深圳创维-Rgb电子有限公司 Television application testing method, television application testing device and readable storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130346476A1 (en) * 2012-06-21 2013-12-26 Go Daddy Operating Company, LLC Serving Website Content According to User Status
CN103473174A (en) * 2013-09-10 2013-12-25 四川长虹电器股份有限公司 Cloud testing method for application software of intelligent televisions
EP3091453A1 (en) * 2015-05-06 2016-11-09 Vestel Elektronik Sanayi ve Ticaret A.S. Designing a longevity test for a smart tv
CN106776320A (en) * 2016-12-16 2017-05-31 四川长虹电器股份有限公司 Android intelligent terminal automatization test system and method
CN107135390A (en) * 2017-05-08 2017-09-05 湖南快乐阳光互动娱乐传媒有限公司 The automated testing method and system of a kind of TV applications
CN110830796A (en) * 2019-11-01 2020-02-21 深圳创维-Rgb电子有限公司 Television application testing method, television application testing device and readable storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113590393A (en) * 2021-07-08 2021-11-02 深圳Tcl新技术有限公司 Intelligent equipment testing method and device, electronic equipment and storage medium
CN113590393B (en) * 2021-07-08 2024-03-12 深圳Tcl新技术有限公司 Intelligent device testing method and device, electronic device and storage medium
CN114253159A (en) * 2021-12-10 2022-03-29 安徽中家智锐科技有限公司 Control method and system for electric appliance test environment

Also Published As

Publication number Publication date
CN112911283B (en) 2023-03-24

Similar Documents

Publication Publication Date Title
US10853232B2 (en) Adaptive system for mobile device testing
US8635170B2 (en) Adaptive business process automation
US8549483B1 (en) Engine for scalable software testing
US8881109B1 (en) Runtime documentation of software testing
CN107135390A (en) The automated testing method and system of a kind of TV applications
CN111124919A (en) User interface testing method, device, equipment and storage medium
CN112911283B (en) Smart television testing method and device
US11768751B2 (en) Software performance testing
US9454463B2 (en) Rapid automation front-end framework library and executable graphic user interface testing system and method
CN112115051A (en) Page traversal detection method, device and equipment for application and readable storage medium
CN115658529A (en) Automatic testing method for user page and related equipment
CN112231206A (en) Script editing method for application program test, computer readable storage medium and test platform
CN107844486B (en) Method and system for analyzing webpage problems for client
KR20150025106A (en) Verification apparatus, terminal device, system, method and computer-readable medium for monitoring of application verification result
CN111414309A (en) Automatic test method of application program, computer equipment and storage medium
US20220147437A1 (en) Automated testing of mobile devices using visual analysis
US10545858B2 (en) Method for testing a graphical interface and corresponding test system
KR20220049334A (en) Method and system for application test
US11868240B2 (en) Information processing system with intelligent program smoke testing
CN111258890A (en) Program test method, storage medium, and system
US20240134782A1 (en) Information processing system with intelligent program smoke testing
CN112612710B (en) Automatic test method and system
WO2023220902A1 (en) User interface testing methods and apparatus
KR102372556B1 (en) Mobile service control method and system based on mobile remote control technology
CN115061919A (en) Automatic testing method and device for player

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