CN113849356A - Equipment testing method and device, electronic equipment and storage medium - Google Patents

Equipment testing method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN113849356A
CN113849356A CN202111043249.7A CN202111043249A CN113849356A CN 113849356 A CN113849356 A CN 113849356A CN 202111043249 A CN202111043249 A CN 202111043249A CN 113849356 A CN113849356 A CN 113849356A
Authority
CN
China
Prior art keywords
test
tested
equipment
task
testing
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
CN202111043249.7A
Other languages
Chinese (zh)
Other versions
CN113849356B (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.)
Shenzhen TCL New Technology Co Ltd
Original Assignee
Shenzhen TCL New Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen TCL New Technology Co Ltd filed Critical Shenzhen TCL New Technology Co Ltd
Priority to CN202111043249.7A priority Critical patent/CN113849356B/en
Publication of CN113849356A publication Critical patent/CN113849356A/en
Application granted granted Critical
Publication of CN113849356B publication Critical patent/CN113849356B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2273Test methods

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

The embodiment of the application discloses a device testing method, a device, electronic equipment and a storage medium, which relate to the technical field of communication and can be used for testing the type of target equipment of equipment to be tested by acquiring; determining a communication mode with the device to be tested according to the type of the target device; acquiring a test task corresponding to the to-be-tested equipment, wherein the test task comprises at least one test case; the scheme is that a test request is sent to the equipment to be tested in a communication mode based on a test case in the test task so as to test the equipment to be tested, the corresponding test task is obtained according to the equipment type of the equipment to be tested, the equipment to be tested is tested based on the test task, testing of the equipment of different equipment types is achieved, and equipment testing efficiency is improved.

Description

