CN115658374A - Method and device for repairing platform compatibility problem, electronic equipment and storage medium - Google Patents

Method and device for repairing platform compatibility problem, electronic equipment and storage medium Download PDF

Info

Publication number
CN115658374A
CN115658374A CN202211660550.7A CN202211660550A CN115658374A CN 115658374 A CN115658374 A CN 115658374A CN 202211660550 A CN202211660550 A CN 202211660550A CN 115658374 A CN115658374 A CN 115658374A
Authority
CN
China
Prior art keywords
platform
code
preset
application
version 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.)
Granted
Application number
CN202211660550.7A
Other languages
Chinese (zh)
Other versions
CN115658374B (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.)
Shenzhen Mingyuan Cloud Technology Co Ltd
Original Assignee
Shenzhen Mingyuan Cloud 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 Shenzhen Mingyuan Cloud Technology Co Ltd filed Critical Shenzhen Mingyuan Cloud Technology Co Ltd
Priority to CN202211660550.7A priority Critical patent/CN115658374B/en
Publication of CN115658374A publication Critical patent/CN115658374A/en
Application granted granted Critical
Publication of CN115658374B publication Critical patent/CN115658374B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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
    • Y02DCLIMATE 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/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Stored Programmes (AREA)

Abstract

The application provides a method and a device for repairing a platform compatibility problem, electronic equipment and a storage medium, wherein the method for repairing the platform compatibility problem comprises the following steps: if the application platform is detected to be pre-upgraded, acquiring current version information and pre-upgraded version information corresponding to the application platform; determining violation 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 that the testing efficiency of the compatibility problem test is low when the platform compatibility problem is repaired in the prior art.

Description

