CN117370209A - Application program performance test method, device, medium and electronic equipment - Google Patents

Application program performance test method, device, medium and electronic equipment Download PDF

Info

Publication number
CN117370209A
CN117370209A CN202311467494.XA CN202311467494A CN117370209A CN 117370209 A CN117370209 A CN 117370209A CN 202311467494 A CN202311467494 A CN 202311467494A CN 117370209 A CN117370209 A CN 117370209A
Authority
CN
China
Prior art keywords
target
internet
determining
application program
control instruction
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
CN202311467494.XA
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.)
China Southern Power Grid Digital Power Grid Group Information Communication Technology Co ltd
Original Assignee
China Southern Power Grid Digital Power Grid Group Information Communication 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 China Southern Power Grid Digital Power Grid Group Information Communication Technology Co ltd filed Critical China Southern Power Grid Digital Power Grid Group Information Communication Technology Co ltd
Priority to CN202311467494.XA priority Critical patent/CN117370209A/en
Publication of CN117370209A publication Critical patent/CN117370209A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing

Abstract

The embodiment of the application discloses an application program performance test method, an application program performance test device, a medium and electronic equipment. The method comprises the following steps: determining at least two target internet of things devices for testing and a device testing sequence of the target internet of things devices; transmitting target control instructions to at least two target internet of things devices based on the device testing sequence through a target application program to be tested, and indicating the target internet of things devices to feed back actual execution states aiming at the target control instructions; and in the process that the target application program sends a target control instruction to the target internet of things equipment, determining a program test result of the target application program according to the target control instruction and the actual execution state in response to receiving the actual execution state. By executing the technical scheme provided by the application, the test efficiency of the application program performance test is improved, and the test time of the application program performance test is shortened.

Description