Equipment testing method and device, electronic equipment and storage medium
Technical Field
The present application relates to the field of communications technologies, and in particular, to a device testing method and apparatus, an electronic device, and a storage medium.
Background
When testing functions (e.g., Wi-Fi functions, projection functions, etc.) of different devices and installed clients, a corresponding test method needs to be designed for each type of device according to the device type of the device, e.g., a mobile phone, a computer, or a television, and the designed test method cannot be compatible with devices of different device types for testing.
Disclosure of Invention
The embodiment of the application provides a device testing method and device, electronic equipment and a storage medium, which can be used for testing devices of different equipment types and improving the testing efficiency of the equipment.
An apparatus testing method provided in an embodiment of the present application includes:
acquiring a target equipment type of equipment to be tested;
determining a communication mode with the device to be tested according to the type of the target device;
acquiring a test task corresponding to the to-be-tested equipment, wherein the test task comprises at least one test case;
and sending a test request to the device to be tested through the communication mode based on the test case in the test task so as to test the device to be tested.
Correspondingly, an apparatus testing device provided in an embodiment of the present application includes:
the first acquisition unit is used for acquiring the target equipment type of the equipment to be tested;
the determining unit is used for determining a communication mode with the device to be tested according to the type of the target device;
the second obtaining unit is used for obtaining a test task corresponding to the device to be tested, and the test task comprises at least one test case;
and the sending unit is used for sending a test request to the to-be-tested equipment through the communication mode based on the test case in the test task so as to test the to-be-tested equipment.
Correspondingly, an embodiment of the present application further provides an apparatus testing system, where the testing system includes a server, a testing terminal, and a database, where:
the test terminal is used for connecting the equipment to be tested and acquiring the target equipment type of the equipment to be tested;
the test terminal is used for sending a task obtaining request to the server based on the type of the target equipment;
the server is used for acquiring a test task from a database based on the task acquisition request and sending the test task to the terminal;
and the test terminal is used for testing the to-be-tested functional module installed on the to-be-tested equipment based on the test case in the test task.
Correspondingly, the embodiment of the application also provides an electronic device, which comprises a memory and a processor; the memory stores a computer program, and the processor is used for operating the computer program in the memory to execute any device testing method provided by the embodiment of the application.
Correspondingly, the embodiment of the present application further provides a storage medium, where the storage medium is used to store a computer program, and the computer program is loaded by a processor to execute any one of the device testing methods provided by the embodiment of the present application.
The method comprises the steps of obtaining a target equipment type of equipment to be tested; determining a communication mode with the device to be tested according to the type of the target device; acquiring a test task corresponding to the to-be-tested equipment, wherein the test task comprises at least one test case; the scheme is that a test request is sent to the equipment to be tested in a communication mode based on a test case in the test task so as to test the equipment to be tested, the corresponding test task is obtained according to the equipment type of the equipment to be tested, the equipment to be tested is tested based on the test task, testing of the equipment of different equipment types is achieved, and equipment testing efficiency is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a flow chart of a method for testing a device provided in an embodiment of the present application;
FIG. 2 is a schematic diagram of a device testing system provided in an embodiment of the present application;
FIG. 3 is another flow chart of a method for testing a device provided in an embodiment of the present application;
FIG. 4 is a schematic view of a device provided in an embodiment of the present application;
fig. 5 is a schematic structural diagram of an electronic device provided in an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, 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 application.
The embodiment of the application provides a device testing method and device, electronic equipment and a storage medium. The device testing apparatus may be integrated in an electronic device, and the electronic device may be a terminal or a device such as a server.
The terminal may be a test terminal, and the test terminal may include a smart television, a mobile phone, a wearable smart device, a tablet Computer, a notebook Computer, a Personal Computer (PC), and the like.
The server may be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, or a cloud server providing basic cloud computing services such as cloud service, a cloud database, cloud computing, a cloud function, cloud storage, network service, cloud communication, middleware service, domain name service, security service, CDN, big data and artificial intelligence platform.
The following are detailed below. It should be noted that the following description of the embodiments is not intended to limit the preferred order of the embodiments.
In this embodiment, from the perspective of the device testing apparatus, the device testing apparatus may be specifically integrated in a testing terminal for description, and as shown in fig. 1, a specific flow of the device testing method may be as follows:
101. the test terminal obtains the target device type of the device to be tested.
The device to be tested may be devices of different device types, for example, a mobile phone, a computer, a television, and the like.
The device type may be a type obtained according to a communication mode of different devices for testing, for example, a mobile phone generally performs network interaction through an installed application program, and communicates with the mobile phone by relying on an installation and debugging Bridge (Android Debug Bridge, adb) when testing the mobile phone; the computer carries out network interaction in a browser mode, and when the computer is tested, the television can be tested only by sending a test request to the tested browser through the computer, and communication needs to be carried out through a serial port.
Therefore, the device types can include a mobile terminal, a web terminal and a TV terminal, wherein the mobile terminal can be the device type of the device to be tested which is connected through the android debug bridge for test, and the web terminal represents that the test terminal tests itself; the TV end may be a device type of a device to be tested that communicates through a serial port.
As can be seen from the above, the device type may be determined through a connection manner, for example, the test terminal determines whether the device type of the device to be tested is a tv terminal by detecting whether a device is accessed through the serial port, and the electronic device is provided with a test frame for testing a model of the mobile terminal, for example, an Appium test frame, which may detect access of the mobile terminal; and if the equipment type of the equipment to be tested is not the tv end or the mobile end, the equipment type is the web end.
Optionally, if the test terminal is tested, it may be determined that the type of the device to be tested is the web end in response to a test start operation of the user at the test terminal.
102. And the test terminal determines a communication mode with the device to be tested according to the type of the target device.
The communication mode can be serial port communication, android test bridge communication or request sending mode (the test terminal sends a test request to the browser for testing).
The communication mode between the test terminal and the device to be tested can be determined according to the device type of the device to be tested, and the connection with the device to be tested is established based on the communication mode.
103. And acquiring a test task corresponding to the to-be-tested equipment, wherein the test task comprises at least one test case.
The test case may refer to a certain test performed on a device to be tested, and may include a test target, a test environment, input data, a test procedure, an expected result, a test script, and the like. At least one test case combination can obtain a test task for the device to be tested.
For example, the corresponding test task may be obtained according to the device identifier of the device to be accessed. Optionally, the test terminal may store test tasks of different device types, and the test terminal may obtain the test task for the device to be tested from a preset test task according to the device type of the device to be tested.
In order to reduce the occupation of the test case and the test task on the memory of the test terminal and improve the test speed of the test terminal on the device to be tested, the test task and the test case may be stored in the server, and the test terminal obtains the test task by sending a request to the server, that is, in an embodiment, the step "obtaining the test task corresponding to the device to be tested" may specifically include:
sending a task acquisition request to a server based on the type of the target equipment;
and receiving the test task returned by the server based on the task acquisition request.
For example, the task obtaining request may be specifically sent to a server, where the task obtaining request may carry a type of the target device, and the server obtains the corresponding test task from the database according to the task obtaining request and returns the test task to the test terminal.
In order to improve the flexibility of testing the device to be tested, the test terminal may provide a task generation interface, the user may select a test case for testing the device to be tested on the task generation interface, and the terminal responds to the selection operation of the user to generate a test task, that is, the step "obtaining a test task corresponding to the device to be tested" may specifically be:
displaying a test task generation interface corresponding to the to-be-tested equipment, wherein the test task generation interface displays at least one test case, and the test case is used for testing the to-be-tested functional module;
and responding to the selection operation of the test case in the test task generation interface to generate the test task corresponding to the device to be tested.
The task generation Interface may be a User Interface (UI) for performing human-computer interaction and information exchange.
For example, the test terminal may display a test task generation interface corresponding to the type of the target device, the test task generation interface may include at least one test case, the user may select the test case, the test terminal responds to the selection operation of the user, and the test task for the device to be tested is generated based on the test case selected by the user.
Optionally, candidate test tasks are displayed on the task generation interface, the candidate test tasks may include preset test tasks, historical test tasks generated in the past, and the like, a user may directly select the candidate test tasks, and the test terminal responds to selection operations of the user to take the selected candidate test tasks as the test tasks for the terminal to be tested.
Optionally, the testing terminal may access multiple devices to be tested at the same time, generate a corresponding testing task for each device to be tested, and display a corresponding task generation interface according to the device selected by the user, that is, "display a testing task generation interface corresponding to the device to be tested", specifically, the method may include:
displaying a device selection interface, wherein the device selection interface comprises device information of at least one candidate device, and the candidate device comprises a device to be tested;
determining a device to be tested from the candidate devices in response to a selection operation based on device information of the candidate devices in the device selection interface;
and displaying a test task generation interface corresponding to the device to be tested.
For example, the test terminal may specifically access multiple devices to be tested (i.e., candidate devices), the test terminal may display device information of the accessed devices to be tested, for example, device names and other information, the user may select the devices to be tested, and the test terminal responds to the selection of the user and displays a corresponding test task generation page.
104. And the test terminal sends a test request to the equipment to be tested in a communication mode based on the test case in the test task so as to test the equipment to be tested.
For example, the test terminal may specifically send a test request to the device to be tested according to a test script in the test case, and the device to be tested responds to the test request to execute a corresponding operation and returns an execution result.
Optionally, the device to be tested may be automatically tested by the test framework, where different test frameworks required by different device types are different, and the corresponding test framework may be determined according to the device types, that is, the step "the test terminal sends a test request to the device to be tested in a communication manner based on a test case in the test task" may specifically include:
determining a testing frame matched with the equipment to be tested according to the type of the target equipment;
establishing a relation between a testing framework and a device to be tested in a communication mode;
and sending a test request to the test equipment according to the test case in the test task based on the relation between the test framework and the equipment to be tested.
The test framework can be an Appium test framework, a WebDriver test framework, or the like.
For example, if the device type is a web end, the corresponding test framework is determined to be a WebDriver test framework; and if the equipment type is the mobile terminal, determining that the corresponding test frame is an Apdium test frame.
The testing terminal establishes a relation between the testing frame and the device to be tested in a communication mode with the device to be tested, for example, if the testing frame is an Appium testing frame, the testing terminal sends a boottrap (Bootstrap) installation package to the terminal to be tested, the boottrap is installed on the device to be tested, the Appium testing frame establishes a client and a server on the testing terminal, the client may include a testing case, and the testing terminal sends a testing request to the boottrap on the device to be tested through the client in the testing frame to test the device to be tested.
If the test framework is the Webdriver test framework, a client is created on the device to be tested based on the test case in the test task, the browser to be tested is accessed through the created client, and a test request is sent to the browser so as to test the device to be tested.
If the communication mode is serial communication, a test request is directly sent to the instruction to be tested through the serial port so as to test the equipment to be tested.
Optionally, the execution result returned by the device to be tested for each test case may be received, and the test record of the device to be tested is obtained by comparing the execution result with the expected result in the test case, that is, the device testing method may further include:
receiving an execution result which is responded by the device to be tested according to the test request and returned;
and obtaining a test record of the device to be tested according to the execution result.
For example, the device to be tested may specifically execute a corresponding operation after receiving the test request, and return an execution result to the test terminal, and the test terminal determines whether the operation of the device to be tested is correct according to a comparison between the returned execution result and an expected result in the test case, and may obtain a test record of the device to be tested based on the operation result of each test case.
As can be seen from the above, the test terminal in the embodiment of the present application obtains the target device type of the device to be tested; determining a communication mode with the device to be tested according to the type of the target device; acquiring a test task corresponding to the to-be-tested equipment, wherein the test task comprises at least one test case; the scheme is that a test request is sent to the equipment to be tested in a communication mode based on a test case in the test task so as to test the equipment to be tested, the corresponding test task is obtained according to the equipment type of the equipment to be tested, the equipment to be tested is tested based on the test task, testing of the equipment of different equipment types is achieved, and equipment testing efficiency is improved.
On the basis of the above-described embodiments, further details will be given below by way of example.
The present embodiment will be described from the perspective of a device testing system, wherein, as shown in fig. 2, the device testing system includes a database, a testing terminal, and a server.
The test terminals in the test terminal cluster can communicate with each other and can share the device to be tested, namely the test terminal a can test the device to be tested connected with the test terminal b. The test terminal can comprise an interface visualization module, an equipment access module, a test task execution module and the like. The interface visualization module can be used for displaying user interfaces such as a device selection interface and a task generation interface, the device module can be used for identifying the device type of the device to be tested and establishing a test connection with the device to be tested based on the device type, and the test task module is used for testing the device to be tested based on the test task.
The server may be configured to obtain the test task from the database, and send the test task to the test terminal in the idle state.
The server stores data such as test cases, candidate test tasks and the like, test records and the like.
The communication layer provides communication capability between the test terminal and the device to be tested.
The test terminal is used for connecting the equipment to be tested and acquiring the target equipment type of the equipment to be tested;
the test terminal is used for sending a test task acquisition request to the server based on the type of the target equipment;
the server is used for acquiring the test task from the database based on the test task acquisition request and sending the test task to the test terminal;
the test terminal is used for testing the functional module to be tested installed on the equipment to be tested based on the test case in the test task.
Specifically, based on the device testing system, an embodiment of the present invention may provide a device testing method, as shown in fig. 3, a specific flow of the device testing method may be as follows:
201. the test terminal is connected with at least one device to be tested.
For example, the test terminal and the device to be tested may be connected through a serial port, or may be connected through an android test bridge.
202. The test terminal obtains the target device type of the device to be tested.
For example, the device type may be determined by a connection manner, for example, the test terminal determines whether the device type of the device to be tested is a tv terminal by detecting whether a serial port has a device access, and the electronic device is provided with a test frame for testing a mobile terminal model, for example, an Appium test frame, which may detect the access of the mobile terminal; and if the equipment type of the equipment to be tested is not the tv end or the mobile end, the equipment type is the web end.
203. And the test terminal establishes test connection between the test terminal and the equipment to be tested according to the type of the target equipment.
For example, if the device type is a web end, the corresponding test framework is determined to be a WebDriver test framework; and if the equipment type is the mobile terminal, determining that the corresponding test frame is an Apdium test frame.
The testing terminal establishes a relation between the testing frame and the device to be tested in a communication mode with the device to be tested, for example, if the testing frame is an Appium testing frame, the testing terminal sends a boottrap (Bootstrap) installation package to the terminal to be tested, the boottrap is installed on the device to be tested, the Appium testing frame establishes a client and a server on the testing terminal, the client may include a testing case, and the testing terminal sends a testing request to the boottrap on the device to be tested through the client in the testing frame to test the device to be tested.
If the test framework is the Webdriver test framework, a client is created on the device to be tested based on the test case in the test task, the browser to be tested is accessed through the created client, and a test request is sent to the browser so as to test the device to be tested.
If the communication mode is serial communication, a test request is directly sent to the instruction to be tested through the serial port so as to test the equipment to be tested.
204. And displaying a device selection interface by the test terminal.
For example, the test terminal may specifically display a device selection interface according to accessed device information of at least one device to be tested, for example, information such as a device name.
205. And the test terminal responds to the selection operation acting on the equipment selection interface and displays a test task generation interface of the equipment to be tested.
For example, the user may specifically select the device to be tested in the device selection interface, and the test terminal responds to the selection of the user and displays the corresponding test task generation page. The test task generation interface may include at least one test case, and a candidate test task.
206. And the test terminal responds to the selection operation acting on the test task generation interface and sends a task acquisition request to the server.
For example, the user may specifically select a test case or a candidate test task, and the test terminal sends a task acquisition request to the server in response to the selection operation of the user.
207. And the server generates a test task for the equipment to be tested from the database according to the task acquisition request.
For example, the task obtaining request may specifically carry an identifier of a test case or an identifier of a candidate test task, and the server obtains the corresponding test task from the database according to the identifier of the candidate test task of the task obtaining request, or obtains the corresponding test case from the database according to the identifier of the test case, and generates the corresponding test task according to the test case.
208. And the server sends a test task to the test terminal in the idle state.
For example, the state of the test terminal may be specifically obtained, and the test terminal that is not currently executing the device testing step may be obtained. And sending the test task to the test terminal.
209. And the test terminal tests the equipment to be tested according to the test task.
For example, the test terminal may specifically send a test request to the device to be tested according to a test script in the test case, the device to be tested responds to the test request to execute a corresponding operation, and returns an execution result, and the test terminal generates a test report of the device to be tested according to the execution result.
As can be seen from the above, the test system in the embodiment of the present application is connected to at least one device to be tested through the test terminal, obtains the type of the target device of the device to be tested, establishes a test connection between the test terminal and the device to be tested according to the type of the target device, displays the device selection interface, displays the test task generation interface of the device to be tested in response to the selection operation acting on the device selection interface, sends a task acquisition request to the server in response to the selection operation acting on the test task generation interface, generates a test task for the device to be tested from the database according to the task acquisition request through the server, sends the test task to the idle test terminal, and tests the device to be tested according to the test task through the test terminal.
In order to better implement the device testing method provided by the embodiment of the application, a device testing apparatus is also provided in an embodiment. Wherein the meanings of the nouns are the same as those in the above device testing method, and the details of the specific implementation can be referred to the description in the method embodiment.
The device testing apparatus may be specifically integrated in an electronic device, as shown in fig. 4, and the device testing apparatus may include: the first acquiring unit 301, the determining unit 302, the second acquiring unit 303 and the sending unit 304 are specifically as follows:
first acquisition unit 301: the method is used for obtaining the target device type of the device to be tested.
The determination unit 302: and the device is used for determining a communication mode with the device to be tested according to the type of the target device.
The second acquisition unit 303: the method is used for a test task, and the test task comprises at least one test case.
Optionally, the second obtaining unit 303 may include a sending subunit and a receiving unit, specifically:
a sending subunit: the task acquisition system is used for sending a task acquisition request to a server based on the type of the target equipment;
a receiving subunit: the task acquisition module is used for receiving the test task returned by the server based on the task acquisition request.
Optionally, the second obtaining unit 303 may include a display subunit and a generation subunit, specifically:
a display subunit: the test system comprises a test task generation interface, a test case and a function module, wherein the test task generation interface is used for displaying a test task generation interface corresponding to a device to be tested, and at least one test case is displayed on the test task generation interface and used for testing the function module to be tested;
generating a subunit: and the test case generation module is used for responding to the selection operation of the test case in the test task generation interface and generating the test task corresponding to the equipment to be tested.
Optionally, the display subunit may be specifically configured to:
displaying a device selection interface, wherein the device selection interface comprises device information of at least one candidate device, and the candidate device comprises a device to be tested;
determining a device to be tested from the candidate devices in response to a selection operation based on device information of the candidate devices in the device selection interface;
and displaying a test task generation interface corresponding to the device to be tested.
The transmission unit 304: and the test case module is used for sending a test request to the device to be tested through the communication mode based on the test case in the test task so as to test the device to be tested.
Optionally, the sending unit 304 may include a determining subunit, a building subunit, and a testing subunit, specifically:
determining a subunit: the testing framework is used for determining the testing framework matched with the device to be tested according to the type of the target device;
establishing a subunit: the system comprises a testing framework, a testing device and a communication module, wherein the testing framework is used for establishing contact between the testing framework and the device to be tested in a communication mode;
a test subunit: and the test framework is used for sending a test request to the test equipment according to the test case in the test task based on the relation between the test framework and the equipment to be tested.
Optionally, the device testing apparatus may further include a result receiving subunit and a recording obtaining subunit, specifically:
a result receiving subunit: the device to be tested is used for receiving an execution result which is responded by the device to be tested according to the test request and is returned;
recording results in subunits: and the test record of the device to be tested is obtained according to the execution result.
As can be seen from the above, in the electronic device according to the embodiment of the present application, the obtaining unit 301 obtains the target device type of the device to be tested; determining a communication mode with the device to be tested according to the type of the target device by the determining unit 302; acquiring a test task corresponding to the device to be tested through a second acquiring unit 303, wherein the test task comprises at least one test case; the sending unit 304 sends a test request to the device to be tested in a communication mode based on the test case in the test task to test the device to be tested.
An embodiment of the present application further provides an electronic device, where the electronic device may be a terminal or a server, and as shown in fig. 5, a schematic structural diagram of the electronic device according to the embodiment of the present application is shown, specifically:
the electronic device may include components such as a processor 1001 of one or more processing cores, memory 1002 of one or more computer-readable storage media (which may also be referred to as storage media), a power source 1003, and an input unit 1004. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 5 does not constitute a limitation of the electronic device and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components. Wherein:
the processor 1001 is a control center of the electronic device, connects various parts of the entire electronic device using various interfaces and lines, and performs various functions of the electronic device and processes data by running or executing software programs and/or modules stored in the memory 1002 and calling data stored in the memory 1002, thereby performing overall monitoring of the electronic device. Optionally, processor 1001 may include one or more processing cores; preferably, the processor 1001 may integrate an application processor, which mainly handles operating systems, user interfaces, computer 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 1001.
The memory 1002 may be used to store software programs and modules, and the processor 1001 executes various functional applications and data processing by operating the software programs and modules stored in the memory 1002. The memory 1002 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, a computer 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 created according to use of the electronic device, and the like. Further, the memory 1002 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. Accordingly, the memory 1002 may also include a memory controller to provide the processor 1001 access to the memory 1002.
The electronic device further includes a power source 1003 for supplying power to each component, and preferably, the power source 1003 may be logically connected to the processor 1001 through a power management system, so that functions of managing charging, discharging, power consumption, and the like are implemented through the power management system. The power source 1003 may also include any component including one or more of a dc or ac power source, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
The electronic device may further include an input unit 1004, and the input unit 1004 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control.
Although not shown, the electronic device may further include a display unit and the like, which are not described in detail herein. Specifically, in this embodiment, the processor 1001 in the electronic device loads the executable file corresponding to the process of one or more computer programs into the memory 1002 according to the following instructions, and the processor 1001 runs the computer programs stored in the memory 1002, so as to implement various functions as follows:
acquiring a target equipment type of equipment to be tested;
determining a communication mode with the device to be tested according to the type of the target device;
acquiring a test task corresponding to the to-be-tested equipment, wherein the test task comprises at least one test case;
and sending a test request to the device to be tested through the communication mode based on the test case in the test task so as to test the device to be tested.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
As can be seen from the above, the test terminal in the embodiment of the present application obtains the target device type of the device to be tested; determining a communication mode with the device to be tested according to the type of the target device; acquiring a test task corresponding to the to-be-tested equipment, wherein the test task comprises at least one test case; the scheme is that a test request is sent to the equipment to be tested in a communication mode based on a test case in the test task so as to test the equipment to be tested, the corresponding test task is obtained according to the equipment type of the equipment to be tested, the equipment to be tested is tested based on the test task, testing of the equipment of different equipment types is achieved, and equipment testing efficiency is improved.
According to an aspect of the application, a computer program product or computer program is provided, comprising computer instructions, the computer instructions being stored in a computer readable storage medium. The processor of the electronic device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the electronic device executes the method provided in the various alternative implementations of the above embodiments.
It will be understood by those skilled in the art that all or part of the steps of the methods of the above embodiments may be performed by a computer program, which may be stored in a computer-readable storage medium and loaded and executed by a processor, or by related hardware controlled by the computer program.
To this end, the present application provides a storage medium, in which a computer program is stored, where the computer program can be loaded by a processor to execute the steps in any one of the device testing methods provided in the present application.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
Wherein the storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
Since the computer program stored in the storage medium can execute the steps in any device testing method provided in the embodiments of the present application, beneficial effects that can be achieved by any device testing method provided in the embodiments of the present application can be achieved, and detailed descriptions are omitted here for the foregoing embodiments.
The above detailed description is provided for a device testing method, an apparatus, an electronic device and a storage medium provided in the embodiments of the present application, and a specific example is applied in the present application to explain the principle and the implementation of the present application, and the description of the above embodiments is only used to help understanding the method and the core idea of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (10)

