CN114595106B - Service control equipment debugging method and device - Google Patents

Service control equipment debugging method and device Download PDF

Info

Publication number
CN114595106B
CN114595106B CN202210502151.1A CN202210502151A CN114595106B CN 114595106 B CN114595106 B CN 114595106B CN 202210502151 A CN202210502151 A CN 202210502151A CN 114595106 B CN114595106 B CN 114595106B
Authority
CN
China
Prior art keywords
debugging
service control
testing
control equipment
environment
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
CN202210502151.1A
Other languages
Chinese (zh)
Other versions
CN114595106A (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.)
Jingwang Technology Co ltd
Original Assignee
Jingwang Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Jingwang Technology Co ltd filed Critical Jingwang Technology Co ltd
Priority to CN202210502151.1A priority Critical patent/CN114595106B/en
Publication of CN114595106A publication Critical patent/CN114595106A/en
Application granted granted Critical
Publication of CN114595106B publication Critical patent/CN114595106B/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/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2273Test methods
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2268Logging of test results
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Abstract

The invention relates to the technical field of equipment debugging and testing, and discloses a method for debugging and testing service control equipment, which comprises the following steps: receiving a debugging request of service control equipment, identifying a debugging object of the debugging request, and configuring debugging parameters of the debugging request; creating a testing case file of the testing object according to the testing parameters so as to define a testing strategy of the testing object through the testing case file; acquiring the operating environment of the service control equipment, and constructing a virtual debugging environment of the service control equipment according to the operating environment; configuring a debugging program of the service control equipment in the virtual debugging environment according to the debugging object and the debugging strategy; and operating the debugging program to obtain a debugging result of the service control equipment. The invention can improve the debugging and testing efficiency of the service control equipment.

Description

Service control equipment debugging method and device
Technical Field
The present invention relates to the field of device detection technologies, and in particular, to a method and an apparatus for debugging and testing a service control device, an electronic device, and a computer-readable storage medium.
Background
The service control device is a device for controlling an actuator and acquiring sensor data in a service scene, and with the development of information technology, the service control device has different device functions, and before the actual device is on-line, the service control device generally needs to be tested to ensure the stability and safety of on-line operation.
At present, a service control device usually adopts a script file to implement an automated test of the service control device, but because the service control device usually has a plurality of functions or performances, when the functions or performances of the service control device need to be updated again, the script file needs to be changed again, so that the debugging efficiency of the service control device becomes very low.
Disclosure of Invention
In order to solve the technical problem, the invention provides a method and a device for debugging and testing service control equipment, electronic equipment and a computer readable storage medium, which can improve the efficiency of debugging and testing the service control equipment.
In a first aspect, the present invention provides a method for debugging service control equipment, including:
receiving a debugging request of service control equipment, identifying a debugging object of the debugging request, and configuring debugging parameters of the debugging request;
creating a debugging case file of the debugging object according to the debugging parameters so as to define a debugging strategy of the debugging object through the debugging case file;
acquiring the operating environment of the service control equipment, and constructing a virtual debugging environment of the service control equipment according to the operating environment;
configuring a debugging program of the service control equipment in the virtual debugging environment according to the debugging object and the debugging strategy;
and operating the debugging program to obtain the debugging result of the service control equipment.
In a possible implementation manner of the first aspect, the identifying a debug object of the debug request includes:
converting the debugging request into a debugging requirement text, and extracting a debugging entity in the debugging requirement text;
and screening out entities meeting preset conditions from the debugging entities, and taking the screened entities as the debugging objects.
In a possible implementation manner of the first aspect, the configuring the debug parameter of the debug request includes:
inquiring the debugging type of the debugging request, and identifying the debugging function of a debugging object corresponding to the debugging request according to the debugging type;
and defining the function parameters of the debugging request according to the debugging function to obtain the debugging parameters.
In a possible implementation manner of the first aspect, the creating a debug case file of the debug object according to the debug parameter includes:
configuring a debugging field and debugging content of the debugging object according to the debugging parameter;
constructing a routing mapping table of the debugging field and the debugging content;
and loading the testing field and the testing content to the routing mapping table to obtain a testing case file of the testing object.
In a possible implementation manner of the first aspect, the configuring, according to the debug parameter, a debug field and debug content of the debug object includes:
configuring a testing project of the testing object according to the testing parameters;
and extracting an item identification field and item content of the debugging item, and taking the item identification field and the item content as the debugging field and the debugging content.
In a possible implementation manner of the first aspect, the constructing a routing mapping table of the commissioning field and the commissioning content includes:
performing data mapping on the modulation field and the modulation content to obtain a field-content mapping relation;
and creating a routing mapping table of the debugging object in a routing table form according to the field-content mapping relation.
In a possible implementation manner of the first aspect, the defining, by the commissioning case file, a commissioning policy of the commissioning object includes:
configuring the debugging logic and the debugging mode of the debugging object in the debugging case file;
and generating a debugging strategy of the debugging object according to the debugging logic and the debugging mode.
In a possible implementation manner of the first aspect, the constructing a virtual commissioning environment of the service control device according to the operating environment includes:
acquiring operation debugging data of the service control equipment in the operation environment;
and deploying the virtual debugging environment of the service control equipment by adopting a virtual machine according to the running debugging data.
In a possible implementation manner of the first aspect, the configuring, according to the debug object and the debug policy, a debug program of the service control device in the virtual debug environment includes:
creating an operating program of the service control equipment in the virtual debugging environment;
and configuring an operation file of the operation program according to the debugging strategy and the debugging object, and loading the operation file into the operation program to obtain the debugging program.
In a second aspect, the present invention provides a device for debugging service control equipment, where the device includes:
the system comprises a debugging parameter configuration module, a service control device and a monitoring module, wherein the debugging parameter configuration module is used for receiving a debugging request of the service control device, identifying a debugging object of the debugging request and configuring debugging parameters of the debugging request;
the debugging strategy definition module is used for creating a debugging case file of the debugging object according to the debugging parameters so as to define the debugging strategy of the debugging object through the debugging case file;
the debugging environment construction module is used for acquiring the operating environment of the service control equipment and constructing the virtual debugging environment of the service control equipment according to the operating environment;
a debugging program configuration module, configured to configure a debugging program of the service control device in the virtual debugging environment according to the debugging object and the debugging policy;
and the debugging result generation module is used for operating the debugging program to obtain the debugging result of the service control equipment.
Compared with the prior art, the technical principle and the beneficial effects of the scheme are as follows:
according to the scheme, firstly, a debugging object of a debugging request of the service control equipment is identified, and debugging parameters of the debugging request are configured, so that a target and debugging item data which need to be debugged in the service control equipment can be determined, and the debugging premise of the subsequent service control equipment can be guaranteed; secondly, according to the debugging parameters, the debugging case file of the debugging object is created, so that the debugging strategy of the debugging object is defined through the debugging case file, the debugging requirement can be conveniently and directly changed through the debugging case file when changed subsequently, and the construction of the case file is not needed again, so that the dynamic adjustment of the debugging strategy requirement of the debugging object can be realized, and the debugging efficiency of subsequent service control equipment can be ensured; furthermore, in the embodiment of the present invention, a virtual debugging environment of the service control device is established according to the operating environment of the service control device, a debugging program of the service control device is configured in the virtual debugging environment according to the debugging object and the debugging strategy, and the debugging program is operated to obtain a debugging result of the service control device, so that the debugging of the service control device can be converted from a real environment to a virtual environment, the complexity of deployment of the debugging environment of the service control device can be reduced, and the debugging efficiency of the subsequent service control device can be further ensured. Therefore, the method, the device, the electronic device and the computer-readable storage medium for debugging and testing the service control device provided by the embodiment of the invention can improve the efficiency of debugging and testing the service control device.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without inventive exercise.
Fig. 1 is a schematic flowchart of a method for debugging and testing a service control device according to an embodiment of the present invention;
fig. 2 is a schematic flowchart illustrating a step of the method for commissioning service control devices in fig. 1 according to an embodiment of the present invention;
fig. 3 is a schematic flowchart illustrating another step of the method for debugging service control equipment provided in fig. 1 according to an embodiment of the present invention;
fig. 4 is a schematic block diagram of a service control device debugging apparatus according to an embodiment of the present invention;
fig. 5 is a schematic diagram of an internal structure of an electronic device implementing a method for debugging a service control device according to an embodiment of the present invention.
Detailed Description
It should be understood that the detailed description and specific examples, while indicating the invention, are intended for purposes of illustration only and are not intended to limit the scope of the invention.
An embodiment of the present invention provides a method for debugging service control equipment, where an execution subject of the method for debugging service control equipment includes, but is not limited to, at least one of electronic devices that can be configured to execute the method provided by the embodiment of the present invention, such as a server and a terminal. In other words, the service control device commissioning method may be performed by software or hardware installed in the terminal device or the server device, where the software may be a block chain platform. The server includes but is not limited to: a single server, a server cluster, a cloud server or a cloud server cluster, and the like. The server may be an independent server, or may be a cloud server that provides basic cloud computing services such as a cloud service, a cloud database, cloud computing, a cloud function, cloud storage, a Network service, cloud communication, a middleware service, a domain name service, a security service, a Content Delivery Network (CDN), a big data and artificial intelligence platform, and the like.
Example 1:
fig. 1 is a schematic flow chart of a method for debugging and testing a service control device according to an embodiment of the present invention. The method for debugging the service control device described in fig. 1 includes:
s1, receiving a debugging request of the service control equipment, identifying a debugging object of the debugging request, and configuring debugging parameters of the debugging request.
In the embodiment of the present invention, the service control device may be understood as a machine device that implements a function control function in different service scenes, such as an illumination control device, a circuit control device, a temperature control device, and the like, and the debugging request refers to a debugging requirement that is performed by the service control device before the service control device is formally brought online, and is used to ensure stability and reliability of a subsequent service control device in a corresponding service control scene.
Furthermore, the embodiment of the present invention identifies the debugging target of the debugging request to specify the target to be debugged in the service control device, thereby ensuring the premise of subsequent debugging of the service control device. The testing object can be understood as a functional target needing to be tested, such as a testing object for equipment communication, equipment operation, equipment connection and the like.
As an embodiment of the present invention, the identifying a debug object of the debug request includes: and converting the debugging request into a debugging requirement text, extracting debugging entities in the debugging requirement text, screening entities meeting preset conditions from the debugging entities, and taking the screened entities as the debugging objects.
The debugging requirement text refers to the text form content of the debugging request, the debugging entity refers to dimension data with mutually distinguishable characteristics, such as position, time, name and the like, in the debugging requirement text, and the preset condition is set based on different business requirements, such as the fact that an entity with a communication name can be screened out in a setting mode.
Further, in an optional embodiment of the present invention, the conversion of the survey requirement file may be obtained by converting the survey request in a text format, where the text format may be a doc format, or may be set according to an actual service scenario, the survey entity in the survey requirement text may be implemented by an entity extraction tool, such as an NER tool, and the entity screening in the survey entity may be implemented by a similarity matching algorithm, such as a cosine similarity algorithm.
Further, in the embodiment of the present invention, the debugging parameter of the debugging request is configured to determine the debugging item data required by the debugging object in the subsequent debugging of the service control device when the debugging object performs debugging. The debugging parameters refer to functional parameters, such as interface functional parameters, routing functional parameters, location functional parameters, and the like, for describing a debugging object corresponding to the debugging request.
As an embodiment of the present invention, the configuring the debug parameter of the debug request includes: inquiring the debugging type of the debugging request, identifying the debugging function of a debugging object corresponding to the debugging request according to the debugging type, and defining the functional parameters of the debugging request according to the debugging function to obtain the debugging parameters.
The debugging type is used for determining the functional type, such as data interaction, data communication and the like, which needs to be realized by the debugging request, and the debugging function is used for determining target information, which needs to be realized by a debugging object corresponding to the debugging request, of the debugging request.
Further, in an optional embodiment of the present invention, the testing category and the testing function may be obtained by querying a testing requirement file corresponding to the testing request.
S2, creating a testing case file of the testing object according to the testing parameters, and defining the testing strategy of the testing object through the testing case file.
According to the embodiment of the invention, the debugging case file of the debugging object is created according to the debugging parameters to establish the debugging configuration file of the debugging object, so that the debugging case file can be directly changed conveniently when the debugging requirement changes in the follow-up process, and the case file does not need to be built again, thereby realizing the dynamic adjustment of the debugging strategy requirement of the debugging object and further ensuring the debugging efficiency of follow-up service control equipment.
As an embodiment of the present invention, referring to fig. 2, the creating a debug case file of the debug object according to the debug parameter includes:
s201, configuring a debugging field and debugging content of the debugging object according to the debugging parameters;
s202, constructing a routing mapping table of the debugging field and the debugging content;
s203, loading the testing field and the testing content to the routing mapping table to obtain a testing case file of the testing object.
The debugging field is used for representing a parameter identity identifier in the debugging parameter, the debugging content is used for representing specific debugging information in the debugging parameter, and the routing mapping table is used for describing a data mapping relation between the debugging field and the debugging content.
Further, in an optional embodiment of the present invention, the configuring, according to the debugging parameter, the debugging field and the debugging content of the debugging object includes: and configuring a debugging project of the debugging object according to the debugging parameters, extracting a project identification field and project contents of the debugging project, and taking the project identification field and the project contents as the debugging field and the debugging contents.
Further, in an optional embodiment of the present invention, the constructing a routing mapping table of the debug field and the debug content includes: and performing data mapping on the debugging field and the debugging content to obtain a field-content mapping relation, and creating a routing mapping table of the debugging object in a routing table form according to the field-content mapping relation. Wherein the form of the routing table comprises a key-value pair form (key-value).
Further, in the embodiment of the present invention, the debugging strategy of the debugging object is defined by the debugging case file, so as to determine a rule to be followed by the subsequent debugging object in the debugging process.
As an embodiment of the present invention, the defining, by the commissioning case file, the commissioning policy of the commissioning object includes: and configuring the debugging logic and the debugging mode of the debugging object in the debugging case file, and generating a debugging strategy of the debugging object according to the debugging logic and the debugging mode.
The debugging logic may be understood as a method for specifying a mode adopted by the debugging object when debugging, such as that the debugging object encounters an error and does not stop until all errors are summarized after the debugging object is debugged or the debugging object encounters an error and immediately stops, and the like.
It should be noted that, in the embodiment of the present invention, the debugging strategy of the debugging object is defined by the debugging case file, which can ensure that the debugging object can be directly changed in the debugging case file when the debugging requirement changes, and further ensure the debugging efficiency of the debugging object.
S3, obtaining the operation environment of the service control equipment, and constructing the virtual debugging environment of the service control equipment according to the operation environment.
The embodiment of the invention guarantees the construction premise of the virtual debugging environment of the subsequent service control equipment by acquiring the operating environment of the service control equipment. The operation environment refers to a real environment where the service control device is located in an actual service scene operation process.
Furthermore, in the embodiment of the present invention, the virtual debugging environment of the service control device is constructed according to the operating environment, so as to convert the debugging of the service control device from a real environment to a virtual environment, which can reduce the complexity of deployment of the debugging environment of the service control device, and further ensure the debugging efficiency of the subsequent service control device.
As an embodiment of the present invention, the constructing a virtual commissioning environment of the service control device according to the operating environment includes: and acquiring operation debugging data of the service control equipment in the operation environment, and deploying the virtual debugging environment of the service control equipment by adopting a virtual machine according to the operation debugging data. The virtual machine comprises a linux virtual machine, a Java virtual machine and the like.
And S4, configuring the debugging program of the service control equipment in the virtual debugging environment according to the debugging object and the debugging strategy.
According to the embodiment of the invention, the debugging program of the service control equipment is configured in the virtual debugging environment according to the debugging object and the debugging strategy, so that the debugging premise of the debugging object in the service control equipment is ensured.
As an embodiment of the present invention, referring to fig. 3, the configuring, according to the debug object and the debug policy, a debug program of the service control device in the virtual debug environment includes:
s301, creating an operation program of the service control equipment in the virtual debugging and testing environment;
s302, configuring the running file of the running program according to the debugging strategy and the debugging object, and loading the running file into the running program to obtain the debugging program.
The running program refers to a virtual tool for running subsequent service regulation and control equipment, and the running file refers to a configuration file for realizing the regulation and control of the service debugging equipment. Optionally, the running program and the running file may be constructed by a programming language, such as Java language, and the loading of the running file may be implemented by a scripting language.
And S5, operating the debugging program to obtain the debugging result of the service control equipment.
In the embodiment of the invention, the debugging and testing result of the service control equipment is obtained by operating the debugging and testing program, wherein the debugging and testing result of the service control equipment comprises a debugging and testing success result and a debugging and testing failure result. Optionally, the debugging program is implemented to run through a publishing machine, such as a Tomcat machine.
It can be seen that, according to the scheme, firstly, by identifying a debugging object of a debugging request of a service control device and configuring debugging parameters of the debugging request, a target and debugging item data which need to be debugged in the service control device can be determined, so that the debugging premise of the subsequent service control device can be guaranteed; secondly, according to the debugging parameters, the debugging case file of the debugging object is created, so that the debugging strategy of the debugging object is defined through the debugging case file, the debugging requirement can be conveniently and directly changed through the debugging case file when changed subsequently, and the construction of the case file is not needed again, so that the dynamic adjustment of the debugging strategy requirement of the debugging object can be realized, and the debugging efficiency of subsequent service control equipment can be ensured; furthermore, in the embodiment of the present invention, a virtual debugging environment of the service control device is established according to the operating environment of the service control device, a debugging program of the service control device is configured in the virtual debugging environment according to the debugging object and the debugging strategy, and the debugging program is operated to obtain a debugging result of the service control device, so that the debugging of the service control device can be converted from a real environment to a virtual environment, the complexity of deployment of the debugging environment of the service control device can be reduced, and the debugging efficiency of the subsequent service control device can be further ensured. Therefore, the method for debugging and testing the service control equipment provided by the embodiment of the invention can improve the efficiency of debugging and testing the service control equipment.
Example 2:
fig. 4 is a functional block diagram of the apparatus for debugging service control devices according to the present invention.
The apparatus 400 for debugging service control equipment according to the present invention may be installed in an electronic device. According to the implemented functions, the service control device debugging apparatus may include a debugging parameter configuration module 401, a debugging policy definition module 402, a debugging environment construction module 403, a debugging program configuration module 404, and a debugging result generation module 405. The module of the present invention, which may also be referred to as a unit, refers to a series of computer program segments that can be executed by a processor of an electronic device and that can perform a fixed function, and that are stored in a memory of the electronic device.
In the embodiment of the present invention, the functions of the modules/units are as follows:
the debugging parameter configuration module 401 is configured to receive a debugging request of a service control device, identify a debugging object of the debugging request, and configure a debugging parameter of the debugging request;
the debugging strategy definition module 402 is configured to create a debugging case file of the debugging object according to the debugging parameters, so as to define the debugging strategy of the debugging object through the debugging case file;
the debugging environment constructing module 403 is configured to obtain an operating environment of the service control device, and construct a virtual debugging environment of the service control device according to the operating environment;
the debugging program configuring module 404 is configured to configure a debugging program of the service control device in the virtual debugging environment according to the debugging object and the debugging policy;
the test result generating module 405 is configured to run the test program to obtain a test result of the service control device.
In detail, when the modules in the apparatus 400 for debugging service control equipment according to the embodiment of the present invention are used, the same technical means as the method for debugging service control equipment described in fig. 1 to fig. 3 are used, and the same technical effects can be produced, which is not described herein again.
Example 3:
fig. 5 is a schematic structural diagram of an electronic device for implementing a method for debugging a service control device according to the present invention.
The electronic device may comprise a processor 50, a memory 51, a communication bus 52 and a communication interface 53, and may further comprise a computer program, such as a service control device commissioning program, stored in the memory 51 and executable on the processor 50.
In some embodiments, the processor 50 may be composed of an integrated circuit, for example, a single packaged integrated circuit, or may be composed of a plurality of integrated circuits packaged with the same function or different functions, and includes one or more Central Processing Units (CPUs), a microprocessor, a digital Processing chip, a graphics processor, a combination of various control chips, and the like. The processor 50 is a Control Unit (Control Unit) of the electronic device, connects various components of the electronic device by using various interfaces and lines, and executes various functions and processes data of the electronic device by running or executing programs or modules (for example, executing a service Control device debugging program and the like) stored in the memory 51 and calling data stored in the memory 51.
The memory 51 includes at least one type of readable storage medium including flash memory, removable hard disks, multimedia cards, card-type memory (e.g., SD or DX memory, etc.), magnetic memory, magnetic disks, optical disks, etc. The memory 51 may in some embodiments be an internal storage unit of the electronic device, e.g. a removable hard disk of the electronic device. The memory 51 may also be an external storage device of the electronic device in other embodiments, such as a plug-in mobile hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like provided on the electronic device. Further, the memory 51 may also include both an internal storage unit and an external storage device of the electronic device. The memory 51 may be used to store not only application software installed in the electronic device and various types of data, such as codes of a service control device debugging program, but also temporarily store data that has been output or will be output.
The communication bus 52 may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The bus may be divided into an address bus, a data bus, a control bus, etc. The bus is arranged to enable connection communication between the memory 51 and at least one processor 50 or the like.
The communication interface 53 is used for communication between the electronic device and other devices, and includes a network interface and a user interface. Optionally, the network interface may include a wired interface and/or a wireless interface (e.g., WI-FI interface, bluetooth interface, etc.), which are typically used to establish a communication connection between the electronic device and other electronic devices. The user interface may be a Display (Display), an input unit, such as a Keyboard (Keyboard), and optionally a standard wired interface, a wireless interface. Alternatively, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch device, or the like. The display, which may also be referred to as a display screen or display unit, is suitable, among other things, for displaying information processed in the electronic device and for displaying a visualized user interface.
Fig. 5 shows only an electronic device having components, and those skilled in the art will appreciate that the structure shown in fig. 5 does not constitute a limitation of the electronic device, and may include fewer or more components than those shown, or some components may be combined, or a different arrangement of components.
For example, although not shown, the electronic device may further include a power supply (such as a battery) for supplying power to each component, and preferably, the power supply may be logically connected to the at least one processor 50 through a power management device, so that functions of charge management, discharge management, power consumption management and the like are realized through the power management device. The power supply may also include any component of one or more dc or ac power sources, recharging devices, power failure detection circuitry, power converters or inverters, power status indicators, and the like. The electronic device may further include various sensors, a bluetooth module, a Wi-Fi module, and the like, which are not described herein again.
It is to be understood that the embodiments described are for illustrative purposes only and that the scope of the claimed invention is not limited to this configuration.
The service control device commissioning procedure stored in the memory 51 of the electronic device is a combination of a plurality of computer programs, which when executed in the processor 50, may implement:
receiving a debugging request of service control equipment, identifying a debugging object of the debugging request, and configuring debugging parameters of the debugging request;
creating a testing case file of the testing object according to the testing parameters so as to define a testing strategy of the testing object through the testing case file;
acquiring the operating environment of the service control equipment, and constructing a virtual debugging environment of the service control equipment according to the operating environment;
configuring a debugging program of the service control equipment in the virtual debugging environment according to the debugging object and the debugging strategy;
and operating the debugging program to obtain the debugging result of the service control equipment.
Specifically, the processor 50 may refer to the description of the relevant steps in the embodiment corresponding to fig. 1 for a specific implementation method of the computer program, which is not described herein again.
Further, the electronic device integrated module/unit, if implemented in the form of a software functional unit and sold or used as a separate product, may be stored in a non-volatile computer-readable storage medium. The computer readable storage medium may be volatile or non-volatile. For example, the computer-readable medium may include: any entity or device capable of carrying said computer program code, recording medium, U-disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM).
The present invention also provides a computer-readable storage medium, storing a computer program which, when executed by a processor of an electronic device, may implement:
receiving a debugging request of service control equipment, identifying a debugging object of the debugging request, and configuring debugging parameters of the debugging request;
creating a debugging case file of the debugging object according to the debugging parameters so as to define a debugging strategy of the debugging object through the debugging case file;
acquiring the operating environment of the service control equipment, and constructing a virtual debugging environment of the service control equipment according to the operating environment;
configuring a debugging program of the service control equipment in the virtual debugging environment according to the debugging object and the debugging strategy;
and operating the debugging program to obtain the debugging result of the service control equipment.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus, device and method can be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules is only one logical functional division, and other divisions may be realized in practice.
The modules described as separate parts may or may not be physically separate, and parts displayed as modules 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 modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
In addition, functional modules 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. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional module.
It will be evident to those skilled in the art that the invention is not limited to the details of the foregoing illustrative embodiments, and that the present invention may be embodied in other specific forms without departing from the spirit or essential attributes thereof.
The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference signs in the claims shall not be construed as limiting the claim concerned.
It is noted that, in this document, relational terms such as "first" and "second," and the like, may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The foregoing are merely exemplary embodiments of the present invention, which enable those skilled in the art to understand or practice the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (7)