Method and device for repairing platform compatibility problem, electronic equipment and storage medium
Technical Field
The present application relates to the technical field of low code/zero code development platforms, and in particular, to a method and an apparatus for repairing platform compatibility problems, an electronic device, and a storage medium.
Background
With the continuous development of science and technology, a low-code/zero-code development platform technology is developed, and in order to meet the personalized requirements of users, the secondary customized development of an application platform can be completed by performing code expansion on the constructed platform, so that the iterative upgrade of the application platform is completed. However, when an application platform is iteratively upgraded, a lot of compatibility problems can be faced, and the existence of the compatibility problems can cause high upgrading cost of the application platform, and in order to solve the technical problem, currently, the compatibility problems of the platform can be found by manually carrying out a full regression test on the contents applied by the platform by a user, but the manual test has high dependence on manpower, a large amount of manpower resources and time cost need to be consumed, and the technical problem of low testing efficiency of the compatibility problem test when the platform compatibility problem is repaired is brought.
Disclosure of Invention
The present application mainly aims to provide a method, an apparatus, an electronic device, and a storage medium for repairing a platform compatibility problem, and aims to solve the technical problem in the prior art that a test efficiency of a compatibility problem test is low when the platform compatibility problem is repaired.
In order to achieve the above object, the present application provides a method for repairing a platform compatibility problem, where the method for repairing a platform compatibility problem includes:
if the application platform is detected to be pre-upgraded, acquiring current version information and pre-upgraded version information corresponding to the application platform;
determining violation 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, according to the pre-upgrade version information and a preset scanning rule, violation code information corresponding to the pre-upgrade version information includes:
acquiring an application code in the pre-upgrading version information;
and scanning the application code based on the preset scanning rule, and determining violation code information corresponding to the pre-upgrade version information.
Optionally, the scanning the application code based on the preset scanning rule, and the determining 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;
and if the application code file is detected not to be 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 a 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 label information of the violation code information;
and generating a platform upgrading report corresponding to the application platform according to the preset problem library corresponding to the tag information and the current version information.
Optionally, the tag information includes a name of an illegal code, and the step of generating a platform upgrade report corresponding to the application platform according to the tag information and a preset problem library corresponding to 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 method for repairing the platform compatibility problem further includes:
determining a pre-added code rule tag corresponding to the application platform according to an upgrading result of the application platform, wherein the pre-added code rule tag comprises a pre-added illegal code name, a pre-added code rule definition and a pre-added problem solution;
and responding to a preset problem library updating command, and inserting the pre-added code rule tag into the preset problem library to update the preset problem library.
Optionally, before the step of responding to a preset problem library update command and inserting the pre-added code rule tag into the preset problem library to update the preset problem library, the method for repairing a platform compatibility problem further includes:
judging whether the preset question bank contains the pre-added code rule label or not;
if so, invalidating the preset problem bank updating command;
if not, executing the following steps: and responding to a preset problem library updating command, and inserting the pre-added code rule tag into the preset problem library to update the preset problem library.
In order to achieve the above object, the present application further provides a device for repairing a platform compatibility problem, where the device for repairing a platform compatibility problem includes:
the system comprises a parameter acquisition module, a parameter updating module and a parameter updating module, wherein the parameter acquisition module is used for acquiring current version information and pre-updating version information corresponding to an application platform if the application platform is detected to be pre-updated;
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;
a platform upgrade report generation module, configured to generate a platform upgrade report corresponding to the application platform according to a preset problem library corresponding to the violation code information and the current version information, where the platform upgrade report is used to represent a mapping relationship 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 determination module further comprises:
acquiring an application code in the pre-upgrade version information;
and scanning the application code based on the preset scanning rule, and determining violation code information corresponding to the pre-upgrade version information.
Optionally, the violation code information determination module further comprises:
scanning all application code files in the application codes based on the preset scanning rule;
and if the application code file is detected not to be 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 label information of the violation code information;
and generating a platform upgrading report corresponding to the application platform according to the preset problem library corresponding to the tag information and the current version information.
Optionally, the tag information includes a name of an illegal code, and the platform upgrade report generation module further includes:
searching a preset problem solution corresponding to the illegal code name in the preset problem library based on the illegal 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 apparatus for repairing a platform compatibility problem further includes:
determining a pre-added code rule tag corresponding to the application platform according to an upgrading result of the application platform, wherein the pre-added code rule tag comprises a pre-added illegal code name, a pre-added code rule definition and a pre-added problem solution;
and responding to a preset problem bank updating command, and inserting the pre-added code rule tag into the preset problem bank to update the preset problem bank.
Optionally, the apparatus for repairing a platform compatibility problem further includes:
judging whether the preset question bank contains the pre-added code rule label or not;
if so, invalidating the preset problem bank updating command;
if not, executing the following steps: and responding to a preset problem library updating command, and inserting the pre-added code rule tag into the preset problem library to update the preset problem library.
The present application further provides an electronic device, the electronic device including: the method comprises the steps of storing a program of the platform compatibility problem repairing method, and storing the program on the storage and running on the processor, wherein the steps of the platform compatibility problem repairing method can be realized when the program of the platform compatibility problem repairing method is executed by the processor.
The present application further provides a computer-readable storage medium, where a program for implementing a method for repairing a platform compatibility problem is stored, and when the program is executed by a processor, the method for repairing a platform compatibility problem performs the steps of the method for repairing a platform compatibility problem.
The present application also provides a computer program product comprising a computer program which, when executed by a processor, performs the steps of the method for repairing a platform compatibility problem as described above.
Compared with the prior art that the compatibility problem of a platform can be found by manually carrying out a full regression test on the content applied to the platform by a user, the method and the device for repairing the platform compatibility problem acquire the current version information and the pre-upgrade version information corresponding to the application platform if the application platform is detected to be pre-upgraded; determining violation 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, scanning rules and a problem library are configured in advance, and pre-upgrade version information of the application platform is scanned through the pre-configured scanning rules, so that violation codes which can have compatibility problems with the application platform in the pre-upgrade version information are found out, and then problem solutions corresponding to the violation codes are found out in the pre-configured problem library to generate a platform upgrade report containing the violation codes and the problem solutions.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present 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 needed to be 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 to obtain other drawings without inventive exercise.
Fig. 1 is a schematic flowchart of a platform compatibility problem recovery method according to an embodiment of the present application;
fig. 2 is a schematic flowchart of a second embodiment of a platform compatibility problem recovery method according to the present application;
fig. 3 is a schematic flowchart of a third embodiment of a platform compatibility problem recovery method according to the present application;
fig. 4 is a schematic structural diagram of a fourth apparatus for repairing a platform compatibility problem according to the present application;
fig. 5 is a schematic device structure diagram of a hardware operating environment related to a method for repairing platform compatibility problems in the embodiment of the present application.
The objectives, features, and advantages of the present application will be further described with reference to the accompanying drawings.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present application more comprehensible, embodiments of the present application are described in detail below with reference to the accompanying drawings. It is to be understood that the embodiments described are only a few embodiments of the present application and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Example one
At present, the compatibility problem of the platform can be found by manually carrying out full regression testing on the content applied to the platform by a user, but the manual testing has high dependency on manpower, a large amount of manpower resources and time cost are required to be consumed, and the technical problem of low testing efficiency of the compatibility problem testing during the platform compatibility problem repair is brought.
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 application platform is detected to be pre-upgraded, current version information and pre-upgraded version information corresponding to the application platform are obtained;
in this embodiment, it should be noted that the pre-upgrade refers to that the application platform is about to perform platform upgrade, the current version information includes an application code of a current version, the pre-upgrade version information includes an application code of a pre-upgrade version, and the application code refers to a code applied to the application platform when the platform is developed and upgraded.
As an example, step S10 includes: detecting whether an application platform is pre-upgraded, and if the application platform is detected to be pre-upgraded, acquiring current version information and pre-upgraded version information corresponding to the application platform; and if the application platform is not pre-upgraded, continuously monitoring whether the application platform is pre-upgraded.
Step S20, determining violation code information corresponding to the pre-upgrade version information according to the pre-upgrade 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 for scanning an application code in the pre-upgrade version information when an application platform is pre-upgraded, and optionally, the preset scanning rule may include that a front end does not directly operate a page element using a standard interface, multiple language translation is not compliant, metadata has a duplicate item, a table association relationship is duplicated, an association relationship does not exist, a necessary parameter does not exist, and the like.
Additionally, it should be noted that the violation 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 a preset problem library corresponding to the violation code information and 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 the embodiment of the present application, it should be noted that the platform upgrade report is used to represent a mapping relationship between the violation 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, a violation code line in the violation code information, and the like.
Additionally, it should be noted that the preset problem library is used to record a common code problem and a related problem solution when the application platform is upgraded, optionally, the code problem may be an incompatible code fragment, a class library reference, and the like, for example, when the code problem a is a change in the class name of a button in a dom element in a high version, an event that the button is bound fails, and the problem solution a corresponding to the code problem a may be obtained by uniformly replacing the class attribute of the button in the button with "right simple-toolbar".
And S40, repairing the compatibility problem in the application platform according to the platform upgrading report.
As an example, steps S20 to S40 include: scanning an application code in the pre-upgrading version information based on a preset scanning rule, and determining violation 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 the repairing result. According to the method and the device, the pre-upgrading version information of the application platform is subjected to full scanning through the pre-configured preset scanning rule, so that the illegal codes which have compatibility problems with the application platform in the pre-upgrading version information are found out, the problem solutions corresponding to the illegal codes are found out in the pre-configured problem library, a platform upgrading report containing the illegal codes and the problem solutions is generated, developers modify the illegal codes according to the platform upgrading report, the upgrading risks brought by the compatibility problems can be reduced when the application platform is upgraded, the 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 the testing efficiency of testing the compatibility problems when the application platform is upgraded is improved.
The step of determining violation code information corresponding to the pre-upgrade version information according to the pre-upgrade version information and a preset scanning rule includes:
step S21, acquiring an application code in the pre-upgrade version information;
in the embodiment of the present application, it should be noted that the application code at least includes one application code file, and the application code file includes specific application code.
And S22, scanning the application code based on the preset scanning rule, and determining violation code information corresponding to the pre-upgrade version information.
As an example, steps S21 to S22 include: acquiring an application code in the pre-upgrading version information, and scanning the application code based on the preset scanning rule; and 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 violation code information. For example, it may be assumed that the preset scanning rule includes a condition that the scanning rule a is unchangeable for the class name of the button in the element a, and the application code of the pre-upgrade version information includes a condition that the application code file 1 changes the class name of the button in the element a, and it can be seen that if the application code file 1 violates the scanning rule a, the application code file 1 does not match the preset scanning rule, and the application code corresponding to the application code file 1 is violation code information. According to the embodiment of the application, the compatibility problem of the pre-upgrading version information can be detected by scanning the application codes in the pre-upgrading version information through the built-in preset scanning rule, the scanning performed by the built-in preset scanning rule is full scanning, missing items cannot exist, the scanning accuracy is guaranteed, and meanwhile the scanning coverage area is enlarged.
Optionally, when the application code in the pre-upgrade version information is scanned by using the preset scanning rule, the application code may be processed according to a character string, and then the regular expression is used to scan the keywords in the code, and the pre-upgrade version information is analyzed and positioned by the keywords, so as to determine whether the violation code information exists in the pre-upgrade version information. Alternatively, the application code may be analyzed as an AST abstract syntax tree, and the tree node may determine the code context, thereby determining the violation 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 includes:
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 is not matched with the preset scanning rule, determining that code information corresponding to the application code file is violation code information.
In this embodiment, it should be noted that, when the application code file is not matched with the preset scanning rule, it means that the application code file has a compatibility problem, that is, the pre-upgrade version information has a compatibility problem.
As an example, steps S221 to 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, and if the application code file is detected to be matched with the preset scanning rule, continuously monitoring whether the application code file is matched with the preset scanning rule; and if the application code file is detected not to be 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, all application code files in the application codes are scanned through the preconfigured scanning rules, so that the application code files which are not matched with the scanning rules are found, namely the application code files with the compatibility problem are found, the illegal code information when the application platform is pre-upgraded is determined, and the automatic identification function of the platform compatibility problem is realized.
Compared with the prior art that the compatibility problem of a platform can be found by manually carrying out a full regression test on the contents applied to the platform by a user, the method for repairing the platform compatibility problem comprises the steps of firstly, if the application platform is detected to be pre-upgraded, obtaining current version information and pre-upgraded version information corresponding to the application platform; determining violation 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. According to the method and the device, when the application platform needs to be upgraded, scanning rules and a problem library are configured in advance, and scanning is performed on the pre-upgraded version information of the application platform through the scanning rules configured in advance, so that violation codes which can have compatibility problems with the application platform in the pre-upgraded version information are found out, and then problem solutions corresponding to the violation codes are found out in the problem library configured in advance, so that a platform upgrade report containing the violation codes and the problem solutions is generated, and therefore the process of automatically identifying the platform compatibility problems when the application platform is upgraded is achieved.
Example two
Further, referring to fig. 2, in another embodiment of the present application, the same or similar contents as those in the first embodiment may refer to the above description, and are not repeated herein. On this basis, the step of generating a 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:
step S31, acquiring label information of the violation code information;
in the embodiment of the present application, it should be noted that the tag information includes a violation code name, a violation code line, a violation code definition, and the like.
And step S32, generating a platform upgrading report corresponding to the application platform according to the preset problem library corresponding to the label information and the current version information.
As an example, steps S31 to S32 include: acquiring label information of the violation code information; using the label information as an index, and searching a preset problem solution corresponding to the label 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 tag information comprises a violation code name, and the step of generating a platform upgrade report corresponding to the application platform according to the tag information and a preset problem library corresponding to the current version information comprises the following steps:
step S321, based on the violation code name, searching a preset problem solution corresponding to the violation code name in the preset problem library;
in the embodiment of the present application, it should be noted that the violation code name refers to a function name corresponding to the violation code information.
Step S322, generating a platform upgrading report corresponding to the application platform according to the preset problem solution and the violation code information.
As one example, steps S321 to S322 include: using the illegal code name as an index, and searching a preset problem solution corresponding to the illegal code name in the preset problem library; and associating the preset problem solution with the violation code information to generate a platform upgrade report corresponding to the application platform, wherein the violation code name refers to a function name corresponding to the violation code information.
Optionally, after the platform upgrade report is generated, the platform upgrade report may be displayed on a web page, or sent to a developer in the form of an email, so that the developer may visually see the compatibility problem and the related solution existing in the pre-upgrade version information of the application platform, and the developer may quickly solve the compatibility problem existing in the application platform according to the solution, complete upgrade adaptation, and then upgrade the application platform.
The embodiment of the application provides a method for generating a platform upgrade report, namely, label information of violation code information is obtained; and generating a platform upgrading report corresponding to the application platform according to the preset problem library corresponding to the tag information and the current version information. According to the method and the device, after the tag information of the illegal code information is obtained, the tag information is used as an index to find the corresponding preset problem solution in the preset problems so as to generate the corresponding platform upgrading report, so that the upgrading compatibility problem encountered by the application platform during 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 contents as those in the first embodiment may refer to the above description, and are not repeated herein. On this basis, after the step of upgrading the application platform according to the platform upgrade report, the method for repairing the platform compatibility problem further includes:
step S41, determining a pre-added code rule label corresponding to the application platform according to an upgrading result of the application platform, wherein the pre-added code rule label comprises a pre-added illegal code name, a pre-added code rule definition and a pre-added problem solution;
in this embodiment, 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 is 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.
And step S42, responding to a preset problem bank updating command, and inserting the pre-added code rule tag into the preset problem bank to update the preset problem bank.
As an example, steps S41 to S42 include: according to the upgrading result of the application platform, analyzing and summarizing compatibility problem codes in the upgrading result, and determining a pre-added code rule tag corresponding to the application platform, wherein the pre-added code rule tag comprises a pre-added violation code name, a pre-added code rule definition and a pre-added problem solution; and if the preset problem library is detected not to contain the pre-added code rule tag, responding to a preset problem library updating command, and inserting the pre-added code rule tag into the preset problem library to update the preset problem library.
Before the step of responding to the preset problem library updating command and inserting the pre-added code rule tag into the preset problem library to update the preset problem library, the method for repairing the platform compatibility problem further comprises the following steps:
step S421, judging whether the preset question bank contains the pre-added code rule label;
step S422, if yes, invalidating the preset problem bank updating command;
step S423, if no, executing step S42: and responding to a preset problem library updating command, and inserting the pre-added code rule tag into the preset problem library to update the preset problem library.
As an example, steps S421 to S423 include: judging whether the preset question bank contains the pre-added code rule label or not; if the preset problem library comprises the pre-added code rule tag, invalidating the preset problem library updating command; if the preset question bank does not contain the pre-added code rule tag, executing step S42: and responding to a preset problem bank updating command, and inserting the pre-added code rule tag into the preset problem bank to update the preset problem bank. According to the method and the device, the newly added code rule tag is subjected to conflict detection, and if the existing problem library contains the newly added code rule tag, the problem library is not updated, so that repeated items cannot appear in the problem library during newly added updating, and the redundancy of the preset problem library is reduced.
The embodiment of the application provides a problem bank updating method, namely determining a pre-added code rule label corresponding to an application platform according to an upgrading result of the application platform, wherein the pre-added code rule label comprises a pre-added illegal code name, a pre-added code rule definition and a pre-added problem solution; and responding to a preset problem library updating command, and inserting the pre-added code rule tag into the preset problem library to update the preset problem library. The embodiment of the application provides that configuration is newly increased for the preset problem library to complete updating of the preset problem library, so that the built-in preset problem library can be continuously perfected, and the control range of the upgrading risk is expanded by continuously expanding the preset problem library.
Example four
An embodiment of the present application further provides a device for repairing a platform compatibility problem, and with reference to fig. 4, the device for repairing a platform compatibility problem includes:
a parameter obtaining module 10, configured to obtain current version information and pre-upgrade version information corresponding to an application platform if it is detected that the application platform is pre-upgraded;
the violation code information determining module 20 is configured to determine violation code information corresponding to the pre-upgrade version information according to the pre-upgrade version information and a preset scanning rule;
a platform upgrade report generation module 30, 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 represent 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 upgrade report.
Optionally, the violation code information determining module 20 further includes:
acquiring an application code in the pre-upgrading version information;
and scanning the application code based on the preset scanning rule, and determining violation code information corresponding to the pre-upgrade version information.
Optionally, the violation code information determination module 20 further comprises:
scanning all application code files in the application codes based on the preset scanning rule;
and if the application code file is detected not to be 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 generating module 30 further includes:
acquiring label information of the violation code information;
and generating a platform upgrading report corresponding to the application platform according to the preset problem library corresponding to the tag information and the current version information.
Optionally, the tag information includes a name of an illegal code, and the platform upgrade report generation module 30 further includes:
searching a preset problem solution corresponding to the illegal code name in the preset problem library based on the illegal 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 apparatus for repairing a platform compatibility problem further includes:
determining a pre-added code rule tag corresponding to the application platform according to an upgrading result of the application platform, wherein the pre-added code rule tag comprises a pre-added illegal code name, a pre-added code rule definition and a pre-added problem solution;
and responding to a preset problem bank updating command, and inserting the pre-added code rule tag into the preset problem bank to update the preset problem bank.
Optionally, the apparatus for repairing a platform compatibility problem further includes:
judging whether the preset question bank contains the pre-added code rule label or not;
if so, invalidating the preset problem bank updating command;
if not, executing the following steps: and responding to a preset problem library updating command, and inserting the pre-added code rule tag into the preset problem library to update the preset problem library.
By adopting the device for repairing the platform compatibility problem, the technical problem of low testing efficiency of the compatibility problem test when the platform compatibility problem is repaired is solved. Compared with the prior art, the beneficial effects of the device for repairing the platform compatibility problem provided by the embodiment of the application are the same as the beneficial effects of the method for repairing the platform compatibility problem provided by the embodiment, and other technical features of the device for repairing the platform compatibility problem are the same as those disclosed by the method of the embodiment, which are not described herein again.
EXAMPLE five
An embodiment of the present invention provides an electronic device, including: 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, and the instructions are executed by the at least one processor, so that the at least one processor can execute the platform interface flow control method in the first embodiment.
Referring now to FIG. 5, shown is a block diagram of an electronic device suitable for use in implementing embodiments of the present disclosure. 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., car navigation terminals), and the like, and fixed terminals such as digital TVs, desktop computers, and the like. The electronic device shown in fig. 5 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 5, an electronic device may include a processing means 1001 (e.g., a central processing unit, a graphics processor, etc.) that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM) 1002 or a program loaded from the storage means 1003 into a Random Access Memory (RAM) 1004. In the RAM1004, various programs and data necessary for the operation of the electronic apparatus are also stored. The processing device 1001, the ROM1002, and the RAM1004 are connected to each other via a bus 1005. An input/output (I/O) interface 1006 is also connected to the bus.
Generally, the following systems may be connected to the I/O interface 1006: an input device 1007 including, for example, a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, or the like; output devices 1008 including, for example, liquid Crystal Displays (LCDs), speakers, vibrators, and the like; a storage device 1003 including, for example, a magnetic tape, a hard disk, or the like; and a communication device 1009. The communication means may allow the electronic device to communicate wirelessly or by wire with other devices to exchange data. While the figures illustrate an electronic device with various systems, it is to be understood that not all illustrated systems are required to be implemented or provided. More or fewer systems may alternatively be implemented or provided.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the 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 illustrated by the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication means 1009, or installed from the storage means 1003, or installed from the ROM 1002. The computer program, when executed by the processing device 1001, performs the above-described functions defined in the methods of the embodiments of the present disclosure.
The electronic equipment provided by the invention adopts the platform interface flow control method in the embodiment, so that the technical problem of low running safety of a bidirectional running vehicle in the running process is solved. Compared with the prior art, the beneficial effects of the electronic device provided by the embodiment of the present invention are the same as the beneficial effects of the platform interface flow control method provided by the above embodiment, and other technical features in the electronic device are the same as those disclosed in the above embodiment method, which are not described herein again.
It should be understood that portions of the present disclosure may be implemented in hardware, software, firmware, or a combination thereof. In the foregoing description of embodiments, the particular features, structures, materials, or characteristics may be combined in any suitable manner in any one or more embodiments or examples.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.
Example six
The present embodiment provides a computer-readable storage medium having computer-readable program instructions stored thereon for performing the method for platform compatibility problem repair in the first 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 above. 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 the present 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, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
The computer-readable storage medium may be embodied in an electronic device; or may be present alone without being incorporated into the electronic device.
The computer readable storage medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: if the application platform is detected to be pre-upgraded, current version information and pre-upgraded version information corresponding to the application platform are acquired; determining violation 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 for aspects of the present disclosure may be written in any combination of 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 type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart 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 by software or hardware. Wherein the names of the modules do not in some cases constitute a limitation of the unit itself.
The computer-readable storage medium provided by the application stores a computer-readable program instruction for executing the method for repairing the platform compatibility problem, and solves the technical problem of low testing efficiency of a compatibility problem test when the platform compatibility problem is repaired. 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 the beneficial effects of the method for repairing the platform compatibility problem provided by the above embodiment, and are not described herein again.
EXAMPLE six
The present application also provides a computer program product comprising a computer program which, when executed by a processor, performs the steps of the method for repairing a platform compatibility problem as described above.
The computer program product solves the technical problem of low testing efficiency of the compatibility problem test when the platform compatibility problem is repaired. 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 method for repairing the platform compatibility problem provided by the above embodiment, and are not described herein again.
The above description is only a preferred embodiment of the present application, and not intended to limit the scope of the present application, and all modifications of equivalent structures and equivalent processes, which are made by the contents of the specification and the drawings, or which are directly or indirectly applied to other related technical fields, are included in the scope of the present application.