1. A method for testing a device, comprising:
acquiring a target equipment type of equipment to be tested;
determining a communication mode with the device to be tested according to the type of the target device;
acquiring a test task corresponding to the to-be-tested equipment, wherein the test task comprises at least one test case;
and sending a test request to the device to be tested through the communication mode based on the test case in the test task so as to test the device to be tested.
2. The method of claim 1, wherein the obtaining of the test task corresponding to the device under test comprises:
displaying a test task generation interface corresponding to the to-be-tested equipment, wherein the test task generation interface displays at least one test case, and the test case is used for testing the to-be-tested functional module;
and responding to the selection operation of the test case in the test task generation interface to generate the test task corresponding to the device to be tested.
3. The method of claim 1, wherein the displaying of the test task generation interface corresponding to the device to be tested comprises:
displaying a device selection interface, wherein the device selection interface comprises device information of at least one candidate device;
determining the device to be tested from the candidate devices in response to a selection operation based on the device information of the candidate devices in the device selection interface;
and displaying a test task generation interface corresponding to the target equipment type of the equipment to be tested.
4. The method of claim 1, wherein the sending a test request to the device under test through the communication manner based on the test case in the test task comprises:
determining a testing frame matched with the to-be-tested equipment according to the type of the target equipment;
establishing the contact between the testing framework and the device to be tested through the communication mode;
and sending a test request to the test equipment according to the test case in the test task based on the relation between the test framework and the equipment to be tested.
5. The method according to claim 1, wherein after sending a test request to the device to be tested in the communication manner based on the test case in the test task, the method comprises:
receiving an execution result which is responded and returned by the device to be tested according to the test request;
and obtaining a test record of the device to be tested according to the execution result.
6. The method according to any one of claims 1 to 5, wherein the obtaining of the corresponding test task based on the target device type includes:
sending a task acquisition request to a server based on the type of the target equipment;
and receiving a test task returned by the server based on the task acquisition request.
7. An apparatus testing system, characterized in that the apparatus testing system comprises a server, a testing terminal and a database, wherein:
the test terminal is used for connecting the equipment to be tested and acquiring the target equipment type of the equipment to be tested;
the test terminal is used for sending a task obtaining request to the server based on the type of the target equipment;
the server is used for acquiring a test task from a database based on the task acquisition request and sending the test task to the test terminal;
and the test terminal is used for testing the to-be-tested functional module installed on the to-be-tested equipment based on the test case in the test task.
8. An apparatus testing device, characterized in that
The first acquisition unit is used for acquiring the target equipment type of the equipment to be tested;
the determining unit is used for determining a communication mode with the device to be tested according to the type of the target device;
a second obtaining unit, configured to obtain a corresponding test task based on a target device type of the device to be tested, where the test task includes at least one test case;
and the sending unit is used for sending a test request to the to-be-tested equipment through the communication mode based on the test case in the test task so as to test the to-be-tested equipment.
9. An electronic device comprising a memory and a processor; the memory stores a computer program, and the processor is configured to execute the computer program in the memory to perform the device testing method according to any one of claims 1 to 6.
10. A computer-readable storage medium for storing a computer program which is loaded by a processor to perform the device testing method of any one of claims 1 to 6.
CN202111043249.7A 2021-09-07 2021-09-07 Equipment testing method and device, electronic equipment and storage medium Active CN113849356B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111043249.7A CN113849356B (en) 2021-09-07 2021-09-07 Equipment testing method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111043249.7A CN113849356B (en) 2021-09-07 2021-09-07 Equipment testing method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113849356A true CN113849356A (en) 2021-12-28
CN113849356B CN113849356B (en) 2024-04-30

