CN116501627A - Application asset processing method and device, storage medium and electronic equipment - Google Patents

Application asset processing method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN116501627A
CN116501627A CN202310410458.3A CN202310410458A CN116501627A CN 116501627 A CN116501627 A CN 116501627A CN 202310410458 A CN202310410458 A CN 202310410458A CN 116501627 A CN116501627 A CN 116501627A
Authority
CN
China
Prior art keywords
data
asset
target
application
flow
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.)
Pending
Application number
CN202310410458.3A
Other languages
Chinese (zh)
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.)
Industrial and Commercial Bank of China Ltd ICBC
Original Assignee
Industrial and Commercial Bank of China Ltd ICBC
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 Industrial and Commercial Bank of China Ltd ICBC filed Critical Industrial and Commercial Bank of China Ltd ICBC
Priority to CN202310410458.3A priority Critical patent/CN116501627A/en
Publication of CN116501627A publication Critical patent/CN116501627A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3664Environments for testing or debugging software
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
    • 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

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Testing, Inspecting, Measuring Of Stereoscopic Televisions And Televisions (AREA)

Abstract

The invention discloses a processing method and device of application assets, a storage medium and electronic equipment, and relates to the field of financial science and technology. The method comprises the following steps: acquiring recording flow data of a target recording object; according to the recorded flow data, performing flow playback in a test environment of the target application to obtain asset characteristic data of a plurality of assets of the target application, wherein the plurality of assets at least comprise classes of application programs of the target application and methods of the application programs, and the asset characteristic data represent program calling condition information of the application programs; and calculating evaluation data of each asset according to the asset characteristic data, and identifying a target asset of the target application from a plurality of assets of the target application according to the evaluation data. The invention solves the technical problems that the identification efficiency of the target asset is low in the prior art by adopting a mode of manually combing asset data of a core business scene to realize the identification of the target asset.

Description