1. A method for debugging service control equipment, the method comprising:
receiving a debugging request of service control equipment, identifying a debugging object of the debugging request, and configuring a debugging parameter of the debugging request;
creating a testing case file of the testing object according to the testing parameters so as to define a testing strategy of the testing object through the testing case file;
acquiring the operating environment of the service control equipment, and constructing a virtual debugging environment of the service control equipment according to the operating environment;
configuring a debugging program of the service control equipment in the virtual debugging environment according to the debugging object and the debugging strategy;
running the debugging program to obtain a debugging result of the service control equipment;
creating a debugging case file of the debugging object according to the debugging parameters, comprising:
configuring a debugging field and debugging content of the debugging object according to the debugging parameter;
constructing a routing mapping table of the debugging field and the debugging content;
loading the testing field and the testing content to the routing mapping table to obtain a testing case file of the testing object;
the configuring the testing field and the testing content of the testing object according to the testing parameters comprises the following steps:
configuring a debugging project of the debugging object according to the debugging parameters;
extracting an item identification field and item content of the debugging item, and taking the item identification field and the item content as the debugging field and the debugging content;
the constructing the routing mapping table of the debugging field and the debugging content comprises:
performing data mapping on the modulation field and the modulation content to obtain a field-content mapping relation;
and creating a routing mapping table of the debugging object in a routing table form according to the field-content mapping relation.
2. The method of claim 1, wherein the identifying the debug object of the debug request comprises:
converting the debugging request into a debugging requirement text, and extracting a debugging entity in the debugging requirement text;
and screening out entities meeting preset conditions from the debugging entities, and taking the screened entities as the debugging objects.
3. The method of claim 1, wherein the configuring the debug parameters of the debug request comprises:
inquiring the debugging type of the debugging request, and identifying the debugging function of a debugging object corresponding to the debugging request according to the debugging type;
and defining the function parameters of the debugging request according to the debugging function to obtain the debugging parameters.
4. The method according to any one of claims 1 to 3, wherein the defining, by the commissioning case file, the commissioning policy of the commissioning object comprises:
configuring the debugging logic and the debugging mode of the debugging object in the debugging case file;
and generating a debugging strategy of the debugging object according to the debugging logic and the debugging mode.
5. The method according to claim 1, wherein the constructing a virtual commissioning environment of the service control device according to the operating environment comprises:
acquiring operation debugging data of the service control equipment in the operation environment;
and deploying the virtual debugging environment of the service control equipment by adopting a virtual machine according to the running debugging data.
6. The method of claim 1, wherein configuring the commissioning procedure of the service control device in the virtual commissioning environment according to the commissioning object and the commissioning policy comprises:
creating an operating program of the service control equipment in the virtual debugging environment;
and configuring an operation file of the operation program according to the debugging strategy and the debugging object, and loading the operation file into the operation program to obtain the debugging program.
7. A service control device commissioning apparatus for implementing the method according to any one of claims 1 to 6, said apparatus comprising:
the system comprises a debugging parameter configuration module, a service control device and a monitoring module, wherein the debugging parameter configuration module is used for receiving a debugging request of the service control device, identifying a debugging object of the debugging request and configuring debugging parameters of the debugging request;
the debugging strategy definition module is used for creating a debugging case file of the debugging object according to the debugging parameters so as to define the debugging strategy of the debugging object through the debugging case file;
the debugging environment construction module is used for acquiring the operating environment of the service control equipment and constructing the virtual debugging environment of the service control equipment according to the operating environment;
a debugging program configuration module, configured to configure a debugging program of the service control device in the virtual debugging environment according to the debugging object and the debugging policy;
and the debugging result generation module is used for operating the debugging program to obtain the debugging result of the service control equipment.
CN202210502151.1A 2022-05-10 2022-05-10 Service control equipment debugging method and device Active CN114595106B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210502151.1A CN114595106B (en) 2022-05-10 2022-05-10 Service control equipment debugging method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210502151.1A CN114595106B (en) 2022-05-10 2022-05-10 Service control equipment debugging method and device