Claims (10)

1. A method for repairing a platform compatibility problem is characterized in that the method comprises the following steps:
if the application platform is detected to be pre-upgraded, acquiring current version information and pre-upgraded version information corresponding to the application platform;
determining violation code information corresponding to the pre-upgrade version information according to the pre-upgrade 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.
2. The method for repairing platform compatibility problems according to claim 1, wherein the step of determining the illegal 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-upgrading version information;
and scanning the application code based on the preset scanning rule, and determining violation code information corresponding to the pre-upgrade version information.
3. The method for repairing platform compatibility problems according to claim 2, wherein the step of scanning the application code based on the preset scanning rule and determining the illegal 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;
and if the application code file is detected not to be matched with the preset scanning rule, determining that the code information corresponding to the application code file is illegal code information.
4. The method for repairing platform compatibility problems according to claim 1, wherein the step of generating 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 includes:
acquiring label information of the violation code information;
and generating a platform upgrading report corresponding to the application platform according to the preset problem bank corresponding to the tag information and the current version information.
5. The method for repairing platform compatibility problems according to claim 4, wherein the tag information includes a name of an illegal code, and the step of generating a platform upgrade report corresponding to the application platform according to the 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.
6. The method of repairing platform compatibility issues of claim 1, wherein after said step of upgrading said application platform in accordance with said platform upgrade report, said method of repairing platform compatibility issues further comprises:
determining a pre-added code rule tag corresponding to the application platform according to an upgrading result of the application platform, wherein the pre-added code rule tag comprises a pre-added illegal code name, a pre-added code rule definition and a pre-added problem solution;
and responding to a preset problem bank updating command, and inserting the pre-added code rule tag into the preset problem bank to update the preset problem bank.
7. The method of claim 6, wherein prior to the step of inserting the pre-added code rule tag into the preset problem library in response to a preset problem library update command to update the preset problem library, the method further comprises:
judging whether the preset question bank contains the pre-added code rule label or not;
if so, invalidating the preset problem bank updating command;
if not, executing the following steps: and responding to a preset problem library updating command, and inserting the pre-added code rule tag into the preset problem library to update the preset problem library.
8. A platform compatibility problem repair apparatus, comprising:
the system comprises a parameter acquisition module, a parameter updating module and a parameter updating module, wherein the parameter acquisition module is used for acquiring current version information and pre-updating version information corresponding to an application platform if the application platform is detected to be pre-updated;
the violation code information determining module is used for determining violation code information corresponding to the pre-upgrade version information according to the pre-upgrade version information and a preset scanning rule;
a platform upgrade report generation module, configured to generate a platform upgrade report corresponding to the application platform according to a preset problem library corresponding to the violation code information and the current version information, where the platform upgrade report is used to represent a mapping relationship 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.
9. An electronic device, characterized in that the electronic device comprises:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
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 repair method of any of claims 1 to 7.
10. A computer-readable storage medium, having stored thereon a program for implementing a method for platform compatibility problem repair, the program being executable by a processor to implement the steps of the method for platform compatibility problem repair according to any one of claims 1 to 7.
CN202211660550.7A 2022-12-23 2022-12-23 Platform compatibility problem repairing method and device, electronic equipment and storage medium Active CN115658374B (en)

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 true CN115658374A (en) 2023-01-31
CN115658374B 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 (7)