Application program performance test method, device, medium and electronic equipment
Technical Field
The present application relates to the field of computer technologies, and in particular, to a software testing field, and in particular, to a method, an apparatus, a medium, and an electronic device for testing performance of an application program.
Background
With the rapid development of the internet of things technology, it is becoming more and more common to control internet of things equipment by using application programs in mobile terminals.
However, when an application program is used for controlling the internet of things equipment, errors are prone to occur, and in order to improve the stability of equipment control, performance test is required to be conducted on the application program.
Disclosure of Invention
The application program performance testing method, device, medium and electronic equipment can achieve the purposes of improving testing efficiency of application program performance testing and shortening testing time of application program performance testing.
According to a first aspect of the present application, there is provided an application performance testing method, the method comprising:
determining at least two target internet of things devices for testing and a device testing sequence of the target internet of things devices;
transmitting target control instructions to at least two target internet of things devices based on the device testing sequence through a target application program to be tested, and indicating the target internet of things devices to feed back actual execution states aiming at the target control instructions;
and in the process that the target application program sends a target control instruction to the target internet of things equipment, determining a program test result of the target application program according to the target control instruction and the actual execution state in response to receiving the actual execution state.
According to a second aspect of the present application, there is provided an application performance testing apparatus, the apparatus comprising:
the testing sequence determining module is used for determining at least two target internet of things devices for testing and the device testing sequence of the target internet of things devices;
the test instruction sending module is used for sending target control instructions to at least two target internet of things devices based on the device test sequence through a target application program to be tested and indicating the target internet of things devices to feed back actual execution states aiming at the target control instructions;
and the test result determining module is used for determining a program test result of the target application program according to the target control instruction and the actual execution state in response to receiving the actual execution state in the process that the target application program sends the target control instruction to the target internet of things equipment.
According to a third aspect of the present invention, embodiments of the present application provide a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements an application performance test method as described in embodiments of the present application.
According to a fourth aspect of the present invention, an embodiment of the present application provides an electronic device, including a memory, a processor, and a computer program stored on the memory and executable by the processor, where the processor executes the computer program to implement an application performance test method according to an embodiment of the present application.
According to the technical scheme, the device testing sequence of the target internet of things device is determined, the target application program to be tested is used for sending target control instructions to at least two target internet of things devices based on the device testing sequence of the terminal testing sequence, and after the target application program sends an instruction to the target internet of things device, the target application program does not need to wait for receiving the actual execution state of the target internet of things device fed back aiming at the target control instructions. The target application program can continue to send the target control instruction to the next internet of things device according to the device test sequence, and in the process that the target application program sends the target control instruction to the target internet of things device, the program test result of the target application program is determined according to the target control instruction and the actual execution state in response to receiving the actual execution state, so that the test efficiency of the application program performance test can be improved, and the test time of the application program performance test can be shortened.
It should be understood that the description of this section is not intended to identify key or critical features of the embodiments of the application or to delineate the scope of the application. Other features of the present application will become apparent from the description that follows.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of an application performance test method provided according to a first embodiment;
FIG. 2 is a flow chart of an application performance test method provided according to a second embodiment;
FIG. 3 is a flow chart of an application performance test method provided according to a third embodiment;
fig. 4 is a schematic structural diagram of an application performance testing apparatus according to a fourth embodiment of the present application;
fig. 5 is a schematic structural diagram of an electronic device according to a fifth embodiment of the present application.
Detailed Description
In order to make the present application solution better understood by those skilled in the art, the following description will be made in detail and with reference to the accompanying drawings in the embodiments of the present application, it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, shall fall within the scope of the present application.
It should be noted that the terms "first," "second," "target," and "candidate" in the description and claims of the present application and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that embodiments of the present application described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example 1
Fig. 1 is a flowchart of an application performance testing method according to an embodiment, where the method may be configured to be executed by an application performance testing apparatus, and the application performance testing apparatus may be implemented in hardware and/or software and may be integrated into an electronic device running the system.
As shown in fig. 1, the method includes:
s110, determining at least two target Internet of things devices for testing and a device testing sequence of the target Internet of things devices.
The target internet of things device is used for supporting the target application program to control the internet of things device. And the target application program is in communication connection with the target internet of things device. The target internet of things device is used for performing performance test on the target application program.
The target application refers to an application that needs performance testing. The target application program is used for controlling the target internet of things device. Typically the target application is installed in a mobile device such as a smart phone or tablet. By way of example, the target application may be a remote control program installed in the mobile device.
The number of the target internet of things devices is at least two, the number and the types of the target internet of things devices are not limited herein, and the target internet of things devices are determined specifically according to actual service requirements. By way of example, the type of the target internet of things device may be an intelligent home device or an intelligent wearable device, etc.
The target internet of things device is associated with a device testing sequence, wherein the device testing sequence is used for determining the sequence in which the target application program sends the target control instruction to the target internet of things device. The device testing sequence of the target internet of things device can be predetermined, and the communication connection result between the target internet of things device and the target application program is determined.
S120, sending target control instructions to at least two target internet of things devices based on the device testing sequence through the target application program to be tested, and indicating the target internet of things devices to feed back actual execution states aiming at the target control instructions.
And the target application program sends target control instructions to at least two target internet of things devices according to the device test sequence and instructs the target internet of things devices to feed back the actual execution state aiming at the target control instructions.
The target internet of things device is an acting object of a target control instruction, and the target control instruction is used for controlling the target internet of things device. The actual execution state is determined according to an instruction execution result generated by the target control instruction executed by the target internet of things equipment. The actual execution state is related to the target control instruction, and the actual execution state may or may not be consistent with the expected execution state related to the target control instruction, which is determined according to the actual situation. The target internet of things equipment is an intelligent air conditioner, the target application program is an air conditioner remote control program installed in a smart phone, the target control instruction is an air conditioner dehumidification instruction, and the actual execution state can be started in a dehumidification mode or a refrigeration mode. That is, the actual execution state and the expected execution state corresponding to the target control instruction are not necessarily linked. Program test results of the target application program may be determined based on the actual execution state and the target control instructions.
It is noted that the target internet of things device may immediately feed back the actual execution state corresponding to the target control instruction after generating the actual execution state. The target internet of things device can store the actual execution state locally after generating the actual execution state, and feed back the actual execution state corresponding to the target control instruction after receiving the state feedback instruction.
And S130, in the process that the target application program sends a target control instruction to the target Internet of things equipment, determining a program test result of the target application program according to the target control instruction and the actual execution state in response to receiving the actual execution state.
The sending process of the target control instruction is not affected by the feedback process of the actual execution state, and after the target application program sends an instruction to the target internet of things equipment, the actual execution state fed back by the target internet of things equipment aiming at the target control instruction does not need to be waited for. And the target application program can continue to send the target control instruction to the next Internet of things device according to the device testing sequence. That is, the sending process of the target control instruction is not interrupted because the actual execution state of the target internet of things device for the feedback of the target control instruction is not received.
Under the condition that the target internet of things equipment is more, the sending process of the target control instruction may last for a long time, and in the process that the target application program sends the target control instruction to the target internet of things equipment, the actual execution state fed back by the target internet of things equipment aiming at the target control instruction may be received.
And under the condition that the actual execution state is received, determining the program test result of the target application program according to the target control instruction and the actual execution state at the same time.
According to the technical scheme, the device testing sequence of the target internet of things device is determined, the target application program to be tested is used for sending target control instructions to at least two target internet of things devices based on the device testing sequence of the terminal testing sequence, and after the target application program sends an instruction to the target internet of things device, the target application program does not need to wait for receiving the actual execution state of the target internet of things device fed back aiming at the target control instructions. The target application program can continue to send the target control instruction to the next internet of things device according to the device test sequence, and in the process that the target application program sends the target control instruction to the target internet of things device, the program test result of the target application program is determined according to the target control instruction and the actual execution state in response to receiving the actual execution state, so that the test efficiency of the application program performance test can be improved, and the test time of the application program performance test can be shortened.
In an optional embodiment, the determining the target internet of things device for at least two tests and the device testing sequence of the target internet of things device includes: determining the type of the Internet of things equipment controllable by the target application program; determining at least two target Internet of things devices for testing according to the type of the Internet of things device; establishing communication connection between the target application program and the target internet of things equipment; and determining the equipment testing sequence of the at least two target internet of things equipment according to the communication connection result.
The internet of things equipment controllable by different application programs is different, and the target internet of things equipment is consistent with the type of the internet of things equipment controllable by the target application programs. A target internet of things device for testing performance of the target application may be determined based on the internet of things device type.
And establishing communication connection between the target application program and the target Internet of things equipment to obtain a communication connection result between the target application program and the target Internet of things equipment. Optionally, the communication connection result includes: connection time, connection status, and number of connections. Wherein, the connection state may include: connection success and connection failure.
Optionally, determining the device testing sequence of at least two target internet of things devices according to the connection state and the connection time in the communication connection result. The device testing sequence of at least two target internet of things devices is determined according to the connection time of successful connection.
According to the technical scheme, the method for determining the equipment testing sequence of the target Internet of things equipment is practical and reliable, can be used for determining the equipment testing sequence of the target Internet of things equipment, and provides data support for sending target control instructions to the target Internet of things equipment based on the equipment testing sequence.
In an alternative embodiment, after determining the program test result of the target application program, the method further comprises: if the program test result is that the program test fails, acquiring an actual control instruction corresponding to an actual execution state fed back by the target internet of things device; and updating a fault analysis database based on the actual control instruction, the target control instruction and the actual execution state.
Optionally, the program test result includes: program test success and program test failure. The reason for the program test failure is complex, and further fault analysis is needed. The failure analysis database is constructed based on the actual control instruction, the target control instruction and the actual execution state. The fault analysis database is the data base for subsequent fault analysis. And under the condition that the program test result is that the program test fails, updating the fault analysis database based on the actual control instruction, the target control instruction and the actual execution state.
The target control instruction is generated by a target application program and sent to the target internet of things device through the target application program. The actual control instruction refers to a control instruction actually received by the target internet of things device. Because of fluctuations in the communication environment, the control instruction actually received by the target internet of things device may not be the target control instruction. That is, the target control instruction may or may not be the same as the actual control instruction. The actual execution state may be matched with the actual control instruction or may be matched with the target control instruction.
Considering the occupancy rate of the storage resource, if the program test result is that the program test is successful, the actual control instruction, the target control instruction and the actual execution state are not stored.
According to the technical scheme, under the condition that the program test result is that the program test fails, the fault analysis database is updated based on the actual control instruction, the target control instruction and the actual execution state. Data support is provided for reasons of failure in subsequent analysis program testing.
Example two
Fig. 2 is a flowchart of an application program performance test method according to a second embodiment. The present embodiment is further optimized on the basis of the above embodiment.
As shown in fig. 2, the method includes:
s210, determining at least two target Internet of things devices for testing and a device testing sequence of the target Internet of things devices.
S220, sending target control instructions to at least two target Internet of things devices based on the device testing sequence through the target application program to be tested.
S230, determining the instruction sending progress of the target application program.
The instruction sending progress is determined according to the ratio of the sent control instructions to all the control instructions. Control command transmission is an important ring in performance test, and command transmission lags and blocks the whole performance test flow. The instruction transmission schedule is used to determine the timing of generating the status feedback instruction.
S240, generating a state feedback instruction based on the instruction sending progress and a preset process threshold value.
The state feedback instruction is used for indicating the actual execution state fed back by the target internet of things equipment aiming at the target control instruction.
Optionally, determining a relative magnitude relation between the instruction sending process and a preset process threshold value, and generating a state feedback instruction according to the relative magnitude relation. For example, the status feedback instruction is generated when the instruction sending process is greater than a preset process threshold.
The preset process threshold is used for determining the time for generating the state feedback instruction. The preset execution threshold is determined according to the actual service requirement, and is not limited herein. For example, the preset process threshold may be 0.5. That is, in the case that the target control instruction is sent in half, the actual execution state of the target internet of things device for the target control instruction feedback is instructed.
S250, sending a state feedback instruction to the target internet of things equipment to instruct the target internet of things equipment to feed back an actual execution state aiming at the target control instruction.
And sending a state feedback instruction to the target Internet of things equipment, and feeding back the actual execution state of the target control instruction by the target Internet of things equipment in response to receiving the state feedback instruction.
And S260, in the process that the target application program sends a target control instruction to the target Internet of things equipment, determining a program test result of the target application program according to the target control instruction and the actual execution state in response to receiving the actual execution state.
According to the technical scheme, the instruction sending progress of the target application program is determined; generating a state feedback instruction based on the instruction sending progress and a preset progress threshold value; and sending a state feedback instruction to the target internet of things equipment to instruct the target internet of things equipment to feed back the actual execution state aiming at the target control instruction. The application refers to the instruction sending progress of a target application program, and indicates target Internet of things equipment to feed back an actual execution state aiming at a target control instruction. The situation that the whole performance test flow is blocked after the command sending is avoided, the test efficiency of the performance test of the application program is improved, and the test time of the performance test of the application program is shortened.
In an alternative embodiment, the determining the instruction sending progress of the target application program includes: determining a target instruction type to which the target control instruction belongs and the actual sending times corresponding to the target control instruction; determining the expected sending times associated with the target instruction type according to the target instruction type; and determining the instruction transmission progress of the target application program according to the actual transmission times and the expected transmission times.
It will be appreciated that stability testing is an important item in application performance testing. In the process of performing stability test on a target application program, multiple tests are usually performed with respect to a control instruction, and the target application program needs to send a control instruction to a target internet of things device multiple times.
The target instruction type corresponds to a functional class of the target internet of things device that is controllable by the target application. The use frequency of different function types is different, and the expected sending times corresponding to different control instructions are different in response to the performance test of the target application program.
The expected sending times associated with the target instruction type are determined according to the target instruction type to which the target control instruction belongs.
Optionally, determining the instruction sending progress of the target application program according to the duty ratio between the actual sending times and the expected sending times.
According to the technical scheme, the feasible instruction sending progress determining method can be used for determining the instruction sending progress of the target application program, and technical support is provided for determining the time for generating the state feedback instruction by using the instruction sending progress.
Example III
Fig. 3 is a flowchart of an application performance test method according to the third embodiment. The present embodiment is further optimized on the basis of the above embodiment.
As shown in fig. 3, the method includes:
s310, determining at least two target Internet of things devices for testing and a device testing sequence of the target Internet of things devices;
s320, transmitting target control instructions to at least two target Internet of things devices based on the device testing sequence through a target application program to be tested, and indicating the target Internet of things devices to feed back actual execution states aiming at the target control instructions;
s330, in the process that the target application program sends a target control instruction to the target Internet of things equipment, determining an expected execution state corresponding to the target control instruction in response to the received actual execution state.
And determining an expected execution state corresponding to the target control instruction in response to receiving the actual execution state fed back by the target internet of things equipment. The expected execution state corresponds to the target control instruction.
And S340, matching the expected execution state with the actual execution state to obtain a state matching result.
The actual execution state may or may not be consistent with the expected execution state, and the result of the state matching may include: status matching success and status matching failure.
S350, determining a program test result of the target application program according to the state matching result.
If the state matching result is that the state matching is successful, determining that the program test result of the target application program is that the program test is successful; if the state matching result is the state matching failure, determining the program test result of the target application program as the program test failure.
According to the technical scheme, the expected execution state and the actual execution state are matched, so that a state matching result is obtained. And determining a program test result of the target application program according to the state matching result. The application provides a feasible program test result determining method, and provides technical support for realizing performance test of an application program.
In an alternative embodiment, determining the program test result of the target application program according to the state matching result includes: if the state matching result is that the state matching fails, determining an actual control instruction corresponding to an actual execution state fed back by the target internet of things equipment; matching the target control instruction with the actual control instruction to obtain an instruction matching result; and determining a program test result of the target application program according to the instruction matching result and the state matching result.
And if the state matching result is that the state matching fails, and the expected execution state of the target control instruction is inconsistent with the actual execution state of the target control instruction, determining the actual control instruction corresponding to the actual execution state fed back by the target Internet of things equipment. The actual control instruction refers to a control instruction actually received by the target internet of things device, and the target control instruction refers to a control instruction sent by the target application program to the target internet of things device.
And matching the target control instruction with the actual control instruction, and determining whether the control instruction actually received by the target Internet of things equipment is the control instruction sent by the target application program or not, so as to obtain an instruction matching result. The instruction matching result is used to determine whether the status matching failure is caused by a fluctuation in the communication environment. And determining a program test result of the target application program according to the instruction matching result and the state matching result.
According to the technical scheme, the program test result of the target application program is determined according to the instruction matching result and the state matching result. In the process of determining the program test result, the communication environment factors are considered, and the accuracy of the program test result is ensured.
Example IV
Fig. 4 is a schematic structural diagram of an application performance testing apparatus provided in a fourth embodiment of the present application, where the embodiment is applicable to a case of performing performance testing on an application for controlling an internet of things device, and the apparatus may be implemented by software and/or hardware and may be integrated in an electronic device such as an intelligent terminal.
As shown in fig. 4, the apparatus may include:
a test sequence determining module 410, configured to determine at least two target internet of things devices for testing, and a device test sequence of the target internet of things devices;
the control instruction sending module 420 is configured to send, by a target application to be tested, a target control instruction to at least two target internet of things devices based on the device testing sequence, and instruct the target internet of things devices to feed back an actual execution state with respect to the target control instruction;
and the test result determining module 430 is configured to determine, in response to receiving the actual execution state, a program test result of the target application program according to the target control instruction and the actual execution state in a process that the target application program sends a target control instruction to the target internet of things device.
According to the technical scheme, the device testing sequence of the target internet of things device is determined, the target application program to be tested is used for sending target control instructions to at least two target internet of things devices based on the device testing sequence of the terminal testing sequence, and after the target application program sends an instruction to the target internet of things device, the target application program does not need to wait for receiving the actual execution state of the target internet of things device fed back aiming at the target control instructions. The target application program can continue to send the target control instruction to the next internet of things device according to the device test sequence, and in the process that the target application program sends the target control instruction to the target internet of things device, the program test result of the target application program is determined according to the target control instruction and the actual execution state in response to receiving the actual execution state, so that the test efficiency of the application program performance test can be improved, and the test time of the application program performance test can be shortened.
Optionally, the control instruction sending module 420 includes: the control instruction sending submodule is used for sending target control instructions to at least two target internet of things devices based on the device testing sequence through target application programs to be tested; a sending progress determination submodule, configured to determine an instruction sending progress of the target application program; the feedback instruction generation sub-module is used for generating a state feedback instruction based on the instruction sending progress and a preset process threshold value; and the feedback instruction sending sub-module is used for sending a state feedback instruction to the target internet of things equipment so as to instruct the target internet of things equipment to feed back the actual execution state aiming at the target control instruction.
Optionally, the sending progress determination submodule includes: the actual times determining unit is used for determining the type of the target instruction to which the target control instruction belongs and the actual sending times corresponding to the target control instruction; the expected number determining unit is used for determining the expected sending number associated with the target instruction type according to the target instruction type; and the transmission progress determining unit is used for determining the instruction transmission progress of the target application program according to the actual transmission times and the expected transmission times.
Optionally, the test sequence determining module 410 includes: the equipment type determining submodule is used for determining the type of the equipment of the Internet of things which can be controlled by the target application program; the test equipment determining submodule is used for determining at least two target internet of things equipment for test according to the type of the internet of things equipment; a communication connection establishment sub-module, configured to establish a communication connection between the target application program and the target internet of things device; and the test sequence determining sub-module is used for determining the equipment test sequence of the at least two target internet of things equipment according to the communication connection result.
Optionally, the test result determining module 430 includes: the expected state determining submodule is used for determining an expected execution state corresponding to the target control instruction; the execution state matching sub-module is used for matching the expected execution state with the actual execution state to obtain a state matching result; and the test result determining submodule is used for determining the program test result of the target application program according to the state matching result.
Optionally, the test result determining sub-module includes: the control instruction determining unit is used for determining an actual control instruction corresponding to the actual execution state fed back by the target internet of things equipment if the state matching result is that the state matching fails; the control instruction matching unit is used for matching the target control instruction with the actual control instruction to obtain an instruction matching result; and the test result determining unit is used for determining a program test result of the target application program according to the instruction matching result and the state matching result.
Optionally, the apparatus further includes: the actual instruction acquisition module is used for acquiring an actual control instruction corresponding to the actual execution state fed back by the target internet of things device if the program test result is a program test failure after the program test result of the target application program is determined; and the database updating module is used for updating a fault analysis database based on the actual control instruction, the target control instruction and the actual execution state.
The application program performance testing device provided by the embodiment of the invention can execute the application program performance testing method provided by any embodiment of the application program, and has the corresponding performance module and beneficial effects of executing the application program performance testing method.
In the technical scheme of the disclosure, the related user data are collected, stored, used, processed, transmitted, provided, disclosed and the like, all conform to the regulations of related laws and regulations and do not violate the popular regulations of the public order.
Example five
Fig. 5 illustrates a schematic diagram of an electronic device 510 that can be used to implement an embodiment. The electronic device 510 includes at least one processor 511, and a memory, such as a Read Only Memory (ROM) 512, a Random Access Memory (RAM) 513, etc., communicatively coupled to the at least one processor 511, wherein the memory stores computer programs executable by the at least one processor, and the processor 511 may perform various suitable actions and processes in accordance with the computer programs stored in the Read Only Memory (ROM) 512 or the computer programs loaded from the storage unit 518 into the Random Access Memory (RAM) 513. In the RAM 513, various programs and data required for the operation of the electronic device 510 can also be stored. The processor 511, the ROM 512, and the RAM 513 are connected to each other by a bus 514. An input/output (I/O) interface 515 is also connected to bus 514.
Various components in the electronic device 510 are connected to the I/O interface 515, including: an input unit 516 such as a keyboard, a mouse, etc.; an output unit 517 such as various types of displays, speakers, and the like; a storage unit 518 such as a magnetic disk, optical disk, etc.; and a communication unit 519 such as a network card, modem, wireless communication transceiver, or the like. The communication unit 519 allows the electronic device 510 to exchange information/data with other devices via a computer network, such as the internet, and/or various telecommunications networks.
The processor 511 may be a variety of general and/or special purpose processing components with processing and computing capabilities. Some examples of processor 511 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various processors running machine learning model algorithms, digital Signal Processors (DSPs), and any suitable processor, controller, microcontroller, etc. The processor 511 performs the various methods and processes described above, such as application performance testing methods.
In some embodiments, the application performance testing method may be implemented as a computer program tangibly embodied on a computer-readable storage medium, such as the storage unit 518. In some embodiments, some or all of the computer program may be loaded and/or installed onto the electronic device 510 via the ROM 512 and/or the communication unit 519. When a computer program is loaded into RAM 513 and executed by processor 511, one or more of the steps of the application performance test method described above may be performed. Alternatively, in other embodiments, processor 511 may be configured to perform the application performance test method in any other suitable manner (e.g., by means of firmware).
Various implementations of the systems and techniques described here above can be implemented in digital electronic circuitry, integrated circuit systems, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems On Chip (SOCs), complex Programmable Logic Devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
A computer program for carrying out the methods of the present application may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the computer programs, when executed by the processor, cause the functions/acts specified in the flowchart and/or block diagram block or blocks to be implemented. The computer program may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of this application, a computer-readable storage medium may be a tangible medium that can contain, or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. The computer readable storage medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. Alternatively, the computer readable storage medium may be a machine readable signal medium. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) through which a user can provide input to the electronic device. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background component (e.g., as a data processing server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such background, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), blockchain networks, and the internet.
The computing system may include clients and servers. The client and server are typically remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also called a cloud computing server or a cloud host, and is a host product in a cloud computing service system, so that the defects of high management difficulty and weak service expansibility in the traditional physical hosts and VPS service are overcome.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps described in the present application may be performed in parallel, sequentially, or in a different order, so long as the desired results of the technical solutions of the present application are achieved, and the present application is not limited herein.
The above embodiments do not limit the scope of the application. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives are possible, depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present application are intended to be included within the scope of the present application.

Claims (10)

1. A method for testing performance of an application, the method comprising:
determining at least two target internet of things devices for testing and a device testing sequence of the target internet of things devices;
transmitting target control instructions to at least two target internet of things devices based on the device testing sequence through a target application program to be tested, and indicating the target internet of things devices to feed back actual execution states aiming at the target control instructions;
and in the process that the target application program sends a target control instruction to the target internet of things equipment, determining a program test result of the target application program according to the target control instruction and the actual execution state in response to receiving the actual execution state.
2. The method of claim 1, wherein sending, by the target application to be tested, a target control instruction to at least two target internet of things devices based on the device test sequence and instructing the target internet of things devices to feed back an actual execution state for the target control instruction, comprises:
transmitting target control instructions to at least two target internet of things devices based on the device testing sequence through a target application program to be tested;
determining the instruction sending progress of the target application program;
generating a state feedback instruction based on the instruction sending progress and a preset process threshold value;
and sending a state feedback instruction to the target internet of things equipment to instruct the target internet of things equipment to feed back an actual execution state aiming at the target control instruction.
3. The method of claim 2, wherein the determining the instruction transmission progress of the target application program comprises:
determining a target instruction type to which the target control instruction belongs and the actual sending times corresponding to the target control instruction;
determining the expected sending times associated with the target instruction type according to the target instruction type;
and determining the instruction transmission progress of the target application program according to the actual transmission times and the expected transmission times.
4. The method of claim 1, wherein determining the target internet of things device for at least two tests and the device test order of the target internet of things device comprises:
determining the type of the Internet of things equipment controllable by the target application program;
determining at least two target Internet of things devices for testing according to the type of the Internet of things device;
establishing communication connection between the target application program and the target internet of things equipment;
and determining the equipment testing sequence of the at least two target internet of things equipment according to the communication connection result.
5. The method of claim 1, wherein determining the program test result of the target application program based on the target control instruction and the actual execution state comprises:
determining an expected execution state corresponding to the target control instruction;
matching the expected execution state with the actual execution state to obtain a state matching result;
and determining a program test result of the target application program according to the state matching result.
6. The method of claim 5, wherein determining the program test result of the target application based on the state matching result comprises:
if the state matching result is that the state matching fails, determining an actual control instruction corresponding to an actual execution state fed back by the target internet of things equipment;
matching the target control instruction with the actual control instruction to obtain an instruction matching result;
and determining a program test result of the target application program according to the instruction matching result and the state matching result.
7. The method of claim 1, wherein after determining the program test results for the target application, the method further comprises:
if the program test result is that the program test fails, acquiring an actual control instruction corresponding to an actual execution state fed back by the target internet of things device;
and updating a fault analysis database based on the actual control instruction, the target control instruction and the actual execution state.
8. An application performance testing apparatus, the apparatus comprising:
the testing sequence determining module is used for determining at least two target internet of things devices for testing and the device testing sequence of the target internet of things devices;
the control instruction sending module is used for sending target control instructions to at least two target internet of things devices based on the device testing sequence through a target application program to be tested and indicating the target internet of things devices to feed back actual execution states aiming at the target control instructions;
and the test result determining module is used for determining a program test result of the target application program according to the target control instruction and the actual execution state in response to receiving the actual execution state in the process that the target application program sends the target control instruction to the target internet of things equipment.
9. A computer readable storage medium having stored thereon a computer program, which when executed by a processor implements the application performance test method according to any of claims 1-7.
10. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the application performance test method of any one of claims 1-7 when the computer program is executed by the processor.
CN202311467494.XA 2023-11-06 2023-11-06 Application program performance test method, device, medium and electronic equipment Pending CN117370209A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311467494.XA CN117370209A (en) 2023-11-06 2023-11-06 Application program performance test method, device, medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311467494.XA CN117370209A (en) 2023-11-06 2023-11-06 Application program performance test method, device, medium and electronic equipment