Application asset processing method and device, storage medium and electronic equipment
Technical Field
The present invention relates to the field of financial science and technology, and in particular, to a method and apparatus for processing an application asset, a storage medium, and an electronic device.
Background
For users using software (such as an application), when some functions of the application are not available or abnormal functions can cause great loss, the assets (such as some methods of the application program) for realizing the functions are core assets of the application. At present, the existing application core asset identification method is single, the core service scene of the application is usually manually carded, then the core function is analyzed according to the core service scene, the core asset is finally identified, the conditions of missing carding, missing registration and difficult freshness preservation of the asset exist, and the process of manually identifying the core asset is low in efficiency and low in accuracy.
In view of the above problems, no effective solution has been proposed at present.
Disclosure of Invention
The embodiment of the invention provides a processing method, a device, a storage medium and electronic equipment of application assets, which at least solve the technical problems that in the prior art, the identification of target assets is realized in a mode of manually combing asset data of a core business scene, and the identification efficiency of the target assets is low.
According to an aspect of an embodiment of the present invention, there is provided a method for processing an application asset, including: recording flow data of a target recording object is obtained, wherein the recording flow data is obtained by carrying out flow recording on the target recording object in an online environment of a target application; according to the recorded flow data, performing flow playback in a test environment of the target application to obtain asset characteristic data of a plurality of assets of the target application, wherein the plurality of assets at least comprise classes of application programs of the target application and methods of the application programs, and the asset characteristic data represent program calling condition information of the application programs; and calculating evaluation data of each asset according to the asset characteristic data, and identifying a target asset of the target application from a plurality of assets of the target application according to the evaluation data, wherein the evaluation data is used for representing the importance degree of each asset.
Further, obtaining recording flow data of the target recording object includes: acquiring basic data of a plurality of business transactions from a first data list, wherein the basic data represents calling condition information associated with the business transactions; and determining a target recording object according to the basic data, and recording the flow of the target recording object in an online environment to obtain recording flow data.
Further, the basic data at least includes first call data and second call data, the first call data is call data of interfaces associated with a plurality of business transactions, the second call data is call data of services associated with a plurality of business transactions, the call data at least includes call times, the target recording object at least includes a target interface and a target service, wherein, according to the basic data, determining the target recording object includes: selecting at least one first interface with calling times larger than a first threshold value from the first calling data, and taking the at least one first interface as a target interface; selecting at least one first service with calling times larger than a second threshold value from the second calling data, and taking the at least one first service as a target service; and taking the target interface and the target service as target recording objects.
Further, before obtaining the base data of the plurality of business transactions from the first data list, the method further comprises: data acquisition is carried out on interface calls and service calls associated with a plurality of business transactions in an online environment, and first call data and second call data are obtained; and generating a first data list according to the first call data and the second call data.
Further, according to the recorded flow data, performing flow playback in a test environment of the target application to obtain asset characteristic data of a plurality of assets of the target application, including: according to the recorded flow data, performing flow playback in a test environment of the target application; and in the flow playback process, performing characteristic acquisition on a plurality of assets passing through the flow through a software development kit to obtain asset characteristic data.
Further, the asset characteristic data at least includes call number data of a method of an application program and called number data of the method of the application program, the evaluation data at least includes first evaluation data and second evaluation data, evaluation dimensions corresponding to the first evaluation data and the second evaluation data are different, wherein the evaluation data of each asset is calculated according to the asset characteristic data, and the method includes: calculating to obtain first evaluation data according to a first calculation formula and call frequency data of a method; and calculating according to the called number data of the second calculation formula and the method to obtain second evaluation data.
Further, identifying a target asset of the target application from the plurality of assets of the target application based on the evaluation data, comprising: generating an asset data list of the target application according to the evaluation data; acquiring operation information of a target object, and sorting the asset data list according to the operation information to obtain a sorted asset data list; and identifying the target asset of the target application from the plurality of assets of the target application according to the ordered asset data list.
Further, after identifying the target asset of the target application from the plurality of assets of the target application according to the ordered asset data manifest, the method further comprises: a target asset inventory of the target application is generated based on the target asset of the target application, wherein the target asset inventory is used to maintain the target asset.
According to another aspect of the embodiment of the present invention, there is also provided a processing apparatus for an application asset, including: the first acquisition module is used for acquiring recorded flow data of the target recorded object, wherein the recorded flow data is obtained by carrying out flow recording on the target recorded object in an online environment of the target application; the first processing module is used for carrying out flow playback in a test environment of the target application according to the recorded flow data to obtain asset characteristic data of a plurality of assets of the target application, wherein the plurality of assets at least comprise classes of application programs of the target application and methods of application programs, and the asset characteristic data represent program calling condition information of the application programs; the first identification module is used for calculating and obtaining evaluation data of each asset according to the asset characteristic data, and identifying target assets of the target application from a plurality of assets of the target application according to the evaluation data, wherein the evaluation data are used for representing importance degrees of each asset.
According to another aspect of the embodiments of the present invention, there is also provided a computer readable storage medium having a computer program stored therein, wherein the computer program is configured to execute the above-described processing method of an application asset at runtime.
According to another aspect of an embodiment of the present invention, there is also provided an electronic device including one or more processors; and a memory for storing one or more programs which, when executed by the one or more processors, cause the one or more processors to implement a method for running the program, wherein the program is configured to perform the method of processing an application asset as described above when run.
In the embodiment of the invention, a mode of automatically identifying a core asset of an application is adopted, recording flow data of a target recording object is firstly obtained, then flow playback is carried out in a test environment of the target application according to the recording flow data, asset characteristic data of a plurality of assets of the target application are obtained, evaluation data of each asset are obtained through calculation according to the asset characteristic data, and the target asset of the target application is identified from the plurality of assets of the target application according to the evaluation data, wherein the recording flow data is obtained by carrying out flow recording on the target recording object in an online environment of the target application, the plurality of assets at least comprise classes and application programs of the target application, the asset characteristic data represent program calling condition information of the application programs, and the evaluation data are used for representing importance degrees of each asset.
In the process, the acquisition of the key flow of the target application is realized by acquiring the recorded flow data of the target recorded object, and a data basis is provided for the subsequent acquisition of the asset characteristic data; the flow playback is carried out on the flow recorded in the production environment in the test environment of the target application, so that the performance consumption of the production environment is reduced, and the acquisition of asset characteristic data of a plurality of assets of the target application is realized; the method has the advantages that the asset characteristic data in the key flow flowing process are collected to serve as evaluation basic data of the core asset, so that the defect of manually judging the core asset can be overcome, developers can be well assisted in identifying the core asset, the identification efficiency and accuracy of the core asset are improved, and the reliability of application is improved.
Therefore, the technical scheme of the invention achieves the aim of rapidly and accurately identifying the core asset of the application, thereby realizing the technical effect of improving the efficiency of identifying the core asset of the application, and further solving the technical problems of low identification efficiency of the target asset in the prior art by adopting a mode of manually combing the asset data of the core service scene to realize the identification of the target asset.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiments of the invention and together with the description serve to explain the invention and do not constitute a limitation on the invention. In the drawings:
FIG. 1 is a flow chart of an alternative method of processing an application asset according to an embodiment of the invention;
FIG. 2 is a schematic diagram of an alternative application asset processing system according to an embodiment of the invention;
FIG. 3 is a flowchart of the identification of an alternative application asset according to an embodiment of the invention;
FIG. 4 is a schematic diagram of an alternative application asset processing device according to an embodiment of the invention;
fig. 5 is a schematic diagram of an alternative electronic device according to an embodiment of the invention.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
It should be noted that, the related information (including, but not limited to, user equipment information, user personal information, etc.) and data (including, but not limited to, data for presentation, analyzed data, etc.) related to the present invention are information and data authorized by the user or sufficiently authorized by each party. For example, an interface is provided between the system and the relevant user or institution, before acquiring the relevant information, the system needs to send an acquisition request to the user or institution through the interface, and acquire the relevant information after receiving the consent information fed back by the user or institution.
Example 1
In accordance with an embodiment of the present invention, there is provided an embodiment of a method of processing an application asset, it being noted that the steps shown in the flowchart of the figures may be performed in a computer system, such as a set of computer executable instructions, and, although a logical sequence is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than what is shown or described herein.
FIG. 1 is a flow chart of an alternative method of processing an application asset, as shown in FIG. 1, according to an embodiment of the invention, the method comprising the steps of:
step S101, recording flow data of a target recording object is obtained, wherein the recording flow data is obtained by recording the flow of the target recording object in an online environment of a target application.
In the above steps, the recording flow data of the target recording object may be obtained through an application system, a processor, an electronic device, and the like. Optionally, the processing system of the application asset obtains recording flow data of a target recording object, where the target recording object may be an interface and a service with a plurality of interfaces and services associated with business transactions and with a plurality of calling times, the recording flow data is a key flow (i.e. a core flow) of the target application, and the online environment refers to a production environment of the target application.
Step S102, performing flow playback in a test environment of the target application according to the recorded flow data to obtain asset characteristic data of a plurality of assets of the target application, wherein the plurality of assets at least comprise classes of application programs of the target application and methods of application programs, and the asset characteristic data represent program call condition information of the application programs.
Specifically, the asset characteristic data may be data obtained by performing characteristic collection on the asset through which the critical traffic flows in the process of traffic playback, for example, a method call number, a method parameter, a single call duration, a memory occupation, a CPU occupation, a number of assets that call the current asset (i.e., a called number of the current asset), and the like.
Step S103, calculating to obtain evaluation data of each asset according to the asset characteristic data, and identifying target assets of the target application from a plurality of assets of the target application according to the evaluation data, wherein the evaluation data is used for representing the importance degree of each asset.
Specifically, the asset characteristic data in the key flow flowing process is collected and used as the evaluation basic data of the core asset, so that the defect of manually judging the core asset can be overcome, and the developer is well assisted in identifying the core asset, therefore, the evaluation data of each asset is obtained through calculation according to the asset characteristic data, and the target asset of the target application is identified from a plurality of assets of the target application according to the evaluation data, the core asset of the automatic identification application is realized, and the identification efficiency and accuracy of the core asset are improved.
Based on the scheme defined in the steps S101 to S103, it can be known that in the embodiment of the present invention, by adopting a manner of automatically identifying a core asset of an application, recording flow data of a target recording object is firstly obtained, then, according to the recording flow data, flow playback is performed in a test environment of the target application to obtain asset feature data of a plurality of assets of the target application, then, according to the asset feature data, evaluation data of each asset is obtained by calculation, and according to the evaluation data, a target asset of the target application is identified from the plurality of assets of the target application, wherein the recording flow data is obtained by performing flow recording on the target recording object in an online environment of the target application, the plurality of assets at least include classes and applications of an application program of the target application, the asset feature data represents program call condition information of the application program, and the evaluation data is used for representing importance of each asset.
It is easy to notice that in the above process, by acquiring the recorded flow data of the target recorded object, the acquisition of the key flow of the target application is realized, and a data base is provided for the subsequent acquisition of the asset characteristic data; the flow playback is carried out on the flow recorded in the production environment in the test environment of the target application, so that the performance consumption of the production environment is reduced, and the acquisition of asset characteristic data of a plurality of assets of the target application is realized; the method has the advantages that the asset characteristic data in the key flow flowing process are collected to serve as evaluation basic data of the core asset, so that the defect of manually judging the core asset can be overcome, developers can be well assisted in identifying the core asset, the identification efficiency and accuracy of the core asset are improved, and the reliability of application is improved.
Therefore, the technical scheme of the invention achieves the aim of rapidly and accurately identifying the core asset of the application, thereby realizing the technical effect of improving the efficiency of identifying the core asset of the application, and further solving the technical problems of low identification efficiency of the target asset in the prior art by adopting a mode of manually combing the asset data of the core service scene to realize the identification of the target asset.
In an alternative embodiment, obtaining recording flow data of a target recording object includes: acquiring basic data of a plurality of business transactions from a first data list, wherein the basic data represents calling condition information associated with the business transactions; and determining a target recording object according to the basic data, and recording the flow of the target recording object in an online environment to obtain recording flow data.
Specifically, in the process of acquiring the recording flow data of the target recording object, first, basic data of a plurality of service transactions, for example, interface names of interfaces associated with the plurality of service transactions, interface call times, service names of services associated with the plurality of service transactions, and service call times, are acquired from the first data list.
Alternatively, the basic data of the plurality of business transactions may be stored in different lists, for example, a first data list stores interface names and interface call numbers of interfaces associated with the plurality of business transactions, a second data list stores service names and service call numbers of services associated with the plurality of business transactions, and the basic data of the plurality of business transactions is acquired from the first data list and the second data list.
Further, according to the basic data, a target recording object can be determined, for example, an interface and a service call with more call times in the basic data are selected as the target recording object, and then flow recording is performed on the interface and the service call with more call times in an online environment (i.e. a production environment), so as to obtain recording flow data.
In the process, the recording flow data of the target recording object is obtained, so that the acquisition of the key flow of the target application is realized, and a data basis is provided for the subsequent acquisition of the asset characteristic data.
In an alternative embodiment, the basic data includes at least first call data and second call data, the first call data is call data of interfaces associated with a plurality of business transactions, the second call data is call data of services associated with a plurality of business transactions, the call data includes at least call times, the target recording object includes at least a target interface and a target service, wherein determining the target recording object according to the basic data includes: selecting at least one first interface with calling times larger than a first threshold value from the first calling data, and taking the at least one first interface as a target interface; selecting at least one first service with calling times larger than a second threshold value from the second calling data, and taking the at least one first service as a target service; and taking the target interface and the target service as target recording objects.
Specifically, the call data at least includes call times and call names, the first call data may be interface names and interface call times of interfaces associated with the plurality of business transactions, the second call data may be service names and service call times of services associated with the plurality of business transactions, the target interface may be an interface with more call times, and the target service may be a service with more call times.
Specifically, in the process of determining a target recording object according to basic data, at least one first interface with calling times larger than a first threshold value is selected from first calling data, at least one first interface is used as a target interface, at least one first service with calling times larger than a second threshold value is selected from second calling data, at least one first service is used as a target service, and then the target interface and the target service are used as target recording objects, namely, interfaces with more calling times in the basic data and service calls are selected as target recording objects.
It should be noted that in the above process, by determining the target recording object, a data base is provided for the subsequent recording of the critical flow of the target application in the production environment, so that the performance consumption of the production environment is reduced.
In an alternative embodiment, before basic data of a plurality of business transactions are acquired from a first data list, data acquisition is performed on interface calls and service calls associated with the plurality of business transactions in an online environment to obtain first call data and second call data; and generating a first data list according to the first call data and the second call data.
Specifically, interface calls and service calls related to a plurality of business transactions are intercepted in a production environment (namely an actual running environment of a target application), call data of the interfaces and the service calls on production can be obtained, namely first call data and second call data are obtained, collection of call quantity is achieved, and therefore a first data list can be generated according to the first call data and the second call data.
In the process, the generation of the interface of the production business transaction and the basic data list of the service call is realized, and the accuracy of the core asset identification is ensured by collecting the real flow of the target application.
In an alternative embodiment, according to the recorded flow data, performing flow playback in a test environment of the target application to obtain asset characteristic data of a plurality of assets of the target application, including: according to the recorded flow data, performing flow playback in a test environment of the target application; and in the flow playback process, performing characteristic acquisition on a plurality of assets passing through the flow through a software development kit to obtain asset characteristic data.
Specifically, in order to extract feature data of a plurality of assets, a software development kit (Software Development Kit, SDK) is attached to a terminal (i.e., a client) of a test environment, the SDK is used for performing byte code enhancement on a client code, features of the assets in the process of recording flow through, that is, features of the plurality of assets passing through by the flow are collected through the SDK when the flow is played back to the software assets, and asset feature data are obtained, for example, method call times, method parameters, single call duration, memory occupation, CPU occupation, the number of the assets calling the current asset (i.e., the called number of the current asset) and the like.
Optionally, after the asset feature data is obtained, attribute data of the target application, for example, an application name, an IP address, a cluster to which the asset feature data belongs, an area to which the asset feature data belongs, are obtained, the attribute data and the asset feature data are associated, the associated feature data are obtained, and then the associated feature data are sent to a streaming platform for storage.
It should be noted that, by performing flow playback on the flow recorded in the production environment in the test environment of the target application, the acquisition of asset characteristic data of a plurality of assets of the target application is realized, and the identification efficiency and accuracy of the core asset are improved.
In an alternative embodiment, the asset characteristic data at least includes call number data of a method of an application program and called number data of the method of the application program, the evaluation data includes at least first evaluation data and second evaluation data, evaluation dimensions corresponding to the first evaluation data and the second evaluation data are different, wherein the evaluation data of each asset is calculated according to the asset characteristic data, and the method includes: calculating to obtain first evaluation data according to a first calculation formula and call frequency data of a method; and calculating according to the called number data of the second calculation formula and the method to obtain second evaluation data.
Optionally, asset characteristic data is obtained from the streaming platform, and evaluation data of each asset is calculated according to the asset characteristic data. In particular, the first ratings data may be call number scores, i.e., ratings of the importance of the asset from the call number dimension, and the second ratings data may be asset relevance scores, i.e., ratings of the importance of the asset from the asset relevance dimension.
Specifically, according to the first calculation formula and the call number data of the method, the first evaluation data can be calculated. The number of calls score calculation formula (i.e., the first calculation formula) for a single asset is: base score = b x 100/a, where a is the maximum number of calls for the entire application (i.e., the maximum of the number of method calls), and b is the number of calls corresponding to a single asset. Optionally, the CPU occupancy and the memory occupancy are taken as additional scores, for example, the CPU occupancy is 30%, the 3-score is added, and the memory occupancy refers to the CPU occupancy processing, so that the call number score (i.e., the first evaluation data) of each asset is finally obtained.
Specifically, according to the second calculation formula and the called number data of the method, second evaluation data can be calculated. The asset relevance score calculation formula (i.e., the second calculation formula) for a single asset is: base score = d x 100/c, where c is the maximum number of assets called for the entire application (i.e., the maximum of the number of assets called) and d is the number of assets called for a single asset. Optionally, the CPU occupancy and the memory occupancy are taken as additional scores, for example, the CPU occupancy is increased by 30%, the memory occupancy is increased by 3 points, and the memory occupancy refers to the CPU occupancy process, so as to finally obtain the asset relevance score (i.e., the second evaluation data) of each asset.
The method has the advantages that the defect of manually judging the core asset can be overcome by collecting the asset characteristic data in the key flow flowing process as the evaluation basic data of the core asset, the core asset can be well identified by developers, the identification efficiency and accuracy of the core asset are improved, and therefore the reliability of application is improved.
In an alternative embodiment, identifying a target asset of the target application from a plurality of assets of the target application based on the evaluation data includes: generating an asset data list of the target application according to the evaluation data; acquiring operation information of a target object, and sorting the asset data list according to the operation information to obtain a sorted asset data list; and identifying the target asset of the target application from the plurality of assets of the target application according to the ordered asset data list.
Specifically, from the evaluation data, an asset data list (i.e., a score data list) of the target application may be generated, for example, a list containing the call number scores and asset association scores. Optionally, after generating the asset data list of the target application, the asset data list of the target application is displayed to the user (i.e. the target object) through the front-end interface, and operation information of the target object is obtained, the asset data list is sorted according to the operation information, so as to obtain the sorted asset data list, for example, the user selects to sort the asset data list according to the call number score, and the operation information may be information generated by clicking an option of sorting the call number score by the user.
Optionally, a target asset of the target application may be identified from the plurality of assets of the target application according to the ordered asset data list, e.g., at least one asset that is top of the order is selected as the core asset.
The method has the advantages that the defect of manually judging the core asset can be overcome by collecting the asset characteristic data in the key flow flowing process as the evaluation basic data of the core asset, the core asset can be well identified by developers, the identification efficiency and accuracy of the core asset are improved, and therefore the reliability of application is improved.
In an alternative embodiment, after identifying a target asset of the target application from the plurality of assets of the target application according to the ordered asset data manifest, a target asset manifest of the target application is generated based on the target asset of the target application, wherein the target asset manifest is used to maintain the target asset.
Optionally, according to the core assets of the target application, a core asset list can be generated to well assist related personnel in maintaining the core assets of the application, so that the reliability of the application is improved.
In this embodiment, the client is enhanced by using the SDK to count call condition information of the test environment core node program, and the production core flow is played back in the test environment by recording and playing back, so as to finally provide the capability of automatically generating the core asset list.
Fig. 2 is a schematic diagram of an alternative application asset processing system according to an embodiment of the present invention, as shown in fig. 2, including a production service transaction basic data acquisition module, a flow recording playback module, an SDK terminal data acquisition module, a core asset identification module, and a result output module.
The production business transaction basic data acquisition module is used for generating an interface of production business transaction and a service call basic data list, and acquiring the list of the interface and the service call on production by intercepting the interface and the service call; the flow recording and playback module is responsible for selecting interfaces and service calls with more call times from the production basic data, recording in a production environment and playing back the flow to a test environment; the SDK terminal data acquisition module is responsible for attaching an SDK to a terminal (i.e. a client) of a test environment, and carrying out characteristic acquisition on the flowing asset when the flow playback flows to the software asset, for example, the number of times of method call, method parameters, single call duration, memory occupation, CPU occupation, the number of the assets which call the current asset (i.e. the called number of the current asset) and the like; the core asset identification module is responsible for calculating the score of each asset according to the first calculation formula and the second calculation formula, which are not described herein, optionally, the user may preset keywords, and the method with keywords in the method parameters may be identified as the core asset; the result output module is responsible for data display, namely displaying an asset data list of the target application, wherein the list comprises calling frequency scores and asset relevance scores, a user can select a corresponding sorting mode according to actual requirements, namely sorting is carried out according to the calling frequency scores or the asset relevance scores, and finally a core asset list is output.
FIG. 3 is a flowchart of an alternative application asset identification process according to an embodiment of the invention, as shown in FIG. 3, consisting essentially of: acquiring characteristic data on interfaces and service calls, and acquiring call quantity; the method comprises the steps that flow recording is carried out in a production environment by using interfaces and service calls with large call quantity; playback is carried out on the recorded flow in a test environment; the method comprises the steps of performing byte code enhancement on client codes by using an SDK, collecting characteristics of assets in the process of flow through, and sending collected asset characteristics and basic data of applications to a streaming processing platform (namely a centralized processing platform); obtaining data from a streaming processing platform and calculating a score; and outputting the core asset list according to the operation information (namely the selected ordering mode) of the user.
Therefore, the technical scheme of the invention achieves the aim of rapidly and accurately identifying the core asset of the application, thereby realizing the technical effect of improving the efficiency of identifying the core asset of the application, and further solving the technical problems of low identification efficiency of the target asset in the prior art by adopting a mode of manually combing the asset data of the core service scene to realize the identification of the target asset.
Example 2
According to an embodiment of the present invention, there is provided an embodiment of a processing apparatus for an application asset, wherein fig. 4 is a schematic diagram of an alternative processing apparatus for an application asset according to an embodiment of the present invention, as shown in fig. 4, the apparatus includes: the first obtaining module 401 is configured to obtain recording flow data of a target recording object, where the recording flow data is obtained by performing flow recording on the target recording object in an online environment of a target application; the first processing module 402 is configured to perform flow playback in a test environment of the target application according to the recorded flow data, to obtain asset feature data of a plurality of assets of the target application, where the plurality of assets at least includes a class of an application program of the target application and a method of the application program, and the asset feature data characterizes program call condition information of the application program; the first identifying module 403 is configured to calculate, according to the asset characteristic data, evaluation data of each asset, and identify, according to the evaluation data, a target asset of the target application from a plurality of assets of the target application, where the evaluation data is used to characterize an importance level of each asset.
It should be noted that the first obtaining module 401, the first processing module 402, and the first identifying module 403 correspond to steps S101 to S103 in the above embodiment, and the three modules are the same as examples and application scenarios implemented by the corresponding steps, but are not limited to those disclosed in the above embodiment 1.
Optionally, the first acquisition module includes: the second acquisition module is used for acquiring basic data of a plurality of business transactions from the first data list, wherein the basic data represents calling condition information associated with the business transactions; the first determining module is used for determining a target recording object according to the basic data, and recording the flow of the target recording object in an on-line environment to obtain recording flow data.
Optionally, the basic data at least includes first call data and second call data, the first call data is call data of interfaces associated with a plurality of business transactions, the second call data is call data of services associated with a plurality of business transactions, the call data at least includes call times, the target recording object at least includes a target interface and a target service, and the first determining module includes: the first selecting module is used for selecting at least one first interface with calling times larger than a first threshold value from the first calling data, and taking the at least one first interface as a target interface; the second selecting module is used for selecting at least one first service with calling times larger than a second threshold value from the second calling data, and taking the at least one first service as a target service; and the second determining module is used for taking the target interface and the target service as target recording objects.
Optionally, the processing device of the application asset further comprises: the first acquisition module is used for acquiring data of interface calls and service calls associated with a plurality of business transactions in an online environment before acquiring basic data of the business transactions from the first data list, so as to obtain first call data and second call data; the first generation module is used for generating a first data list according to the first call data and the second call data.
Optionally, the first processing module includes: the playback module is used for carrying out flow playback in a test environment of the target application according to the recorded flow data; and the second acquisition module is used for carrying out characteristic acquisition on a plurality of assets passing through the flow through software development kit in the flow playback process to obtain asset characteristic data.
Optionally, the asset characteristic data at least includes call number data of a method of the application program and called number data of the method of the application program, the evaluation data at least includes first evaluation data and second evaluation data, and evaluation dimensions corresponding to the first evaluation data and the second evaluation data are different, wherein the first identification module includes: the first calculation module is used for calculating to obtain first evaluation data according to a first calculation formula and the calling frequency data of the method; and the second calculation module is used for calculating to obtain second evaluation data according to the called number data of the second calculation formula and the method.
Optionally, the first identification module further comprises: the second generation module is used for generating an asset data list of the target application according to the evaluation data; the third acquisition module is used for acquiring the operation information of the target object, and sequencing the asset data list according to the operation information to obtain a sequenced asset data list; and the second identification module is used for identifying the target asset of the target application from the plurality of assets of the target application according to the ordered asset data list.
Optionally, the processing device of the application asset further comprises: and the third generation module is used for generating a target asset list of the target application based on the target asset of the target application after identifying the target asset of the target application from the plurality of assets of the target application according to the ordered asset data list, wherein the target asset list is used for maintaining the target asset.
Example 3
According to another aspect of the embodiments of the present invention, there is also provided a computer readable storage medium having a computer program stored therein, wherein the computer program is configured to execute the above-described processing method of an application asset at runtime.
Example 4
According to another aspect of the embodiments of the present invention, there is also provided an electronic device, wherein fig. 5 is a schematic diagram of an alternative electronic device according to an embodiment of the present invention, as shown in fig. 5, the electronic device including one or more processors; and a memory for storing one or more programs which, when executed by the one or more processors, cause the one or more processors to implement a method for running the program, wherein the program is configured to perform the method of processing an application asset as described above when run. The processor when executing the program implements the following steps: recording flow data of a target recording object is obtained, wherein the recording flow data is obtained by carrying out flow recording on the target recording object in an online environment of a target application; according to the recorded flow data, performing flow playback in a test environment of the target application to obtain asset characteristic data of a plurality of assets of the target application, wherein the plurality of assets at least comprise classes of application programs of the target application and methods of the application programs, and the asset characteristic data represent program calling condition information of the application programs; and calculating evaluation data of each asset according to the asset characteristic data, and identifying a target asset of the target application from a plurality of assets of the target application according to the evaluation data, wherein the evaluation data is used for representing the importance degree of each asset.
Optionally, obtaining recording flow data of the target recording object includes: acquiring basic data of a plurality of business transactions from a first data list, wherein the basic data represents calling condition information associated with the business transactions; and determining a target recording object according to the basic data, and recording the flow of the target recording object in an online environment to obtain recording flow data.
Optionally, the basic data at least includes first call data and second call data, the first call data is call data of interfaces associated with a plurality of business transactions, the second call data is call data of services associated with a plurality of business transactions, the call data at least includes call times, the target recording object at least includes a target interface and a target service, wherein determining the target recording object according to the basic data includes: selecting at least one first interface with calling times larger than a first threshold value from the first calling data, and taking the at least one first interface as a target interface; selecting at least one first service with calling times larger than a second threshold value from the second calling data, and taking the at least one first service as a target service; and taking the target interface and the target service as target recording objects.
Optionally, before acquiring basic data of a plurality of business transactions from the first data list, performing data acquisition on interface calls and service calls associated with the plurality of business transactions in an online environment to obtain first call data and second call data; and generating a first data list according to the first call data and the second call data.
Optionally, according to the recorded flow data, performing flow playback in a test environment of the target application to obtain asset characteristic data of a plurality of assets of the target application, including: according to the recorded flow data, performing flow playback in a test environment of the target application; and in the flow playback process, performing characteristic acquisition on a plurality of assets passing through the flow through a software development kit to obtain asset characteristic data.
Optionally, the asset characteristic data at least includes call number data of a method of an application program and called number data of the method of the application program, the evaluation data at least includes first evaluation data and second evaluation data, evaluation dimensions corresponding to the first evaluation data and the second evaluation data are different, wherein the evaluation data of each asset is obtained by calculation according to the asset characteristic data, and the method includes: calculating to obtain first evaluation data according to a first calculation formula and call frequency data of a method; and calculating according to the called number data of the second calculation formula and the method to obtain second evaluation data.
Optionally, identifying the target asset of the target application from the plurality of assets of the target application according to the evaluation data includes: generating an asset data list of the target application according to the evaluation data; acquiring operation information of a target object, and sorting the asset data list according to the operation information to obtain a sorted asset data list; and identifying the target asset of the target application from the plurality of assets of the target application according to the ordered asset data list.
Optionally, after identifying the target asset of the target application from the plurality of assets of the target application according to the ordered asset data list, generating a target asset list of the target application based on the target asset of the target application, wherein the target asset list is used for maintaining the target asset.
The device herein may be a server, PC, PAD, cell phone, etc.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
In the foregoing embodiments of the present invention, the descriptions of the embodiments are emphasized, and for a portion of this disclosure that is not described in detail in this embodiment, reference is made to the related descriptions of other embodiments.
In the several embodiments provided in the present application, it should be understood that the disclosed technology content may be implemented in other manners. The above-described embodiments of the apparatus are merely exemplary, and the division of the units, for example, may be a logic function division, and may be implemented in another manner, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some interfaces, units or modules, or may be in electrical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied essentially or in part or all of the technical solution or in part in the form of a software product stored in a storage medium, including instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The foregoing is merely a preferred embodiment of the present invention and it should be noted that modifications and adaptations to those skilled in the art may be made without departing from the principles of the present invention, which are intended to be comprehended within the scope of the present invention.

