CN114356780A - Software testing method, device, equipment and storage medium - Google Patents

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

Info

Publication number
CN114356780A
CN114356780A CN202210029722.4A CN202210029722A CN114356780A CN 114356780 A CN114356780 A CN 114356780A CN 202210029722 A CN202210029722 A CN 202210029722A CN 114356780 A CN114356780 A CN 114356780A
Authority
CN
China
Prior art keywords
image data
test
software
sample image
tested
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
CN202210029722.4A
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.)
Jiqi Chengdu Technology Co ltd
Original Assignee
Jiqi Chengdu 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 Jiqi Chengdu Technology Co ltd filed Critical Jiqi Chengdu Technology Co ltd
Priority to CN202210029722.4A priority Critical patent/CN114356780A/en
Publication of CN114356780A publication Critical patent/CN114356780A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/51Indexing; Data structures therefor; Storage structures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/53Querying
    • G06F16/535Filtering based on additional data, e.g. user or group profiles

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Software Systems (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The application provides a software testing method, a software testing device, software testing equipment and a storage medium, and relates to the technical field of Internet of things. The method comprises the following steps: screening at least one sample image data from an original database according to the first input information; obtaining test image data according to the event type of the sample image data, wherein the test image data carries annotation information corresponding to the event type; storing the test image data into a test database; and testing the software to be tested based on the data stored in the test database to obtain the test result of the software to be tested. By applying the embodiment of the application, the efficiency of software testing can be improved.

Description

Software testing method, device, equipment and storage medium
Technical Field
The application relates to the technical field of Internet of things, in particular to a software testing method, device, equipment and storage medium.
Background
With the development of the internet of things technology, the car networking equipment is widely applied to the automobile industry. The car networking device can identify car-side events, such as smoking events, yawning events, etc., using embedded software algorithms.
In order to ensure the quality of the software algorithms embedded in the internet of vehicles, the software algorithms can be tested. However, the current collection process of the test samples for testing the software algorithm is complex, which results in low testing efficiency for testing the software algorithm, so how to more conveniently obtain the test data and improve the efficiency of the software testing is a problem to be solved urgently at present.
Disclosure of Invention
An object of the present application is to provide a software testing method, apparatus, device and storage medium, which can more conveniently obtain test data, and further improve the efficiency of software testing, in view of the above disadvantages in the prior art.
In order to achieve the above purpose, the technical solutions adopted in the embodiments of the present application are as follows:
in a first aspect, an embodiment of the present application provides a software testing method, where the method includes:
screening at least one sample image data from an original database according to the first input information;
obtaining test image data according to the event type of the sample image data, wherein the test image data carries annotation information corresponding to the event type;
storing the test image data into a test database;
and testing the software to be tested based on the data stored in the test database to obtain the test result of the software to be tested.
Optionally, the testing the software to be tested based on the data stored in the test database to obtain the test result of the software to be tested includes:
screening at least one target test image data matched with the target event from the test database according to the target event corresponding to the software to be tested;
and inputting the target test image data into the software to be tested to obtain a test result of the software to be tested.
Optionally, the method further comprises:
and obtaining accuracy index data and recall rate index data of the event corresponding to the software to be tested according to the test result of the software to be tested and the event type corresponding to the test image data.
Optionally, the obtaining test image data according to the event type of the sample image data includes:
and labeling the sample image data according to the event type of the sample image data to obtain the test image data.
Optionally, the obtaining test image data according to the event type of the sample image data includes:
sending the sample image data to an outsourcing client;
and receiving the packed data sent by the outsourcing client, and decompressing the packed data to obtain the test image data.
Optionally, the screening out at least one sample image data from the raw database according to the first input information includes:
analyzing the first input information to generate a screening parameter;
and screening the at least one sample image data from the original database according to the screening parameters.
Optionally, after the screening out at least one sample image data from the original database according to the first input information, the method further includes:
playing the selected sample image data according to the first playing instruction;
and in the playing process of the sample image data, marking the sample image data according to a marking instruction to obtain the test image data.
In a second aspect, an embodiment of the present application further provides a software testing apparatus, where the apparatus includes:
the screening module is used for screening at least one sample image data from the original database according to the first input information;
the determining module is used for obtaining test image data according to the event type of the sample image data, and the test image data carries the marking information corresponding to the event type;
the storage module is used for storing the test image data into a test database;
and the test module is used for testing the software to be tested based on the data stored in the test database to obtain the test result of the software to be tested.
Optionally, the test module is specifically configured to screen, according to a target event corresponding to the software to be tested, at least one target test image data matched with the target event from the test database; and inputting the target test image data into the software to be tested to obtain a test result of the software to be tested.
Optionally, the determining module is further configured to obtain accuracy index data and recall index data of an event corresponding to the software to be tested according to the test result of the software to be tested and the event type corresponding to the test image data.
Optionally, the determining module is specifically configured to label the sample image data according to an event type of the sample image data, so as to obtain the test image data.
Optionally, the determining module is further specifically configured to send the sample image data to an outsourcing client; and receiving the packed data sent by the outsourcing client, and decompressing the packed data to obtain the test image data.
Optionally, the screening module is specifically configured to analyze the first input information to generate a screening parameter; and screening the at least one sample image data from the original database according to the screening parameters.
Optionally, the apparatus further comprises: a playing module;
the playing module is used for playing the selected sample image data according to a first playing instruction; and in the playing process of the sample image data, marking the sample image data according to a marking instruction to obtain the test image data.
In a third aspect, an embodiment of the present application provides an electronic device, including: the software testing method comprises a processor, a storage medium and a bus, wherein the storage medium stores machine-readable instructions executable by the processor, when the electronic device is in use, the processor and the storage medium communicate through the bus, and the processor executes the machine-readable instructions to execute the steps of the software testing method of the first aspect.
In a fourth aspect, the present application provides a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor to perform the steps of the software testing method of the first aspect.
The beneficial effect of this application is:
the embodiment of the application provides a software testing method, a device, equipment and a storage medium, wherein the method comprises the following steps: screening at least one sample image data from an original database according to the first input information; obtaining test image data according to the event type of the sample image data, wherein the test image data carries annotation information corresponding to the event type; storing the test image data into a test database; and testing the software to be tested based on the data stored in the test database to obtain the test result of the software to be tested.
By adopting the software testing method provided by the embodiment of the application, firstly, the first input information input on the software testing platform can be utilized to screen out the sample image data matched with the first input information from a large amount of data stored in the original database, so that the accuracy of the sample image data can be improved on one hand; on the other hand, the number of sample image data can be controlled according to the first input information, that is, the test image data can be more conveniently acquired. Therefore, when the software to be tested is tested by using the test image data in the test database obtained in the later stage, the software testing efficiency can be improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.
Fig. 1 is a schematic structural diagram of a software testing system according to an embodiment of the present application;
fig. 2 is a schematic flowchart of a software testing method according to an embodiment of the present application;
FIG. 3 is a schematic flow chart illustrating another software testing method according to an embodiment of the present disclosure;
FIG. 4 is a schematic flowchart illustrating another software testing method according to an embodiment of the present application;
FIG. 5 is a schematic flowchart illustrating another software testing method according to an embodiment of the present application;
FIG. 6 is a schematic flowchart of another software testing method provided in the embodiments of the present application;
fig. 7 is a schematic structural diagram of a software testing apparatus according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, 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 some embodiments of the present application, but not all embodiments. The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. 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.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
Before explaining the embodiment of the present application in detail, an application scenario of the software testing method mentioned in the present application is introduced, where the application scenario may specifically be a scenario of testing identification software on a vehicle-end device, where the vehicle-end device may include a smoking event vehicle-end device, a yawning event vehicle-end device, and the like, and it should be noted that the application does not limit a specific type of the vehicle-end device. By taking the smoking event vehicle-side device as an example for explanation, the smoking event vehicle-side device can be understood that the identification software embedded in the smoking event vehicle-side device can identify whether a user smokes, and in order to test the performance of the embedded identification software, the software test can be performed on the identification software by using the following embodiment mode, so that the quality of the version of identification software can be evaluated according to the obtained test index data, and the quality of the smoking event vehicle-side device can be further improved.
Fig. 1 is a schematic structural diagram of a software testing system according to an embodiment of the present disclosure, and as shown in fig. 1, the system may include a software testing platform 100, an original database 101, and a testing database 102, where the software testing platform 100 is respectively in communication connection with the original database 101 and the testing database 102, the software testing platform 100 may screen sample image data from the original database 101 based on first input information input by a tester, obtain test image data according to an event type of the sample image data, where the test image data includes annotation information corresponding to the event type, and store the test image data in the testing database 102. Then, according to second input information input by the staff, target test image data corresponding to the software to be tested is screened out from the test database 102, the software to be tested is tested by using the target test image data, and a test result of the software is obtained, wherein the second input information can be a target event corresponding to the software to be tested, and certainly, other information can also be included, and the application does not limit the second input information.
In order to more clearly understand the embodiments of the present application, the events, the event types, and the target events mentioned in the embodiments of the present application are explained first. The events can be understood as corresponding functions of the vehicle-end equipment, the vehicle-end equipment with different functions corresponds to different events, and the events can be smoking events, yawning events, aisle deviation events and the like. The event type may be understood as a classification of the event, and is described by taking a smoking event as an example, and the case type corresponding to the smoking event may include a smoking type and a non-smoking type. The target event can be understood as function information corresponding to the software to be tested, and if the function information corresponding to the software to be tested can identify whether smoking occurs, the target event is a smoking event.
The software testing method mentioned in the present application is exemplified below with reference to the accompanying drawings. Fig. 2 is a schematic flowchart of a software testing method according to an embodiment of the present application, and as shown in fig. 2, the method may include:
s201, screening at least one sample image data from an original database according to the first input information.
As described above with reference to fig. 1, the software testing platform is communicatively connected to the original database, and the original database may include a plurality of image data, each of which may include: the system comprises information such as equipment numbers, license plate numbers, event names and image data, wherein the event names can comprise smoking events, yawning events, aisle deviation events and the like, the image data can be pictures or videos, and the information is not limited in the application.
A tester can input first input information in a search bar of the software test platform according to actual test requirements, wherein the first input information can comprise information such as equipment numbers, license plate numbers, event names and the like. If the first input information includes the license plate number and the event name, in an implementation embodiment, the license plate number and the event name in the first input information are in a parallel relationship, that is, the sample image screened from the original database includes both the same license plate number and the same event name. In another embodiment, the license plate number in the first input information is in an OR relationship with the event name, i.e. the license plate number or the event name is included in the sample image screened from the original database.
Illustratively, an original database selection control can be displayed on an interface of the software testing platform, and after a worker touches the original database selection control, the worker means that first input information input in the search bar is matched with data in the original database to obtain sample image data. The original database may be a database on an Internet of Things (IoT).
S202, obtaining test image data according to the event type of the sample image data.
And S203, storing the test image data into a test database.
The test image data carries annotation information corresponding to the event type, for example, if the event type of the test image data is a smoking type, the sample image in the sample image data is annotated by using the annotation information corresponding to the smoking type to obtain the test image data, and the test image data includes the test image and may also include information such as a license plate number.
Optionally, the sample images in all the screened sample image data may be labeled to obtain a test image corresponding to each sample image. Of course, only the sample image in the selected sample image may be labeled to obtain the test image corresponding to the selected sample image.
Optionally, the software testing platform includes an automatic annotation selection control and a manual annotation selection control, and the worker can select the corresponding control to annotate the sample image in the sample image data according to actual requirements. In an implementation embodiment, after a worker triggers the automatic labeling selection control, the software testing platform can automatically identify the event type in each selected sample image, and label the sample image according to the corresponding relationship between the event type and the labeling information to obtain a testing image; and marking the sample image directly according to the event type corresponding to the sample image data in each selected sample image data to obtain the test image.
In another implementation, after the staff triggers the manual annotation selection control, the software testing platform can sequentially play the sample images in the selected sample image data, and the staff can annotate the sample images according to the event types corresponding to the sample images in the sample image data to obtain the testing images.
It can be understood that no matter which mode is adopted, the test image data including the test image can be stored in the test database after the test image data is obtained, the data in the test database is more and more abundant along with the increase of the test times, and the software to be tested is tested based on the data in the test database, so that the accuracy of the test index data obtained in the later stage can be improved.
And S204, testing the software to be tested based on the data stored in the test database to obtain a test result of the software to be tested.
It can be understood that the test data includes a large amount of test image data, and optionally, sample images corresponding to the number of samples may be randomly extracted from the test database according to the number of test samples, the extracted sample images are respectively input into the software to be tested, and after the software to be tested identifies the test images, identification results corresponding to the test images may be obtained, that is, test results, for example, the test result corresponding to the test image 1 is smoking, and the test result corresponding to the test image 2 is non-smoking.
In summary, in the software testing method provided by the application, first input information input on a software testing platform can be utilized to screen out sample image data matched with the first input information from a large amount of data stored in an original database, so that the accuracy of the sample image data can be improved; on the other hand, the number of sample image data can be controlled according to the first input information, that is, the test image data can be more conveniently acquired. Therefore, when the software to be tested is tested by using the test image data in the test database obtained in the later stage, the software testing efficiency can be improved.
Fig. 3 is a schematic flowchart of another software testing method according to an embodiment of the present application. Optionally, as shown in fig. 3, the testing the software to be tested based on the data stored in the test database to obtain a test result of the software to be tested includes:
s301, screening at least one target test image data matched with the target event from the test database according to the target event corresponding to the software to be tested.
It will be appreciated that each software to be tested will have a corresponding target event. For example, if the to-be-tested software is identification software embedded in the smoking event vehicle-end device, the target event corresponding to the to-be-tested software is a smoking event, and the event type corresponding to the smoking event includes a smoking type and a non-smoking type; if the software to be tested is identification software embedded into the yawning event vehicle-end equipment, the target event corresponding to the software to be tested is a yawning event, and the event types corresponding to the yawning event comprise a yawning type and a non-yawning type.
The sample image data screened out according to the first input information not only comprises sample image data capable of testing software to be tested, but also comprises other sample image data. For example, if the first input information is a license plate number, sample image data corresponding to the license plate number may be screened out, when a vehicle device 1 and a vehicle device 2 are installed on a vehicle corresponding to the license plate number, sample image data corresponding to the vehicle device 1 and the vehicle device 2 may be screened out, respectively, and when the software to be tested is identification software corresponding to the vehicle-end device 1, the software to be tested only needs to be tested by using the sample image data corresponding to the vehicle device 1.
As can be seen from the description of the related part of fig. 1, an original database selection control may be displayed on the interface of the software testing platform, and for an exemplary case, a testing database selection control may also be displayed on the interface of the software testing platform. Optionally, the staff may input a target event corresponding to the software to be tested into the search bar, and after triggering the test database selection control, the staff means that the target event input in the search bar is matched with data in the test database to obtain target sample image data.
The software testing platform can also directly analyze a target event corresponding to the software to be tested according to the performance parameters of the software to be tested, or extract the target event according to preset information corresponding to the software to be tested, screen target testing image data corresponding to the target event from a testing database, or directly extract a testing image included in the target testing image data.
S302, inputting the target test image data into the software to be tested to obtain a test result of the software to be tested.
It should be noted that, the present application does not limit the number of target test image data, and may directly input all the target test image data obtained by the screening into the software to be tested, or may obtain the target test image data satisfying the test requirement number from the obtained target test image data according to the test requirement number. In an implementation embodiment, after the target test image data is obtained, the target test images in the target test image data may be respectively input into the software to be tested, and the software to be tested may obtain the test result corresponding to each target test image data after analyzing each target test image.
In another implementation, the software to be tested may be embedded into the corresponding target vehicle-side device in advance, the software testing platform may send the target test image to the target vehicle-side device, and after the target vehicle-side device runs, the test result corresponding to each target test image may be output.
Therefore, the test image data in the test database is screened through the target event corresponding to the software to be tested, so that the software to be tested can be tested more efficiently and more accurately.
Optionally, the method further comprises: and obtaining the accuracy index data and the recall rate index data of the event corresponding to the software to be tested according to the test result of the software to be tested and the event type corresponding to the test image data.
According to the above description, the test result corresponding to each target test image can be obtained, and the test result and the label information (event type) in each target test image are compared to obtain the number of target test images with the test result consistent with the event type and the number of target test images with the test result inconsistent with the event type, so that the accuracy index data and the recall rate index data can be further obtained according to the calculation formula of the accuracy index data and the calculation formula of the recall rate index data. The quality of the software to be tested can be evaluated according to the accuracy index data and the recall rate index data.
Of course, different index data can be obtained according to actual test requirements, and the type of the index data is not limited in the application.
Optionally, the obtaining the test image data according to the event type of the sample image data includes: and marking the sample image data according to the event type of the sample image data to obtain the test image data.
It can be understood that each event type corresponds to different label information, for example, when the event type is a smoking type, the corresponding identification information is 1, and when the event type is a non-smoking type, the corresponding identification information is 0. Optionally, when receiving the automatic annotation instruction, the software testing platform may annotate the sample image in the sample image data according to the event type corresponding to the sample image data and the correspondence between the event type and the annotation information, so as to obtain test image data, that is, a test image.
Fig. 4 is a schematic flowchart of another software testing method according to an embodiment of the present application. Optionally, as shown in fig. 4, the obtaining of the test image data according to the event type of the sample image data includes:
s401, sending the sample image data to an outsourcing client.
S402, receiving the packed data sent by the outsourcing client, and decompressing the packed data to obtain test image data.
In an implementation embodiment, the sample image data includes an event type, the sample image data is compressed to obtain a sample image data packet, the sample image data packet is sent to the outsourcing client, the outsourcing client can decompress the received sample image data packet to obtain decompressed data, the decompressed data includes the sample image data and an event type corresponding to the sample image data, and the outsourcing client can label the sample image in the sample image data according to the event type corresponding to the sample image data and a preset correspondence between the event type and the label information to obtain the test image data. And then compressing the test image data to obtain packed data, sending the packed data to a software test platform, and decompressing the packed data by the software test platform to obtain the test image data.
It can be seen that the software testing platform can not only label the sample image data by itself, but also label the sample image data by the outsourcing client, and when the sample image data is more, the efficiency of obtaining the testing image data can be accelerated.
Fig. 5 is a schematic flowchart of another software testing method according to an embodiment of the present application. Optionally, as shown in fig. 5, the screening at least one sample image data from the raw database according to the first input information includes:
s501, analyzing the first input information to generate screening parameters.
S502, screening at least one sample image data from the original database according to the screening parameters.
For example, after a worker inputs first input information in a search bar of a software testing platform and triggers an original database selection control, the software testing platform can analyze the first input information to obtain screening parameters, the screening parameters can include a device number, a license plate number and the like, the device number and the license plate number can be compared with each piece of image data stored in the original database in advance, image data including the device number and/or the license plate number can be screened out, and the screened image data is used as sample image data.
Fig. 6 is a schematic flowchart of another software testing method according to an embodiment of the present application. Optionally, as shown in fig. 6, after the screening out at least one sample image data from the original database according to the first input information, the method further includes:
s601, playing the selected sample image data according to the first playing instruction.
And S602, in the playing process of the sample image data, marking the sample image data according to the marking instruction to obtain the test image data.
According to the description, the software testing platform comprises an automatic labeling selection control and a manual labeling selection control in class. After the sample image data are screened out from the original image database, a worker can select the sample image data according to actual requirements to obtain the selected sample image data. After the staff triggers the manual labeling selection control, the software testing platform can play the selected sample image data according to the preset playing frequency. In the playing process, the staff can perform labeling operation on the sample image according to the type of the fact shown by the sample image in the sample image data, wherein the labeling operation can comprise matching corresponding labeling information for the sample image and setting a storage path for storing the test image data, namely the storage path corresponding to the test database. And the software testing platform stores the obtained test image data in a testing database according to the set storage path according to the marking instruction corresponding to the marking operation. This facilitates later acquisition of test image data.
Fig. 7 is a schematic structural diagram of a software testing apparatus according to an embodiment of the present application. As shown in fig. 7, the apparatus includes:
the screening module 701 is used for screening at least one sample image data from an original database according to the first input information;
a determining module 702, configured to obtain test image data according to an event type of sample image data;
a saving module 703, configured to save the test image data to a test database;
the testing module 704 is configured to test the software to be tested based on the data stored in the testing database, so as to obtain a testing result of the software to be tested.
Optionally, the testing module 704 is specifically configured to screen, according to a target event corresponding to software to be tested, at least one target test image data matched with the target event from a test database; and inputting the target test image data into the software to be tested to obtain a test result of the software to be tested.
Optionally, the determining module 702 is further configured to obtain accuracy index data and recall index data of an event corresponding to the software to be tested according to a test result of the software to be tested and an event type corresponding to the test image data.
Optionally, the determining module 702 is specifically configured to label the sample image data according to the event type of the sample image data, so as to obtain the test image data.
Optionally, the determining module 702 is further specifically configured to send the sample image data to the outsourcing client; and receiving the packed data sent by the outsourcing client, and decompressing the packed data to obtain the test image data.
Optionally, the screening module 701 is specifically configured to analyze the first input information to generate a screening parameter; and screening at least one sample image data from the original database according to the screening parameters.
Optionally, the apparatus further comprises: a playing module;
the playing module is used for playing the selected sample image data according to the first playing instruction; and marking the sample image data according to the marking instruction in the playing process of the sample image data to obtain the test image data.
The above-mentioned apparatus is used for executing the method provided by the foregoing embodiment, and the implementation principle and technical effect are similar, which are not described herein again.
These above modules may be one or more integrated circuits configured to implement the above methods, such as: one or more Application Specific Integrated Circuits (ASICs), or one or more microprocessors, or one or more Field Programmable Gate Arrays (FPGAs), etc. For another example, when one of the above modules is implemented in the form of a Processing element scheduler code, the Processing element may be a general-purpose processor, such as a Central Processing Unit (CPU) or other processor capable of calling program code. For another example, these modules may be integrated together and implemented in the form of a system-on-a-chip (SOC).
Fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present application, and as shown in fig. 8, the electronic device may include: a processor 801, a storage medium 802 and a bus 803, the storage medium 802 storing machine-readable instructions executable by the processor 801, the processor 801 communicating with the storage medium 802 via the bus 803 when the electronic device is operated, the processor 801 executing the machine-readable instructions to perform the steps of the above-described method embodiments. The specific implementation and technical effects are similar, and are not described herein again.
Optionally, the present application further provides a storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the computer program performs the steps of the above method embodiments.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. Alternatively, the indirect coupling or communication connection of devices or units may be electrical, mechanical or other.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
The integrated unit implemented in the form of a software functional unit may be stored in a computer readable storage medium. The software functional unit is stored in a storage medium and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device) or a processor (processor) to perform some steps of the methods according to the embodiments of the present application. And the aforementioned storage medium includes: a U disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
It is noted that, in this document, relational terms such as "first" and "second," and the like, may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The above description is only a preferred embodiment of the present application and is not intended to limit the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application. It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures. The above description is only a preferred embodiment of the present application and is not intended to limit the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims (10)

1. A method for testing software, the method comprising:
screening at least one sample image data from an original database according to the first input information;
obtaining test image data according to the event type of the sample image data, wherein the test image data carries annotation information corresponding to the event type;
storing the test image data into a test database;
and testing the software to be tested based on the data stored in the test database to obtain the test result of the software to be tested.
2. The method of claim 1, wherein the testing the software to be tested based on the data stored in the test database to obtain the test result of the software to be tested comprises:
screening at least one target test image data matched with the target event from the test database according to the target event corresponding to the software to be tested;
and inputting the target test image data into the software to be tested to obtain a test result of the software to be tested.
3. The method of claim 1, further comprising:
and obtaining accuracy index data and recall rate index data of the event corresponding to the software to be tested according to the test result of the software to be tested and the event type corresponding to the test image data.
4. The method of claim 1, wherein deriving test image data based on the event type of the sample image data comprises:
and labeling the sample image data according to the event type of the sample image data to obtain the test image data.
5. The method of claim 1, wherein deriving test image data based on the event type of the sample image data comprises:
sending the sample image data to an outsourcing client;
and receiving the packed data sent by the outsourcing client, and decompressing the packed data to obtain the test image data.
6. The method of any of claims 1-5, wherein the screening out at least one sample image data from a raw database based on the first input information comprises:
analyzing the first input information to generate a screening parameter;
and screening the at least one sample image data from the original database according to the screening parameters.
7. The method of any of claims 1-5, wherein after the screening of the at least one sample image data from the raw database based on the first input information, the method further comprises:
playing the selected sample image data according to the first playing instruction;
and in the playing process of the sample image data, marking the sample image data according to a marking instruction to obtain the test image data.
8. A software testing apparatus, characterized in that the apparatus comprises:
the screening module is used for screening at least one sample image data from the original database according to the first input information;
the determining module is used for obtaining test image data according to the event type of the sample image data, and the test image data carries the marking information corresponding to the event type;
the storage module is used for storing the test image data into a test database;
and the test module is used for testing the software to be tested based on the data stored in the test database to obtain the test result of the software to be tested.
9. An electronic device, comprising: a processor, a storage medium and a bus, the storage medium storing machine-readable instructions executable by the processor, the processor and the storage medium communicating via the bus when the electronic device is operating, the processor executing the machine-readable instructions to perform the steps of the software testing method according to any one of claims 1 to 7.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the software testing method according to any one of claims 1 to 7.
CN202210029722.4A 2022-01-12 2022-01-12 Software testing method, device, equipment and storage medium Pending CN114356780A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210029722.4A CN114356780A (en) 2022-01-12 2022-01-12 Software testing method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210029722.4A CN114356780A (en) 2022-01-12 2022-01-12 Software testing method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114356780A true CN114356780A (en) 2022-04-15

