CN115658374B - Platform compatibility problem repairing method and device, electronic equipment and storage medium - Google Patents
Platform compatibility problem repairing method and device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN115658374B CN115658374B CN202211660550.7A CN202211660550A CN115658374B CN 115658374 B CN115658374 B CN 115658374B CN 202211660550 A CN202211660550 A CN 202211660550A CN 115658374 B CN115658374 B CN 115658374B
- Authority
- CN
- China
- Prior art keywords
- platform
- code
- preset
- application
- information
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 71
- 238000013507 mapping Methods 0.000 claims abstract description 12
- 230000008439 repair process Effects 0.000 claims description 9
- 230000004044 response Effects 0.000 claims description 5
- 238000012360 testing method Methods 0.000 abstract description 28
- 230000008569 process Effects 0.000 abstract description 10
- 238000004590 computer program Methods 0.000 description 13
- 238000010586 diagram Methods 0.000 description 7
- 230000006870 function Effects 0.000 description 7
- 238000011161 development Methods 0.000 description 5
- 230000009286 beneficial effect Effects 0.000 description 4
- 238000012545 processing Methods 0.000 description 4
- 238000004891 communication Methods 0.000 description 3
- 230000007547 defect Effects 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 238000012544 monitoring process Methods 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000006978 adaptation Effects 0.000 description 1
- 230000002457 bidirectional effect Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 239000000835 fiber Substances 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 239000000463 material Substances 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 238000005067 remediation Methods 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 238000013519 translation Methods 0.000 description 1
Images
Classifications
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Stored Programmes (AREA)
Abstract
The application provides a method, a device, electronic equipment and a storage medium for repairing a platform compatibility problem, wherein the method comprises the following steps: if the pre-upgrading of the application platform is detected, acquiring current version information and pre-upgrading version information corresponding to the application platform; determining illegal code information corresponding to the pre-upgrading version information according to the pre-upgrading version information and a preset scanning rule; generating a platform upgrading report corresponding to the application platform according to the violation code information and a preset problem library corresponding to the current version information, wherein the platform upgrading report is used for representing a mapping relation between the violation code information and a preset problem solution; and repairing the compatibility problem in the application platform according to the platform upgrading report. The method and the device solve the technical problem of low testing efficiency of the compatibility problem test in the process of repairing the platform compatibility problem in the prior art.
Description
Technical Field
The present disclosure relates to the field of low code/zero code development platforms, and in particular, to a method and apparatus for repairing a platform compatibility problem, an electronic device, and a storage medium.
Background
With the continuous development of technology, a low-code/zero-code development platform technology is based, so that the secondary customized development of the application platform can be completed by performing code expansion on the constructed platform to meet the personalized requirements of users, and the iterative upgrading of the application platform is completed. However, when the application platform is iteratively upgraded, a plurality of compatibility problems are faced, the existence of the compatibility problems can lead to the upgrade cost of the application platform to be high, in order to solve the technical problem, currently, the compatibility problems of the platform can be found by manually carrying out full regression test on the content applied by the platform by a user, but the manual test has large dependence on manpower, and a great deal of manpower resources and time cost are required to be consumed, so that the technical problem of low test efficiency of the compatibility problem test when the compatibility problem of the platform is repaired is brought.
Disclosure of Invention
The main purpose of the application is to provide a method, a device, electronic equipment and a storage medium for repairing the platform compatibility problem, and aims to solve the technical problem of low testing efficiency of the compatibility problem test in the process of repairing the platform compatibility problem in the prior art.
In order to achieve the above object, the present application provides a method for repairing a platform compatibility problem, the method for repairing a platform compatibility problem comprising:
If the pre-upgrading of the application platform is detected, acquiring current version information and pre-upgrading version information corresponding to the application platform;
determining illegal code information corresponding to the pre-upgrading version information according to the pre-upgrading version information and a preset scanning rule;
generating a platform upgrading report corresponding to the application platform according to the violation code information and a preset problem library corresponding to the current version information, wherein the platform upgrading report is used for representing a mapping relation between the violation code information and a preset problem solution;
and repairing the compatibility problem in the application platform according to the platform upgrading report.
Optionally, the step of determining the violation code information corresponding to the pre-upgrade version information according to the pre-upgrade version information and a preset scanning rule includes:
acquiring an application code in the pre-upgrade version information;
and scanning the application code based on the preset scanning rule, and determining the illegal code information corresponding to the pre-upgrading version information.
Optionally, the step of scanning the application code based on the preset scanning rule and determining the violation code information corresponding to the pre-upgrade version information includes:
Scanning all application code files in the application codes based on the preset scanning rule;
if the application code file is detected to be not matched with the preset scanning rule, determining that the code information corresponding to the application code file is illegal code information.
Optionally, the step of generating the platform upgrade report corresponding to the application platform according to the violation code information and the preset problem library corresponding to the current version information includes:
acquiring tag information of the violation code information;
and generating a platform upgrading report corresponding to the application platform according to the label information and a preset problem library corresponding to the current version information.
Optionally, the tag information includes an offending code name, and the step of generating the platform upgrade report corresponding to the application platform according to the preset question library corresponding to the tag information and the current version information includes:
searching a preset problem solution corresponding to the violation code name in the preset problem library based on the violation code name;
and generating a platform upgrading report corresponding to the application platform according to the preset problem solution and the violation code information.
Optionally, after the step of upgrading the application platform according to the platform upgrade report, the platform compatibility problem repairing method further includes:
determining a pre-increment code rule label corresponding to the application platform according to an upgrading result of the application platform, wherein the pre-increment code rule label comprises a pre-increment violation code name, a pre-increment code rule definition and a pre-increment problem solution;
and responding to a preset question bank updating command, inserting the preset code rule tag into the preset question bank to update the preset question bank.
Optionally, before the step of inserting the pre-added code rule tag into the preset question bank in response to a preset question bank update command to update the preset question bank, the platform compatibility question repairing method further includes:
judging whether the preset question library contains the pre-added code rule label or not;
if yes, invalidating the preset problem base updating command;
if not, executing the steps of: and responding to a preset question bank updating command, inserting the preset code rule tag into the preset question bank to update the preset question bank.
To achieve the above object, the present application further provides a platform compatibility problem repairing apparatus, including:
the parameter acquisition module is used for acquiring current version information and pre-upgrading version information corresponding to the application platform if the pre-upgrading of the application platform is detected;
the violation code information determining module is used for determining violation code information corresponding to the pre-upgrading version information according to the pre-upgrading version information and a preset scanning rule;
the platform upgrading report generation module is used for generating a platform upgrading report corresponding to the application platform according to the violation code information and a preset problem library corresponding to the current version information, wherein the platform upgrading report is used for representing a mapping relation between the violation code information and a preset problem solution;
and the platform compatibility problem repairing module is used for repairing the compatibility problem in the application platform according to the platform upgrading report.
Optionally, the violation code information determining module further includes:
acquiring an application code in the pre-upgrade version information;
and scanning the application code based on the preset scanning rule, and determining the illegal code information corresponding to the pre-upgrading version information.
Optionally, the violation code information determining module further includes:
scanning all application code files in the application codes based on the preset scanning rule;
if the application code file is detected to be not matched with the preset scanning rule, determining that the code information corresponding to the application code file is illegal code information.
Optionally, the platform upgrade report generation module further includes:
acquiring tag information of the violation code information;
and generating a platform upgrading report corresponding to the application platform according to the label information and a preset problem library corresponding to the current version information.
Optionally, the tag information includes an offending code name, and the platform upgrade report generation module further includes:
searching a preset problem solution corresponding to the violation code name in the preset problem library based on the violation code name;
and generating a platform upgrading report corresponding to the application platform according to the preset problem solution and the violation code information.
Optionally, the platform compatibility problem repairing device further includes:
determining a pre-increment code rule label corresponding to the application platform according to an upgrading result of the application platform, wherein the pre-increment code rule label comprises a pre-increment violation code name, a pre-increment code rule definition and a pre-increment problem solution;
And responding to a preset question bank updating command, inserting the preset code rule tag into the preset question bank to update the preset question bank.
Optionally, the platform compatibility problem repairing device further includes:
judging whether the preset question library contains the pre-added code rule label or not;
if yes, invalidating the preset problem base updating command;
if not, executing the steps of: and responding to a preset question bank updating command, inserting the preset code rule tag into the preset question bank to update the preset question bank.
The application also provides an electronic device comprising: the system comprises a memory, a processor and a program of the platform compatibility problem restoration method, wherein the program of the platform compatibility problem restoration method is stored in the memory and can be run on the processor, and the program of the platform compatibility problem restoration method can realize the steps of the platform compatibility problem restoration method when being executed by the processor.
The present application also provides a computer-readable storage medium having stored thereon a program for implementing a platform compatibility problem repair method, which when executed by a processor implements the steps of the platform compatibility problem repair method as described above.
The present application also provides a computer program product comprising a computer program which, when executed by a processor, implements the steps of a platform compatibility problem repair method as described above.
Compared with the prior art that the compatibility problem of the platform can be found by manually carrying out full regression testing on the content applied by the platform by a user, the method and the device for repairing the compatibility problem of the platform, provided by the application, firstly acquire the current version information and the pre-upgrading version information corresponding to the application platform if the pre-upgrading of the application platform is detected; determining illegal code information corresponding to the pre-upgrading version information according to the pre-upgrading version information and a preset scanning rule; generating a platform upgrading report corresponding to the application platform according to the violation code information and a preset problem library corresponding to the current version information, wherein the platform upgrading report is used for representing a mapping relation between the violation code information and a preset problem solution; and repairing the compatibility problem in the application platform according to the platform upgrading report. When the application platform needs to be upgraded, the scanning rule and the problem library are preconfigured, the preconfigured scanning rule is used for scanning the pre-upgrading version information of the application platform, so that illegal codes which have compatibility problems with the application platform in the pre-upgrading version information are found, further, a problem solution corresponding to the illegal codes is found in the preconfigured problem library, a platform upgrading report containing the illegal codes and the problem solution is generated, the process of automatically identifying the compatibility problem of the platform when the application platform is upgraded is realized, the technical defect that the manual test has large dependence on manpower and needs to consume a large amount of manpower resources and time cost in the prior art is overcome, and the test efficiency of the compatibility problem test when the application platform is upgraded is improved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description, serve to explain the principles of the application.
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required to be used in the description of the embodiments or the prior art will be briefly described below, and it will be obvious to those skilled in the art that other drawings can be obtained from these drawings without inventive effort.
FIG. 1 is a schematic flow chart of a first embodiment of a method for repairing a compatibility problem of a platform according to the present application;
FIG. 2 is a schematic flow chart of a second embodiment of a method for repairing a compatibility problem of a platform according to the present application;
FIG. 3 is a schematic flow chart of a third embodiment of a method for repairing a compatibility problem of a platform according to the present application;
fig. 4 is a schematic structural diagram of a fourth embodiment of a device for repairing a compatibility problem of a platform according to the present application;
fig. 5 is a schematic device structure diagram of a hardware operating environment related to a method for repairing a platform compatibility problem in an embodiment of the present application.
The implementation, functional features and advantages of the present application will be further described with reference to the accompanying drawings in conjunction with the embodiments.
Detailed Description
In order to make the above objects, features and advantages of the present application more comprehensible, the following description will make the technical solutions of the embodiments of the present application clear and complete with reference to the accompanying drawings of the embodiments of the present application. It will be apparent that the described embodiments are only some, but not all, of the embodiments of the present application. All other embodiments, based on the embodiments herein, which are within the scope of the protection of the present application, will be within the purview of one of ordinary skill in the art without the exercise of inventive faculty.
Example 1
At present, the compatibility problem of the platform can be found by manually carrying out full-scale regression testing on the content applied by the platform by a user, but the manual testing has large dependence on manpower and needs to consume a large amount of manpower resources and time cost, so that the technical problem of low testing efficiency of the compatibility problem testing when the compatibility problem of the platform is repaired is brought.
An embodiment of the present application provides a method for repairing a platform compatibility problem, in a first embodiment of the method for repairing a platform compatibility problem of the present application, referring to fig. 1, the method for repairing a platform compatibility problem includes:
Step S10, if the pre-upgrading of the application platform is detected, acquiring current version information and pre-upgrading version information corresponding to the application platform;
in this embodiment of the present application, it should be noted that the pre-upgrade refers to an about-to-upgrade of the application platform, the current version information includes a current version of application code, the pre-upgrade version information includes a pre-upgrade version of application code, and the application code refers to a code applied to the application platform when development and upgrade of the platform are performed.
As an example, step S10 includes: detecting whether an application platform is pre-upgraded or not, and if so, acquiring current version information and pre-upgraded version information corresponding to the application platform; if the application platform is detected not to be pre-upgraded, continuously monitoring whether the application platform is pre-upgraded or not.
Step S20, determining illegal code information corresponding to the pre-upgrading version information according to the pre-upgrading version information and a preset scanning rule;
in this embodiment of the present application, it should be noted that, the preset scanning rule refers to a preset scanning rule that scans an application code in the pre-upgrade version information when the application platform is pre-upgraded, and optionally, the preset scanning rule may include that a front end directly operates a page element without using a standard interface, multi-language translation is not compliant, metadata has a repeated item, a table association relationship is repeated, an association relationship does not exist, a necessary parameter does not exist, and so on.
Additionally, it should be noted that the offending code information refers to code information that does not match the preset scanning rule.
Step S30, generating a platform upgrading report corresponding to the application platform according to the violation code information and a preset problem library corresponding to the current version information, wherein the platform upgrading report is used for representing a mapping relation between the violation code information and a preset problem solution;
in this embodiment of the present application, it should be noted that the platform upgrade report is used to characterize a mapping relationship between the offending code information and a preset problem solution, and optionally, the platform upgrade report may further include an application name of an application platform, an incompatible application file, an offending code row in the offending code information, and the like.
Additionally, it should be noted that, the preset problem base is used to record the common code problem and related problem solutions when the application platform is upgraded, alternatively, the code problem may be an incompatible code segment, a class base reference, etc., for example, the change of the class name of the button in the dom element in the code problem a in the high version may cause the failure of the event of the button binding, and the problem solution a corresponding to the code problem a may be that the class attribute in the button is replaced by "right simple-tool" in a unified manner.
And step S40, repairing the compatibility problem in the application platform according to the platform upgrading report.
As an example, steps S20 to S40 include: based on a preset scanning rule, scanning application codes in the pre-upgrading version information, and determining illegal code information corresponding to the pre-upgrading version information; generating a platform upgrading report corresponding to the application platform according to the violation code information and a preset problem library corresponding to the current version information, wherein the platform upgrading report is used for representing a mapping relation between the violation code information and a preset problem solution; and repairing the compatibility problem in the application platform according to the platform upgrading report, and upgrading the application platform according to a repairing result. According to the embodiment of the application platform upgrading method and device, the pre-upgrading version information of the application platform is fully scanned through the pre-configured preset scanning rule, so that illegal codes which have compatibility problems with the application platform in the pre-upgrading version information are found, further, a problem solution corresponding to the illegal codes is found in the pre-configured problem library, a platform upgrading report containing the illegal codes and the problem solution is generated, a developer modifies the illegal codes according to the platform upgrading report, upgrading risks caused by the compatibility problems can be reduced when the application platform is upgraded, labor cost is saved in the whole upgrading process, meanwhile, the application platform can automatically identify the compatibility problems existing in the application platform, and testing efficiency of the compatibility problem test when the application platform is upgraded is improved.
The step of determining the violation code information corresponding to the pre-upgrade version information according to the pre-upgrade version information and a preset scanning rule comprises the following steps:
step S21, obtaining an application code in the pre-upgrade version information;
in this embodiment of the present application, it should be noted that the application code includes at least one application code file, where the application code file includes a specific application code.
Step S22, based on the preset scanning rule, the application codes are scanned, and the illegal code information corresponding to the pre-upgrading version information is determined.
As an example, steps S21 to S22 include: acquiring an application code in the pre-upgrade version information, and scanning the application code based on the preset scanning rule; if the application code file which is not matched with the preset scanning rule exists in the application code, the application code corresponding to the application code file is the illegal code information. For example, it can be assumed that the scan rule A is not changeable for the class name of the button in the a element in the preset scan rule, and the application code file 1 is changed for the class name of the button in the a element in the application code of the pre-upgrade version information, and it can be seen that if the application code file 1 violates the scan rule A, the application code file 1 is not matched with the preset scan rule, and the application code corresponding to the application code file 1 is the illegal code information. According to the embodiment of the application code scanning method and device, the application code in the pre-upgrading version information is scanned through the built-in preset scanning rule, the compatibility problem of the pre-upgrading version information can be detected, the built-in preset scanning rule is adopted to conduct scanning, missing items cannot exist, the accuracy of scanning is guaranteed, and meanwhile the coverage area of scanning is enlarged.
Optionally, when the preset scanning rule is adopted to scan the application code in the pre-upgrade version information, the application code can be processed according to the character string, then the keyword in the regular expression scanning code is used, and the pre-upgrade version information is analyzed and positioned through the keyword, so that whether the illegal code information exists in the pre-upgrade version information is judged. Alternatively, the application code may be parsed into an AST abstract syntax tree, and the context of the code may be determined by tree nodes, thereby determining the offending code information included in the pre-upgrade version information.
The step of scanning the application code based on the preset scanning rule and determining the violation code information corresponding to the pre-upgrade version information comprises the following steps:
step S221, based on the preset scanning rule, scanning all application code files in the application code;
step S222, if it is detected that the application code file does not match the preset scanning rule, determining that the code information corresponding to the application code file is illegal code information.
In the embodiment of the present application, it should be noted that the fact that the application code file is not matched with the preset scanning rule means that there is a compatibility problem in the application code file, that is, there is a compatibility problem in the pre-upgrade version information.
As an example, step S221 to step S222 include: scanning all application code files in the application codes based on the preset scanning rule; detecting whether the application code file is matched with the preset scanning rule or not, and continuously monitoring whether the application code file is matched with the preset scanning rule or not if the application code file is detected to be matched with the preset scanning rule; if the application code file is detected to be not matched with the preset scanning rule, determining that the code information corresponding to the application code file is illegal code information. According to the embodiment of the application code identification method and device, all application code files in the application code are scanned through the preconfigured scanning rules, so that application code files which are not matched with the scanning rules are found, namely application code files with compatibility problems are found, illegal code information of an application platform during pre-upgrading is determined, and therefore the automatic identification function of the platform compatibility problems is achieved.
Compared with the prior art that the compatibility problem of the platform can be found by manually carrying out full regression testing on the content applied by the platform by a user, the method for repairing the compatibility problem of the platform comprises the steps that firstly, if the pre-upgrading of the application platform is detected, current version information and pre-upgrading version information corresponding to the application platform are obtained; determining illegal code information corresponding to the pre-upgrading version information according to the pre-upgrading version information and a preset scanning rule; generating a platform upgrading report corresponding to the application platform according to the violation code information and a preset problem library corresponding to the current version information, wherein the platform upgrading report is used for representing a mapping relation between the violation code information and a preset problem solution; and repairing the compatibility problem in the application platform according to the platform upgrading report. When the application platform needs to be upgraded, the scanning rule and the problem library are preconfigured, the preconfigured scanning rule is used for scanning the pre-upgrading version information of the application platform, so that illegal codes which have compatibility problems with the application platform in the pre-upgrading version information are found, further, a problem solution corresponding to the illegal codes is found in the preconfigured problem library, a platform upgrading report containing the illegal codes and the problem solution is generated, the process of automatically identifying the compatibility problem of the platform when the application platform is upgraded is realized, the technical defects that the manual test has large dependence on manpower and needs to consume a large amount of manpower resources and time cost in the prior art are overcome, and the test efficiency of the compatibility problem test when the application platform is upgraded is improved.
Example two
Further, referring to fig. 2, in another embodiment of the present application, the same or similar content as that of the first embodiment may be referred to the description above, and will not be repeated. On the basis, the step of generating the platform upgrading report corresponding to the application platform according to the violation code information and the preset problem library corresponding to the current version information comprises the following steps:
step S31, obtaining tag information of the violation code information;
in the embodiment of the present application, it should be noted that the tag information includes an offending code name, an offending code row, an offending code definition, and the like.
And step S32, generating a platform upgrading report corresponding to the application platform according to the label information and the preset problem library corresponding to the current version information.
As an example, steps S31 to S32 include: acquiring tag information of the violation code information; taking the tag information as an index, and searching a preset problem solution corresponding to the tag information in a preset problem library corresponding to the current version information; and generating a platform upgrading report corresponding to the application platform according to the preset problem solution and the violation code information.
The step of generating the platform upgrading report corresponding to the application platform according to the preset problem library corresponding to the tag information and the current version information comprises the following steps:
step S321, searching a preset problem solution corresponding to the violation code name in the preset problem library based on the violation code name;
in the embodiment of the present application, it should be noted that the name of the violation code refers to a function name corresponding to the violation code information.
Step S322, generating a platform upgrade report corresponding to the application platform according to the preset problem solution and the violation code information.
As an example, steps S321 to S322 include: taking the name of the violation code as an index, and searching a preset problem solution corresponding to the name of the violation code in the preset problem library; and correlating the preset problem solution with the violation code information to generate a platform upgrading report corresponding to the application platform, wherein the violation code name is a function name corresponding to the violation code information.
Optionally, after the platform upgrade report is generated, the platform upgrade report can be displayed on a web page or sent to a developer in a mail form, so that the developer can intuitively see the compatibility problem and related solutions of the pre-upgrade version information of the application platform, and the developer can quickly solve the compatibility problem of the application platform according to the solutions to complete upgrade adaptation, thereby upgrading the application platform.
The embodiment of the application provides a platform upgrading report generation method, namely, tag information of the illegal code information is obtained; and generating a platform upgrading report corresponding to the application platform according to the label information and a preset problem library corresponding to the current version information. After the tag information of the illegal code information is obtained, the tag information is used as an index to find a preset problem solution corresponding to the tag information in the preset problem so as to generate a corresponding platform upgrading report, so that the upgrading compatibility problem encountered by the application platform in upgrading can be predicted by generating the platform upgrading report before the application platform is upgraded, and the upgrading risk of the application platform is reduced.
Example III
Further, referring to fig. 3, in another embodiment of the present application, the same or similar content as that of the first embodiment may be referred to the description above, and will not be repeated. On the basis, after the step of upgrading the application platform according to the platform upgrading report, the platform compatibility problem repairing method further comprises the following steps:
step S41, determining a pre-increment code rule label corresponding to the application platform according to an upgrading result of the application platform, wherein the pre-increment code rule label comprises a pre-increment illegal code name, a pre-increment code rule definition and a pre-increment problem solution;
in this embodiment of the present application, it should be noted that, the upgrade result includes a compatibility problem code encountered by the application platform when the upgrade is completed, the pre-added code rule tag refers to a code rule tag to be added to the preset problem library, and the pre-added code rule tag includes a pre-added violation code name, a pre-added code rule definition, and a pre-added problem solution.
Step S42, in response to a preset question bank update command, inserting the preset code rule tag into the preset question bank to update the preset question bank.
As an example, step S41 to step S42 include: analyzing and summarizing compatibility problem codes in the upgrading result according to the upgrading result of the application platform, and determining a pre-increment code rule label corresponding to the application platform, wherein the pre-increment code rule label comprises a pre-increment violation code name, a pre-increment code rule definition and a pre-increment problem solution; if the preset question bank is detected not to contain the preset code rule label, the preset code rule label is inserted into the preset question bank in response to a preset question bank updating command so as to update the preset question bank.
Wherein, before the step of inserting the pre-added code rule tag into the pre-set question bank in response to a pre-set question bank update command to update the pre-set question bank, the platform compatibility question repairing method further comprises:
step S421, judging whether the preset question library contains the pre-increment code rule label;
step S422, if yes, invalidating the preset problem base update command;
step S423, if not, executing step S42: and responding to a preset question bank updating command, inserting the preset code rule tag into the preset question bank to update the preset question bank.
As an example, step S421 to step S423 include: judging whether the preset question library contains the pre-added code rule label or not; if the preset question library contains the pre-added code rule tag, invalidating the preset question library updating command; if the preset question library does not include the pre-added code rule tag, step S42 is executed: and responding to a preset question bank updating command, inserting the preset code rule tag into the preset question bank to update the preset question bank. According to the embodiment of the application, the conflict detection is carried out on the newly added code rule tag, if the existing problem base contains the newly added code rule tag, the problem base is not updated, so that repeated items cannot appear when the problem base is updated newly, and redundancy of the preset problem base is reduced.
The embodiment of the application provides a problem library updating method, namely, a pre-increment code rule label corresponding to an application platform is determined according to an upgrading result of the application platform, wherein the pre-increment code rule label comprises a pre-increment violation code name, a pre-increment code rule definition and a pre-increment problem solution; and responding to a preset question bank updating command, inserting the preset code rule tag into the preset question bank to update the preset question bank. The embodiment of the application provides a new configuration for the preset question bank to finish the update of the preset question bank, so that the built-in preset question bank can be continuously perfected, and the management and control range of the upgrading risk is enlarged by continuously expanding the preset question bank.
Example IV
The embodiment of the application also provides a platform compatibility problem repairing device, referring to fig. 4, the platform compatibility problem repairing device includes:
the parameter obtaining module 10 is configured to obtain current version information and pre-upgrade version information corresponding to an application platform if the pre-upgrade of the application platform is detected;
the violation code information determining module 20 is configured to determine, according to the pre-upgrade version information and a preset scanning rule, violation code information corresponding to the pre-upgrade version information;
the platform upgrade report generation module 30 is configured to generate a platform upgrade report corresponding to the application platform according to the violation code information and a preset problem library corresponding to the current version information, where the platform upgrade report is used to characterize a mapping relationship between the violation code information and a preset problem solution;
and the platform compatibility problem repairing module 40 is used for repairing the compatibility problem in the application platform according to the platform upgrading report.
Optionally, the violation code information determining module 20 further includes:
acquiring an application code in the pre-upgrade version information;
and scanning the application code based on the preset scanning rule, and determining the illegal code information corresponding to the pre-upgrading version information.
Optionally, the violation code information determining module 20 further includes:
scanning all application code files in the application codes based on the preset scanning rule;
if the application code file is detected to be not matched with the preset scanning rule, determining that the code information corresponding to the application code file is illegal code information.
Optionally, the platform upgrade report generation module 30 further includes:
acquiring tag information of the violation code information;
and generating a platform upgrading report corresponding to the application platform according to the label information and a preset problem library corresponding to the current version information.
Optionally, the tag information includes an offending code name, and the platform upgrade report generation module 30 further includes:
searching a preset problem solution corresponding to the violation code name in the preset problem library based on the violation code name;
and generating a platform upgrading report corresponding to the application platform according to the preset problem solution and the violation code information.
Optionally, the platform compatibility problem repairing device further includes:
determining a pre-increment code rule label corresponding to the application platform according to an upgrading result of the application platform, wherein the pre-increment code rule label comprises a pre-increment violation code name, a pre-increment code rule definition and a pre-increment problem solution;
And responding to a preset question bank updating command, inserting the preset code rule tag into the preset question bank to update the preset question bank.
Optionally, the platform compatibility problem repairing device further includes:
judging whether the preset question library contains the pre-added code rule label or not;
if yes, invalidating the preset problem base updating command;
if not, executing the steps of: and responding to a preset question bank updating command, inserting the preset code rule tag into the preset question bank to update the preset question bank.
The platform compatibility problem repairing device provided by the application adopts the platform compatibility problem repairing method in the embodiment, so that the technical problem of low testing efficiency of the compatibility problem test during the platform compatibility problem repairing is solved. Compared with the prior art, the beneficial effects of the platform compatibility problem repairing device provided by the embodiment of the application are the same as those of the platform compatibility problem repairing method provided by the embodiment, and other technical features of the platform compatibility problem repairing device are the same as those disclosed by the method of the embodiment, so that redundant description is omitted.
Example five
The embodiment of the invention provides electronic equipment, which comprises: at least one processor; and a memory communicatively coupled to the at least one processor; the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the platform interface flow control method of the first embodiment.
Referring now to fig. 5, a schematic diagram of an electronic device suitable for use in implementing embodiments of the present disclosure is shown. The electronic devices in the embodiments of the present disclosure may include, but are not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and the like, and stationary terminals such as digital TVs, desktop computers, and the like. The electronic device shown in fig. 5 is merely an example and should not be construed to limit the functionality and scope of use of the disclosed embodiments.
As shown in fig. 5, the electronic device may include a processing apparatus 1001 (e.g., a central processing unit, a graphics processor, etc.), which may perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 1002 or a program loaded from a storage apparatus 1003 into a Random Access Memory (RAM) 1004. In the RAM1004, various programs and data required for the operation of the electronic device are also stored. The processing device 1001, the ROM1002, and the RAM1004 are connected to each other by a bus 1005. An input/output (I/O) interface 1006 is also connected to the bus.
In general, the following systems may be connected to the I/O interface 1006: input devices 1007 including, for example, a touch screen, touchpad, keyboard, mouse, image sensor, microphone, accelerometer, gyroscope, and the like; an output device 1008 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage device 1003 including, for example, a magnetic tape, a hard disk, and the like; and communication means 1009. The communication means may allow the electronic device to communicate with other devices wirelessly or by wire to exchange data. While electronic devices having various systems are shown in the figures, it should be understood that not all of the illustrated systems are required to be implemented or provided. More or fewer systems may alternatively be implemented or provided.
In particular, according to embodiments of the present disclosure, the processes described above with reference to flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method shown in the flowcharts. In such an embodiment, the computer program may be downloaded and installed from a network via the communication device 1009, or installed from the storage device 1003, or installed from the ROM 1002. The above-described functions defined in the method of the embodiment of the present disclosure are performed when the computer program is executed by the processing device 1001.
The electronic equipment provided by the invention solves the technical problem of low running safety of the bidirectional running vehicle in the running process by adopting the platform interface flow control method in the embodiment. Compared with the prior art, the beneficial effects of the electronic device provided by the embodiment of the invention are the same as those of the platform interface flow control method provided by the embodiment, and other technical features of the electronic device are the same as those disclosed by the method of the embodiment, so that the description is omitted herein.
It should be understood that portions of the present disclosure may be implemented in hardware, software, firmware, or a combination thereof. In the description of the above embodiments, particular features, structures, materials, or characteristics may be combined in any suitable manner in any one or more embodiments or examples.
The foregoing is merely illustrative of the present invention, and the present invention is not limited thereto, and any person skilled in the art will readily recognize that variations or substitutions are within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
Example six
The present embodiment provides a computer-readable storage medium having computer-readable program instructions stored thereon for performing the method of platform compatibility problem remediation in the above embodiment.
The computer readable storage medium provided by the embodiments of the present application may be, for example, a usb disk, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, or device, or a combination of any of the foregoing. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In this embodiment, a computer-readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, or device. Program code embodied on a computer readable storage medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, fiber optic cables, RF (radio frequency), and the like, or any suitable combination of the foregoing.
The above-described computer-readable storage medium may be contained in an electronic device; or may exist alone without being assembled into an electronic device.
The computer-readable storage medium carries one or more programs that, when executed by an electronic device, cause the electronic device to: if the pre-upgrading of the application platform is detected, acquiring current version information and pre-upgrading version information corresponding to the application platform; determining illegal code information corresponding to the pre-upgrading version information according to the pre-upgrading version information and a preset scanning rule; generating a platform upgrading report corresponding to the application platform according to the violation code information and a preset problem library corresponding to the current version information, wherein the platform upgrading report is used for representing a mapping relation between the violation code information and a preset problem solution; and repairing the compatibility problem in the application platform according to the platform upgrading report.
Computer program code for carrying out operations of the present disclosure may be written in one or more programming languages, including an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules described in the embodiments of the present disclosure may be implemented in software or hardware. Wherein the name of the module does not constitute a limitation of the unit itself in some cases.
The computer readable storage medium is stored with computer readable program instructions for executing the platform compatibility problem repairing method, and solves the technical problem of low testing efficiency of compatibility problem testing during platform compatibility problem repairing. Compared with the prior art, the beneficial effects of the computer readable storage medium provided by the embodiment of the present application are the same as those of the platform compatibility problem repairing method provided by the above embodiment, and are not described herein.
Example six
The present application also provides a computer program product comprising a computer program which, when executed by a processor, implements the steps of a platform compatibility problem repair method as described above.
The computer program product solves the technical problem of low testing efficiency of the compatibility problem test in the process of repairing the platform compatibility problem. Compared with the prior art, the beneficial effects of the computer program product provided by the embodiment of the present application are the same as those of the platform compatibility problem repairing method provided by the above embodiment, and are not described herein.
The foregoing description is only of the preferred embodiments of the present application and is not intended to limit the scope of the claims, and all equivalent structures or equivalent processes using the descriptions and drawings of the present application, or direct or indirect application in other related technical fields are included in the scope of the claims.
Claims (8)
1. The method for repairing the platform compatibility problem is characterized by comprising the following steps of:
if the pre-upgrading of the application platform is detected, acquiring current version information and pre-upgrading version information corresponding to the application platform;
determining illegal code information corresponding to the pre-upgrading version information according to the pre-upgrading version information and a preset scanning rule;
generating a platform upgrading report corresponding to the application platform according to the violation code information and a preset problem library corresponding to the current version information, wherein the platform upgrading report is used for representing a mapping relation between the violation code information and a preset problem solution, the platform upgrading report comprises one or more of an application name of the application platform, an incompatible application file and a violation code row in the violation code information, and the preset problem library is used for recording common code problems and related problem solutions when the application platform is upgraded;
repairing compatibility problems in the application platform according to the platform upgrading report;
the step of determining the violation code information corresponding to the pre-upgrade version information according to the pre-upgrade version information and a preset scanning rule comprises the following steps:
Acquiring an application code in the pre-upgrade version information;
scanning all application code files in the application codes based on the preset scanning rule;
if the application code file is detected to be not matched with the preset scanning rule, determining code information corresponding to the application code file as illegal code information;
the step of generating the platform upgrading report corresponding to the application platform according to the violation code information and the preset problem library corresponding to the current version information comprises the following steps:
acquiring tag information of the violation code information, wherein the tag information comprises one or more of a violation code name, a violation code row and a violation code specification;
taking the tag information as an index, and searching a preset problem solution corresponding to the tag information in a preset problem library corresponding to the current version information;
and generating a platform upgrading report corresponding to the application platform according to the preset problem solution and the violation code information.
2. The method for repairing a platform compatibility problem according to claim 1, wherein the step of generating the platform upgrade report corresponding to the application platform according to the default problem base corresponding to the offending code information and the current version information comprises:
Acquiring tag information of the violation code information;
and generating a platform upgrading report corresponding to the application platform according to the label information and a preset problem library corresponding to the current version information.
3. The method for repairing a platform compatibility problem according to claim 2, wherein the tag information includes a name of an offending code, and the step of generating the platform upgrade report corresponding to the application platform according to a preset problem library corresponding to the tag information and the current version information includes:
searching a preset problem solution corresponding to the violation code name in the preset problem library based on the violation code name;
and generating a platform upgrading report corresponding to the application platform according to the preset problem solution and the violation code information.
4. The platform compatibility problem repairing method of claim 1, wherein after the step of upgrading the application platform according to the platform upgrade report, the platform compatibility problem repairing method further comprises:
determining a pre-increment code rule label corresponding to the application platform according to an upgrading result of the application platform, wherein the pre-increment code rule label comprises a pre-increment violation code name, a pre-increment code rule definition and a pre-increment problem solution;
And responding to a preset question bank updating command, inserting the preset code rule tag into the preset question bank to update the preset question bank.
5. The platform compatibility problem repairing method of claim 4, wherein prior to said step of inserting said pre-increased code rule tag into said pre-set problem library in response to a pre-set problem library update command to update said pre-set problem library, said platform compatibility problem repairing method further comprises:
judging whether the preset question library contains the pre-added code rule label or not;
if yes, invalidating the preset problem base updating command;
if not, executing the steps of: and responding to a preset question bank updating command, inserting the preset code rule tag into the preset question bank to update the preset question bank.
6. A platform compatibility problem repair device, characterized in that the platform compatibility problem repair device comprises:
the parameter acquisition module is used for acquiring current version information and pre-upgrading version information corresponding to the application platform if the pre-upgrading of the application platform is detected;
the violation code information determining module is used for determining violation code information corresponding to the pre-upgrading version information according to the pre-upgrading version information and a preset scanning rule;
The platform upgrading report generation module is used for generating a platform upgrading report corresponding to the application platform according to the violation code information and a preset problem library corresponding to the current version information, wherein the platform upgrading report is used for representing a mapping relation between the violation code information and a preset problem solution, the platform upgrading report comprises one or more of an application name of the application platform, an incompatible application file and a violation code row in the violation code information, and the preset problem library is used for recording common code problems and related problem solutions during upgrading of the application platform;
the platform compatibility problem repairing module is used for repairing compatibility problems in the application platform according to the platform upgrading report;
wherein the violation code information determining module further includes:
acquiring an application code in the pre-upgrade version information;
scanning all application code files in the application codes based on the preset scanning rule;
if the application code file is detected to be not matched with the preset scanning rule, determining code information corresponding to the application code file as illegal code information;
The platform upgrade report generation module further comprises:
acquiring tag information of the violation code information, wherein the tag information comprises one or more of a violation code name, a violation code row and a violation code specification;
taking the tag information as an index, and searching a preset problem solution corresponding to the tag information in a preset problem library corresponding to the current version information;
and generating a platform upgrading report corresponding to the application platform according to the preset problem solution and the violation code information.
7. An electronic device, the electronic device comprising:
at least one processor; the method comprises the steps of,
a memory communicatively coupled to the at least one processor; wherein,,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the steps of the platform compatibility problem restoration method of any one of claims 1 to 5.
8. A computer-readable storage medium, having stored thereon a program for implementing a platform compatibility problem repair method, the program for implementing the platform compatibility problem repair method being executed by a processor to implement the steps of the platform compatibility problem repair method according to any one of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211660550.7A CN115658374B (en) | 2022-12-23 | 2022-12-23 | Platform compatibility problem repairing method and device, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211660550.7A CN115658374B (en) | 2022-12-23 | 2022-12-23 | Platform compatibility problem repairing method and device, electronic equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN115658374A CN115658374A (en) | 2023-01-31 |
CN115658374B true CN115658374B (en) | 2023-05-26 |
Family
ID=85022935
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211660550.7A Active CN115658374B (en) | 2022-12-23 | 2022-12-23 | Platform compatibility problem repairing method and device, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115658374B (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106549810A (en) * | 2016-11-24 | 2017-03-29 | 深圳市小满科技有限公司 | Cloud service platform redaction issues front method of testing, device and system |
CN111061643A (en) * | 2019-12-24 | 2020-04-24 | 五八同城信息技术有限公司 | SDK cluster compatibility detection method and device, electronic equipment and storage medium |
CN113918209A (en) * | 2021-12-16 | 2022-01-11 | 深圳市明源云科技有限公司 | Method and device for generating upgrade list and readable storage medium |
US11481200B1 (en) * | 2021-10-11 | 2022-10-25 | International Business Machines Corporation | Checking source code validity at time of code update |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108920370B (en) * | 2018-07-02 | 2022-08-16 | 北京百度网讯科技有限公司 | Compatibility problem detection method, device and equipment |
CN110688300A (en) * | 2019-08-13 | 2020-01-14 | 平安科技(深圳)有限公司 | Compatibility testing method, device, equipment and storage medium |
CN111382070B (en) * | 2020-03-03 | 2022-03-04 | 腾讯科技(深圳)有限公司 | Compatibility testing method and device, storage medium and computer equipment |
-
2022
- 2022-12-23 CN CN202211660550.7A patent/CN115658374B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106549810A (en) * | 2016-11-24 | 2017-03-29 | 深圳市小满科技有限公司 | Cloud service platform redaction issues front method of testing, device and system |
CN111061643A (en) * | 2019-12-24 | 2020-04-24 | 五八同城信息技术有限公司 | SDK cluster compatibility detection method and device, electronic equipment and storage medium |
US11481200B1 (en) * | 2021-10-11 | 2022-10-25 | International Business Machines Corporation | Checking source code validity at time of code update |
CN113918209A (en) * | 2021-12-16 | 2022-01-11 | 深圳市明源云科技有限公司 | Method and device for generating upgrade list and readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN115658374A (en) | 2023-01-31 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8631390B2 (en) | Archiving a build product | |
CN110990020A (en) | Software compiling method and device, electronic equipment and storage medium | |
CN112685029B (en) | Method, device, equipment and storage medium for generating visual template | |
CN112527382B (en) | Method for deploying pipeline engine system, and method and device for continuous integration | |
CN113760306B (en) | Method and device for installing software, electronic equipment and storage medium | |
CN110659210A (en) | Information acquisition method and device, electronic equipment and storage medium | |
CN110764941A (en) | Method, device, medium and equipment for acquiring call stack frame instruction offset | |
CN113377342B (en) | Project construction method and device, electronic equipment and storage medium | |
CN115576600A (en) | Code change-based difference processing method and device, terminal and storage medium | |
CN111258803A (en) | Collapse positioning method and device and electronic equipment | |
CN110716804A (en) | Method and device for automatically deleting useless resources, storage medium and electronic equipment | |
CN110737588A (en) | automatic point burying method, device, medium and electronic equipment | |
CN114003269A (en) | Component processing method and device, electronic equipment and storage medium | |
CN110348226B (en) | Engineering file scanning method and device, electronic equipment and storage medium | |
CN115658374B (en) | Platform compatibility problem repairing method and device, electronic equipment and storage medium | |
US9075679B1 (en) | Creating a prerequisite checklist corresponding to a software application | |
CN110928801A (en) | Role authority test method and device, computer medium and electronic equipment | |
CN113590225B (en) | Mapping detection method and device, electronic equipment and storage medium | |
CN115543391B (en) | Application platform upgrading method and device, electronic equipment and readable storage medium | |
CN115658276B (en) | Service development method, device, electronic equipment and readable storage medium | |
CN113361286A (en) | Information prompting method and device | |
CN118394407B (en) | Git source code-based interface scanning method, device, equipment and storage medium | |
CN110727480A (en) | Method, device, medium and equipment for acquiring call stack frame instruction offset | |
CN109828781A (en) | Source code version localization method, device, medium and equipment for problem investigation | |
CN114936387B (en) | Text file reading method, text file writing method, electronic equipment and readable 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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |