CN111581084B - Process testing method and device based on intelligent electric meter operating system - Google Patents

Process testing method and device based on intelligent electric meter operating system Download PDF

Info

Publication number
CN111581084B
CN111581084B CN202010348257.1A CN202010348257A CN111581084B CN 111581084 B CN111581084 B CN 111581084B CN 202010348257 A CN202010348257 A CN 202010348257A CN 111581084 B CN111581084 B CN 111581084B
Authority
CN
China
Prior art keywords
test
code
detected
result
test result
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.)
Active
Application number
CN202010348257.1A
Other languages
Chinese (zh)
Other versions
CN111581084A (en
Inventor
谢文旺
张文瀚
张乐平
张本松
林俊宏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Southern Power Grid Digital Grid Technology Guangdong Co ltd
Original Assignee
Southern Power Grid Digital Grid Research Institute 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 Southern Power Grid Digital Grid Research Institute Co Ltd filed Critical Southern Power Grid Digital Grid Research Institute Co Ltd
Priority to CN202010348257.1A priority Critical patent/CN111581084B/en
Publication of CN111581084A publication Critical patent/CN111581084A/en
Application granted granted Critical
Publication of CN111581084B publication Critical patent/CN111581084B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3604Software analysis for verifying properties of programs
    • 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
    • G06F11/3672Test management
    • G06F11/3676Test management for coverage analysis
    • 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
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases
    • 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
    • G06F11/3672Test management
    • G06F11/3692Test management for test results analysis

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Remote Monitoring And Control Of Power-Distribution Networks (AREA)

Abstract

The application relates to a process testing method and device based on an intelligent electric meter operating system, computer equipment and a storage medium. The method comprises the steps of obtaining a code to be detected for realizing and controlling a process function in an operating system of the intelligent electric meter, carrying out a first test on the code to be detected to obtain a first test result, carrying out a second test on the code to be detected to obtain a second test result, and outputting a process test report corresponding to the operating system of the intelligent electric meter according to the first test result and the second test result. Compared with the traditional method of testing the performance and the function of the intelligent electric meter, the method and the system have the advantages that the codes of the intelligent electric meter and the control process function are correspondingly detected in the operating system of the intelligent electric meter, so that the process of the operating system of the intelligent electric meter is tested.

Description

Process testing method and device based on intelligent electric meter operating system
Technical Field
The application relates to the technical field of intelligent electric meter operating systems, in particular to a process testing method and device based on an intelligent electric meter operating system, computer equipment and a storage medium.
Background
The electric meter is an important device in an electric power system, the electric meter can realize functions of metering electric energy, recording events and the like, the current electric meter generally uses embedded codes to realize related functions, and in recent years, with the continuous development of energy Internet and the continuous deepening of electric power market reformation, new service scenes emerging in new periods provide higher requirements on the aspects of interactivity, efficiency, safety and the like of the electric meter, so that the intelligent electric meter with an operating system becomes a main direction of electric meter development, the embedded operating system is introduced into the intelligent electric meter, and the embedded electric meter is a necessary means for meeting the increasing functional requirements on the intelligent electric meter.
In the process of realizing the overall function of the operating system of the intelligent electric meter, the process in the operating system needs to be tested and detected, the process is used as a basic unit for allocating resources to the operating system of the intelligent electric meter, and the advantages and disadvantages of the function, the performance and the safety of the process become core links influencing the performance of the operating system.
Therefore, how to test the process in the operating system of the smart meter becomes a problem which needs to be solved urgently.
Disclosure of Invention
In view of the foregoing, it is necessary to provide a process testing method, apparatus, computer device and storage medium based on a smart meter operating system, which can implement a process testing on the smart meter operating system.
A process testing method based on an operating system of a smart meter is applied to the smart meter, and comprises the following steps:
acquiring a code to be detected for realizing and controlling a process function in an operating system of the intelligent electric meter;
carrying out first test on the code to be detected to obtain a first test result; the first test comprises a coding specification test, a vulnerability test, a quality test and a coverage rate test; the quality test comprises at least one of scale detection, complexity detection and reusability detection;
performing a second test on the code to be detected to obtain a second test result; the second test comprises a process management test, a process communication test, a time test and a safety test; the process management test comprises at least one of a process creation and deletion test, a priority test and a state switching test;
and outputting a process test report corresponding to the operating system of the intelligent ammeter according to the first test result and the second test result.
In one embodiment, the code specification test in the first test is performed on the code to be detected, and includes:
comparing the code to be detected with a preset coding standard to obtain a comparison result; the comparison result comprises the conformity of the format of the code to be detected and the preset coding standard; the preset coding standard is obtained based on an operating system of the intelligent ammeter;
obtaining a normative test result according to the conformity; the first test result comprises the normative test result.
In one embodiment, the detecting the vulnerability in the first test on the code to be detected includes:
detecting whether vulnerability data meeting preset vulnerability rules exist in the code to be detected to obtain a vulnerability test result; the first test result comprises the vulnerability test result; the preset vulnerability rule is obtained based on the memory information of the intelligent electric meter, the user information of the intelligent electric meter and the database corresponding to the intelligent electric meter.
In one embodiment, the coverage rate test in the first test is performed on the code to be detected, and includes:
generating a preset test case according to the code to be detected;
according to the preset test case, performing condition combination coverage test and path coverage test on the code to be detected to obtain a coverage rate test result; the first test result comprises the coverage rate test result.
In one embodiment, the process communication test in the second test is performed on the code to be detected, including:
generating a sending process and a receiving process, wherein the sending process and the receiving process are communicated through a preset communication mechanism;
sending a preset instruction to the receiving process by using the sending process through the preset communication mechanism so that the receiving process receives the preset instruction;
comparing the instruction received by the receiving process with the preset instruction to obtain a comparison result;
obtaining a communication test result according to the comparison result and the execution condition of the receiving process responding to the preset instruction; the second test result comprises the communication test result.
In one embodiment, the time test in the second test is performed on the code to be detected, and includes:
generating a first process and a second process; the first process and the second process respectively output corresponding pulse signals when running; setting the first process as an operating state, and setting the second process as a to-be-operated state;
terminating the first process, and acquiring first time when the pulse signal corresponding to the first process stops being output;
starting the second process, and acquiring second time when the second process starts to output a corresponding pulse signal;
obtaining a time test result according to the first time and the second time; the second test result comprises the time test result.
In one embodiment, the security test in the second test is performed on the code to be detected, including:
generating a plurality of processes; setting the plurality of processes to a running state;
setting one of the plurality of running processes to an abnormal state;
detecting the running state of other processes;
obtaining a safety test result according to the running states of the other processes; the second test result comprises the safety test result.
A progress testing device based on a smart electric meter operating system is applied to a smart electric meter, and the device comprises:
the acquisition module is used for acquiring the codes to be detected for realizing and controlling the process function in the operating system of the intelligent ammeter;
the first testing module is used for carrying out first testing on the code to be detected to obtain a first testing result; the first test comprises a coding specification test, a vulnerability test, a quality test and a coverage rate test; the quality test comprises at least one of scale detection, complexity detection and reusability detection;
the second testing module is used for carrying out second testing on the code to be tested to obtain a second testing result; the second test comprises a process management test, a process communication test, a time test and a safety test; the process management test comprises at least one of a process creation and deletion test, a priority test and a state switching test;
and the output module is used for outputting a process test report corresponding to the operating system of the intelligent electric meter according to the first test result and the second test result.
A computer device comprises a memory and a processor, wherein the memory stores a computer program, and the processor implements the process testing method based on the smart meter operating system when executing the computer program.
A computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, implements the smart meter operating system-based process testing method as described above.
According to the process testing method, the process testing device, the computer equipment and the storage medium based on the intelligent ammeter operating system, the code to be tested for realizing and controlling the process function in the intelligent ammeter operating system is obtained, then the first test is carried out on the code to be tested to obtain a first test result, wherein the first test comprises a code specification test, a leak test, a quality test and a coverage rate test, and the second test can also be carried out on the code to be tested to obtain a second test result, wherein the second test comprises a process management test, a process communication test, a time test and a safety test, and then a process test report corresponding to the intelligent ammeter operating system is output according to the first test result and the second test result. Compared with the traditional method of testing the performance and the function of the intelligent electric meter, the method and the system have the advantages that the codes of the intelligent electric meter and the control process function are correspondingly detected in the operating system of the intelligent electric meter, so that the process of the operating system of the intelligent electric meter is tested.
Drawings
FIG. 1 is a schematic flow chart illustrating a process testing method based on an operating system of a smart meter according to an embodiment;
FIG. 2 is a schematic flow chart of a first testing step in one embodiment;
FIG. 3 is a schematic flow chart of a second testing step in one embodiment;
FIG. 4 is a schematic flowchart illustrating a process testing method based on an operating system of a smart meter according to another embodiment;
FIG. 5 is a block diagram of a process testing device based on an operating system of a smart meter according to an embodiment;
FIG. 6 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The method can be applied to intelligent electric meters, the intelligent electric meters can be intelligent electric meters meeting the IR46 standard, wherein the IR46 standard is international suggestions for electric energy meters, is a technical document drafted by the metering organization of the international law, provides suggestions for type approval of newly designed and produced electric energy meters, is an important component of metering of the international law, and the IR46 provides new requirements for metering, controlling, performance and the like of the electric meters. The smart meter may include an operating system, where the operating system may be composed of a plurality of codes, where the plurality of codes may form a corresponding process, where the operating system may be a computer program that manages hardware and software resources of the smart meter, and may also be a kernel and a keystone of the smart meter system; the operating system needs to process basic transactions such as managing and configuring memory, determining the priority of supply and demand of system resources, controlling input devices and output devices, operating a network, managing a file system and the like; the operating system also provides an operator interface for the user to interact with the system. The process can be a running activity of a program in the smart meter on a certain data set, is a basic unit for resource allocation and scheduling of the system, and is the basis of an operating system structure. The smart meter can detect the process in the operating system correspondingly.
In one embodiment, as shown in fig. 1, a process testing method based on a smart meter operating system is provided, which is described by taking the method as an example for being applied to a smart meter, and includes the following steps:
step S202, acquiring a code to be detected for realizing and controlling a process function in an operating system of the intelligent electric meter.
The smart meter may obtain a code in the operating system, which is responsible for implementing and controlling the process function, and as the code to be detected, for example, the code may be responsible for implementing the kernel layer function. Due to the characteristics of the hierarchical structure of the embedded operating system of the intelligent electric meter, the functions of the kernel layer code comprise task management and inter-task communication, such as semaphore, mutex, message queue, condition variable and event set; memory management, such as memory heap and fixed-length memory partitions; software timers, event management, terminal management, exception handling, process management, etc. On the basis of acquiring the kernel layer code, the smart electric meter can acquire a code for realizing and controlling the process function of the operating system through the header file analysis and positioning function, and the code to be detected is used as a code to be detected, wherein the code to be detected comprises design source codes for process function management, process communication management, process switching management, process security management and the like.
Step S204, carrying out a first test on the code to be detected to obtain a first test result; the first test comprises a code specification test, a vulnerability test, a quality test and a coverage rate test; the quality test comprises at least one of scale detection, complexity detection and reusability detection.
As shown in fig. 2, fig. 2 is a schematic flow chart of a first testing step in one embodiment. The first test may be a universality test performed on the code to be detected in the operating system of the smart meter, and the universality test may be a test item that can be reused in a process test process of the entire operating system. The first test may include a code specification test, a vulnerability test, a quality test, and a coverage test as shown in fig. 2, wherein the quality test may include at least one of a code scale test, a code complexity test, and a code reusability test. It should be noted that the quality test may further include at least the code scale detection, the code complexity detection, and the code reusability detection, that is, the smart meter may obtain a test result of the quality test at least through a common test result of the code scale detection, the code complexity detection, and the code reusability detection.
The code specification test, the vulnerability test and the quality test can be static test items, wherein the vulnerability test can comprise a test for detecting code defects and security vulnerabilities; the coverage test may be a dynamic test item. Specifically, the coverage test may be a code coverage test, the coding specification test may be a test on a coding specification of a code, the vulnerability test may be a test on a defect and a security vulnerability of the code, and the quality test may be a test on the quality of software. The intelligent electric meter can perform first test on the code to be detected and obtain a first test result.
Step S206, carrying out a second test on the code to be detected to obtain a second test result; the second test comprises a process management test, a process communication test, a time test and a safety test; the process management test includes at least one of a process creation and deletion test, a priority test, and a state switching test.
As shown in fig. 3, fig. 3 is a schematic flow chart of a second testing step in one embodiment. The intelligent electric meter can also perform a second test on the code to be detected, and can obtain a second test result. The second test may be a specificity test of the code to be detected, that is, a test may be performed on the function itself of the process in the operating system. The specificity test may be developed from functionality, performance and security, and may specifically include a process management test, a process communication test, a time test, and a security test as shown in fig. 3. The process management test may be a test on a management function of a process, and may include at least one of a process creation and deletion test, a priority test of a process, and a process state switching test, for example; it should be noted that the process management test may further include at least the process creation and deletion test, the priority test of the process, and the process state switching test, that is, the smart meter may obtain the process management test result at least through a common test result of the process creation and deletion test, the priority test of the process, and the process state switching test.
The intelligent electric meter can obtain a test result of the process management test through the process management test, wherein the test result can include whether the process can correctly realize the functions of creating and deleting the process; whether the priority assignment function of the tested system can be correctly realized or not; whether the process scheduling at least supports three states of ready, running and blocking, and the switched processes can be protected and recovered on site during the process scheduling. Whether a scheduling algorithm based on priority preemption is supported or not, processes with high priority are processed first, and a scheduling strategy using a time slice wheel or first-in first-out is supported.
The process communication test can be to test the communication function between processes; the time test may be to test the switching time of the process; the security test may be a test of the abnormal state handling capability of the process. And after the intelligent electric meter performs the second test, a second test result can be obtained.
And S208, outputting a process test report corresponding to the operating system of the intelligent electric meter according to the first test result and the second test result.
The first test result may be a test result obtained after the smart meter completes the first test, and the second test result may be a test result obtained after the smart meter completes the second test. After the smart meter completes the first test and the second test and obtains the corresponding test results, the smart meter may output a process test report corresponding to the operating system of the smart meter according to the first test result and the second test result, and specifically, the smart meter may perform comparative analysis according to the test result of each test sub-item and a preset judgment criterion, thereby outputting a report of the process test of the operating system of the smart meter. The smart meter may present the report, and the relevant technician may view the report and perform relevant processing.
According to the process testing method based on the intelligent ammeter operating system, a first test is carried out on a code to be detected, which realizes and controls a process function in the intelligent ammeter operating system, and then the code to be detected is subjected to a first test, so that a first test result is obtained, wherein the first test comprises a code specification test, a vulnerability test, a quality test and a coverage rate test, and a second test can also be carried out on the code to be detected, so that a second test result is obtained, wherein the second test comprises a process management test, a process communication test, a time test and a safety test, and then a process test report corresponding to the intelligent ammeter operating system is output according to the first test result and the second test result. Compared with the traditional method of testing the performance and the function of the intelligent electric meter, the method and the system have the advantages that the codes of the intelligent electric meter and the control process function are correspondingly detected in the operating system of the intelligent electric meter, so that the process of the operating system of the intelligent electric meter is tested.
In one embodiment, the quality test may be at least one of a code scale check, a code complexity check, and a code reusability check. It should be noted that the quality test may further include at least the code scale detection, the code complexity detection, and the code reusability detection, that is, the smart meter may obtain a test result of the quality test at least through a common test result of the code scale detection, the code complexity detection, and the code reusability detection. The quality test can be based on an internal software quality measurement model and a measurement element, the code quality is quantitatively evaluated through data obtained by relevant tests, typical measurement elements comprise software module scale measurement, software module complexity measurement, software module fan-in and fan-out measurement and the like, the prediction error number and the workload are obtained through quantizing program codes, the intelligent ammeter can take three layers of a to-be-detected code based on a LOC measurement method, a McCabe measurement method and fan-in and fan-out measurement as main test contents in the quality test, specifically, for the LOC measurement, the average line number of the to-be-detected code is not more than 200 lines, and the proportion of more than 200 lines is not more than a%; for the McCabe measurement, the average circle complexity of the software module corresponding to the code to be detected is not more than 10, the maximum circle complexity of the software module is not more than 80, and the proportion of the circle complexity of the software module being more than 10 but not more than 40 is not more than b%; the proportion of more than 40 is not more than c%; for the fan-in fan-out measurement, the fan-out number of the high-level module of the code to be detected is not less than d%; the fan-in number of the bottom layer module is not less than e%. The values a, b, c, d, and e may be preset values, and the number of circles is +1, which is the number of determination nodes. For a multi-branch CASE structure or an IF-ELSE structure, a special attention is needed when counting the number of decision nodes, and it is required that all the actual decision nodes, i.e. each ELSE statement and each CASE statement, should be counted as a decision node.
Through this embodiment, smart electric meter treats through multiple mode and detects the code and carry out quality test to the realization detects the comprehensive of smart electric meter process.
In one embodiment, the code to be detected is subjected to a code specification test in a first test, which comprises the steps of comparing the code to be detected with a preset code standard to obtain a comparison result; the comparison result comprises the conformity of the format of the code to be detected and a preset coding standard; the preset coding standard is obtained based on an operating system of the intelligent ammeter; obtaining a normative test result according to the conformity; the first test result includes a normative test result.
In this embodiment, the first test may include a code specification test, and the smart meter may perform the code specification test on the code to be detected. Specifically, the smart meter may first obtain a preset coding specification, where the preset coding specification may be a coding specification optimized for an operating system of the smart meter, for example, may be an MISRAC coding specification optimized for the operating system of the smart meter; the smart meter can obtain the code to be detected, and compare the code to be detected with the preset coding standard to obtain a comparison result, where the comparison result may include a conformity between the code to be detected and the preset coding standard, and in addition, the smart meter can output a general description of the normalization of the code to be detected after the coding specification test, such as a specification or an unnormalization, and can also output a probability that the code conforms to the specification and a probability that the code violates the specification. The smart meter may obtain a normative test result according to the compliance, and the normative test result may be included in the first test result.
Through this embodiment, the intelligent ammeter can obtain the normative result of the code to be detected by carrying out normative test on the code to be detected, so that related technical personnel can standardize the development and design process of related functions such as the intelligent ammeter operating system process according to the result, the optimization of the process code is realized, and the process of the intelligent ammeter operating system is tested.
In one embodiment, the detecting the vulnerability in the first test for the code to be detected includes: detecting whether vulnerability data meeting preset vulnerability rules exist in the code to be detected to obtain a vulnerability test result; the first test result comprises a vulnerability test result; the preset vulnerability rules are obtained based on the memory information of the intelligent electric meter, the user information of the intelligent electric meter and the database corresponding to the intelligent electric meter.
In this embodiment, the first test of the to-be-detected code by the smart meter may further include a vulnerability test, and the vulnerability test may include testing a defect and a security vulnerability of the to-be-detected code in a process of an operating system of the smart meter. The smart meter can perform defect checking on process codes according to typical defect rules, and find out errors and code defects existing in the operation process under a static condition through set algorithm logic and code analysis technology. Specifically, the vulnerability test may include test rules for quality reliability, such as process call memory and resource leaks, use of released memory, incorrect memory release, null pointer dereferencing, buffer overflow, array boundary crossing, use of initialized data, resource management issues and concurrency issues, and the like; the method can further comprise a security vulnerability defect test rule, for example, unverified user input, SQL injection, Path injection, File injection, information leakage, packaging and the like, and the smart meter can generate a preset vulnerability rule according to the test rule, namely, the smart meter can obtain the preset vulnerability rule based on the memory information of the smart meter, the user information of the smart meter and a database corresponding to the smart meter.
The smart electric meter may detect the code to be detected according to the preset bug rule, detect whether the code includes a defect existing in the preset bug rule, and obtain a corresponding bug test result, where the result may include information such as whether a quality reliability type defect exists in the code to be detected and whether a security bug type defect exists, and the bug test result may be included in the first test result.
Through this embodiment, smart electric meter can be according to predetermineeing the leak and to treating that the detection code carries out the leak detection, has improved the security that detects the code to the realization is to the comprehensive detection of smart electric meter operating system's process.
In one embodiment, the performing the coverage test in the first test on the code to be detected includes: generating a preset test case according to the code to be detected; according to a preset test case, performing condition combination coverage test and path coverage test on the code to be detected to obtain a coverage rate test result; the first test result comprises a coverage rate test result.
In this embodiment, the first test performed by the smart meter on the code to be detected may further include a coverage rate test, where the coverage rate test may be a code coverage rate test, and the coverage rate evaluation may be an important means when the software product is authenticated, and mainly includes forms of statement coverage, judgment coverage, condition coverage, judgment-condition coverage, condition combination coverage, path coverage, and the like. Due to the characteristics and differences of the source code developed by the operating system process of the intelligent electric meter, the coverage test can be performed from two aspects of condition combination coverage and path coverage. Specifically, a preset test case can be generated according to the code to be detected, the code to be detected is obtained, a function in the code to be detected is subjected to piling, a condition combination coverage test and a path coverage test can be performed on the code to be detected according to the preset test case, so that a coverage rate test result is output, the result can include a condition combination coverage rate test value, a comparison analysis with a preset value, a comparison analysis between the path coverage rate test value and the preset value, and the like, in addition, the intelligent electric meter can perfect the preset test case according to the coverage rate condition, so that a regression test is performed. The coverage test result may be included in the first test result.
Through this embodiment, smart electric meter can treat the code and carry out the coverage test to above-mentioned to obtain the coverage test result, thereby improved smart electric meter's the comprehensiveness that detects.
In one embodiment, process management testing may include creation, deletion, scheduling policies and related control functions of a process; the method can also comprise four layers of process creation and deletion test, process priority test, process state switching test and process scheduling strategy test, so that the resource allocation is realized during the process creation, and the process extinction is the resource recovery. Specifically, the process management test on the code to be detected can be realized through the following tests:
calling the process creating function to create process 0; the process0 calls a process deleting function after running for 2 seconds, and the process0 is deleted; calling the process creating function to create process 1; calling a process priority setting function to set the priority of process1 to 100: invoking the process suspend function to suspend process 1; calling a process recovery function after 2 seconds to recover the process 1;
calling a process creating function, creating processes 2 and 3; process2 runs first and has a priority less than Process 3; process3 runs 2 seconds after process2 runs; running the observation process3 forces process2 to run;
calling a process creating function, creating processes 4 and 5; process4 and process5 are of the same priority; setting a scheduling mode of a process as RR; enabling two processes to run simultaneously; the two processes are executed alternately; setting the scheduling mode of the process as FIFO; running two processes; the process that runs first will run all the time.
Through this embodiment, smart electric meter can realize the management test to the process through multiple mode to the realization detects the comprehensive of smart electric meter process.
In one embodiment, the process communication test in the second test is performed on the code to be detected, wherein the process communication test comprises generating a sending process and a receiving process, and the sending process and the receiving process are communicated through a preset communication mechanism; sending a preset instruction to a receiving process by utilizing a sending process through a preset communication mechanism so as to enable the receiving process to receive the preset instruction; comparing the instruction received by the receiving process with a preset instruction to obtain a comparison result; obtaining a communication test result according to the comparison result and the execution condition of the receiving process responding to the preset instruction; the second test result includes a communication test result.
In this embodiment, the second test performed by the smart meter on the code to be detected may further include a process communication test, where the process communication test is mainly performed from three aspects, namely, a message queue, a pipeline, and a shared memory, and it should be noted that, because the three communication modes, namely, the message queue, the pipeline, and the shared memory, respectively have advantages and disadvantages, in the implementation of a specific communication function in a process of an operating system of an actual smart meter, a certain specific communication mode may be emphasized, but in consideration of the sufficiency of the test, in the test process, the smart meter needs to cover tests in three layers. The test contents of the message queue at least comprise a function test of creating and deleting the message queue, a synchronous communication mechanism test of the message queue, an asynchronous communication mechanism test of the message queue, a function test of sending the message queue by the task in a blocking mode, a function test of sending the message queue by the task in a non-blocking mode, a function test of receiving the message queue by the task in a non-blocking mode and the like. The test content of the pipeline communication at least comprises a creation and deletion function test of the pipeline, a pipeline communication mechanism test and the like. The test content of the shared memory at least comprises a creation and deletion function test of the shared memory, a communication mechanism test of the shared memory and the like. Specifically, the smart meter may generate a sending process and a receiving process, where the sending process and the receiving process may communicate through a preset communication mechanism, where the communication mechanism may include multiple communication mechanisms, and may respectively simulate communications in different communication states, such as a message queue, a pipeline, a shared memory, and the like, and by using the preset communication mechanism, the sending process is controlled to write in data and the receiving end is controlled to read out data, where the data may be power data or an operating system instruction, and it is checked whether the data read out by the receiving process is complete, and according to the complete situation and the execution situation of the receiving process based on the preset instruction, for example, whether the content in the preset instruction is completely executed, a communication test result is obtained, where the communication test result may specifically include sending data by formulating a target process, whether the target process can timely and accurately receive the data, and, And for different communication modes, whether the test function corresponding to the designed test item can be normally completed or not and whether the response time of the corresponding test item is lower than a preset value or not are judged.
Through this embodiment, smart electric meter can treat the code to carry out the process communication test to the aforesaid, has guaranteed that smart electric meter operating system's process can normal communication to the comprehensiveness that realizes improving smart electric meter and detect.
In one embodiment, the time test in the second test is performed on the code to be detected, and the time test comprises the following steps: generating a first process and a second process; the first process and the second process respectively output corresponding pulse signals during running; setting a first process as an operating state and setting a second process as a to-be-operated state; terminating the first process, and acquiring first time when the pulse signal corresponding to the first process stops outputting; starting a second process, and acquiring second time when the second process starts to output a corresponding pulse signal; obtaining a time test result according to the first time and the second time; the second test result includes a time test result.
In this embodiment, the second test may further include a time test, where the time test may be a time taken for testing the control right of the CPU of the smart meter to be actively transferred to another ready process by the running process. The method comprises a pressure process switching time test and a non-pressure process switching time test. The smart electric meter can generate a first process and a second process, the first process and the second process can output corresponding pulse signals respectively when the first process and the second process run, the smart electric meter can set the first process to be in a running state and set the second process to be in a standby state, the first process can output corresponding pulse signals at the moment, the smart electric meter can terminate the first process, obtain first time when the pulse signals corresponding to the first process stop being output, simultaneously start the second process, obtain second time when the second process starts outputting corresponding pulse signals, and the smart electric meter can obtain a time test result according to the first time and the second time, for example, according to a time difference between the first time and the second time. Specifically, the smart meter may create two processes to output pulse signals at different IO ports, detect a time difference between when the IO1 pulse stops and when the IO2 pulse starts, that is, a process switching time, compare the time obtained by the test with a preset value, and obtain a corresponding time test result, where the time test result may include whether the process switching time exceeds the preset value, and the time test result may be included in the second test result.
Through this embodiment, smart electric meter can test the switching time of process among the operating system to make switching time control in setting for the within range, thereby improved smart electric meter operating system's performance, realized improving the comprehensiveness that smart electric meter detected.
In one embodiment, the performing the security test in the second test on the code to be detected includes: generating a plurality of processes; setting a plurality of processes to be in a running state; setting one of a plurality of running processes to be in an abnormal state; detecting the running state of other processes; obtaining a safety test result according to the running states of other processes; the second test result comprises a safety test result.
In this embodiment, the second detection performed by the smart meter may further include a security test, where the security test may be to test whether a process of the smart meter operating system affects states of other processes in different states. The smart meter may generate a plurality of running processes, and may set one of the plurality of processes to an abnormal state, for example, an abnormal code may be input in the process, and after the process is abnormal, the running states of the other processes are detected, and a security test result is obtained according to the states of the other processes, where the security test result may be included in the second test result. Specifically, the smart electric meter can test whether the process only affects the address space where the process is located and affects normal operation of other processes in three states of starting, exiting and abnormal, including a security process starting test, a security process exiting test and a security process abnormal test, the smart electric meter can construct a plurality of processes capable of independently operating and control the plurality of processes to operate simultaneously, an abnormal code is constructed in one process to cause the abnormal process to generate an abnormal state, the operation states of other processes are tested, and a corresponding security test result is obtained, wherein the security test result can include information such as whether the security process can be normally started and does not affect the operation states of other processes, whether the security process can be normally exited and does not affect the operation states of other processes, whether the security process can be abnormally exited and does not affect the operation states of other processes, and the like.
Through this embodiment, smart electric meter can realize improving the effect of process operation security through carrying out above-mentioned safety test to the process in its operating system.
In one embodiment, as shown in fig. 4, fig. 4 is a schematic flowchart of a process testing method based on an operating system of a smart meter in another embodiment. The method comprises the steps that firstly, the intelligent ammeter obtains a code to be detected, which is controlled and realized by an operating system process of the intelligent ammeter, and then a universality test can be carried out, wherein the universality test specifically comprises a code specification test, a code defect security vulnerability test, a software quality test and a code coverage rate test; wherein, the encoding specification test may include optimized content of the MSIRA C for the smart meter; the code defect security vulnerability test can comprise a code defect test and a security vulnerability test; the software quality test can comprise scale evaluation, circle complexity evaluation and module fan-in and fan-out evaluation; code coverage tests may include condition combination coverage and path coverage;
the intelligent electric meter can also perform specificity tests, and specifically can comprise a process management test, a process communication test, a process switching time test and a multi-process security isolation test; the process management test can comprise creation and deletion, priority assignment, state switching, scheduling strategy and the like; the process communication test can comprise a message queue test, a pipeline test and a shared memory test; the process switching time test may include a pressure process switching time test and a non-pressure process switching time test; the multi-process security isolation test can comprise the tests of security process starting, security process exiting, security process exception and the like.
After the intelligent electric meter performs the universality test and the specificity test, the test result can be counted and analyzed, and a test report can be output.
According to the embodiment, a first test result is obtained by obtaining the code to be detected for realizing and controlling the process function in the operating system of the intelligent electric meter and then performing a first test on the code to be detected, wherein the first test comprises a code specification test, a vulnerability test, a quality test and a coverage rate test, a second test can also be performed on the code to be detected to obtain a second test result, the second test comprises a process management test, a process communication test, a time test and a safety test, and then a process test report corresponding to the operating system of the intelligent electric meter is output according to the first test result and the second test result. Compared with the traditional method of testing the performance and the function of the intelligent electric meter, the method and the system have the advantages that the codes of the intelligent electric meter and the control process function are correspondingly detected in the operating system of the intelligent electric meter, so that the process of the operating system of the intelligent electric meter is tested.
It should be understood that although the various steps in the flowcharts of fig. 1-4 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 1-4 may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed in turn or alternately with other steps or at least some of the other steps or stages.
In one embodiment, as shown in fig. 5, there is provided a process testing apparatus based on an operating system of a smart meter, including: an acquisition module 502, a first test module 504, a second test module 506, and an output module 508, wherein:
the obtaining module 502 is configured to obtain a to-be-detected code that implements a process control function in an operating system of the smart meter.
The first testing module 504 is configured to perform a first test on the code to be detected to obtain a first test result; the first test comprises a code specification test, a vulnerability test, a quality test and a coverage rate test; the quality test comprises at least one of scale detection, complexity detection and reusability detection.
The second testing module 506 is configured to perform a second test on the code to be detected to obtain a second test result; the second test comprises a process management test, a process communication test, a time test and a safety test; the process management test includes at least one of a process creation and deletion test, a priority test, and a state switching test.
And an output module 508, configured to output a process test report corresponding to the operating system of the smart meter according to the first test result and the second test result.
In an embodiment, the first testing module 504 is specifically configured to compare the code to be detected with a preset coding standard to obtain a comparison result; the comparison result comprises the conformity of the format of the code to be detected and a preset coding standard; the preset coding standard is obtained based on an operating system of the intelligent ammeter; obtaining a normative test result according to the conformity; the first test result includes a normative test result.
In an embodiment, the first testing module 504 is specifically configured to detect whether vulnerability data meeting a preset vulnerability rule exists in the to-be-detected code, so as to obtain a vulnerability testing result; the first test result comprises a vulnerability test result; the preset vulnerability rules are obtained based on the memory information of the intelligent electric meter, the user information of the intelligent electric meter and a database corresponding to the intelligent electric meter.
In an embodiment, the first test module 504 is specifically configured to generate a preset test case according to a code to be detected; according to a preset test case, performing condition combination coverage test and path coverage test on the code to be detected to obtain a coverage rate test result; the first test result comprises a coverage rate test result.
In an embodiment, the second testing module 506 is specifically configured to generate a sending process and a receiving process, where the sending process and the receiving process communicate through a preset interface; sending preset power data to a receiving process by using a sending process through a preset interface so that the receiving process receives the preset power data; comparing the power data received by the receiving process with preset power data to obtain a comparison result; obtaining a communication test result according to the comparison result; the second test result includes a communication test result.
In one embodiment, the second testing module 506 is specifically configured to generate a first process and a second process; the first process and the second process respectively output corresponding pulse signals during running; setting a first process as an operating state and setting a second process as a to-be-operated state; terminating the first process, and acquiring first time when the pulse signal corresponding to the first process stops outputting; starting a second process, and acquiring second time when the second process starts to output a corresponding pulse signal; obtaining a time test result according to the first time and the second time; the second test result includes a time test result.
In one embodiment, the second testing module 506 is specifically configured to generate a plurality of processes; setting a plurality of processes to be in a running state; setting one of a plurality of running processes to be in an abnormal state; detecting the running state of other processes; obtaining a safety test result according to the running states of other processes; the second test result comprises a safety test result.
For the specific definition of the process testing device, reference may be made to the above definition of the process testing method, which is not described herein again. The respective modules in the process test apparatus described above may be implemented in whole or in part by software, hardware, and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a smart meter, and its internal structure diagram may be as shown in fig. 6. The computer device includes a processor, a memory, a communication interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The communication interface of the computer device is used for carrying out wired or wireless communication with an external terminal, and the wireless communication can be realized through WIFI, an operator network, NFC (near field communication) or other technologies. The computer program is executed by a processor to implement a process testing method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, and can also be a key, a track ball or a touch pad and the like arranged on the shell of the computer equipment.
Those skilled in the art will appreciate that the architecture shown in fig. 6 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, which includes a memory and a processor, the memory stores a computer program, and the processor executes the computer program to implement the process testing method based on the smart meter operating system.
In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, and the computer program, when executed by a processor, implements the process testing method based on the smart meter operating system as described above.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database or other medium used in the embodiments provided herein can include at least one of non-volatile and volatile memory. Non-volatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical storage, or the like. Volatile Memory can include Random Access Memory (RAM) or external cache Memory. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), among others.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A process testing method based on an operating system of a smart meter is applied to the smart meter, and comprises the following steps:
acquiring a code to be detected for realizing and controlling a process function in an operating system of the intelligent electric meter;
carrying out first test on the code to be detected to obtain a first test result; the first test comprises a coding specification test, a vulnerability test, a quality test and a coverage rate test; the quality test comprises at least one of scale detection, complexity detection and reusability detection; the code specification test comprises a test aiming at the code specification of the code to be detected; the vulnerability test comprises a test aiming at the defects and security vulnerabilities of the code to be detected; the coverage rate test comprises a test aiming at the code coverage rate of the code to be detected;
performing a second test on the code to be detected to obtain a second test result; the second test comprises a process management test, a process communication test, a time test and a safety test; the process management test comprises at least one of a process creation and deletion test, a priority test and a state switching test; the process communication test comprises testing communication functions among processes; the time test comprises testing the switching time of the process; the safety test comprises testing the abnormal state processing capacity of the process;
and outputting a process test report corresponding to the operating system of the intelligent ammeter according to the first test result and the second test result.
2. The method of claim 1, wherein performing the code specification test in a first test on the code to be detected comprises:
comparing the code to be detected with a preset coding standard to obtain a comparison result; the comparison result comprises the conformity of the format of the code to be detected and the preset coding standard; the preset coding standard is obtained based on an operating system of the intelligent ammeter;
obtaining a normative test result according to the conformity; the first test result comprises the normative test result.
3. The method of claim 1, wherein performing the vulnerability testing in a first test on the code to be tested comprises:
detecting whether vulnerability data meeting preset vulnerability rules exist in the code to be detected to obtain a vulnerability test result; the first test result comprises the vulnerability test result; the preset vulnerability rule is obtained based on the memory information of the intelligent electric meter, the user information of the intelligent electric meter and the database corresponding to the intelligent electric meter.
4. The method of claim 1, wherein performing the coverage test in the first test on the code to be detected comprises:
generating a preset test case according to the code to be detected;
according to the preset test case, performing condition combination coverage test and path coverage test on the code to be detected to obtain a coverage rate test result; the first test result comprises the coverage rate test result.
5. The method of claim 1, wherein performing the process communication test in the second test on the code to be tested comprises:
generating a sending process and a receiving process, wherein the sending process and the receiving process are communicated through a preset communication mechanism;
sending a preset instruction to the receiving process by using the sending process through the preset communication mechanism so that the receiving process receives the preset instruction;
comparing the instruction received by the receiving process with the preset instruction to obtain a comparison result;
obtaining a communication test result according to the comparison result and the execution condition of the receiving process responding to the preset instruction; the second test result comprises the communication test result.
6. The method of claim 1, wherein performing the time test in the second test on the code to be detected comprises:
generating a first process and a second process; the first process and the second process respectively output corresponding pulse signals when running; setting the first process as an operating state, and setting the second process as a to-be-operated state;
terminating the first process, and acquiring first time when the pulse signal corresponding to the first process stops being output;
starting the second process, and acquiring second time when the second process starts to output a corresponding pulse signal;
obtaining a time test result according to the first time and the second time; the second test result comprises the time test result.
7. The method according to claim 1, wherein performing the security test in a second test on the code to be detected comprises:
generating a plurality of processes; setting the plurality of processes to a running state;
setting one of the plurality of running processes to an abnormal state;
detecting the running state of other processes;
obtaining a safety test result according to the running states of the other processes; the second test result comprises the safety test result.
8. The utility model provides a process test device based on smart electric meter operating system which characterized in that, is applied to smart electric meter, the device includes:
the acquisition module is used for acquiring the codes to be detected for realizing and controlling the process function in the operating system of the intelligent ammeter;
the first testing module is used for carrying out first testing on the code to be detected to obtain a first testing result; the first test comprises a coding specification test, a vulnerability test, a quality test and a coverage rate test; the quality test comprises at least one of scale detection, complexity detection and reusability detection; the code specification test comprises a test aiming at the code specification of the code to be detected; the vulnerability test comprises a test aiming at the defects and security vulnerabilities of the code to be detected; the coverage rate test comprises a test aiming at the code coverage rate of the code to be detected;
the second testing module is used for carrying out second testing on the code to be tested to obtain a second testing result; the second test comprises a process management test, a process communication test, a time test and a safety test; the process management test comprises at least one of a process creation and deletion test, a priority test and a state switching test; the process communication test comprises testing communication functions among processes; the time test comprises testing the switching time of the process; the safety test comprises testing the abnormal state processing capacity of the process;
and the output module is used for outputting a process test report corresponding to the operating system of the intelligent electric meter according to the first test result and the second test result.
9. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor, when executing the computer program, implements the steps of the method of any of claims 1 to 7.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 7.
CN202010348257.1A 2020-04-28 2020-04-28 Process testing method and device based on intelligent electric meter operating system Active CN111581084B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010348257.1A CN111581084B (en) 2020-04-28 2020-04-28 Process testing method and device based on intelligent electric meter operating system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010348257.1A CN111581084B (en) 2020-04-28 2020-04-28 Process testing method and device based on intelligent electric meter operating system

