CN112416749A - Development code testing method, system, terminal and storage medium of BMC (baseboard management controller) functional items - Google Patents
Development code testing method, system, terminal and storage medium of BMC (baseboard management controller) functional items Download PDFInfo
- Publication number
- CN112416749A CN112416749A CN202010878847.5A CN202010878847A CN112416749A CN 112416749 A CN112416749 A CN 112416749A CN 202010878847 A CN202010878847 A CN 202010878847A CN 112416749 A CN112416749 A CN 112416749A
- Authority
- CN
- China
- Prior art keywords
- code
- development
- detection
- interface
- configuration file
- 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.)
- Withdrawn
Links
- 238000011161 development Methods 0.000 title claims abstract description 90
- 238000012360 testing method Methods 0.000 title claims abstract description 70
- 238000001514 detection method Methods 0.000 claims abstract description 82
- 238000013515 script Methods 0.000 claims abstract description 65
- 238000000034 method Methods 0.000 claims abstract description 35
- 230000006870 function Effects 0.000 claims description 29
- 230000002159 abnormal effect Effects 0.000 claims description 3
- 238000006243 chemical reaction Methods 0.000 claims description 3
- 238000004590 computer program Methods 0.000 claims description 3
- 238000012544 monitoring process Methods 0.000 claims description 2
- 238000012216 screening Methods 0.000 claims description 2
- 238000010998 test method Methods 0.000 claims 1
- 238000004891 communication Methods 0.000 description 6
- 238000010586 diagram Methods 0.000 description 6
- 230000008569 process Effects 0.000 description 6
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000012986 modification Methods 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 3
- 238000012545 processing Methods 0.000 description 3
- 238000006467 substitution reaction Methods 0.000 description 3
- 238000010835 comparative analysis Methods 0.000 description 2
- 230000008676 import Effects 0.000 description 2
- 238000012827 research and development Methods 0.000 description 2
- 230000001960 triggered effect Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 210000001520 comb Anatomy 0.000 description 1
- 238000012790 confirmation Methods 0.000 description 1
- 230000007812 deficiency Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 230000004069 differentiation Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000010606 normalization Methods 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3684—Test management for test design, e.g. generating new test cases
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3688—Test management for test execution, e.g. scheduling of test suites
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3692—Test management for test results analysis
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/17—Details of further file system functions
- G06F16/1734—Details of monitoring file system events, e.g. by the use of hooks, filter drivers, logs
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/20—Software design
- G06F8/22—Procedural
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Software Systems (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- Computer Security & Cryptography (AREA)
- Stored Programmes (AREA)
Abstract
The invention provides a method, a system, a terminal and a storage medium for testing development codes of BMC (baseboard management controller) functional items, wherein the method comprises the following steps: carrying out standard detection on the development codes according to the project development standards, and uploading the development codes passing the detection to a database; configuring a notification interface on a reverse interface, and calling a code pulling script through the notification interface to pull down a branch code to which the development code belongs; detecting the configuration file content and interface information of the pull-down branch code at regular time; and calling the matched test script from a test script library according to the content of the configuration file and the interface information, and executing the test script. The invention can automatically detect the standardization of the developed code, automatically manage the test script and generate the test report by one key, thereby facilitating the developers to quickly position the code which does not conform to the code standardization and position the BUG of the newly developed function, and improving the stability of the BMC and the customer satisfaction.
Description
Technical Field
The invention relates to the technical field of server testing, in particular to a method, a system, a terminal and a storage medium for testing development codes of BMC (baseboard management controller) functional items.
Background
In the conventional BMC development process, after a developer completes code development, the developer needs to notify a tester to test a function point. And the tester combs the required and changed function points, communicates with the developer and confirms, then develops the test and feeds the tested problem points back to the developer. And the developer analyzes the problem points for the second time to confirm the code BUG. The whole process has a great deal of communication confirmation analysis time, and is very time-consuming. It is therefore necessary to locate the problem quickly in the first instance.
In addition to the above problems, there is also a problem of customizing the project during the testing process. In the actual project research and development process, different projects have different customization requirements and customized parameters required by customers, different project branches need to be established for research and development, a large amount of code modification is involved, the workload is large, and the normalization of codes is not facilitated, so that how to make the project difference compatible in one set of codes is very necessary.
Disclosure of Invention
In view of the above-mentioned deficiencies of the prior art, the present invention provides a method, a system, a terminal and a storage medium for testing development codes of BMC function items, so as to solve the above-mentioned technical problems.
In a first aspect, the present invention provides a BMC function item development code testing method, including:
carrying out standard detection on the development codes according to the project development standards, and uploading the development codes passing the detection to a database;
configuring a notification interface on a reverse interface, and calling a code pulling script through the notification interface to pull down a branch code to which the development code belongs;
detecting the configuration file content and interface information of the pull-down branch code at regular time;
and calling the matched test script from a test script library according to the content of the configuration file and the interface information, and executing the test script.
Further, the performing specification detection on the development code according to the project development specification includes:
intercepting the uploaded development codes by utilizing a hook function;
saving the project development specification into an extensible markup language format;
and detecting whether the content of the development code conforms to the project development specification.
Further, the calling a code pull script through the notification interface to pull down the branch code to which the development code belongs includes:
sending a pull-down request to the notification interface after the push-up sending code;
and calling a pull-down script to pull down the branch codes, and carrying out normative monitoring on the pulled value codes.
Further, the timing detection of the configuration file content and the interface information of the drop-down branch code includes:
regularly detecting the update time of the branch codes and the relevant configuration files according to a preset detection period;
if the relevant configuration file is detected to be updated, triggering a configuration file detection thread, scanning full configuration information from configuration items in the configuration file by the configuration file detection thread, comparing the full configuration information with historical full configuration information, and acquiring updated configuration content;
and if the branch code is detected to be updated, triggering an item code detection thread, scanning interface information in the code by the item code detection thread, and marking the updated content of the interface information.
Further, the method further comprises:
storing the test result of the test script under an appointed path;
setting a monitoring program to periodically scan the test result under the specified path, and screening abnormal information from the test result by using the monitoring program;
and pushing the information on the screened side to a foreground page.
In a second aspect, the present invention provides a BMC function development code testing system, including:
the system comprises a specification detection unit, a database and a database, wherein the specification detection unit is configured and used for carrying out specification detection on development codes according to project development specifications and uploading the development codes passing the detection to the database;
the code pull-down unit is configured to configure a notification interface on a reverse interface and call a code pull script through the notification interface to pull down a branch code to which the development code belongs;
the timing detection unit is used for detecting the configuration file content and the interface information of the pull-down branch code at regular time;
and the test matching unit is configured to call the matched test script from the test script library according to the content of the configuration file and the interface information and execute the test script.
Further, the specification detecting unit includes:
the code interception module is configured for intercepting the uploaded development codes by utilizing a hook function;
the standard conversion module is configured for storing the project development standard into an extensible markup language format;
and the specification checking module is configured for detecting whether the content of the development code conforms to the project development specification.
Further, the timing detection unit includes:
the regular detection module is configured to regularly detect the update time of the branch codes and the relevant configuration files according to a preset detection period;
the configuration detection module is configured to trigger the configuration file detection thread if the relevant configuration file is detected to be updated, wherein the configuration file detection thread scans the full configuration information from the configuration items in the configuration file, and compares the full configuration information with the historical full configuration information to obtain the updated configuration content;
and the interface detection module is configured to trigger an item code detection thread if the branch code is detected to be updated, wherein the item code detection thread scans the interface information in the code and marks the update content of the interface information.
In a third aspect, a terminal is provided, including:
a processor, a memory, wherein,
the memory is used for storing a computer program which,
the processor is used for calling and running the computer program from the memory so as to make the terminal execute the method of the terminal.
In a fourth aspect, a computer storage medium is provided having stored therein instructions that, when executed on a computer, cause the computer to perform the method of the above aspects.
The beneficial effect of the invention is that,
according to the development code testing method, the development code testing system, the development code testing terminal and the development code testing storage medium of the BMC functional item, the code check style is tested according to the development specification. When passing the check style specification, the webhook function configures the notification interface. And after the user pushes the code, an interface of the servlet is automatically called, and the servlet realizes the code pull function. And after pull codes, starting a configuration file detection thread and a Restful interface detection thread at regular time, performing comparative analysis when changes are detected, and automatically writing the latest file into a database in a full-scale mode. And the interface for calling the script automatically calls the associated script by polling the configuration file and Restful interface data in the database, tests the script and generates a test report. The invention can automatically detect the standardization of the developed code, automatically manage the test script and generate the test report by one key, thereby facilitating the developers to quickly position the code which does not conform to the code standardization and position the BUG of the newly developed function, and improving the stability of the BMC and the customer satisfaction.
In addition, the invention has reliable design principle, simple structure and very wide application prospect.
Drawings
In order to more clearly illustrate the embodiments or technical solutions in the prior art of the present invention, the drawings used in the description of the embodiments or prior art will be briefly described below, and it is obvious for those skilled in the art that other drawings can be obtained based on these drawings without creative efforts.
FIG. 1 is a schematic flow diagram of a method of one embodiment of the invention.
FIG. 2 is a schematic flow diagram of a normative detection process of a method of one embodiment of the invention.
FIG. 3 is a schematic block diagram of a system of one embodiment of the present invention.
Fig. 4 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
Detailed Description
In order to make those skilled in the art better understand the technical solution of the present invention, the technical solution in the embodiment of the present invention will be clearly and completely described below with reference to the drawings in the embodiment of the present invention, and it is obvious that the described embodiment is only a part of the embodiment of the present invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
FIG. 1 is a schematic flow diagram of a method of one embodiment of the invention. The execution subject in fig. 1 may be a development code test system of a BMC function item.
As shown in fig. 1, the method includes:
110, carrying out standard detection on development codes according to project development standards, and uploading the development codes passing the detection to a database;
Specifically, the method for testing development codes of the BMC function items includes:
and S1, carrying out specification detection on the development codes according to the project development specifications, and uploading the development codes passing the detection to a database.
Referring to fig. 2, a developer needs to follow a code development specification when submitting code, and problems such as redundant code, naming specification, class definition, package import, poor legibility, and the like are avoided, so that it is very important to make a pass before submitting code, so that manual import during later code reconstruction can be avoided.
Automatically trapping the submitted development code through a hook function of git to the code check style before submission. The content of the Check style needs to be formulated according to project group development specifications and formed into an xml file. The xml file configuration mode is formulated according to the development specification formulated by the project group.
The method comprises the steps that Git executes a pre-commit script when a submit code exists, firstly, a path of a development code and a path of a development specification file are input into the pre-commit script, the pre-commit script empties a historical check result in a result storage file (temp file), then the pre-commit script executes a comparison command to compare the development code and the development specification file, if the development code and the development specification file are matched, correct information of the file is printed, and if the development code and the development specification file are not matched, wrong detailed information is output to the temp file.
And S2, configuring a notification interface on the reverse interface, and calling a code pulling script through the notification interface to pull down the branch code to which the development code belongs.
The custom script may be triggered when the user performs an important operation on Git. Therefore, the automatic pull function (pull-down function) of the code is realized through the webhook function, and the specific method comprises the following steps: and configuring a notification interface in the webhook function, and sending a request to the interface after a user pushes a code. After the interface receives the request, the script of the pull code is called (the script of the pull code is a conventional technical means in the field, and is not the content to be protected in the invention, so detailed description is not provided), and after the pull operation is completed, the pulled code is automatically monitored, mainly aiming at grammatical errors, specification problems and the like existing in the code.
S3, detecting the configuration file content and the interface information of the drop-down branch code at regular time.
Since the code of the push of the developer is very frequent, the detection of the code which is finished by the push is not needed all the time, and only a timer is started to set a detection time interval (the case is set to be 24 h). And calling a detection main program at regular time, wherein the detection main program firstly checks and compares the item code, the last updating time of the item configuration file and the last updating time recorded by the database, if the time of the item configuration file changes, the item configuration file detection thread is started, if the time of the item code file changes, the item code detection thread is triggered, and if the time of the item code file changes, the item code detection thread is started at the same time. For the main thread to wait for the two sub-threads and join the two threads to the main thread.
Detecting a project configuration file: because of the inconsistent requirements of customers for projects, it is desirable to customize certain functions. Such functions that vary from project to project generally need to be compatible in code, and the configuration content is abstracted and integrated into the project configuration file. The BMC will typically configure the configuration files as an i-ini file and an conf file.
So the project profile detection thread: the customization difference is distinguished by firstly obtaining the current custom _ id in js and then carrying out differentiation processing according to different custom _ ids. The configuration item of the custom _ id is configured in the Project file of the Project. The servlet scans the information of the configuration and the file name, scans the total configuration information, stores the configuration information into a data table project _ Conf, and stores the configuration information and the file name. The full amount information of the previous version is acquired, and the information acquired this time is compared, and the compared state is filled in param _ status (add, modified, delete, etc.). In the parameter-script full association table, the script associated with this parameter is acquired, and the script number is supplemented in project _ conf.
For example, sensor module: when the BMC starts the init method of the Sensor, whether the Sensor is started or not is judged according to the configuration of the Project, and whether the Sensor of the Project is started or not is judged according to the Custom id. And acquiring the Sensor information when the state is started, and initializing the Sensor. When the script is called to obtain the test sensor in the later stage, the detection content can be dynamically generated according to the parameter, and whether the reading value and the state of the sensor meet the requirements or not is detected.
Item code detection thread: the restul interface is an interface developed strictly according to the RESTFUL protocol, and mainly comprises url, header, reaust, response and the like. Servlet, when receiving the request, automatically scans the interfaces in restful in the code: URL, request mode, header, parameter type and format, and storing in the database. And performing correlation comparison according to the historical interface information collected last time in the database, marking the change state of the interface information, and executing the updated restful interface when the script is called at the later stage.
And S4, calling the matched test script from the test script library according to the content of the configuration file and the interface information, and executing the test script.
When the detection procedure of step S3 is completed, the script call interface is enabled. And calling the associated automatic test script from the test script library according to the changed configuration file and the Restful interface which are compared by the detection thread, starting the test script to run continuously, carrying out script test, and generating the log into a specified directory.
And setting a monitoring program to periodically scan the check style log path and the script test log path and acquire abnormal log information. And pushing the data to a foreground page at the Servlet end through dwr technology, and starting the ReverseAjax function of the page. And after receiving the information, the page displays and informs developers.
As shown in fig. 3, the system 300 includes:
the specification detection unit 310 is configured to perform specification detection on the development codes according to the project development specifications, and upload the development codes passing the detection to the database;
the code pull-down unit 320 is configured to configure a notification interface on the reverse interface, and call a code pull script through the notification interface to pull down the branch code to which the development code belongs;
a timing detection unit 330 configured to detect configuration file contents and interface information of the pull-down branch code at a timing;
and the test matching unit 340 is configured to call the matched test script from the test script library according to the content of the configuration file and the interface information, and execute the test script.
Optionally, as an embodiment of the present invention, the specification detecting unit includes:
the code interception module is configured for intercepting the uploaded development codes by utilizing a hook function;
the standard conversion module is configured for storing the project development standard into an extensible markup language format;
and the specification checking module is configured for detecting whether the content of the development code conforms to the project development specification.
Optionally, as an embodiment of the present invention, the timing detecting unit includes:
the regular detection module is configured to regularly detect the update time of the branch codes and the relevant configuration files according to a preset detection period;
the configuration detection module is configured to trigger the configuration file detection thread if the relevant configuration file is detected to be updated, wherein the configuration file detection thread scans the full configuration information from the configuration items in the configuration file, and compares the full configuration information with the historical full configuration information to obtain the updated configuration content;
and the interface detection module is configured to trigger an item code detection thread if the branch code is detected to be updated, wherein the item code detection thread scans the interface information in the code and marks the update content of the interface information.
Fig. 4 is a schematic structural diagram of a terminal 400 according to an embodiment of the present invention, where the terminal 400 may be used to execute a method for testing development codes of BMC function items according to the embodiment of the present invention.
Among them, the terminal 400 may include: a processor 410, a memory 420, and a communication unit 430. The components communicate via one or more buses, and those skilled in the art will appreciate that the architecture of the servers shown in the figures is not intended to be limiting, and may be a bus architecture, a star architecture, a combination of more or less components than those shown, or a different arrangement of components.
The memory 420 may be used for storing instructions executed by the processor 410, and the memory 420 may be implemented by any type of volatile or non-volatile storage terminal or combination thereof, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk. The executable instructions in memory 420, when executed by processor 410, enable terminal 400 to perform some or all of the steps in the method embodiments described below.
The processor 410 is a control center of the storage terminal, connects various parts of the entire electronic terminal using various interfaces and lines, and performs various functions of the electronic terminal and/or processes data by operating or executing software programs and/or modules stored in the memory 420 and calling data stored in the memory. The processor may be composed of an Integrated Circuit (IC), for example, a single packaged IC, or a plurality of packaged ICs connected with the same or different functions. For example, the processor 410 may include only a Central Processing Unit (CPU). In the embodiment of the present invention, the CPU may be a single operation core, or may include multiple operation cores.
A communication unit 430, configured to establish a communication channel so that the storage terminal can communicate with other terminals. And receiving user data sent by other terminals or sending the user data to other terminals.
The present invention also provides a computer storage medium, wherein the computer storage medium may store a program, and the program may include some or all of the steps in the embodiments provided by the present invention when executed. The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM) or a Random Access Memory (RAM).
Therefore, the invention provides the code check style according to the development specification. When passing the check style specification, the webhook function configures the notification interface. And after the user pushes the code, an interface of the servlet is automatically called, and the servlet realizes the code pull function. And after pull codes, starting a configuration file detection thread and a Restful interface detection thread at regular time, performing comparative analysis when changes are detected, and automatically writing the latest file into a database in a full-scale mode. And the interface for calling the script automatically calls the associated script by polling the configuration file and Restful interface data in the database, tests the script and generates a test report. The invention can automatically detect the normativity of the developed codes, automatically manage the test scripts and generate the test report by one key, thereby facilitating developers to quickly position the codes which do not conform to the code specifications and position the BUG of the newly developed function, and improving the stability of the BMC and the customer satisfaction.
Those skilled in the art will readily appreciate that the techniques of the embodiments of the present invention may be implemented as software plus a required general purpose hardware platform. Based on such understanding, the technical solutions in the embodiments of the present invention may be embodied in the form of a software product, where the computer software product is stored in a storage medium, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and the like, and the storage medium can store program codes, and includes instructions for enabling a computer terminal (which may be a personal computer, a server, or a second terminal, a network terminal, and the like) to perform all or part of the steps of the method in the embodiments of the present invention.
The same and similar parts in the various embodiments in this specification may be referred to each other. Especially, for the terminal embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant points can be referred to the description in the method embodiment.
In the embodiments provided in the present invention, it should be understood that the disclosed system and method can be implemented in other ways. For example, the above-described system embodiments are merely illustrative, and for example, the division of the units is only one logical functional division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, systems or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
Although the present invention has been described in detail by referring to the drawings in connection with the preferred embodiments, the present invention is not limited thereto. Various equivalent modifications or substitutions can be made on the embodiments of the present invention by those skilled in the art without departing from the spirit and scope of the present invention, and these modifications or substitutions are within the scope of the present invention/any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
Claims (10)
1. A development code test method for BMC functional items is characterized by comprising the following steps:
carrying out standard detection on the development codes according to the project development standards, and uploading the development codes passing the detection to a database;
configuring a notification interface on a reverse interface, and calling a code pulling script through the notification interface to pull down a branch code to which the development code belongs;
detecting the configuration file content and interface information of the pull-down branch code at regular time;
and calling the matched test script from a test script library according to the content of the configuration file and the interface information, and executing the test script.
2. The method of claim 1, wherein the performing specification detection on development code according to a project development specification comprises:
intercepting the uploaded development codes by utilizing a hook function;
saving the project development specification into an extensible markup language format;
and detecting whether the content of the development code conforms to the project development specification.
3. The method of claim 1, wherein the calling a code pull script through a notification interface to pull down the branch code to which the development code belongs comprises:
sending a pull-down request to the notification interface after the push-up sending code;
and calling a pull-down script to pull down the branch codes, and carrying out normative monitoring on the pulled value codes.
4. The method of claim 1, wherein the timing detection of the configuration file content and the interface information of the drop-down branch code comprises:
regularly detecting the update time of the branch codes and the relevant configuration files according to a preset detection period;
if the relevant configuration file is detected to be updated, triggering a configuration file detection thread, scanning full configuration information from configuration items in the configuration file by the configuration file detection thread, comparing the full configuration information with historical full configuration information, and acquiring updated configuration content;
and if the branch code is detected to be updated, triggering an item code detection thread, scanning interface information in the code by the item code detection thread, and marking the updated content of the interface information.
5. The method of claim 1, further comprising:
storing the test result of the test script under an appointed path;
setting a monitoring program to periodically scan the test result under the specified path, and screening abnormal information from the test result by using the monitoring program;
and pushing the information on the screened side to a foreground page.
6. A development code test system for BMC functional items is characterized by comprising:
the system comprises a specification detection unit, a database and a database, wherein the specification detection unit is configured and used for carrying out specification detection on development codes according to project development specifications and uploading the development codes passing the detection to the database;
the code pull-down unit is configured to configure a notification interface on a reverse interface and call a code pull script through the notification interface to pull down a branch code to which the development code belongs;
the timing detection unit is used for detecting the configuration file content and the interface information of the pull-down branch code at regular time;
and the test matching unit is configured to call the matched test script from the test script library according to the content of the configuration file and the interface information and execute the test script.
7. The system of claim 6, wherein the specification detection unit comprises:
the code interception module is configured for intercepting the uploaded development codes by utilizing a hook function;
the standard conversion module is configured for storing the project development standard into an extensible markup language format;
and the specification checking module is configured for detecting whether the content of the development code conforms to the project development specification.
8. The system of claim 6, wherein the timing detection unit comprises:
the regular detection module is configured to regularly detect the update time of the branch codes and the relevant configuration files according to a preset detection period;
the configuration detection module is configured to trigger the configuration file detection thread if the relevant configuration file is detected to be updated, wherein the configuration file detection thread scans the full configuration information from the configuration items in the configuration file, and compares the full configuration information with the historical full configuration information to obtain the updated configuration content;
and the interface detection module is configured to trigger an item code detection thread if the branch code is detected to be updated, wherein the item code detection thread scans the interface information in the code and marks the update content of the interface information.
9. A terminal, comprising:
a processor;
a memory for storing instructions for execution by the processor;
wherein the processor is configured to perform the method of any one of claims 1-5.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1-5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010878847.5A CN112416749A (en) | 2020-08-27 | 2020-08-27 | Development code testing method, system, terminal and storage medium of BMC (baseboard management controller) functional items |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010878847.5A CN112416749A (en) | 2020-08-27 | 2020-08-27 | Development code testing method, system, terminal and storage medium of BMC (baseboard management controller) functional items |
Publications (1)
Publication Number | Publication Date |
---|---|
CN112416749A true CN112416749A (en) | 2021-02-26 |
Family
ID=74855168
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010878847.5A Withdrawn CN112416749A (en) | 2020-08-27 | 2020-08-27 | Development code testing method, system, terminal and storage medium of BMC (baseboard management controller) functional items |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112416749A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112965954A (en) * | 2021-03-12 | 2021-06-15 | 中国平安财产保险股份有限公司 | Code management method and device, computer equipment and storage medium |
CN115774990A (en) * | 2023-02-10 | 2023-03-10 | 成都萌想科技有限责任公司 | RESTful API comparison method, system, equipment and storage medium based on configuration file |
-
2020
- 2020-08-27 CN CN202010878847.5A patent/CN112416749A/en not_active Withdrawn
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112965954A (en) * | 2021-03-12 | 2021-06-15 | 中国平安财产保险股份有限公司 | Code management method and device, computer equipment and storage medium |
CN112965954B (en) * | 2021-03-12 | 2023-08-08 | 中国平安财产保险股份有限公司 | Code management method, device, computer equipment and storage medium |
CN115774990A (en) * | 2023-02-10 | 2023-03-10 | 成都萌想科技有限责任公司 | RESTful API comparison method, system, equipment and storage medium based on configuration file |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11379348B2 (en) | System and method for performing automated API tests | |
CN107423174B (en) | Server configuration information testing method and device and storage medium | |
CN110765026B (en) | Automatic test method, device, storage medium and equipment | |
CN109857630B (en) | Code detection method, system and equipment | |
CN102244591A (en) | Client server and method for full process monitoring on function text of client server | |
CN112416749A (en) | Development code testing method, system, terminal and storage medium of BMC (baseboard management controller) functional items | |
CN110554938B (en) | BIOS (basic input output System) testing method, system, terminal and storage medium based on script set | |
CN111966380A (en) | BMC (baseboard management controller) firmware upgrading method, system, terminal and storage medium | |
CN111858201A (en) | BMC (baseboard management controller) comprehensive test method, system, terminal and storage medium | |
CN109067605B (en) | Storage subsystem fault diagnosis method and device, terminal and storage medium | |
CN109388420A (en) | Application upgrade test method, device, computer equipment and storage medium | |
CN111737138A (en) | Automatic recovery system and method for test environment | |
CN116955203A (en) | Automatic testing method for service interface | |
CN116302738A (en) | Method, system, equipment and storage medium for testing chip | |
CN112558982B (en) | Code detection method and device and computer equipment | |
CN114253573A (en) | PCIe device firmware batch upgrading method, system, terminal and storage medium | |
CN113010422A (en) | Mirror image file testing method and device, electronic equipment and readable storage medium | |
CN108279937B (en) | Parameter calling method and device, storage medium and electronic equipment | |
CN111858198A (en) | Multi-scheme memory plugging test method, system, terminal and storage medium | |
CN109800168A (en) | The test method and device of the action event data of software | |
CN112231218B (en) | Method, system, terminal and storage medium for automatically updating test diagnosis script | |
CN110543459A (en) | Method, system, terminal and storage medium for acquiring file lock state under NFS | |
CN111597101A (en) | SDK access state detection method, computer device and computer readable storage medium | |
CN114443446B (en) | Hard disk indicator lamp control method, system, terminal and storage medium | |
CN114296813B (en) | Original equipment information management method, system, terminal and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20210226 |
|
WW01 | Invention patent application withdrawn after publication |