Publications (1)

Publication Number Publication Date
CN117370209A true CN117370209A (en) 2024-01-09

Family

ID=89391000

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311467494.XA Pending CN117370209A (en) 2023-11-06 2023-11-06 Application program performance test method, device, medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN117370209A (en)

Similar Documents

Publication Publication Date Title
CN114025037B (en) Cloud mobile phone overhaul method and device, electronic equipment and storage medium
CN115391219A (en) Test case generation method and device, electronic equipment and storage medium
CN116521573A (en) Automatic test method, device, equipment and storage medium
CN116627432A (en) Front-end application automatic deployment method, device, equipment and medium
CN116301997A (en) Upgrading method, device, equipment and medium of controller
CN113986135B (en) Method, device, equipment and storage medium for processing request
CN113326192B (en) Application testing method, device, equipment and storage medium for mobile terminal
CN117370209A (en) Application program performance test method, device, medium and electronic equipment
CN116027226A (en) Component testing method and device, electronic equipment and storage medium
CN115437865A (en) Method, device, equipment and medium for testing abnormal power failure of hard disk
CN114389969A (en) Client test method and device, electronic equipment and storage medium
CN112631843A (en) Equipment testing method and device, electronic equipment, readable medium and product
CN113747423B (en) Cloud mobile phone state synchronization method, device, equipment, storage medium and program product
CN114884944B (en) Data processing method, device, equipment and storage medium
CN113419880B (en) Cloud mobile phone root authority acquisition method, related device and computer program product
CN117827647A (en) Execution method, device, equipment and medium of test script
CN116303071A (en) Interface testing method and device, electronic equipment and storage medium
CN115269055A (en) Nginx request data acquisition method, device, equipment and storage medium
CN117520200A (en) Object testing method based on test adaptation system
CN115964277A (en) Test method, test device, electronic equipment and storage medium
CN117608925A (en) Application restarting method and device, electronic equipment and storage medium
CN117971581A (en) Equipment testing method and device, electronic equipment and storage medium
CN116301676A (en) Printing equipment connection method, device, equipment and storage medium
CN115967638A (en) Equipment simulation system, method, equipment and storage medium
CN115617616A (en) Operation monitoring method, device and equipment of server FRU 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