Publications (2)

Publication Number Publication Date
CN111581084A CN111581084A (en) 2020-08-25
CN111581084B true CN111581084B (en) 2021-01-26

Family

ID=72124557

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010348257.1A Active CN111581084B (en) 2020-04-28 2020-04-28 Process testing method and device based on intelligent electric meter operating system

Country Status (1)

Country Link
CN (1) CN111581084B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112433861B (en) * 2020-11-02 2024-03-26 南方电网数字电网研究院有限公司 Event recording method of double-core intelligent ammeter and double-core intelligent ammeter
CN112367680B (en) * 2020-11-03 2023-12-12 南方电网数字电网研究院有限公司 External communication test method and device based on intelligent ammeter and computer equipment
CN112100081B (en) * 2020-11-04 2021-03-16 南方电网数字电网研究院有限公司 Upgrade test method and device based on double-core intelligent electric meter and computer equipment
CN112559298B (en) * 2021-02-20 2021-07-06 南方电网数字电网研究院有限公司 Memory monitoring method, device and system of electric energy meter and storage medium
CN113687294B (en) * 2021-08-12 2023-06-16 深圳供电局有限公司 Testing method and device for dual-core intelligent ammeter, computer equipment and storage medium
CN114579977A (en) * 2022-02-25 2022-06-03 无锡物联网创新中心有限公司 Code vulnerability detection method for embedded operating system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102508780A (en) * 2011-11-21 2012-06-20 电子科技大学 Crossed dynamic software testing method and device
CN102928810A (en) * 2012-11-12 2013-02-13 四川电力科学研究院 System and method for evaluating accuracy of digital electric energy meter
CN103336741A (en) * 2013-06-28 2013-10-02 广东电网公司电力科学研究院 Method and device for testing stability of operation system of power secondary system
CN107590389A (en) * 2017-10-18 2018-01-16 北京奇虎科技有限公司 Method for testing security and device, electronic equipment, computer-readable storage medium

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202904561U (en) * 2012-11-07 2013-04-24 广东电网公司电力科学研究院 Testing device for power business oriented operating systems
CN103324572B (en) * 2013-06-28 2016-12-28 广东电网公司电力科学研究院 The operating system performance method of testing of electric power secondary system and device
CN103336740B (en) * 2013-06-28 2016-12-28 广东电网公司电力科学研究院 The operating system integrated test facility of electric power secondary system and device
CN104794038B (en) * 2015-03-19 2018-12-07 腾讯科技(深圳)有限公司 The monitoring method and device and communication system of service processes
US11132355B2 (en) * 2016-05-31 2021-09-28 Time Lock Documentation LLC Systems and methods for monitoring equipment
CN106294129A (en) * 2016-07-27 2017-01-04 北京小米移动软件有限公司 Code coverage method of testing and device
CN110716872B (en) * 2019-09-23 2023-04-07 广州海颐信息安全技术有限公司 Vulnerability mining system and method for electric energy metering automation equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102508780A (en) * 2011-11-21 2012-06-20 电子科技大学 Crossed dynamic software testing method and device
CN102928810A (en) * 2012-11-12 2013-02-13 四川电力科学研究院 System and method for evaluating accuracy of digital electric energy meter
CN103336741A (en) * 2013-06-28 2013-10-02 广东电网公司电力科学研究院 Method and device for testing stability of operation system of power secondary system
CN107590389A (en) * 2017-10-18 2018-01-16 北京奇虎科技有限公司 Method for testing security and device, electronic equipment, computer-readable storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Tian Xia等.Research on Field Testing Method of Digital Energy.《2018 2nd IEEE Conference on Energy Internet and Energy System Integration (EI2)》.2018,1-6. *
广泽晶.虚拟智能电表仿真***的研究.《电力***通信》.2011,83-86. *