Family

ID=78973174

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111043249.7A Active CN113849356B (en) 2021-09-07 2021-09-07 Equipment testing method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113849356B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115103392A (en) * 2022-06-13 2022-09-23 中国联合网络通信集团有限公司 eSIM terminal test method, instrument, portal server, device and system

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150026665A1 (en) * 2013-07-17 2015-01-22 Ebay Inc. Automated test on applications or websites in mobile devices
CN111190812A (en) * 2019-12-12 2020-05-22 华东计算技术研究所(中国电子科技集团公司第三十二研究所) Automatic test framework based on embedded equipment
CN112306880A (en) * 2020-11-02 2021-02-02 百度在线网络技术(北京)有限公司 Test method, test device, electronic equipment and computer readable storage medium
CN112835802A (en) * 2021-02-09 2021-05-25 深圳市晨北科技有限公司 Equipment testing method, device, equipment and storage medium
CN113064780A (en) * 2021-03-18 2021-07-02 深圳市吉祥腾达科技有限公司 Automatic test system and method based on router product
CN113138925A (en) * 2021-04-23 2021-07-20 闻泰通讯股份有限公司 Function test method and device of application program, computer equipment and storage medium
CN113204495A (en) * 2021-05-31 2021-08-03 广州方硅信息技术有限公司 Automatic testing method and device based on B/S architecture, storage medium and equipment

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150026665A1 (en) * 2013-07-17 2015-01-22 Ebay Inc. Automated test on applications or websites in mobile devices
CN111190812A (en) * 2019-12-12 2020-05-22 华东计算技术研究所(中国电子科技集团公司第三十二研究所) Automatic test framework based on embedded equipment
CN112306880A (en) * 2020-11-02 2021-02-02 百度在线网络技术(北京)有限公司 Test method, test device, electronic equipment and computer readable storage medium
CN112835802A (en) * 2021-02-09 2021-05-25 深圳市晨北科技有限公司 Equipment testing method, device, equipment and storage medium
CN113064780A (en) * 2021-03-18 2021-07-02 深圳市吉祥腾达科技有限公司 Automatic test system and method based on router product
CN113138925A (en) * 2021-04-23 2021-07-20 闻泰通讯股份有限公司 Function test method and device of application program, computer equipment and storage medium
CN113204495A (en) * 2021-05-31 2021-08-03 广州方硅信息技术有限公司 Automatic testing method and device based on B/S architecture, storage medium and equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115103392A (en) * 2022-06-13 2022-09-23 中国联合网络通信集团有限公司 eSIM terminal test method, instrument, portal server, device and system
CN115103392B (en) * 2022-06-13 2024-05-17 中国联合网络通信集团有限公司 ESIM terminal test method, instrument, portal server, device and system