Claims (11)

1. A method for processing an application asset, comprising:
acquiring recording flow data of a target recording object, wherein the recording flow data is obtained by carrying out flow recording on the target recording object in an online environment of a target application;
performing flow playback in a test environment of the target application according to the recorded flow data to obtain asset characteristic data of a plurality of assets of the target application, wherein the assets at least comprise classes of application programs of the target application and methods of the application programs, and the asset characteristic data represents program calling condition information of the application programs;
and calculating evaluation data of each asset according to the asset characteristic data, and identifying a target asset of the target application from a plurality of assets of the target application according to the evaluation data, wherein the evaluation data is used for representing the importance degree of each asset.
2. The method of claim 1, wherein obtaining recording flow data for the target recording object comprises:
acquiring basic data of a plurality of business transactions from a first data list, wherein the basic data represents calling condition information associated with the business transactions;
and determining the target recording object according to the basic data, and recording the flow of the target recording object in the online environment to obtain the recording flow data.
3. The method of claim 2, wherein the base data includes at least first call data and second call data, the first call data is call data of interfaces associated with the plurality of business transactions, the second call data is call data of services associated with the plurality of business transactions, the call data includes at least call times, the target recording object includes at least a target interface and a target service, wherein determining the target recording object according to the base data includes:
selecting at least one first interface with calling times larger than a first threshold value from the first calling data, and taking the at least one first interface as the target interface;
Selecting at least one first service with calling times larger than a second threshold value from the second calling data, and taking the at least one first service as the target service;
and taking the target interface and the target service as the target recording object.
4. A method according to claim 3, wherein prior to obtaining the base data for the plurality of business transactions from the first data list, the method further comprises:
performing data acquisition on interface calls and service calls associated with the plurality of business transactions in the online environment to obtain the first call data and the second call data;
and generating the first data list according to the first call data and the second call data.
5. The method of claim 1, wherein performing flow playback in the test environment of the target application based on the recorded flow data to obtain asset characteristic data of a plurality of assets of the target application, comprises:
according to the recorded flow data, performing flow playback in a test environment of the target application;
and in the flow playback process, performing characteristic collection on the plurality of assets passing through the flow through software development tool packages to obtain the asset characteristic data.
6. The method according to claim 1, wherein the asset characteristic data includes at least call number data of a method of the application program and call number data of the method of the application program, the evaluation data includes at least first evaluation data and second evaluation data, evaluation dimensions corresponding to the first evaluation data and the second evaluation data are different, wherein the evaluation data of each asset is calculated according to the asset characteristic data, including:
calculating to obtain the first evaluation data according to a first calculation formula and the calling frequency data of the method;
and calculating to obtain the second evaluation data according to a second calculation formula and the called number data of the method.
7. The method of claim 1, wherein identifying the target asset of the target application from the plurality of assets of the target application in accordance with the evaluation data comprises:
generating an asset data list of the target application according to the evaluation data;
acquiring operation information of a target object, and sorting the asset data list according to the operation information to obtain a sorted asset data list;
And identifying the target asset of the target application from a plurality of assets of the target application according to the ordered asset data list.
8. The method of claim 7, wherein after identifying the target asset of the target application from the plurality of assets of the target application in accordance with the ordered asset data manifest, the method further comprises:
and generating a target asset list of the target application based on the target asset of the target application, wherein the target asset list is used for maintaining the target asset.
9. An apparatus for processing an application asset, comprising:
the first acquisition module is used for acquiring recorded flow data of a target recorded object, wherein the recorded flow data is obtained by carrying out flow recording on the target recorded object in an online environment of a target application;
the first processing module is used for carrying out flow playback in a test environment of the target application according to the recorded flow data to obtain asset characteristic data of a plurality of assets of the target application, wherein the plurality of assets at least comprise classes of application programs of the target application and methods of the application programs, and the asset characteristic data represents program calling condition information of the application programs;
The first identification module is used for calculating and obtaining evaluation data of each asset according to the asset characteristic data, and identifying a target asset of the target application from a plurality of assets of the target application according to the evaluation data, wherein the evaluation data is used for representing the importance degree of each asset.
10. A computer readable storage medium, characterized in that the computer readable storage medium has stored therein a computer program, wherein the computer program is arranged to execute the method of processing an application asset according to any of the claims 1 to 8 at run-time.
11. An electronic device, the electronic device comprising one or more processors; a memory for storing one or more programs that, when executed by the one or more processors, cause the one or more processors to implement a method for running a program, wherein the program is configured to perform the method of processing an application asset as claimed in any one of claims 1 to 8 when run.
CN202310410458.3A 2023-04-17 2023-04-17 Application asset processing method and device, storage medium and electronic equipment Pending CN116501627A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310410458.3A CN116501627A (en) 2023-04-17 2023-04-17 Application asset processing method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310410458.3A CN116501627A (en) 2023-04-17 2023-04-17 Application asset processing method and device, storage medium and electronic equipment