Publications (2)

Publication Number Publication Date
CN114595106A CN114595106A (en) 2022-06-07
CN114595106B true CN114595106B (en) 2022-08-16

Family

ID=81813585

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210502151.1A Active CN114595106B (en) 2022-05-10 2022-05-10 Service control equipment debugging method and device

Country Status (1)

Country Link
CN (1) CN114595106B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6477665B1 (en) * 1999-08-31 2002-11-05 Accenture Llp System, method, and article of manufacture for environment services patterns in a netcentic environment
CN112068530A (en) * 2020-09-01 2020-12-11 华人运通(江苏)技术有限公司 ECU (electronic control Unit) automatic testing method, system, storage medium and device

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8433728B2 (en) * 2011-03-14 2013-04-30 Oracle International Corporation System and method for creating and managing business objects
US20150227452A1 (en) * 2014-02-12 2015-08-13 Wipro Limited System and method for testing software applications
CN109656802B (en) * 2017-10-10 2022-05-13 大商所飞泰测试技术有限公司 Test case design system based on high coupling automatic matching technology
CN108845940B (en) * 2018-06-14 2021-09-07 云南电网有限责任公司信息中心 Enterprise-level information system automatic function testing method and system
CN110874475A (en) * 2018-08-30 2020-03-10 重庆小雨点小额贷款有限公司 Vulnerability mining method, vulnerability mining platform and computer readable storage medium
CN112631924A (en) * 2020-12-29 2021-04-09 平安消费金融有限公司 Automatic testing method and device, computer equipment and storage medium
CN113884858A (en) * 2021-10-12 2022-01-04 聊城中翔泰电子科技有限公司 Test method and device for printed circuit board
CN113900954B (en) * 2021-10-28 2022-06-10 航天中认软件测评科技(北京)有限责任公司 Test case recommendation method and device using knowledge graph
CN114281675A (en) * 2021-11-25 2022-04-05 通号城市轨道交通技术有限公司 Test environment configuration method and device of CBTC (communication based train control) system and electronic equipment

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6477665B1 (en) * 1999-08-31 2002-11-05 Accenture Llp System, method, and article of manufacture for environment services patterns in a netcentic environment
CN112068530A (en) * 2020-09-01 2020-12-11 华人运通(江苏)技术有限公司 ECU (electronic control Unit) automatic testing method, system, storage medium and device