Also Published As

Publication number Publication date
CN111581084A (en) 2020-08-25

Similar Documents

Publication Publication Date Title
CN111581084B (en) Process testing method and device based on intelligent electric meter operating system
CN101515316B (en) Trusted computing terminal and trusted computing method
US7991961B1 (en) Low-overhead run-time memory leak detection and recovery
TWI534709B (en) Computer-implemented method, computer system, and computer-readable storage medium for virtual machine branching and parallel execution
CN111488290B (en) Thread testing method and device based on intelligent electric meter operating system
US9946628B2 (en) Embedding and executing trace functions in code to gather trace data
Fabre et al. Assessment of COTS microkernels by fault injection
CN104008329B (en) Software privacy leak behavior detection method and system based on virtualization technology
CN105184166A (en) Kernel-based Android application real-time behavior analysis method and system
US10983887B2 (en) Validation of multiprocessor hardware component
Lins et al. Register file criticality and compiler optimization effects on embedded microprocessor reliability
CN108508874B (en) Method and device for monitoring equipment fault
CN106909498A (en) A kind of java applet injects the method and system of failure
McIntyre et al. Trustworthy computing in a multi-core system using distributed scheduling
US20140195845A1 (en) Fault isolation with abstracted objects
Tarrillo et al. A hardware-scheduler for fault detection in RTOS-based embedded systems
US20100153926A1 (en) Operating system aided code coverage
CN103853643A (en) An apparatus and a method for memory testing by a programmable circuit in a safety critical system
CN104978227B (en) A kind of course control method, device and system
CN113360389A (en) Performance test method, device, equipment and storage medium
CN106021089B (en) A kind of test method and device of patch interface
US10061604B2 (en) Program execution recording and playback
Bai et al. AutoPA: Automatically generating active driver from original passive driver code
CN117155628B (en) Method, system, device and readable storage medium for interactive security test of containerized application
Nikolic et al. Hard real-time multiprocessor scheduling resilient to core failures

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
CB02 Change of applicant information

Address after: Room 86, room 406, No.1, Yichuang street, Zhongxin Guangzhou Knowledge City, Huangpu District, Guangzhou City, Guangdong Province

Applicant after: Southern Power Grid Digital Grid Research Institute Co.,Ltd.

Address before: 511458 Room 1301, Chengtou Building, 106 Fengze East Road, Nansha District, Guangzhou City, Guangdong Province (self-compiled 1301-12159)

Applicant before: Southern Power Grid Digital Grid Research Institute Co.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20230419

Address after: Full Floor 14, Unit 3, Building 2, No. 11, Middle Spectra Road, Huangpu District, Guangzhou, Guangdong 510700

Patentee after: China Southern Power Grid Digital Grid Technology (Guangdong) Co.,Ltd.

Address before: Room 86, room 406, No.1, Yichuang street, Zhongxin Guangzhou Knowledge City, Huangpu District, Guangzhou City, Guangdong Province

Patentee before: Southern Power Grid Digital Grid Research Institute Co.,Ltd.

TR01 Transfer of patent right