* Cited by examiner, † Cited by third party
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
CN108920370A (en) * 2018-07-02 2018-11-30 北京百度网讯科技有限公司 Compatibility issue detection method, device and equipment
CN110688300A (en) * 2019-08-13 2020-01-14 平安科技(深圳)有限公司 Compatibility testing method, device, equipment and storage medium
CN111061643A (en) * 2019-12-24 2020-04-24 五八同城信息技术有限公司 SDK cluster compatibility detection method and device, electronic equipment and storage medium
CN111382070A (en) * 2020-03-03 2020-07-07 腾讯科技(深圳)有限公司 Compatibility testing method and device, storage medium and computer equipment
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

Patent Citations (7)

* Cited by examiner, † Cited by third party
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
CN108920370A (en) * 2018-07-02 2018-11-30 北京百度网讯科技有限公司 Compatibility issue detection method, device and equipment
CN110688300A (en) * 2019-08-13 2020-01-14 平安科技(深圳)有限公司 Compatibility testing method, device, equipment and storage medium
CN111061643A (en) * 2019-12-24 2020-04-24 五八同城信息技术有限公司 SDK cluster compatibility detection method and device, electronic equipment and storage medium
CN111382070A (en) * 2020-03-03 2020-07-07 腾讯科技(深圳)有限公司 Compatibility testing method and device, storage medium and computer equipment
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
CN115658374B (en) 2023-05-26