Also Published As

Publication number Publication date
CN114595106A (en) 2022-06-07

Similar Documents

Publication Publication Date Title
CN111399853A (en) Templated deployment method of machine learning model and custom operator
CN110647471B (en) Interface test case generation method, electronic device and storage medium
CN108241720B (en) Data processing method, device and computer readable storage medium
CN111813377A (en) Method and device for automatically generating application program
CN115185550A (en) Service deployment method, device, computer equipment and storage medium
CN113138768B (en) Application package generation method and device, electronic equipment and readable storage medium
CN111488144B (en) Data processing method and device
CN114727100B (en) Joint debugging method and device for monitoring equipment
CN114595106B (en) Service control equipment debugging method and device
CN111309332A (en) File content on-demand loading method and device, electronic equipment and storage medium
CN110764746A (en) Script generation method and device and computer readable storage medium
CN113791809B (en) Application exception handling method and device and computer readable storage medium
CN114356379A (en) Backup-based service upgrading method, device, equipment and storage medium
CN115033489A (en) Code resource detection method and device, electronic equipment and storage medium
CN114237982A (en) System disaster recovery switching method, device, equipment and storage medium
CN114911479A (en) Interface generation method, device, equipment and storage medium based on configuration
CN114527993A (en) Application deployment method, device, equipment and medium
CN114564413B (en) Synchronous equipment testing method and device
CN113051171A (en) Interface test method, device, equipment and storage medium
CN109828752B (en) Project code automatic generation method, device, computer equipment and storage medium
CN113076084A (en) Resource file processing method, device, equipment and storage medium
CN112667491A (en) Function test method and device of virtual machine
CN112527443A (en) Prompt box display method and device, electronic equipment and computer readable storage medium
CN113064797B (en) Front-end monitoring method and device, electronic equipment and storage medium
CN114706715B (en) Control method, device, equipment and medium for distributed RAID based on BMC

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
GR01 Patent grant
GR01 Patent grant
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: A method and device for debugging business control equipment

Granted publication date: 20220816

Pledgee: Guanggu Branch of Wuhan Rural Commercial Bank Co.,Ltd.

Pledgor: Jingwang Technology Co.,Ltd.

Registration number: Y2024980010366