Test method and device of application program, electronic equipment and storage medium
Patent Information
- Application Number
- CN202111348001.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-15
- Publication Date
- 2026-08-21
- Estimated Expiration
- 2041-11-15
AI Technical Summary
[0004]这种方式下,煤炭行业应用程序的测试数据的多样性与煤炭设备间的复杂性,会导致测试数据获取不全面,测试效果并不理想
[0011]根据本公开第三方面,提供了一种电子设备,包括:至少一个处理器;以及与至少一个处理器通信连接的存储器;其中,存储器存储有可被至少一个处理器执行的指令,指令被至少一个处理器执行,以使至少一个处理器能够执行本公开第一方面实施例的应用程序的测试方法。
Smart Images

Figure CN114281671B_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of coal mining industry technology, and in particular to a method, apparatus, electronic device and storage medium for testing applications. Background Technology
[0002] Testing coal industry applications (APPs) is the prerequisite and foundation for coal industry APPs to be widely reused and multiply their value.
[0003] In related technologies, the development of automated tests generally involves two methods: manually running a test once and using the recording function of the automated testing tool to record the operations performed, or writing a test framework that provides interfaces for the basic operations required for testing, and testers writing automated test scripts to call the interfaces according to their needs.
[0004] In this approach, the diversity of test data in coal industry applications and the complexity of coal equipment can lead to incomplete test data acquisition and unsatisfactory test results. Summary of the Invention
[0005] This disclosure aims to at least partially address one of the technical problems in the related art.
[0006] Therefore, the purpose of this disclosure is to propose a testing method, apparatus, electronic device, and storage medium for an application, which can combine first test data from coal mining equipment with second test data generated by associated coal mining equipment, effectively realize multi-dimensional automated testing of the application, effectively verify the functionality of the application, and help to promptly discover various problems that may exist in the application under test.
[0007] To achieve the above objectives, the application testing method proposed in the first aspect of this disclosure includes: acquiring online production data; acquiring multiple first test data corresponding to multiple coal mining equipment and second test data between the multiple coal mining equipment based on the online production data; and testing the application based on the first test data and the second test data.
[0008] The application testing method proposed in the first aspect of this disclosure acquires online production data, and based on the online production data, acquires multiple first test data corresponding to multiple coal mining equipment, and second test data between multiple coal mining equipment. The application is then tested based on the first test data and the second test data. This method can combine the first test data of the coal mining equipment with the second test data generated by the associated coal mining equipment, effectively achieving multi-dimensional automated testing of the application, effectively verifying the functionality of the application, and helping to promptly identify various problems that may exist in the application under test.
[0009] To achieve the above objectives, the application testing apparatus proposed in the second aspect of this disclosure includes: a first acquisition module for acquiring online production data; a second acquisition module for acquiring, based on the online production data, multiple first test data corresponding to multiple coal mining equipment, and second test data between the multiple coal mining equipment; and a testing module for testing the application based on the first test data and the second test data.
[0010] The application testing apparatus proposed in the second aspect of this disclosure acquires online production data, and based on the online production data, acquires multiple first test data corresponding to multiple coal mining equipment, and second test data between multiple coal mining equipment. The application is tested based on the first test data and the second test data. It can combine the first test data of the coal mining equipment with the second test data generated by the associated coal mining equipment, effectively realize multi-dimensional automated testing of the application, effectively verify the function of the application, and help to discover various problems that may exist in the application under test in a timely manner.
[0011] According to a third aspect of this disclosure, an electronic device is provided, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to perform a test method for an application according to an embodiment of the first aspect of this disclosure.
[0012] According to a fourth aspect of this disclosure, a non-transitory computer-readable storage medium storing computer instructions for causing the computer to execute an application program according to an embodiment of the first aspect of this disclosure is provided.
[0013] According to a fifth aspect of this disclosure, a computer program product is provided, including a computer program that, when executed by a processor, implements a testing method for an application program according to an embodiment of a first aspect of this disclosure.
[0014] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of this disclosure, nor is it intended to limit the scope of this disclosure. Other features of this disclosure will become readily apparent from the following description.
[0015] Additional aspects and advantages of this disclosure will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of this disclosure. Attached Figure Description
[0016] The above and / or additional aspects and advantages of this disclosure will become apparent and readily understood from the following description of the embodiments taken in conjunction with the accompanying drawings, in which:
[0017] Figure 1 This is a flowchart illustrating a testing method for an application proposed in an embodiment of this disclosure;
[0018] Figure 2 This is a flowchart illustrating a testing method for an application according to another embodiment of this disclosure;
[0019] Figure 3 This is a flowchart illustrating a testing method for an application according to another embodiment of this disclosure;
[0020] Figure 4 This is a schematic diagram of the structure of a testing device for an application according to an embodiment of the present disclosure;
[0021] Figure 5 This is a schematic diagram of the structure of a testing apparatus for an application according to another embodiment of the present disclosure;
[0022] Figure 6 A block diagram of an exemplary electronic device suitable for implementing embodiments of the present disclosure is shown. Detailed Implementation
[0023] Embodiments of this disclosure are described in detail below, examples of which are illustrated in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and are used only to explain this disclosure, and should not be construed as limiting this disclosure. Rather, embodiments of this disclosure include all variations, modifications, and equivalents falling within the spirit and scope of the appended claims.
[0024] Figure 1 This is a flowchart illustrating a testing method for an application proposed in an embodiment of this disclosure.
[0025] It should be noted that the execution subject of the application testing method in this embodiment is the application testing device, which can be implemented by software and / or hardware. The device can be configured in an electronic device, which may include, but is not limited to, a terminal, a server, etc.
[0026] like Figure 1 As shown, the testing methods for this application include:
[0027] S101: Obtain online production data.
[0028] In the coal industry, the multi-type and multi-dimensional data involved in online production operations, including personnel, machines, environment, and management, can be referred to as online production data. The acquisition of online production data includes data collection and storage. Data collection can be real-time collection based on one or more collection points, or it can be historical data generated periodically. Data storage can output the data as a text file or other formats and store it in the cloud or on hardware storage media. There are no restrictions on the data collection time and storage method.
[0029] For example, in coal production, data acquisition scenarios can include data from coal mining faces such as coal mining machines, scraper conveyors, transfer machines, emulsion pump stations, and working face systems, as well as data from the surrounding environment. Data collection from coal mines or other production areas can be real-time data collected from one or more locations or historical data recorded. Data storage can involve converting the collected data into text files in a specified language or storing it as a string in a cloud database.
[0030] S102: Based on online production data, obtain various first test data corresponding to various coal mining equipment, and second test data between various coal mining equipment.
[0031] Optionally, based on online production data, various coal mining equipment are controlled to execute corresponding online test tasks. Abnormal operation data and boundary operation data generated when various coal mining equipment executes corresponding online test tasks are obtained, and the abnormal operation data and boundary operation data are used as the first test data. When executing the corresponding online test tasks, abnormal linkage data and boundary linkage data between various coal mining equipment are obtained, and the abnormal linkage data and boundary linkage data are used as the second test data. By obtaining abnormal operation data and boundary operation data, the comprehensiveness of data acquisition for coal mining equipment under abnormal conditions is ensured, and the objectivity and accuracy of data testing are improved.
[0032] Among them, various coal mining equipment perform various online test tasks. When a certain coal mining equipment experiences an abnormal situation during operation, the data recorded for that equipment can be called abnormal operation data. The data recorded for that equipment under the boundary condition between abnormal operation and normal operation can be called boundary operation data. Abnormal operation data and boundary operation data are used together as the first test data.
[0033] In this system, various coal mining equipment executes different online test tasks. When a particular piece of coal mining equipment experiences an anomaly during operation, the anomaly data recorded for related equipment can be called anomaly linkage data. Data recorded for related equipment at the boundary between abnormal and normal operation can be called boundary linkage data. The equipment associated with the current piece of coal mining equipment can be one or multiple devices. Anomaly linkage data and boundary linkage data serve as secondary test data.
[0034] In this embodiment of the disclosure, the first test data and the second test data can be obtained by means of data simulation, etc. For example, a data simulator is used to simulate and simulate the normal and abnormal working modes according to the operating status and operating characteristics of various devices, including the linkage and changes of data between various devices, so as to obtain test data for abnormal testing or boundary testing.
[0035] Of course, any other possible methods can be used to obtain multiple first test data corresponding to multiple coal mining equipment and second test data between multiple coal mining equipment based on online production data, such as artificial intelligence methods, engineering methods, etc., without any restrictions.
[0036] S103: Test the application based on the first test data and the second test data.
[0037] In this embodiment of the disclosure, the first test data and the second test data are sent to the data interface of the test platform to verify the application. During the application testing process, the first test data and the second test data can be sent in a specified test order, or they can be tested according to the data change patterns between various coal mining equipment. There are no restrictions on this.
[0038] In this embodiment, by acquiring online production data, and based on the online production data, multiple first test data corresponding to various coal mining equipment and second test data between various coal mining equipment are acquired. The application is tested based on the first test data and the second test data. The first test data of the coal mining equipment can be combined with the second test data generated by the associated coal mining equipment, which can effectively realize multi-dimensional automated testing of the application, effectively verify the function of the application, and help to discover various problems that may exist in the application under test in a timely manner.
[0039] Figure 2 This is a flowchart illustrating a testing method for an application proposed in another embodiment of this disclosure.
[0040] like Figure 2 As shown, the testing methods for this application include:
[0041] S201: Determine the data collection time period and identify multiple coal collection locations for the application.
[0042] In this embodiment of the disclosure, the selection of time periods can be based on relatively typical data to generate a relatively concentrated time interval or multiple time nodes, and then a continuous time period can be generated based on the time interval, or a non-continuous time period can be generated based on multiple time nodes. The determination of multiple coal mining locations can be based on actual needs, and one or more locations can be selected in combination with the mine scenario, without any restrictions.
[0043] The coal collection location can be a coal spot on the surface or a coal-rich spot in the mine. The determination of multiple coal collection locations can be multiple locations in the same plane or different planes, or it can be multiple random locations selected in different areas of the scene space. There are no restrictions on this.
[0044] S202: Collect various online production data corresponding to multiple coal collection locations during the data collection period.
[0045] Among them, the various online production data correspond to various dimensions and various data types. The various dimensions are the functional dimensions of the application. Different dimensions can be the same or different, and different data types can be the same or different.
[0046] In this embodiment of the disclosure, online production data of corresponding data types are tested based on applications with different functional dimensions.
[0047] Optionally, multiple online production control data corresponding to multiple coal mining locations are collected; multiple online safety monitoring data corresponding to multiple coal mining locations are collected; wherein, the online production control data is real-time data or historical data, and the online safety monitoring data is real-time data or historical data, and the online production control data and the online safety monitoring data are used together as online production data.
[0048] For example, production control data could include data from coal mining face, tunneling face, main transportation, auxiliary transportation, main drainage, main ventilation, compressed air, power monitoring, local ventilation, and boiler monitoring, while safety monitoring data could include construction safety monitoring data and personnel location data.
[0049] S203: Based on online production data, obtain various first test data corresponding to various coal mining equipment, and second test data between various coal mining equipment.
[0050] S204: Test the application based on the first test data and the second test data.
[0051] The descriptions of S203-S204 can be found in the above embodiments, and will not be repeated here.
[0052] In this embodiment, by determining the data collection time period and multiple coal collection locations of the application, various online production data corresponding to the multiple coal collection locations are collected within the data collection time period. Based on the online production data, various first test data corresponding to various coal mining equipment and second test data between various coal mining equipment are obtained. The application is tested based on the first test data and the second test data. Since multiple time periods are used and the collection method of multiple coal collection locations is combined, the test results can more accurately reflect the online production situation of the corresponding coal mine construction area, ensuring that the collected data is comprehensive and complete. At the same time, the setting of abnormal data can verify the fault tolerance and application robustness of the tested application under various abnormal data conditions.
[0053] Figure 3 This is a flowchart illustrating a testing method for an application proposed in another embodiment of this disclosure.
[0054] like Figure 3 As shown, the testing methods for this application include:
[0055] S301: Obtain online production data.
[0056] S302: Based on online production data, obtain various first test data corresponding to various coal mining equipment, and second test data between various coal mining equipment.
[0057] S303: Test the application based on the first test data and the second test data.
[0058] The descriptions of S301-S303 can be found in the above embodiments, and will not be repeated here.
[0059] S304: The first test data and the second test data are processed by a preset protocol to obtain the first converted data corresponding to the first test data and the second converted data corresponding to the second test data.
[0060] In this embodiment of the disclosure, the preset protocol may be the interface protocol of the application. The first test data and the second test data are converted into data formats that meet the requirements of the corresponding preset protocol by performing data conversion processing on the preset protocol.
[0061] For example, converting a text file containing the first test data into a data file in the programming language corresponding to the application.
[0062] S305: Test and verify the first and second conversion data respectively according to the preset test conditions.
[0063] In this regard, the admission conditions for testing can be preset according to the actual needs of the application. These preset test conditions can be called preset test conditions.
[0064] In this embodiment of the disclosure, the first conversion data and the second conversion data can be tested and verified by preset test conditions to determine whether the first conversion data and the second conversion data can be used for application testing.
[0065] S306: If the test verification results meet the set results, then the application is tested based on the first conversion data and the second conversion data.
[0066] Optionally, production performance testing is performed on the application based on the first conversion data and the second conversion data; if the amount of the first conversion data and the second conversion data exceeds the data amount threshold, stress testing is performed on the application based on the first conversion data and the second conversion data.
[0067] In some embodiments, by simulating the working conditions of various work surfaces in the system, the application's production results under various production scenarios are tested using first and second transformed data. This testing method can be called production performance testing. Sending data exceeding a data volume threshold intensively increases the data volume per unit time, simulating a large data test scenario, and subjecting the application under test to high-intensity testing of its processing capabilities. This high-intensity test can be called stress testing. Through stress testing and production performance testing, it is possible to realistically simulate whether the application can stably handle large data volumes, promptly identify program anomalies caused by large data volumes, and make timely improvements and repairs. In stress testing, large-scale data with a long time span can be selected as sample data, such as data samples from the past three years, to meet the needs of stress testing.
[0068] In this embodiment of the disclosure, the improvement and repair of abnormal situations can be achieved by simulating normal and abnormal datasets between different equipment and systems on various working faces under various production conditions. This allows for the simulation and testing of production results under multiple production scenarios. Under normal and abnormal conditions, the data simulation and support for working faces and major equipment can be provided, enabling the data to reflect the data change trends and characteristics under the coordinated linkage of various coal working faces, thus facilitating the improvement and repair of data under abnormal situations.
[0069] In this embodiment, online production data is acquired, and based on this data, various first test data corresponding to different coal mining equipment and second test data between different coal mining equipment are obtained. The application is then tested based on the first and second test data. Subsequently, a preset protocol is used to perform data conversion processing on the first and second test data to obtain first converted data corresponding to the first test data and second converted data corresponding to the second test data. The first and second converted data are then tested and verified according to preset test conditions. If the test and verification results meet the set results, the application is tested based on the first and second converted data. Through data conversion and stress testing, comprehensive data support is provided for the application's functional testing, ensuring that the application can run smoothly. At the same time, the improvement and repair functions for abnormal situations are enhanced, ensuring the stability of the application.
[0070] Figure 4 This is a schematic diagram of the structure of a testing device for an application according to an embodiment of the present disclosure.
[0071] like Figure 4 As shown, the test apparatus 40 for this application includes:
[0072] The first acquisition module 401 is used to acquire online production data;
[0073] The second acquisition module 402 is used to acquire, based on online production data, multiple first test data corresponding to multiple coal mining equipment, and second test data between multiple coal mining equipment;
[0074] The first test module 403 is used to test the application based on the first test data and the second test data.
[0075] In some embodiments of this disclosure, such as Figure 5 As shown, Figure 5 This is a schematic diagram of the structure of a testing device for an application according to another embodiment of the present disclosure. The first acquisition module 401 includes:
[0076] The determination submodule 4011 is used to determine the data acquisition time period and to determine multiple coal acquisition locations of the application.
[0077] The data acquisition submodule 4012 is used to collect various online production data corresponding to multiple coal collection locations during the data acquisition period.
[0078] Among them, multiple online production data correspond to multiple dimensions and multiple data types. Multiple dimensions are the functional dimensions of the application. Multiple dimensions may be the same or different, and multiple data types may be the same or different.
[0079] In some embodiments of this disclosure, such as Figure 5 As shown, the acquisition submodule 4011 is specifically used for:
[0080] Collect production control data from various online systems corresponding to multiple coal collection locations;
[0081] Collect various online safety monitoring data corresponding to multiple coal mining locations;
[0082] Among them, online production control data is real-time data or historical data, and online safety monitoring data is real-time data or historical data. Online production control data and online safety monitoring data are collectively referred to as online production data.
[0083] In some embodiments of this disclosure, such as Figure 5 As shown, the second acquisition module 402 is specifically used for:
[0084] Based on online production data, control various coal mining equipment to execute corresponding online test tasks;
[0085] Acquire abnormal operation data and boundary operation data generated when various coal mining equipment executes various online test tasks, and use the abnormal operation data and boundary operation data as the first test data;
[0086] When performing the corresponding online test tasks, abnormal linkage data and boundary linkage data between various coal mining equipment are acquired, and the abnormal linkage data and boundary linkage data are used as the second test data.
[0087] In some embodiments of this disclosure, such as Figure 5 As shown, it also includes:
[0088] The conversion module 404 is used to perform data conversion processing on the first test data and the second test data respectively using a preset protocol after testing the application based on the first test data and the second test data, so as to obtain the first converted data corresponding to the first test data and the second converted data corresponding to the second test data.
[0089] The second test module 405 is used to test and verify the first conversion data and the second conversion data respectively according to preset test conditions;
[0090] The third test module 406 is used to test the application based on the first conversion data and the second conversion data when the test verification results meet the set results.
[0091] In some embodiments of this disclosure, such as Figure 5 As shown, the second test module 405 is specifically used for:
[0092] The application is tested for production performance based on the first and second conversion data.
[0093] When the total amount of the first and second transformed data exceeds the data volume threshold, stress tests are performed on the application based on the first and second transformed data.
[0094] With the above Figures 1 to 4 Corresponding to the application testing method provided in the embodiments, this disclosure also provides an application testing apparatus. Since the application testing apparatus provided in the embodiments of this disclosure is similar to the one described above... Figures 1 to 4 The application testing method provided in the embodiments corresponds to the application testing device provided in the embodiments of this disclosure, and will not be described in detail in the embodiments of this disclosure.
[0095] In this embodiment, by acquiring online production data, and based on the online production data, acquiring multiple first test data corresponding to various coal mining equipment, and second test data between various coal mining equipment, and testing the application based on the first test data and the second test data, the first test data of the coal mining equipment can be combined with the second test data generated by the associated coal mining equipment, effectively realizing multi-dimensional automated testing of the application, effectively verifying the functions of the application, and helping to promptly discover various problems that may exist in the application under test.
[0096] To implement the above embodiments, this disclosure also proposes a non-transitory computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements a testing method for the application program as proposed in the foregoing embodiments of this disclosure.
[0097] To implement the above embodiments, this disclosure also proposes an electronic device, including: a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, it implements a testing method for the application program as proposed in the foregoing embodiments of this disclosure.
[0098] To implement the above embodiments, this disclosure also proposes a computer program product that, when executed by an instruction processor, performs a testing method for an application program as described in the foregoing embodiments of this disclosure.
[0099] Figure 6 A block diagram of an exemplary electronic device suitable for implementing embodiments of the present disclosure is shown. Figure 6 The electronic device 12 shown is merely an example and should not impose any limitation on the functionality and scope of use of the embodiments disclosed herein.
[0100] like Figure 6As shown, electronic device 12 is represented in the form of a general-purpose computing device. Components of electronic device 12 may include, but are not limited to: one or more processors or processing units 16, system memory 28, and a bus 18 connecting different system components (including system memory 28 and processing unit 16). Bus 18 represents one or more of several bus architectures, including a memory bus or memory controller, a peripheral bus, a graphics acceleration port, a processor, or a local bus using any of the various bus architectures. For example, these architectures include, but are not limited to, the Industry Standard Architecture (ISA) bus, the MicroChannel Architecture (MAC) bus, the Enhanced ISA bus, the Video Electronics Standards Association (VESA) local bus, and the Peripheral Component Interconnect (PCI) bus.
[0101] Electronic device 12 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by electronic device 12, including volatile and non-volatile media, removable and non-removable media.
[0102] Memory 28 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM) 30 and / or cache memory 32. Electronic device 12 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, storage system 34 may be used to read and write non-removable, non-volatile magnetic media (… Figure 6 Not shown; usually referred to as a "hard drive".
[0103] although Figure 6Not shown, a disk drive for reading and writing to a removable non-volatile disk (e.g., a "floppy disk") and an optical disc drive for reading and writing to a removable non-volatile optical disc (e.g., a compact disc read-only memory (CD-ROM), a digital video disc read-only memory (DVD-ROM), or other optical media) may be provided. In these cases, each drive may be connected to bus 18 via one or more data media interfaces. Memory 28 may include at least one program product having a set (e.g., at least one) of program modules configured to perform the functions of the embodiments of this disclosure.
[0104] A program / utility 40 having a set (at least one) of program modules 42 may be stored, for example, in memory 28. Such program modules 42 include, but are not limited to, an operating system, one or more application programs, other program modules, and program data. Each or some combination of these examples may include an implementation of a network environment. Program modules 42 typically perform the functions and / or methods described in the embodiments of this disclosure.
[0105] Electronic device 12 can also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), and with one or more devices that enable a user to interact with electronic device 12, and / or with any device that enables electronic device 12 to communicate with one or more other computing devices (e.g., network card, modem, etc.). This communication can be performed via input / output (I / O) interface 22. Furthermore, electronic device 12 can also communicate with one or more networks (e.g., local area network (LAN), wide area network (WAN), and / or public networks, such as the Internet) via network adapter 20. As shown, network adapter 20 communicates with other modules of electronic device 12 via bus 18. It should be understood that, although not shown in the figures, other hardware and / or software modules can be used in conjunction with electronic device 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0106] The processing unit 16 executes various functional applications and data processing by running programs stored in the system memory 28, such as implementing the application testing method mentioned in the foregoing embodiments.
[0107] Other embodiments of this disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this disclosure are indicated by the following claims.
[0108] It should be understood that this disclosure is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this disclosure is limited only by the appended claims.
[0109] It should be noted that in the description of this disclosure, the terms "first," "second," etc., are used for descriptive purposes only and should not be construed as indicating or implying relative importance. Furthermore, in the description of this disclosure, unless otherwise stated, "a plurality of" means two or more.
[0110] Any process or method description in the flowchart or otherwise herein can be understood as representing a module, segment, or portion of code comprising one or more executable instructions for implementing a specified logical function or process, and the scope of preferred embodiments of this disclosure includes additional implementations in which functions may be performed not in the order shown or discussed, including substantially simultaneously or in reverse order depending on the function involved, as will be understood by those skilled in the art to which embodiments of this disclosure pertain.
[0111] It should be understood that various parts of this disclosure can be implemented using hardware, software, firmware, or a combination thereof. In the above embodiments, multiple steps or methods can be implemented using software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, it can be implemented using any one or a combination of the following techniques known in the art: discrete logic circuits having logic gates for implementing logical functions on data signals, application-specific integrated circuits (ASICs) having suitable combinational logic gates, programmable gate arrays (PGAs), field-programmable gate arrays (FPGAs), etc.
[0112] Those skilled in the art will understand that all or part of the steps of the methods in the above embodiments can be implemented by a program instructing related hardware. The program can be stored in a computer-readable storage medium, and when executed, the program includes one or a combination of the steps of the method embodiments.
[0113] Furthermore, the functional units in the various embodiments of this disclosure can be integrated into a processing module, or each unit can exist physically separately, or two or more units can be integrated into a module. The integrated module can be implemented in hardware or as a software functional module. If the integrated module is implemented as a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium.
[0114] The storage media mentioned above can be read-only memory, disk, or optical disk, etc.
[0115] In the description of this specification, the references to terms such as "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of this disclosure. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples.
[0116] Although embodiments of the present disclosure have been shown and described above, it is to be understood that the above embodiments are exemplary and should not be construed as limiting the present disclosure. Those skilled in the art can make changes, modifications, substitutions and variations to the above embodiments within the scope of the present disclosure.
Claims
1. A method for testing an application, characterized in that, The application is for the coal industry, and the method includes: Obtain online production data; Based on the online production data, a data simulator is used to simulate and simulate the normal and abnormal working modes of various coal mining equipment according to their operating status and characteristics, so as to control various coal mining equipment to perform various online test tasks respectively. Obtain abnormal operation data and boundary operation data generated when the various coal mining equipment executes the corresponding online test tasks, and use the abnormal operation data and boundary operation data as various first test data. When performing the online test task, abnormal linkage data and boundary linkage data between the various coal mining equipment are acquired, and the abnormal linkage data and boundary linkage data are used as the second test data. The application is tested based on the first test data and the second test data.
2. The method as described in claim 1, characterized in that, The acquisition of online production data includes: Determine the data collection time period and identify multiple coal collection locations for the application; During the data collection period, various online production data corresponding to the multiple coal collection locations are collected. The various online production data correspond to various dimensions and various data types. The various dimensions are the functional dimensions of the application. The various dimensions may be the same or different, and the various data types may be the same or different.
3. The method as described in claim 2, characterized in that, The collection of various online production data corresponding to the multiple coal collection locations includes: Collect production control data from various online systems corresponding to the multiple coal collection locations; Collect various types of online safety monitoring data corresponding to the multiple coal collection locations; The online production control data is either real-time or historical data, and the online safety monitoring data is either real-time or historical data. The online production control data and the online safety monitoring data are collectively referred to as the online production data.
4. The method as described in claim 1, characterized in that, After testing the application based on the first test data and the second test data, the method further includes: The first test data and the second test data are processed by a preset protocol to obtain first converted data corresponding to the first test data and second converted data corresponding to the second test data. The first converted data and the second converted data were tested and verified according to the preset test conditions. If the test verification results meet the set results, the application is tested based on the first conversion data and the second conversion data.
5. The method as described in claim 4, characterized in that, The step of testing the application based on the first conversion data and the second conversion data includes: The application is subjected to production performance testing based on the first conversion data and the second conversion data; If the total amount of the first and second converted data exceeds the data volume threshold, then the application is subjected to stress testing based on the first and second converted data.
6. A testing apparatus for an application, characterized in that, The device includes: The first acquisition module is used to acquire online production data; The second acquisition module is used to simulate and simulate the normal and abnormal working modes of various coal mining equipment based on the online production data using a data simulator, according to the operating status and operating characteristics of various coal mining equipment, so as to control the various coal mining equipment to execute various corresponding online test tasks; acquire abnormal operation data and boundary operation data generated when the various coal mining equipment executes the corresponding online test tasks, and use the abnormal operation data and boundary operation data as various first test data; when executing the corresponding online test tasks, acquire abnormal linkage data and boundary linkage data between the various coal mining equipment, and use the abnormal linkage data and boundary linkage data as second test data; The first testing module is used to test the application based on the first test data and the second test data.
7. The apparatus as claimed in claim 6, characterized in that, The first acquisition module includes: The determination submodule is used to determine the data collection time period and to determine multiple coal collection locations of the application. The data acquisition submodule is used to acquire various online production data corresponding to the multiple coal acquisition locations during the data acquisition time period. The various online production data correspond to various dimensions and various data types. The various dimensions are the functional dimensions of the application. The various dimensions may be the same or different, and the various data types may be the same or different.
8. An electronic device, comprising: At least one processor; as well as A memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-5.
9. A non-transitory computer-readable storage medium storing computer instructions, wherein, The computer instructions are used to cause the computer to perform the method according to any one of claims 1-5.
Citation Information
Patent Citations
Mock test method and device, server and electronic equipment
CN109726117A