Similar Documents

Publication Publication Date Title
US8631390B2 (en) Archiving a build product
US9262132B1 (en) Incremental local source code analysis
CN110990020A (en) Software compiling method and device, electronic equipment and storage medium
CN111740948B (en) Data packet issuing method, dynamic updating method, device, equipment and medium
US20150142813A1 (en) Language tag management on international data storage
US20040054946A1 (en) System and method for assessing compatibility risk
CN112527382B (en) Method for deploying pipeline engine system, and method and device for continuous integration
CN110781658B (en) Resume analysis method, resume analysis device, electronic equipment and storage medium
CN110659210A (en) Information acquisition method and device, electronic equipment and storage medium
CN113760306B (en) Method and device for installing software, electronic equipment and storage medium
US20120290560A1 (en) Mechanism for efficiently querying application binary interface/application programming interface-related information
CN115576600A (en) Code change-based difference processing method and device, terminal and storage medium
US9009666B1 (en) Systems and methods for testing software and for storing and tracking test assets with the software
CN113377342B (en) Project construction method and device, electronic equipment and storage medium
CN112988578A (en) Automatic testing method and device
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
Ben Charrada et al. An automated hint generation approach for supporting the evolution of requirements specifications
CN115543391B (en) Application platform upgrading method and device, electronic equipment and readable storage medium
CN109828781B (en) Source code version positioning method, device, medium and equipment for problem troubleshooting
CN114527993A (en) Application deployment method, device, equipment and medium
CN112905211A (en) Firmware upgrade file updating method, system, equipment and storage medium
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
CN111897568B (en) System verification method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant