[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN115278224A - Method and device for testing HbbTV of smart television - Google Patents

Method and device for testing HbbTV of smart television Download PDF

Info

Publication number
CN115278224A
CN115278224A CN202211016428.6A CN202211016428A CN115278224A CN 115278224 A CN115278224 A CN 115278224A CN 202211016428 A CN202211016428 A CN 202211016428A CN 115278224 A CN115278224 A CN 115278224A
Authority
CN
China
Prior art keywords
test
testing
hbbtv
items
smart television
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211016428.6A
Other languages
Chinese (zh)
Inventor
梁建平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Seerof Information Technology Shanghai Co ltd
Original Assignee
Seerof Information Technology Shanghai 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 Seerof Information Technology Shanghai Co ltd filed Critical Seerof Information Technology Shanghai Co ltd
Priority to CN202211016428.6A priority Critical patent/CN115278224A/en
Publication of CN115278224A publication Critical patent/CN115278224A/en
Pending legal-status Critical Current

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Biomedical Technology (AREA)
  • General Health & Medical Sciences (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Testing, Inspecting, Measuring Of Stereoscopic Televisions And Televisions (AREA)

Abstract

The invention relates to a method and a device for testing HbbTV of a smart television, wherein the method comprises the following steps: establishing a connection relation with a browser of the smart television; obtaining test contents in an HbbTV test page; testing the test items in the test content one by one to obtain a test result; and generating a test report according to the test result. By the method and the device, the problem that the basic HbbTV function is tested by manually pressing a remote controller in the related technology, the test efficiency is low is solved, the basic HbbTV function is automatically tested, the test report is automatically generated, and the effect of improving the test efficiency of the basic HbbTV function is achieved.

Description

Method and device for testing HbbTV of smart television
Technical Field
The invention relates to the technical field of computers, in particular to a method and a device for testing an intelligent television HbbTV, computer equipment and a computer readable storage medium.
Background
In the smart television with the HbbTV function, a specific code stream and a specific page are required to be broadcasted by the television in the mass production process of the television. The page contains basic HbbTV functions, and hundreds of test items in the page can be delivered to the client only after verification passes. In the process, a QA engineer needs to manually press a television remote controller, judge whether the basic function of the HbbTV is normal according to the display pass and failed results of the test page, manually generate excel from the results to form a test report, and calculate the statistical passing rate. The manual remote control test takes a lot of time, and the manual calculation of the pass rate has errors due to the manual filling of the test report, which leads to the reduction of the test efficiency of the basic function of the HbbTV.
At present, no effective solution is provided for the problem of low testing efficiency of testing basic functions of HbbTV by manually pressing a remote controller in the related art.
Disclosure of Invention
The present application aims to overcome the defects in the prior art, and provides a method, an apparatus, a computer device and a computer readable storage medium for testing a smart television HbbTV, so as to at least solve the problem of low testing efficiency of testing basic HbbTV functions by manually pressing a remote controller in the related art.
In order to achieve the purpose, the technical scheme adopted by the application is as follows:
in a first aspect, an embodiment of the present application provides a method for testing a smart television HbbTV, including:
establishing a connection relation with a browser of the smart television;
obtaining test contents in an HbbTV test page;
testing the test items in the test content one by one to obtain a test result;
and generating a test report according to the test result.
In some embodiments, the establishing a connection relationship with a browser of the smart television includes:
installing an Apdium at a client and compiling an automatic test program;
importing the code of the automatic test program into an Apdium client library;
and establishing a connection relation between the AppIUM client and a browser of the intelligent television through the AppIUM server.
In some embodiments, the individually testing the test items in the test content to obtain the test result includes:
testing the target test item and outputting a target test result;
and after the target test result is obtained by using the page text element, jumping to the next test item of the target test item for testing.
In some embodiments, the generating a test report according to the test result includes at least one of:
counting the number of test items passing the test and the number of test items failing the test, wherein the test report comprises the number of test items passing the test and the number of test items failing the test;
counting a test passing rate, wherein the test passing rate is the ratio of the number of test items passing the test to the total number of the test items, and the test report comprises the test passing rate;
and counting the test running time, wherein the test running time is the time from the test beginning of the first test item to the test ending of the last test item, and the test running time is included in the test report.
In a second aspect, an embodiment of the present application provides a testing apparatus for a smart television HbbTV, including:
the establishing unit is used for establishing a connection relation with a browser of the intelligent television;
the acquisition unit is used for acquiring the test content in the HbbTV test page;
the test unit is used for testing the test items in the test content one by one to obtain a test result;
and the generating unit is used for generating a test report according to the test result.
In some of these embodiments, the establishing unit includes:
the installation module is used for installing the Apium at the client and compiling an automatic test program;
the import module is used for importing the code of the automatic test program into an Apdium client library;
the establishing module is used for establishing a connection relation between the Apdium client and a browser of the intelligent television through the Apdium server.
In some of these embodiments, the test unit comprises:
the test module is used for testing the target test item and outputting a target test result;
and the skipping module is used for skipping to the next test item of the target test items for testing after the target test result is obtained by using the page text element.
In some of these embodiments, the generating unit comprises at least one of:
the first statistical module is used for counting the number of the test items passing the test and the number of the test items failing the test, wherein the test report comprises the number of the test items passing the test and the number of the test items failing the test;
the second statistical module is used for counting the test passing rate, wherein the test passing rate is the ratio of the number of the test items passing the test to the total number of the test items, and the test report comprises the test passing rate;
and the third statistical module is used for counting the test running time, wherein the test running time is the time from the test of the first test item to the test of the last test item, and the test report comprises the test running time.
In a third aspect, an embodiment of the present application provides a computer device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, the method for testing the smart television HbbTV according to the first aspect described above is implemented.
In a fourth aspect, the present application provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the method for testing the smart television HbbTV according to the first aspect.
By adopting the technical scheme, compared with the prior art, the method for testing the HbbTV of the smart television is characterized in that the connection relation between the HbbTV and a browser of the smart television is established; obtaining test contents in an HbbTV test page; testing the test items in the test content one by one to obtain a test result; and generating a test report according to the test result. By the method and the device, the problem that the testing efficiency of testing the basic HbbTV function manually according to the remote controller in the related technology is low is solved, the basic HbbTV function is automatically tested, the test report is automatically generated, and the effect of improving the testing efficiency of the basic HbbTV function is achieved.
The details of one or more embodiments of the application are set forth in the accompanying drawings and the description below to provide a more concise and understandable description of the application, and features, objects, and advantages of the application.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
fig. 1 is a block diagram of a mobile terminal according to an embodiment of the present application;
FIG. 2 is a flowchart of a method for testing HbbTV of a smart television according to an embodiment of the present application;
fig. 3 is a schematic diagram of an appum client establishing a connection with a smart tv according to an embodiment of the present application;
FIG. 4 is a schematic diagram of the passage of test items according to an embodiment of the present application;
FIG. 5 is a schematic illustration of a test item failing in accordance with an embodiment of the present application;
FIG. 6 is a schematic illustration of a test report according to an embodiment of the present application;
FIG. 7 is a flow chart of a method for automated verification of HbbTV basic functionality according to an embodiment of the application;
FIG. 8 is a block diagram of a testing device of a smart television HbbTV according to an embodiment of the present application;
fig. 9 is a schematic hardware structure diagram of a computer device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be described and illustrated below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments provided in the present application without any inventive step are within the scope of protection of the present application.
It is obvious that the drawings in the following description are only examples or embodiments of the application, and that it is also possible for a person skilled in the art to apply the application to other similar contexts on the basis of these drawings without inventive effort. Moreover, it should be appreciated that in the development of any such actual implementation, as in any engineering or design project, numerous implementation-specific decisions must be made to achieve the developers' specific goals, such as compliance with system-related and business-related constraints, which may vary from one implementation to another.
Reference in the specification to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the specification. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is to be expressly and implicitly understood by one of ordinary skill in the art that the embodiments described herein may be combined with other embodiments without conflict.
Unless otherwise defined, technical or scientific terms referred to herein should have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. Reference to "a," "an," "the," and similar words throughout this application are not to be construed as limiting in number, and may refer to the singular or the plural. The present application is directed to the use of the terms "including," "comprising," "having," and any variations thereof, which are intended to cover non-exclusive inclusions; for example, a process, method, system, article, or apparatus that comprises a list of steps or modules (elements) is not limited to the listed steps or elements, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus. Reference to "connected," "coupled," and the like in this application is not intended to be limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. The term "plurality" as referred to herein means two or more. "and/or" describes an association relationship of associated objects, meaning that three relationships may exist, for example, "A and/or B" may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship. Reference herein to the terms "first," "second," "third," and the like, are merely to distinguish similar objects and do not denote a particular ordering for the objects.
The embodiment provides a mobile terminal. Fig. 1 is a block diagram of a mobile terminal according to an embodiment of the present application. As shown in fig. 1, the mobile terminal includes: a Radio Frequency (RF) circuit 110, a memory 120, an input unit 130, a display unit 140, a sensor 150, an audio circuit 160, a wireless fidelity (WiFi) module 170, a processor 180, and a power supply 190. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 1 is not intended to be limiting of mobile terminals and may include more or fewer components than shown, or a combination of certain components, or a different arrangement of components.
The following describes each constituent element of the mobile terminal in detail with reference to fig. 1:
the RF circuit 110 may be used for receiving and transmitting signals during information transmission and reception or during a call, and in particular, receives downlink information of a base station and then processes the received downlink information to the processor 180; in addition, data for designing uplink is transmitted to the base station. In general, RF circuits include, but are not limited to, an antenna, at least one Amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, the RF circuitry 110 may also communicate with networks and other devices via wireless communications. The wireless communication may use any communication standard or protocol, including but not limited to Global System for Mobile communication (GSM), general Packet Radio Service (GPRS), code Division Multiple Access (CDMA), wideband Code Division Multiple Access (WCDMA), long Term Evolution (LTE), email, short message Service (Short Messaging Service (SMS)), and so on.
The memory 120 may be used to store software programs and modules, and the processor 180 executes various functional applications and data processing of the mobile terminal by operating the software programs and modules stored in the memory 120. The memory 120 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 by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the mobile terminal, and the like. Further, the memory 120 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 volatile solid state storage device.
The input unit 130 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the mobile terminal. Specifically, the input unit 130 may include a touch panel 131 and other input devices 132. The touch panel 131, also referred to as a touch screen, may collect touch operations of a user on or near the touch panel 131 (e.g., operations of the user on or near the touch panel 131 using any suitable object or accessory such as a finger or a stylus pen), and drive the corresponding connection device according to a preset program. Alternatively, the touch panel 131 may include two parts, i.e., a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 180, and receives and executes commands sent from the processor 180. In addition, the touch panel 131 may be implemented by various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. The input unit 130 may include other input devices 132 in addition to the touch panel 131. In particular, other input devices 132 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 140 may be used to display information input by a user or information provided to the user and various menus of the mobile terminal. The Display unit 140 may include a Display panel 141, and optionally, the Display panel 141 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. Further, the touch panel 131 can cover the display panel 141, and when the touch panel 131 detects a touch operation on or near the touch panel 131, the touch operation is transmitted to the processor 180 to determine the type of the touch event, and then the processor 180 provides a corresponding visual output on the display panel 141 according to the type of the touch event. Although in fig. 1, the touch panel 131 and the display panel 141 are implemented as two separate components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 131 and the display panel 141 may be integrated to implement the input and output functions of the mobile terminal.
The mobile terminal may also include at least one sensor 150, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel 141 according to the brightness of ambient light, and a proximity sensor that may turn off the display panel 141 and/or the backlight when the mobile terminal is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally, three axes), detect the magnitude and direction of gravity when stationary, and can be used for applications (such as horizontal and vertical screen switching, related games, magnetometer attitude calibration) for recognizing the attitude of the mobile terminal, and related functions (such as pedometer and tapping) for vibration recognition; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured on the mobile terminal, further description is omitted here.
A speaker 161 and a microphone 162 in the audio circuit 160 may provide an audio interface between a user and the mobile terminal. The audio circuit 160 may transmit the electrical signal converted from the received audio data to the speaker 161, and convert the electrical signal into a sound signal for output by the speaker 161; on the other hand, the microphone 162 converts the collected sound signal into an electric signal, converts the electric signal into audio data after being received by the audio circuit 160, and then outputs the audio data to the processor 180 for processing, and then transmits the audio data to, for example, another mobile terminal via the RF circuit 110, or outputs the audio data to the memory 120 for further processing.
WiFi belongs to a short-distance wireless transmission technology, and the mobile terminal can help a user to send and receive e-mails, browse webpages, access streaming media and the like through the WiFi module 170, and provides wireless broadband internet access for the user. Although fig. 1 illustrates the WiFi module 170, it is understood that it does not belong to the essential component of the mobile terminal, and can be omitted or replaced with other short-range wireless transmission modules, such as Zigbee module or WAPI module, etc., as required within the scope not changing the essence of the invention.
The processor 180 is a control center of the mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by operating or executing software programs and/or modules stored in the memory 120 and calling data stored in the memory 120, thereby performing overall monitoring of the mobile terminal. Alternatively, processor 180 may include one or more processing units; preferably, the processor 180 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 180.
The mobile terminal further includes a power supply 190 (e.g., a battery) for supplying power to the various components, which may preferably be logically connected to the processor 180 via a power management system, such that functions of managing charging, discharging, and power consumption are performed via the power management system.
Although not shown, the mobile terminal may further include a camera, a bluetooth module, and the like, which will not be described herein.
In this embodiment, the processor 180 is configured to:
establishing a connection relation with a browser of the smart television;
obtaining test contents in an HbbTV test page;
testing the test items in the test content one by one to obtain a test result;
and generating a test report according to the test result.
In some of these embodiments, the processor 180 is further configured to:
installing an Appeium at a client and compiling an automatic test program;
importing the code of the automatic test program into an AppIUM client library;
and establishing a connection relation between the AppIUM client and a browser of the intelligent television through the AppIUM server.
In some of these embodiments, the processor 180 is further configured to:
testing the target test item and outputting a target test result;
and after the target test result is obtained by using the page text element, jumping to the next test item of the target test items for testing.
In some of these embodiments, the processor 180 is further configured to:
counting the number of test items passing the test and the number of test items failing the test, wherein the test report comprises the number of test items passing the test and the number of test items failing the test;
counting a test passing rate, wherein the test passing rate is a ratio of the number of test items passing the test to the total number of the test items, and the test report comprises the test passing rate;
and counting the test running time, wherein the test running time is the time from the test beginning of the first test item to the test ending of the last test item, and the test running time is included in the test report.
The embodiment provides a method for testing HbbTV of a smart television. Fig. 2 is a flowchart of a method for testing a smart television HbbTV according to an embodiment of the present application, and as shown in fig. 2, the flowchart includes the following steps:
step S201, establishing a connection relation with a browser of the smart television;
step S202, obtaining the test content in the HbbTV test page;
step S203, testing the test items in the test content one by one to obtain a test result;
and step S204, generating a test report according to the test result.
Through the steps, the problem that the testing efficiency of testing the basic HbbTV function by manually pressing the remote controller in the related technology is low is solved, the basic HbbTV function is automatically tested, the test report is automatically generated, and the effect of improving the testing efficiency of the basic HbbTV function is further achieved.
In some embodiments, the step S201 of establishing a connection relationship with a browser of the smart television includes:
installing an Apdium at a client and compiling an automatic test program;
importing the code of the automatic test program into an AppIUM client library;
and establishing a connection relation between the AppIUM client and a browser of the intelligent television through the AppIUM server.
As shown in fig. 3, the app Service is opened, and an automated test program is written using python and imported into the app client library.
And installing the application service at the client and opening the application service.
Installing a client programming library:
pip install appium-python-client
importing Python code into an Apdium client library:
from appium import webdriver
from appium.webdriver.extensions.android.nativekey import AndroidKey
in some of these embodiments, the automation environment is initialized and the transmitted instruction (encapsulated in an HTTP message) establishes a connection with the device (browser). And the Service sends an instruction to the equipment with the browser, enters an HbbTV test page, and acquires page content, elements in the page and text content, namely test content, wherein the test content comprises a plurality of test items. And then transmitting the obtained test content to a port monitored by the Apdium desktop:
driver=webdriver.Remote('http://localhost:4723/wd/hub',desired_caps)
in some embodiments, the step S202 of obtaining the test content in the HbbTV test page includes the following:
a. the method for acquiring the page content comprises the following steps:
contexts=driver.contexts
b. resource-id attribute of android application element:
driver.find_element_by_id('xxx')
c. class attribute of android interface element:
driver.find_elements_by_class_name('xxx')
d. content-desc attribute of element:
driver.find_element_by_accessibility_id('xxx')
xpath select element:
driver.find_element_by_xpath('xxx')
in some embodiments, the step S203 tests the test items in the test content one by one, and obtains a test result, including:
testing the target test item and outputting a target test result;
and after the target test result is obtained by using the page text element, jumping to the next test item of the target test items for testing.
In the embodiment of the application, a unittest automatic test framework is adopted, and a test case is loaded:
importunittest
suite=unittest.TestSuite()
suite.addTest(Application_Manager.application_manager("test_1_destroy_application")
suite.addTest(Application_Manager.application_manager("test_2_start_other_app_paramsHash"))
by adding the test items in the addTest mode, the automatic test program can test all the test items in the addTest.
As shown in FIGS. 4 and 5, pass and fail appear on the test item page to indicate whether the test item case passed.
Fig. 4 and 5 show two results after the Test item case is executed, and the interface has the text of the Test summary and the Test Fail. The embodiment of the application judges the test result according to the field in the page.
The TEXT result of the test page can be obtained by using the TEXT of the page element TEXT:
driver.find_element_by_xpath("//*[@text='xxx']")
and testing the next test item case, wherein the test item case can be controlled by simulating the keys of the remote controller:
fromappium.webdriver.extensions.android.nativekey import AndroidKey
driver.press_keycode(AndroidKey.ENTER)
through the remote control command realized on the Android, the remote control command can be written into a command script, for example, the case is executed, when the focus is on the Return to test menu, a command input enter key can be called on the script, so that the next case can be visited to continue testing, and the effect of automatic testing of a plurality of test items can be achieved without manual operation.
In some embodiments, the step S204 generates a test report according to the test result, including at least one of:
counting the number of test items passing the test and the number of test items failing the test, wherein the test report comprises the number of test items passing the test and the number of test items failing the test;
counting a test passing rate, wherein the test passing rate is a ratio of the number of test items passing the test to the total number of the test items, and the test report comprises the test passing rate;
and counting the test running time, wherein the test running time is the time from the test beginning of the first test item to the test ending of the last test item, and the test running time is included in the test report.
The test completion of the embodiment of the application automatically generates the test report, and the codes are as follows:
Figure BDA0003812692440000101
an embodiment of the present application provides a method for automatically verifying basic HbbTV functions, as shown in fig. 7, the method including the steps of:
step S701, starting an automatic test;
step S702, executing the test items in sequence;
step S703, sending an http message instruction;
step S704, judging whether Service successfully receives the message; if yes, go to step S705; if not, returning to execute the step S702;
step S705, establishing connection with browser;
step S706, entering an HbbTV test page;
step S707, executing specific test items;
step S708, obtaining and storing a test result;
step S709, judging whether all the test items are tested; if yes, go to step S710; if not, returning to execute the step S702;
and step S710, ending the test and generating a test report.
The HbbTV function testing method and the HbbTV function testing device can automatically test a HbbTV function testing page; automatically generating a test report and automatically calculating a passing rate; time and labor are saved, and the test efficiency of the HbbTV function is improved.
It should be noted that the steps illustrated in the above-described flow diagrams or in the flow diagrams of the figures may be performed in a computer system, such as a set of computer-executable instructions, and that, although a logical order is illustrated in the flow diagrams, in some cases, the steps illustrated or described may be performed in an order different than presented herein.
The embodiment provides a device for testing HbbTV of a smart television, which is used for implementing the above embodiments and preferred embodiments, and the description of the device is omitted. As used hereinafter, the terms "module," "unit," "subunit," and the like may implement a combination of software and/or hardware for a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
Fig. 8 is a block diagram of a testing apparatus of a smart television HbbTV according to an embodiment of the present application, and as shown in fig. 8, the apparatus includes:
the establishing unit 81 is used for establishing a connection relationship with a browser of the smart television;
an obtaining unit 82, configured to obtain test content in an HbbTV test page;
the test unit 83 is configured to test the test items in the test content one by one to obtain a test result;
and a generating unit 84, configured to generate a test report according to the test result.
In some of these embodiments, the establishing unit 81 includes:
the installation module is used for installing the AppIUm at the client and compiling an automatic test program;
the import module is used for importing the code of the automatic test program into an Apdium client library;
the establishing module is used for establishing a connection relation between the Apdium client and a browser of the intelligent television through the Apdium server.
In some of these embodiments, the test unit 83 includes:
the test module is used for testing the target test item and outputting a target test result;
and the skipping module is used for skipping to the next test item of the target test items for testing after the target test result is obtained by using the page text element.
In some of these embodiments, the generating unit 84 includes at least one of:
the first statistical module is used for counting the number of the test items passing the test and the number of the test items failing the test, wherein the test report comprises the number of the test items passing the test and the number of the test items failing the test;
the second statistical module is used for counting the test passing rate, wherein the test passing rate is the ratio of the number of the test items passing the test to the total number of the test items, and the test report comprises the test passing rate;
and the third statistical module is used for counting the test running time, wherein the test running time is the time from the test of the first test item to the test of the last test item, and the test report comprises the test running time.
The above modules may be functional modules or program modules, and may be implemented by software or hardware. For a module implemented by hardware, the modules may be located in the same processor; or the modules can be respectively positioned in different processors in any combination.
An embodiment provides a computer device. The method for testing the HbbTV of the smart television in combination with the embodiment of the application can be realized by computer equipment. Fig. 9 is a hardware configuration diagram of a computer device according to an embodiment of the present application.
The computer device may comprise a processor 91 and a memory 92 in which computer program instructions are stored.
In particular, the processor 91 may include a Central Processing Unit (CPU), or an Application Specific Integrated Circuit (ASIC), or may be configured to implement one or more Integrated circuits of the embodiments of the present Application.
Memory 92 may include, among other things, mass storage for data or instructions. By way of example, and not limitation, memory 92 may include a Hard Disk Drive (Hard Disk Drive, abbreviated HDD), a floppy Disk Drive, a Solid State Drive (SSD), flash memory, an optical disc, a magneto-optical disc, tape, or a Universal Serial Bus (USB) Drive, or a combination of two or more of these. Memory 92 may include removable or non-removable (or fixed) media, where appropriate. The memory 92 may be internal or external to the data processing apparatus, where appropriate. In a particular embodiment, the memory 92 is a Non-Volatile (Non-Volatile) memory. In certain embodiments, memory 92 includes Read-Only Memory (ROM) and Random Access Memory (RAM). The ROM may be mask-programmed ROM, programmable ROM (PROM), erasable PROM (EPROM), electrically Erasable PROM (EEPROM), electrically rewritable ROM (EAROM), or FLASH Memory (FLASH), or a combination of two or more of these, where appropriate. The RAM may be a Static Random-Access Memory (SRAM) or a Dynamic Random-Access Memory (DRAM), where the DRAM may be a Fast Page Mode Dynamic Random-Access Memory (FPMDRAM), an Extended data output Dynamic Random-Access Memory (EDODRAM), a Synchronous Dynamic Random-Access Memory (SDRAM), and the like.
The memory 92 may be used to store or cache various data files that need to be processed and/or used for communication, as well as possible computer program instructions that are executed by the processor 91.
The processor 91 reads and executes the computer program instructions stored in the memory 92 to implement the method for testing the intelligent television HbbTV in any one of the above embodiments.
In some of these embodiments, the computer device may also include a communication interface 93 and a bus 90. As shown in fig. 9, the processor 91, the memory 92, and the communication interface 93 are connected to each other via the bus 90 to complete communication therebetween.
The communication interface 93 is used for implementing communication between modules, apparatuses, units and/or devices in the embodiments of the present application. The communication interface 93 may also enable communication with other components such as: the data communication is carried out among external equipment, image/data acquisition equipment, a database, external storage, an image/data processing workstation and the like.
The bus 90 comprises hardware, software, or both coupling the components of the computer device to each other. Bus 90 includes, but is not limited to, at least one of the following: data Bus (Data Bus), address Bus (Address Bus), control Bus (Control Bus), expansion Bus (Expansion Bus), and Local Bus (Local Bus). By way of example and not limitation, bus 90 may include an Accelerated Graphics Port (AGP) or other Graphics Bus, an Enhanced Industry Standard Architecture (EISA) Bus, a Front-Side Bus (FSB), a Hyper Transport (HT) Interconnect, an ISA (ISA) Bus, an InfiniBand (InfiniBand) Interconnect, a Low Pin Count (LPC) Bus, a memory Bus, a microchannel Architecture (MCA) Bus, a PCI (Peripheral Component Interconnect) Bus, a PCI-Express (PCI-X) Bus, a Serial Advanced Technology Attachment (SATA) Bus, a vlslave Bus, a Video Bus, or a combination of two or more of these suitable electronic buses. Bus 90 may include one or more buses, where appropriate. Although specific buses are described and shown in the embodiments of the application, any suitable buses or interconnects are contemplated by the application.
In addition, in combination with the method for testing the smart television HbbTV in the foregoing embodiment, the embodiment of the present application may provide a computer-readable storage medium to implement the method. The computer readable storage medium having stored thereon computer program instructions; the computer program instructions, when executed by the processor, implement the method for testing the smart television HbbTV in any one of the above embodiments.
The technical features of the embodiments described above may be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the embodiments described above are not described, but should be considered as being within the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, and these are all within the scope of protection of the present application. Therefore, the protection scope of the present patent application shall be subject to the appended claims.

Claims (10)

1. A method for testing HbbTV of a smart television is characterized by comprising the following steps:
establishing a connection relation with a browser of the smart television;
obtaining test contents in an HbbTV test page;
testing the test items in the test content one by one to obtain a test result;
and generating a test report according to the test result.
2. The method for testing the HbbTV of the smart television according to claim 1, wherein the establishing of the connection relation with the browser of the smart television comprises:
installing an Apdium at a client and compiling an automatic test program;
importing the code of the automatic test program into an Apdium client library;
and establishing a connection relation between the Apdium client and a browser of the intelligent television through the Apdium server.
3. The method for testing the HbbTV of the smart television according to claim 2, wherein the step of testing the test items in the test content one by one to obtain a test result comprises the steps of:
testing the target test item and outputting a target test result;
and after the target test result is obtained by using the page text element, jumping to the next test item of the target test item for testing.
4. The method for testing of smart television HbbTV according to any one of claims 1 to 3, wherein generating a test report according to the test result comprises at least one of:
counting the number of test items passing the test and the number of test items failing the test, wherein the test report comprises the number of test items passing the test and the number of test items failing the test;
counting a test passing rate, wherein the test passing rate is the ratio of the number of test items passing the test to the total number of the test items, and the test report comprises the test passing rate;
and counting the test running time, wherein the test running time is the time from the test beginning of the first test item to the test ending of the last test item, and the test running time is included in the test report.
5. A testing device for a smart television HbbTV is characterized by comprising:
the establishing unit is used for establishing a connection relation with a browser of the intelligent television;
the acquisition unit is used for acquiring the test content in the HbbTV test page;
the test unit is used for testing the test items in the test content one by one to obtain a test result;
and the generating unit is used for generating a test report according to the test result.
6. The apparatus for testing of smart television HbbTV of claim 5, wherein the establishing unit comprises:
the installation module is used for installing the Apium at the client and compiling an automatic test program;
the import module is used for importing the codes of the automatic test programs into an Apium client library;
the establishing module is used for establishing a connection relation between the Apdium client and a browser of the intelligent television through the Apdium server.
7. The device for testing the smart television HbbTV of claim 6, wherein the testing unit comprises:
the test module is used for testing the target test item and outputting a target test result;
and the skipping module is used for skipping to the next test item of the target test item for testing after the page text element is used for obtaining the target test result.
8. The device for testing of smart television HbbTV according to any of claims 5 to 7, wherein the generating unit comprises at least one of:
the first statistical module is used for counting the number of the test items passing the test and the number of the test items failing the test, wherein the test report comprises the number of the test items passing the test and the number of the test items failing the test;
the second statistical module is used for counting a test passing rate, wherein the test passing rate is a ratio of the number of the test items passing the test to the total number of the test items, and the test report comprises the test passing rate;
and the third statistical module is used for counting the test running time, wherein the test running time is the time from the test beginning of the first test item to the test ending of the last test item, and the test report comprises the test running time.
9. Computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor, when executing the computer program, implements the method for testing of smart television HbbTV of any of claims 1 to 4.
10. A computer-readable storage medium, on which a computer program is stored, which program, when being executed by a processor, carries out a method for testing of smart tv HbbTV as claimed in any one of claims 1 to 4.
CN202211016428.6A 2022-08-24 2022-08-24 Method and device for testing HbbTV of smart television Pending CN115278224A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211016428.6A CN115278224A (en) 2022-08-24 2022-08-24 Method and device for testing HbbTV of smart television

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211016428.6A CN115278224A (en) 2022-08-24 2022-08-24 Method and device for testing HbbTV of smart television

Publications (1)

Publication Number Publication Date
CN115278224A true CN115278224A (en) 2022-11-01

Family

ID=83752064

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211016428.6A Pending CN115278224A (en) 2022-08-24 2022-08-24 Method and device for testing HbbTV of smart television

Country Status (1)

Country Link
CN (1) CN115278224A (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016180894A1 (en) * 2015-05-12 2016-11-17 Mineus )( S.R.O. Method and system for automating the process of testing of software application
CN107135390A (en) * 2017-05-08 2017-09-05 湖南快乐阳光互动娱乐传媒有限公司 Automatic testing method and system for television application
WO2018091090A1 (en) * 2016-11-17 2018-05-24 Vestel Elektronik Sanayi Ve Ticaret A.S. System testing method and system test kit
US20180329813A1 (en) * 2017-01-11 2018-11-15 Smartlytics Llc, Dba Quantyzd System and method for automated intelligent mobile application testing
CN111831546A (en) * 2020-05-29 2020-10-27 大数金科网络技术有限公司 UI test framework method compatible with mobile terminal and PC terminal simultaneously
CN111858336A (en) * 2020-07-20 2020-10-30 深圳市筑泰防务智能科技有限公司 Software automation test method and system
WO2021135809A1 (en) * 2019-12-30 2021-07-08 北京金山云网络技术有限公司 Testing method, device, terminal apparatus, and storage medium
CN113115032A (en) * 2021-04-19 2021-07-13 广州欢网科技有限责任公司 Batch testing method and device for smart television equipment and electronic equipment
CN113672504A (en) * 2021-08-04 2021-11-19 深圳Tcl新技术有限公司 Intelligent equipment testing method, device, equipment and storage medium

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016180894A1 (en) * 2015-05-12 2016-11-17 Mineus )( S.R.O. Method and system for automating the process of testing of software application
CN107924361A (en) * 2015-05-12 2018-04-17 麦纳斯有限公司 Method and system for automated software application test process
WO2018091090A1 (en) * 2016-11-17 2018-05-24 Vestel Elektronik Sanayi Ve Ticaret A.S. System testing method and system test kit
US20180329813A1 (en) * 2017-01-11 2018-11-15 Smartlytics Llc, Dba Quantyzd System and method for automated intelligent mobile application testing
CN107135390A (en) * 2017-05-08 2017-09-05 湖南快乐阳光互动娱乐传媒有限公司 Automatic testing method and system for television application
WO2021135809A1 (en) * 2019-12-30 2021-07-08 北京金山云网络技术有限公司 Testing method, device, terminal apparatus, and storage medium
CN111831546A (en) * 2020-05-29 2020-10-27 大数金科网络技术有限公司 UI test framework method compatible with mobile terminal and PC terminal simultaneously
CN111858336A (en) * 2020-07-20 2020-10-30 深圳市筑泰防务智能科技有限公司 Software automation test method and system
CN113115032A (en) * 2021-04-19 2021-07-13 广州欢网科技有限责任公司 Batch testing method and device for smart television equipment and electronic equipment
CN113672504A (en) * 2021-08-04 2021-11-19 深圳Tcl新技术有限公司 Intelligent equipment testing method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN107040609B (en) Network request processing method and device
CN107766747B (en) Method for verifying integrity of application program installation package, mobile terminal and server
CN106502906B (en) A kind of method and apparatus of test application program
CN104852885B (en) Method, device and system for verifying verification code
CN106649126B (en) Method and device for testing application program
CN107329901B (en) Data packet capturing method, terminal, server and storage medium
CN106371964B (en) Method and device for prompting message
CN108073495B (en) Method and device for positioning crash reason of application program
CN107783906A (en) Method of testing, device and storage medium
CN113064635A (en) Page display method and device of smart television
CN104809055B (en) Application program testing method and device based on cloud platform
CN112749074B (en) Test case recommending method and device
CN110069407B (en) Function test method and device for application program
CN105278942B (en) Component management method and device
CN113115101A (en) LED display screen, distributed information display system and control method
CN112131901A (en) Method and device for automatically mixing and identifying face and two-dimensional code and intelligent identification equipment
CN115278224A (en) Method and device for testing HbbTV of smart television
CN109379394A (en) A kind of method, apparatus and terminal monitoring network request
CN105791253B (en) Method and device for acquiring authentication information of website
US10721289B2 (en) Apparatus and method for improving loading time in electronic device
CN115113950A (en) Method and device for outputting prompt information of application product
CN114155977A (en) Data processing method and device for clinical research project
CN113591006A (en) Web extension method and device based on WebSocket
CN113542884A (en) Method for synchronizing JS patch files between smart television browser and server
CN112130928A (en) Automatic searching method, device, equipment and storage medium for Linux system sound card

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