Family

ID=81109752

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210029722.4A Pending CN114356780A (en) 2022-01-12 2022-01-12 Software testing method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114356780A (en)

Similar Documents

Publication Publication Date Title
CN106534344B (en) Cloud platform video processing system and application method thereof
KR102002024B1 (en) Method for processing labeling of object and object management server
CN107633433B (en) Advertisement auditing method and device
CN112615873B (en) Internet of things equipment safety detection method, equipment, storage medium and device
CN113723288A (en) Service data processing method and device based on multi-mode hybrid model
CN109726110B (en) Document testing method, device, apparatus and computer readable storage medium
CN113205130B (en) Data auditing method and device, electronic equipment and storage medium
CN110177024B (en) Monitoring method of hotspot equipment, client, server and system
CN111291051A (en) Freight rate data processing method and device, storage medium and electronic equipment
US8117218B2 (en) Methods and systems for automated data mapping and analysis
CN116383742B (en) Rule chain setting processing method, system and medium based on feature classification
CN116823043A (en) Supply chain data quality quantitative analysis method and system based on data image
CN114356780A (en) Software testing method, device, equipment and storage medium
CN116185393A (en) Method, device, equipment, medium and product for generating interface document
CN108075918B (en) Internet service change detection method and system
CN115310403A (en) Defect analysis method, related device and readable storage medium
CN111679983B (en) JAVA interface static test method and device
US20230092026A1 (en) Processing device, processing method, and non-transitory storage medium
EP3941035A1 (en) Digital evidence management method and digital evidence management system
JP6793598B2 (en) Inspection support equipment, inspection support methods, and inspection support programs
CN112131611A (en) Data correctness verification method, device, equipment, system and storage medium
CN113743692A (en) Business risk assessment method and device, computer equipment and storage medium
CN111026665B (en) Test range analysis method, device and equipment
CN111324757B (en) Map data problem processing method and device
CN115545679A (en) Experimental data matching method and device, computer 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