Publications (1)

Publication Number Publication Date
CN116501627A true CN116501627A (en) 2023-07-28

Family

ID=87325858

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310410458.3A Pending CN116501627A (en) 2023-04-17 2023-04-17 Application asset processing method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN116501627A (en)

Similar Documents

Publication Publication Date Title
CN108322350B (en) Service monitoring method and device and electronic equipment
WO2018201965A1 (en) Device fingerprint generation method and apparatus and computing device
CN105491444B (en) A kind of data identifying processing method and device
CN106648688B (en) Information display method and device
CN111738770B (en) Advertisement abnormal flow detection method and device
JP2004171042A (en) Advertisement circulating passage analyzing method, its implementing system and its processing program
CN111160783B (en) Digital asset value evaluation method and system and electronic equipment
CN111242318B (en) Service model training method and device based on heterogeneous feature library
CN108123972A (en) The distribution method and device of multimedia file
CN111126071A (en) Method and device for determining questioning text data and data processing method of customer service group
CN109684546A (en) Recommended method, device, storage medium and terminal
CN112215509A (en) Resource parameter determination method, device and equipment
CN111241821B (en) Method and device for determining behavior characteristics of user
CN116208516A (en) Enterprise internet private line perception evaluation method, device, equipment and medium
CN116501627A (en) Application asset processing method and device, storage medium and electronic equipment
EP3279857A1 (en) Comment analysis system, comment analysis method, and program for comment analysis
CN113254335B (en) Test data processing method and device, server and storage medium
CN110752962A (en) Monitoring method and device of advertisement interface
CN111127059B (en) User quality analysis method and device
CN111105259B (en) User identification method, device, electronic equipment and storage medium
CN111105261B (en) User identification method, device, electronic equipment and storage medium
JP2017200079A (en) Computing for outputting distrust index of user by acquiring telephone number of user declared from portable terminal through internet
CN114513686A (en) Method and device for determining video information and storage medium
CN108629610B (en) Method and device for determining popularization information exposure
CN111447082B (en) Determination method and device of associated account and determination method of associated data object

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