CN114896139A - Data processing method and device for application engineering, electronic equipment and storage medium - Google Patents
Data processing method and device for application engineering, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN114896139A CN114896139A CN202210382234.1A CN202210382234A CN114896139A CN 114896139 A CN114896139 A CN 114896139A CN 202210382234 A CN202210382234 A CN 202210382234A CN 114896139 A CN114896139 A CN 114896139A
- Authority
- CN
- China
- Prior art keywords
- application
- component
- project
- initial
- application program
- 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
Links
- 238000003672 processing method Methods 0.000 title claims abstract description 11
- 238000012360 testing method Methods 0.000 claims abstract description 176
- 238000000034 method Methods 0.000 claims abstract description 36
- 238000012545 processing Methods 0.000 claims abstract description 19
- 238000004891 communication Methods 0.000 claims description 18
- 238000004590 computer program Methods 0.000 claims description 6
- 230000008569 process Effects 0.000 abstract description 17
- 230000000694 effects Effects 0.000 description 7
- 238000011161 development Methods 0.000 description 6
- 238000012217 deletion Methods 0.000 description 4
- 230000037430 deletion Effects 0.000 description 4
- 238000010586 diagram Methods 0.000 description 4
- 230000006870 function Effects 0.000 description 4
- 238000004806 packaging method and process Methods 0.000 description 4
- 230000009471 action Effects 0.000 description 3
- 238000001514 detection method Methods 0.000 description 2
- 238000005336 cracking Methods 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 239000000835 fiber Substances 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000009434 installation Methods 0.000 description 1
- 230000002452 interceptive effect Effects 0.000 description 1
- 238000007726 management method Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 238000012216 screening Methods 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3684—Test management for test design, e.g. generating new test cases
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3688—Test management for test execution, e.g. scheduling of test suites
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/10—Protecting distributed programs or content, e.g. vending or licensing of copyrighted material ; Digital rights management [DRM]
- G06F21/12—Protecting executable software
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Software Systems (AREA)
- Quality & Reliability (AREA)
- Multimedia (AREA)
- Technology Law (AREA)
- Computer Security & Cryptography (AREA)
- Stored Programmes (AREA)
Abstract
The embodiment of the invention provides a data processing method, a data processing device, electronic equipment and a storage medium for application engineering, wherein the method comprises the following steps: before the application program is issued according to the application engineering, the application component information of the application component in the application program and the test component information of the test component are obtained, the test component list can include the information of the test component for testing, which is developed for testing by developers in the application program development process, and then the test component related to the testing in the application program is deleted through the test component information and the application component information, so that the problem that an illegal user opens a specified page through an operation command after the application program is issued is effectively solved, the stability of the application program is ensured, and the data security of the application program is also ensured.
Description
Technical Field
The present invention relates to the field of application development technologies, and in particular, to a data processing method for application engineering, a data processing apparatus for application engineering, an electronic device, and a computer-readable storage medium.
Background
Along with the popularization of intelligent terminals, more and more application programs running in the intelligent terminals are developed, and different application functions are provided through the application programs, so that the daily life of people becomes rich and colorful. In the development process of the application program, after the application program is developed, a developer often needs to test the application program, and after the application program completes a related test, the engineering file corresponding to the application project can be converted into an application data packet, and the application data packet is externally issued, so that a user can download and install the corresponding application program in the intelligent terminal, and further use related functions of the application program. For the test of the application program, developers often write some pages for testing the application program in order to test the application program, for example, pages for viewing internal encryption information, a test entry, a log switch, and the like of the application program, and for such pages for testing, the pages need to be hidden or deleted when the application program is formally issued, otherwise, a user can execute a page component name through a corresponding command on a root mobile phone to open a specified page, thereby causing the problem of vulnerability and security of the application program after the application program is issued.
Disclosure of Invention
The embodiment of the invention provides a data processing method and device for application engineering, electronic equipment and a computer readable storage medium, which are used for solving or partially solving the problem that the application program has bug safety caused by the fact that a test component used in the application program test process cannot be processed before the application program is released.
The embodiment of the invention discloses a data processing method of application engineering, which comprises the following steps:
acquiring an initial application project of an application program, wherein the initial application project comprises application components of the application program;
acquiring application component information of each application component and a test component list aiming at the application component, wherein the test component list comprises test component information of the test component;
and processing the test component in the initial application project according to the test component information and the application component information to obtain a target application project corresponding to the application program.
Optionally, the application program includes a plurality of software development kits, and the acquiring the application component information of each application component includes:
extracting a sub-manifest file corresponding to each software development kit from the initial application project, wherein the sub-manifest file comprises application component information of application components corresponding to the software development kits;
and merging the sub-manifest files to generate an initial manifest file corresponding to the application program, and extracting application component information of each application component from the initial manifest file.
Optionally, the step of processing the test component in the initial application project according to the test component information and the application component information to obtain a target application project corresponding to the application program includes:
taking an application component to which a second component class name identical to the first component class name belongs in the initial application project as a target application component, removing the target application component from the initial application project, and removing the second component class name identical to the first component class name from the initial manifest file to obtain a target manifest file;
and adding the target manifest file into the initial application project from which the target application component is removed, and obtaining a target application project corresponding to the application program.
Optionally, the obtaining an initial application project of the application program includes:
acquiring the data packet type of an application program;
and if the data packet type is the release type, acquiring the initial application project of the application program.
The embodiment of the invention also discloses a data processing device of application engineering, which comprises:
the file acquisition module is used for acquiring an initial application project of an application program, wherein the initial application project comprises application components of the application program;
the device comprises a component information acquisition module, a test component information acquisition module and a test component list acquisition module, wherein the component information acquisition module is used for acquiring application component information of each application component and the test component list aiming at the application component, and the test component list comprises test component information of the test component;
and the project file generation module is used for processing the test component in the initial application project according to the test component information and the application component information to obtain a target application project corresponding to the application program.
Optionally, the application program includes a plurality of software development kits, and the component information acquisition module is specifically configured to:
extracting a sub-manifest file corresponding to each software development kit from the initial application project, wherein the sub-manifest file comprises application component information of application components corresponding to the software development kits;
and combining the sub-manifest files to generate an initial manifest file corresponding to the application program, and extracting the application component information of each application component from the initial manifest file.
Optionally, the test component information includes a first component class name of the test component, the application component information includes a second component class name of the application component, and the project file generation module is specifically configured to:
taking an application component to which a second component class name identical to the first component class name belongs in the initial application project as a target application component, removing the target application component from the initial application project, and removing the second component class name identical to the first component class name from the initial manifest file to obtain a target manifest file;
and adding the target manifest file into the initial application project from which the target application component is removed, and obtaining a target application project corresponding to the application program.
Optionally, the file obtaining module is specifically configured to:
acquiring the data packet type of an application program;
and if the data packet type is the release type, acquiring the initial application project of the application program.
The embodiment of the invention also discloses electronic equipment which comprises a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory finish mutual communication through the communication bus;
the memory is used for storing a computer program;
the processor is configured to implement the method according to the embodiment of the present invention when executing the program stored in the memory.
Also disclosed is a computer-readable storage medium having instructions stored thereon, which, when executed by one or more processors, cause the processors to perform a method according to an embodiment of the invention.
The embodiment of the invention has the following advantages:
in the embodiment of the present invention, by acquiring an initial application project of an application program, where the initial application project includes an application component of the application program, then, application component information of the application component and a test component list for the application component may be acquired, where the test component list may include test component information of the test component, a test component in the initial application project may be processed according to the test component information and the application component information to acquire a target application project corresponding to the application program, so that before the application program is released according to the application project, by acquiring application component information of the application component and test component information of the test component in the application program, information of the test component for testing, which is developed for testing by a developer in an application program development process, may be included in the test component list, and deletion of the test component related to testing in the application program may be realized through the test component information and the application component information Besides, the problem that an illegal user opens the designated page through the operation command after the application program is issued is effectively avoided, the stability of the application program is guaranteed, and the data security of the application program is also guaranteed.
Drawings
FIG. 1 is a flow chart illustrating steps of a data processing method for application engineering provided in an embodiment of the present invention;
fig. 2 is a block diagram of a data processing apparatus for application engineering provided in an embodiment of the present invention;
FIG. 3 is a block diagram of an electronic device provided in an embodiment of the invention;
fig. 4 is a schematic diagram of a computer-readable medium provided in an embodiment of the present invention.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in further detail below.
As an example, for an application program, during the development process, it is often necessary to perform tests on the performance, stability, etc. of the application program, during the testing process, often in order to better perform the application testing, a developer or a tester will develop some functional pages for auxiliary testing, such as looking at encrypted information in the application, testing entries, log switches and the like, for such a page for testing, the corresponding component needs to be hidden or deleted when the application program is formally released (the data packet of the application program is uploaded to the application store for the user to download), otherwise, the user can open the specified page of the application program by executing the page component name through the corresponding command at the root terminal (in case of operating system cracking), therefore, the problem of application program vulnerability is caused, and the stability of the application program and the safety of data are not ensured.
In view of this, one of the core invention points of the embodiments of the present invention is that by acquiring an initial application project of an application program, the initial application project including an application component of the application program, then acquiring application component information of the application component and a test component list for the application component, where the test component list may include test component information of the test component, the test component in the initial application project may be processed according to the test component information and the application component information to obtain a target application project corresponding to the application program, so that before the application program is released according to the application project, by acquiring the application component information of the application component and the test component information of the test component in the application program, information of the test component for testing developed by a developer in a development process of the application program may be included in the test component list, and then, the test component related to the test in the application program is deleted through the test component information and the application component information, so that the problem that an illegal user opens a specified page through an operation command after the application program is issued is effectively solved, the stability of the application program is ensured, and the data security of the application program is also ensured.
In order to make those skilled in the art better understand the technical solutions in the embodiments of the present invention, the following technical terms in the embodiments of the present invention are explained and illustrated:
the application engineering, which may be a set of data required for normal operation of an application program, may include an src directory (for storing source code), a gen directory (for storing static internal classes), an assets directory (for storing resources, html, multimedia files, etc.), a bin directory (for storing a system installation package generated by the application program), a res directory (for storing resources required by the application program), and a manifest file (for storing application component information corresponding to the application component).
The manifest file may be used to register four major components and a permission list in the application program, and component information corresponding to each application component required by the application program, such as a class name and a package name corresponding to the application component, may be registered in the manifest file.
Application components, which may include four major components in an android application, such as an Activity component, a Service component, a Content Provider Content providing component, a BroadcastAcceiver broadcast receiving component, etc., used by an application. The Activity Activity component can be used for representing functions, is a visual interface operated by a user, provides a window for completing operation instructions for the user, and needs to call a setContentView () method to complete the display of the interface after the developer finishes creating Activity; therefore, an interactive entrance is provided for a user, almost all the Android applications can see the Android applications depending on Activity, so that Activity is a component which is used most frequently in development. The Service component is used for processing time-consuming logic in the background, has a life cycle as Activity, and needs to configure related information in the manifest file; broadcastreever, a type of component that filters, accepts and responds to outgoing broadcasts, and allows applications to respond to an external time; the Content Provider component may cause a specified data set of one application to be provided to other applications, which may obtain or store data from the Content Provider via the ContentResolver class.
The test component may be a component configured by a developer or a tester during a process of testing the application program, and may include any one or more of the above components, and when the application program is formally released, the test component needs to be deleted or hidden, so as to avoid the problem of vulnerability security of the application program.
Specifically, referring to fig. 1, a flowchart illustrating steps of a data processing method for application engineering provided in the embodiment of the present invention is shown, which may specifically include the following steps:
when the application program is formally released, for example, after a developer or a tester finishes testing the performance, stability and the like of the application program, an application data packet corresponding to the application program can be generated according to an application project and uploaded to an application store, so that a user can download the application data packet in the application store and install the application data packet in the intelligent terminal. After the test is finished, due to subjective or objective reasons, pages for testing written by developers or testers in the testing process may exist in the application engineering corresponding to the application program, and the pages for testing need to be deleted in a component deletion mode to ensure the safety of the application program.
In the specific implementation, a data packet of an application program can be detected by writing a corresponding detection script, whether the data packet is of an issuing type is judged by obtaining a data packet type of the data packet corresponding to the application program, if the data packet type is of the issuing type, the application program is shown to have completed a test, at this time, in order to avoid a page for the test remaining in the data packet, an initial application project of the application program can be obtained, so that application component deletion is performed on the initial application project, particularly, application components related to the test in a project file are deleted, and the problem that when the application program runs at a root terminal, a user can open a specified page by using a related command to execute a page component name, and further safety is caused is avoided.
102, acquiring application component information of each application component and a test component list aiming at the application component, wherein the test component list comprises test component information of the test component;
for the initial application project, all sub-manifest files required by the application program to run may be included, specifically, for an application program, a plurality of software development toolkits may be included, each software development toolkit may correspond to a corresponding sub-manifest file, the sub-manifest file may include application component information, a permission list, and the like of an application component required by the software development toolkit to run, and when a data package of the application program is issued, since the data package may have only one manifest file, before the data package is issued to the application program, the sub-manifest files corresponding to the respective software development toolkits may be merged by the file packaging system to obtain a total manifest file, so that the application component related to the test in the application program is deleted based on the manifest file.
In a specific implementation, for an application program, the file packaging system may first extract a sub-manifest file corresponding to each software development kit corresponding to the application program, where the sub-manifest file may include an application component corresponding to the software development kit and application component information of the application component, then merge the sub-manifest files to generate an initial manifest file corresponding to the application program, and then extract the application component information of each application component from the initial manifest file, so as to merge the application component information corresponding to all the application components corresponding to the application program into one manifest file. The application component information may include a full class name of the application component, and the format may be "package name.
It should be noted that, for the sub-manifest file and the initial manifest file, the manifest files may be manifest files of the same file format (such as XML (Extensible Markup Language) files, etc.), and the difference is that the sub-manifest file corresponds to the application component information of the application component corresponding to one or several software development kits, and the initial manifest file corresponds to the application component information of all the application components corresponding to the application program.
In an example, in a file packaging system, manifest files corresponding to all software development kits in an application program may be obtained first and merged to obtain an initial manifest file including all application components and application component information corresponding to each application component, so that the application program may be subjected to batch processing according to the application component information of the application components in the initial manifest file, and the component information of the application components of the application program is normalized to the initial manifest file, which not only can effectively facilitate subsequent screening of the application components, but also can facilitate management of the application components.
For the test component list, the list may be a list configured by a developer or a tester according to a page for testing written in the application program testing process, and may include test component information of a test component corresponding to the page for testing, where the test component information may be a full class name of the test component, and may be in a format of "package name.
103, processing the test component in the initial application project according to the test component information and the application component information to obtain a target application project corresponding to the application program.
In the embodiment of the present invention, for the test component information, it may include a first component class name of the test component, and for the application component information, it may include a second component class name of the application component, then the application component to which the second component class name that is the same as the first component class name in the initial application project belongs may be taken as the target application component (i.e., the test component in the initial application project is screened out), and the target application component is removed from the initial application project, so as to implement removal of the test component in the application project, and the second component class name that is the same as the first component class name may be removed from the initial manifest file, so as to obtain the target manifest file, and then the target manifest file is added to the initial application project from which the target application component is removed, so as to obtain the target application project corresponding to the application program. Furthermore, the target application project can be processed to obtain the application data packet corresponding to the application program, and the application data packet is issued, therefore, before the application program is released, by acquiring the corresponding manifest file of the application program, based on the application component information for the application component in the manifest file and the list of test components for the application component, test component information of a component for testing that a developer developed for testing during application development may be included in the test component list, and then the test component related to the test in the application engineering is deleted through the test component information and the application component information, so that the problem that an illegal user opens a specified page through an operation command after the application program is issued is effectively avoided, the stability of the application program is ensured, and the data security of the application program is also ensured.
Optionally, the first component class name and the second component class name may be the full class name of the component, or may be the class name of the component, which is not limited in the present invention.
Specifically, the second component class names corresponding to all the application components in the initial manifest file can be traversed through the script, and comparing with the first component class name corresponding to each test component in the test component list, if the second component class name identical to the first component class name exists in the initial list file, the application component corresponding to the second component class name in the initial application project is taken as the target application component needing to be deleted, the test components needing to be deleted are screened from the initial application project to represent the target application components as pages for assisting developers or testers in testing in the testing process, the target application components can then be deleted from the initial application project, and the application component information corresponding to the target application components in the manifest file is deleted to update the manifest file and to update the application project.
The method comprises the steps of updating a manifest file, deleting a target application component in an initial manifest file, or creating an empty manifest file, adding all file contents in the initial manifest file after application component information of the target application component is deleted to the empty manifest file to obtain the target manifest file, and updating the manifest file by updating the initial manifest file or replacing the manifest file, so that a test component related to testing in an application program is deleted through the test component information and the application component information in the manifest file, the problem that an illegal user opens a specified page through an operation command after the application program is issued is effectively avoided, the stability of the application program is ensured, and the data security of the application program is also ensured.
In an example, for a formally released application, a developer or a publisher may write a Gradle script to perform component detection on the formally released application, and may obtain an initial manifest file corresponding to the application, where the initial manifest file may be a file obtained by combining manifest files corresponding to all software development tools related to the application by a file packaging system, and then the Gradle script may obtain a test component list for the application, where the test component list may include pages written by the developer or the tester for testing the application during testing, component class names corresponding to the pages, and the like, and then the Gradle script may update the initial manifest file according to a comparison relationship between the component class names of the test components included in the test component list and the component class names of the application components in the initial manifest file, the target list file is obtained, meanwhile, the corresponding test component in the application project is deleted based on the comparison result, the application project is updated, and then the test component related to the test in the application project is deleted through the test component list and the list file, so that the problem that an illegal user opens a designated page through an operation command after the application program is issued is effectively solved, the stability of the application program is guaranteed, and the data security of the application program is also guaranteed.
It should be noted that the embodiment of the present invention includes but is not limited to the above examples, and it is understood that, under the guidance of the idea of the embodiment of the present invention, a person skilled in the art may also set the method according to actual requirements, and the present invention is not limited to this.
In the embodiment of the present invention, by acquiring an initial application project of an application program, where the initial application project includes an application component of the application program, then, application component information of the application component and a test component list for the application component may be acquired, where the test component list may include test component information of the test component, a test component in the initial application project may be processed according to the test component information and the application component information to acquire a target application project corresponding to the application program, so that before the application program is released according to the application project, by acquiring application component information of the application component and test component information of the test component in the application program, information of the test component for testing, which is developed for testing by a developer in an application program development process, may be included in the test component list, and deletion of the test component related to testing in the application program may be realized through the test component information and the application component information Besides, the problem that an illegal user opens the designated page through the operation command after the application program is issued is effectively avoided, the stability of the application program is guaranteed, and the data security of the application program is also guaranteed.
It should be noted that, for simplicity of description, the method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the illustrated order of acts, as some steps may occur in other orders or concurrently in accordance with the embodiments of the present invention. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred and that no particular act is required to implement the invention.
Referring to fig. 2, a block diagram of a data processing apparatus for application engineering provided in the embodiment of the present invention is shown, and specifically, the data processing apparatus may include the following modules:
a file obtaining module 201, configured to obtain an initial application project of an application program, where the initial application project includes application components of the application program;
a component information obtaining module 202, configured to obtain application component information of each application component and a test component list for the application component, where the test component list includes test component information of the test component;
the project file generating module 203 is configured to process the test component in the initial application project according to the test component information and the application component information, and obtain a target application project corresponding to the application program.
In an optional embodiment, the application includes a plurality of software development kits, and the component information obtaining module 202 is specifically configured to:
extracting a sub-manifest file corresponding to each software development kit from the initial application project, wherein the sub-manifest file comprises application component information of application components corresponding to the software development kits;
and merging the sub-manifest files to generate an initial manifest file corresponding to the application program, and extracting application component information of each application component from the initial manifest file.
In an optional embodiment, the test component information includes a first component class name of the test component, the application component information includes a second component class name of the application component, and the project file generating module 203 is specifically configured to:
taking an application component to which a second component class name identical to the first component class name belongs in the initial application project as a target application component, removing the target application component from the initial application project, and removing the second component class name identical to the first component class name from the initial manifest file to obtain a target manifest file;
and adding the target manifest file into the initial application project from which the target application component is removed, and obtaining a target application project corresponding to the application program.
In an optional embodiment, the file obtaining module 201 is specifically configured to:
acquiring the data packet type of an application program;
and if the data packet type is the release type, acquiring the initial application project of the application program.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
In addition, an electronic device is further provided in the embodiments of the present invention, as shown in fig. 3, and includes a processor 301, a communication interface 302, a memory 303, and a communication bus 304, where the processor 301, the communication interface 302, and the memory 303 complete mutual communication through the communication bus 304,
a memory 303 for storing a computer program;
the processor 301 is configured to implement the following steps when executing the program stored in the memory 303:
acquiring an initial application project of an application program, wherein the initial application project comprises application components of the application program;
acquiring application component information of each application component and a test component list aiming at the application component, wherein the test component list comprises test component information of the test component;
and processing the test component in the initial application project according to the test component information and the application component information to obtain a target application project corresponding to the application program.
In an alternative embodiment, the application program includes a plurality of software development kits, and the acquiring the application component information of each application component includes:
extracting a sub-manifest file corresponding to each software development kit from the initial application project, wherein the sub-manifest file comprises application component information of application components corresponding to the software development kits;
and merging the sub-manifest files to generate an initial manifest file corresponding to the application program, and extracting application component information of each application component from the initial manifest file.
In an optional embodiment, the step of processing the test component in the initial application project according to the test component information and the application component information to obtain the target application project corresponding to the application program includes:
taking an application component to which a second component class name identical to the first component class name belongs in the initial application project as a target application component, removing the target application component from the initial application project, and removing the second component class name identical to the first component class name from the initial manifest file to obtain a target manifest file;
and adding the target manifest file into the initial application project from which the target application component is removed, and obtaining a target application project corresponding to the application program.
In an optional embodiment, the obtaining an initial application project of the application program includes:
acquiring the data packet type of an application program;
and if the data packet type is the release type, acquiring the initial application project of the application program.
The communication bus mentioned in the above terminal may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this is not intended to represent only one bus or type of bus.
The communication interface is used for communication between the terminal and other devices.
The Memory may include a Random Access Memory (RAM) or a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the Integrated Circuit may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, a discrete Gate or transistor logic device, or a discrete hardware component.
As shown in fig. 4, in another embodiment provided by the present invention, a computer-readable storage medium 401 is further provided, and has instructions stored therein, when the computer-readable storage medium runs on a computer, the computer is caused to execute the data processing method of the application engineering described in the above embodiment.
In a further embodiment of the present invention, there is also provided a computer program product containing instructions which, when run on a computer, cause the computer to perform the data processing method of application engineering described in the above embodiments.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the invention to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on differences from other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.
Claims (10)
1. A data processing method of application engineering is characterized by comprising the following steps:
acquiring an initial application project of an application program, wherein the initial application project comprises application components of the application program;
acquiring application component information of each application component and a test component list aiming at the application component, wherein the test component list comprises test component information of the test component;
and processing the test component in the initial application project according to the test component information and the application component information to obtain a target application project corresponding to the application program.
2. The method of claim 1, wherein the application program comprises a plurality of software development kits, and the obtaining application component information of each of the application components comprises:
extracting a sub-manifest file corresponding to each software development kit from the initial application project, wherein the sub-manifest file comprises application component information of application components corresponding to the software development kits;
and merging the sub-manifest files to generate an initial manifest file corresponding to the application program, and extracting application component information of each application component from the initial manifest file.
3. The method according to claim 2, wherein the test component information includes a first component class name of the test component, the application component information includes a second component class name of the application component, and the processing the test component in the initial application project according to the test component information and the application component information to obtain the target application project corresponding to the application program includes:
taking an application component to which a second component class name identical to the first component class name belongs in the initial application project as a target application component, removing the target application component from the initial application project, and removing the second component class name identical to the first component class name from the initial manifest file to obtain a target manifest file;
and adding the target manifest file into the initial application project from which the target application component is removed, and obtaining a target application project corresponding to the application program.
4. The method of claim 1, wherein obtaining an initial application project for an application comprises:
acquiring the data packet type of an application program;
and if the data packet type is the release type, acquiring the initial application project of the application program.
5. A data processing apparatus for application engineering, comprising:
the file acquisition module is used for acquiring an initial application project of an application program, wherein the initial application project comprises application components of the application program;
the device comprises a component information acquisition module, a test component information acquisition module and a test component list acquisition module, wherein the component information acquisition module is used for acquiring application component information of each application component and the test component list aiming at the application component, and the test component list comprises test component information of the test component;
and the project file generation module is used for processing the test component in the initial application project according to the test component information and the application component information to obtain a target application project corresponding to the application program.
6. The apparatus according to claim 5, wherein the application program includes a plurality of software development kits, and the component information acquisition module is specifically configured to:
extracting a sub-manifest file corresponding to each software development kit from the initial application project, wherein the sub-manifest file comprises application component information of application components corresponding to the software development kits;
and merging the sub-manifest files to generate an initial manifest file corresponding to the application program, and extracting application component information of each application component from the initial manifest file.
7. The apparatus of claim 6, wherein the test component information includes a first component class name of the test component, the application component information includes a second component class name of the application component, and the project file generation module is specifically configured to:
taking an application component to which a second component class name identical to the first component class name belongs in the initial application project as a target application component, removing the target application component from the initial application project, and removing the second component class name identical to the first component class name from the initial manifest file to obtain a target manifest file;
and adding the target manifest file into the initial application project from which the target application component is removed, and obtaining a target application project corresponding to the application program.
8. The apparatus of claim 5, wherein the file acquisition module is specifically configured to:
acquiring the data packet type of an application program;
and if the data packet type is the release type, acquiring the initial application project of the application program.
9. An electronic device, comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus;
the memory is used for storing a computer program;
the processor, when executing a program stored on the memory, implementing the method of any of claims 1-4.
10. A computer-readable storage medium having stored thereon instructions, which when executed by one or more processors, cause the processors to perform the method of any one of claims 1-4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210382234.1A CN114896139A (en) | 2022-04-13 | 2022-04-13 | Data processing method and device for application engineering, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210382234.1A CN114896139A (en) | 2022-04-13 | 2022-04-13 | Data processing method and device for application engineering, electronic equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114896139A true CN114896139A (en) | 2022-08-12 |
Family
ID=82717895
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210382234.1A Pending CN114896139A (en) | 2022-04-13 | 2022-04-13 | Data processing method and device for application engineering, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114896139A (en) |
-
2022
- 2022-04-13 CN CN202210382234.1A patent/CN114896139A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
He et al. | Understanding and detecting evolution-induced compatibility issues in Android apps | |
US8621613B1 (en) | Detecting malware in content items | |
Srivastava et al. | Logical acquisition and analysis of data from android mobile devices | |
Sellwood et al. | Sleeping android: The danger of dormant permissions | |
CN111124480B (en) | Method and device for generating application program package, electronic equipment and storage medium | |
CN110457049B (en) | Method and device for realizing plug-in automation, electronic equipment and storage medium | |
CN110287700B (en) | iOS application security analysis method and device | |
CN110704311A (en) | Application program testing method and device, electronic equipment and readable storage medium | |
CN117215558A (en) | Visual software development method, device, equipment and medium for android | |
CN111124545A (en) | Application program starting method and device, electronic equipment and storage medium | |
CN109684205B (en) | System testing method, device, electronic equipment and storage medium | |
CN114969759B (en) | Asset security assessment method, device, terminal and medium of industrial robot system | |
CN108089895B (en) | Activity registration method and device in plug-in, electronic equipment and storage medium | |
CN116415258A (en) | Vulnerability detection method, device, equipment, medium and program product | |
CN114896139A (en) | Data processing method and device for application engineering, electronic equipment and storage medium | |
CN115292197A (en) | Software testing method and device, electronic equipment and storage medium | |
CN115543816A (en) | Software regression test result verification method, device, equipment and storage medium | |
US20220308988A1 (en) | Generating project requirements using test scripts | |
CN110674491B (en) | Method and device for real-time evidence obtaining of android application and electronic equipment | |
CN112580334A (en) | File processing method, file processing device, server and storage medium | |
CN113342660A (en) | File testing method, device, system, electronic equipment and readable storage medium | |
CN111814428A (en) | Method, device, terminal and storage medium for detecting font copyright information | |
CN113722639B (en) | Website access verification method, device, electronic equipment and readable storage medium | |
CN112947948B (en) | Deployment method and device of application service | |
CN111897714B (en) | Test data precipitation method, device and system based on auxiliary test tool |
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 |