Also Published As

Publication number Publication date
CN113849356B (en) 2024-04-30

Similar Documents

Publication Publication Date Title
US8782215B2 (en) Performance testing in a cloud environment
CN113900834B (en) Data processing method, device, equipment and storage medium based on Internet of things technology
CN111506473A (en) Server monitoring system and server monitoring method
CN104809054A (en) Method and system for realizing program testing
CN113849356B (en) Equipment testing method and device, electronic equipment and storage medium
CN115705190A (en) Method and device for determining dependence degree
CN102984282B (en) Intelligent terminal obtains the method and apparatus of the media data of cloud storage file
CN112416747A (en) Test case execution method, device, equipment and medium
CN116684489A (en) Remote test method, system, device and storage medium
CN114610446B (en) Method, device and system for automatically injecting probe
CN113434384B (en) Pressure testing method and device
CN113836013A (en) Embedded point testing method and device, computer equipment and computer readable storage medium
CN111124907A (en) Mobile phone game testing method and device and server
CN112416744A (en) Test control system, method and equipment
CN111694587A (en) Server PNOR firmware upgrading method, device, equipment and storage medium
CN112416743A (en) Test control system, method and equipment
CN109936567A (en) Detection method, device, electronic equipment and the storage medium of log-on message
CN111708684B (en) Recording method and device for page access and computer system
JP2013232035A (en) Information processing system, information processing device, information processing method, and program
CN115964236A (en) Fault detection method, device, equipment and storage medium
CN117724951A (en) Method, device, equipment and storage medium for acquiring test data of functional interface
CN115705296A (en) Application testing method and device and computer readable storage medium
CN116437124A (en) Information prompting method, device, electronic equipment and storage medium
CN115617675A (en) Automatic testing method, device and equipment of application program and storage medium
CN115098024A (en) Disk file cleaning method and device, electronic equipment and storage medium

Legal Events

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