CN109388571B - Method and device for acquiring identification information, computer equipment and storage medium - Google Patents

Method and device for acquiring identification information, computer equipment and storage medium Download PDF

Info

Publication number
CN109388571B
CN109388571B CN201811197545.0A CN201811197545A CN109388571B CN 109388571 B CN109388571 B CN 109388571B CN 201811197545 A CN201811197545 A CN 201811197545A CN 109388571 B CN109388571 B CN 109388571B
Authority
CN
China
Prior art keywords
identification information
application program
icon
verification
image file
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811197545.0A
Other languages
Chinese (zh)
Other versions
CN109388571A (en
Inventor
张晓峰
吕庆春
彭飞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wuba Co Ltd
Original Assignee
Wuba Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Wuba Co Ltd filed Critical Wuba Co Ltd
Priority to CN201811197545.0A priority Critical patent/CN109388571B/en
Publication of CN109388571A publication Critical patent/CN109388571A/en
Application granted granted Critical
Publication of CN109388571B publication Critical patent/CN109388571B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3604Software analysis for verifying properties of programs

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)
  • Debugging And Monitoring (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention provides a method for acquiring identification information, which comprises the following steps: acquiring identification information of an application program by reading a configuration file in the application program; and setting the acquired identification information in an icon of the verification package corresponding to the application program. By implementing the scheme, the running environment information and/or the version identification information of the application program are/is automatically set in the icon of the verification package, so that the defects that the step of verifying the running environment information and/or the version identification information of the application program in a mode of grabbing the verification package is complicated in operation and low in verification operation efficiency are effectively overcome, the running environment information and/or the version identification information of the application program is effectively improved in obtaining efficiency and obtaining speed, the verification operation program of developers is simplified, and the development and test efficiency of the application program is improved.

Description

Method and device for acquiring identification information, computer equipment and storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method and an apparatus for acquiring identification information, a computer device, and a computer-readable storage medium.
Background
With the rapid development of computer devices (e.g., mobile terminals), Applications (APPs) installed in the computer devices have also become rapidly widespread. In the process of developing the application program by a development engineer, the application program needs to be verified by capturing a verification package (including a development package, an add package, an invoke package, a release package and the like) of the application program or in a specified page, so as to obtain running environment (including a development environment, a test environment and an online environment) information and a development version identifier of the currently developed application program. Therefore, the verification operation of the running environment information and the development version identification of the application program is too cumbersome, and the verification operation efficiency is low.
Disclosure of Invention
The invention provides a method and a device for acquiring identification information, computer equipment and a computer readable storage medium, which are used for solving the problems that the verification operation of the running environment information and the development version identification of an application program in the prior art is too complicated and the verification operation efficiency is low.
The technical scheme adopted by the invention is to provide a method for acquiring identification information, which comprises the following steps:
acquiring identification information of an application program by reading a configuration file in the application program; wherein the identification information includes: running environment information and/or version identification information of the application program;
and setting the acquired identification information in an icon of the verification package corresponding to the application program.
Optionally, the setting the acquired identification information in an icon of a verification package corresponding to the application program includes:
extracting an image file corresponding to the icon of the verification package from the application program;
writing the acquired identification information into the image file so as to present the identification information by displaying the image file;
and replacing the image file corresponding to the icon of the verification package in the application program with the image file written with the identification information.
Optionally, after the obtained identification information is set in an icon of a verification package corresponding to the application program, the method further includes:
presenting the identification information in an icon of the verification package when the verification package is generated by a packaging tool.
Optionally, the obtaining the identification information of the application program by reading the configuration file in the application program includes:
and acquiring the identification information of the application program by reading a configuration file in the application program in a preset detection period.
Optionally, the setting the acquired identification information in an icon of a verification package corresponding to the application program includes:
and updating the set identification information in the icon of the verification packet according to the acquired identification information.
The invention also provides a device for acquiring the identification information, which comprises:
the acquisition module is used for acquiring the identification information of the application program by reading a configuration file in the application program; wherein the identification information includes: running environment information and/or version identification information of the application program;
and the setting module is used for setting the acquired identification information in the icon of the verification package corresponding to the application program.
Optionally, the setting module includes:
the extraction module is used for extracting the image file corresponding to the icon of the verification package from the application program;
the writing module is used for writing the acquired identification information into the image file so as to display the identification information by displaying the image file;
and the replacing module is used for replacing the image file corresponding to the icon of the verification package in the application program with the image file written with the identification information.
Optionally, the apparatus further comprises:
and the presentation module is used for presenting the identification information in the icon of the verification package when the verification package is generated by a packaging tool after the acquired identification information is set in the icon of the verification package corresponding to the application program by the setting module.
Optionally, the obtaining module is specifically configured to:
and acquiring the identification information of the application program by reading a configuration file in the application program in a preset detection period.
Optionally, the obtaining module is specifically configured to:
and updating the set identification information in the icon of the verification packet according to the acquired identification information.
The invention also provides a computer device comprising a processor and a memory; the processor is used for executing the program for acquiring the identification information stored in the memory so as to realize the steps of the method for acquiring the identification information.
The present invention also provides a computer-readable storage medium storing one or more programs, which are executable by one or more processors to implement the steps of the above-described method of obtaining identification information.
By adopting the technical scheme, the invention at least has the following advantages:
according to the method, the device, the computer equipment and the computer readable storage medium for acquiring the identification information, the running environment information and/or the version identification information of the application program are/is automatically set in the icon of the verification package, so that the defects that the step of verifying the running environment information and/or the version identification information of the application program in a mode of grabbing the verification package is complicated in operation and low in verification operation efficiency are effectively overcome, the obtaining efficiency and the obtaining speed of the running environment information and/or the version identification information of the application program are effectively improved, the verification operation program of developers is simplified, and the development and testing efficiency of the application program is improved.
Drawings
Fig. 1 is a flowchart of a method for acquiring identification information according to a first embodiment of the present invention;
fig. 2 is a flowchart of a method for acquiring identification information according to a second embodiment of the present invention;
fig. 3 is a flowchart of a method for acquiring identification information according to a third embodiment of the present invention;
fig. 4 is a flowchart of a method for acquiring identification information according to a fourth embodiment of the present invention;
fig. 5 is a flowchart of a method for acquiring identification information according to a fifth embodiment of the present invention;
fig. 6 is a schematic structural diagram of an apparatus for acquiring identification information according to a sixth and tenth embodiments of the present invention;
fig. 7 is a schematic structural diagram of an apparatus for acquiring identification information according to a seventh embodiment of the present invention;
fig. 8 is a schematic structural diagram of an apparatus for acquiring identification information according to an eighth and ninth embodiments of the present invention;
fig. 9 is a schematic structural diagram of a computer device according to an eleventh embodiment of the present invention.
Detailed Description
To further explain the technical means and effects of the present invention adopted to achieve the intended purpose, the present invention will be described in detail with reference to the accompanying drawings and preferred embodiments.
A first embodiment of the present invention provides a method for acquiring identification information, as shown in fig. 1, including the following specific steps:
step S101, obtaining the identification information of the application program by reading the configuration file in the application program.
The identification information of the application program includes but is not limited to: execution environment information and/or version identification information of the application program.
In this embodiment, the running environment information of the application program indicates the current running environment of the application program; the running environment of the application includes but is not limited to: development environment, test environment, and online environment. The online environment is an operating environment in which the application is installed in the user terminal. The version identification information of the application program indicates the current version identification of the application program. And the development engineer or the test engineer of the application program correspondingly develops or tests the currently developed or tested application program through the operating environment information and/or the version identification information of the application program.
For example, in a development environment of a mobile terminal operating system iOS developed by apple inc, step S101 specifically includes: reading a configuration file in an application program through a PlistBuddy command, and acquiring identification information of the application program; wherein the identification information of the application program comprises: the operating environment information and/or the version identification information of the application program.
And step S102, setting the acquired identification information in an icon of a verification package corresponding to the application program.
In this embodiment, the verification package corresponding to the application includes, but is not limited to: development kit, adhot kit, inhouse kit, release kit, and the like.
By setting the identification information in the icon of the verification package corresponding to the application program, the development engineer or the test engineer can quickly acquire the operating environment information and/or the version identification information of the application program by reading the operating environment information and/or the version identification information of the application program in the icon, thereby effectively avoiding the defects that the operating environment information and/or the development version identification of the application program are excessively complicated in verification operation and low in verification operation efficiency due to the fact that the operating environment information and the development version identification of the application program need to be acquired by grabbing the verification package of the application program or verifying the application program in a specified page, effectively improving the efficiency of the development engineer or the test engineer acquiring the operating environment information and/or the version identification information of the application program, and further simplifying the verification operation program of the development engineer or the test engineer, the development and test efficiency of the application program is improved.
According to the method for acquiring the identification information, the running environment information and/or the version identification information of the application program are/is automatically set in the icon of the verification packet, so that the defects that the step of verifying the running environment information and/or the version identification information of the application program in a mode of grabbing the verification packet is complicated in operation and low in verification operation efficiency are effectively overcome, the running environment information and/or the version identification information acquisition efficiency and speed of the application program are effectively improved, the verification operation program of developers is simplified, and the development and test efficiency of the application program is improved.
A second embodiment of the present invention provides a method for acquiring identification information, as shown in fig. 2, including the following specific steps:
step S201, obtaining the identification information of the application program by reading the configuration file in the application program.
The identification information of the application program includes but is not limited to: execution environment information and/or version identification information of the application program.
Step S202, extracting the image file corresponding to the icon of the verification package in the application program.
Optionally, step S202 specifically includes:
and extracting the image file corresponding to the icon of each verification package in the application program.
For example, in a development environment of a mobile terminal operating system iOS developed by apple inc, step S202 specifically includes: xcastes of the application program extracts an image file corresponding to the icon of the verification package, and saves the image file to a temporary directory.
Step S203, writing the acquired identification information into the image file, so as to present the identification information by displaying the image file.
Optionally, step S203 specifically includes:
and writing the acquired identification information into each image file so as to present the identification information by displaying each image file.
For example, in a development environment of a mobile terminal operating system iOS developed by apple inc, step S203 specifically includes: and writing the acquired identification information into the image file saved in the temporary directory so as to present the identification information by displaying the image file.
Step S204, replacing the image file corresponding to the icon of the verification package in the application program with the image file written with the identification information.
Optionally, step S204 specifically includes:
and replacing the image file corresponding to the icon of each verification package in the application program with the corresponding image file in which the identification information is written.
For example, in a development environment of a mobile terminal operating system iOS developed by apple inc, step S204 specifically includes: replace the image file corresponding to the icon of the verification package in the assets.
In the method for acquiring identification information according to the second embodiment of the present invention, by automatically setting the operating environment information and/or the version identification information of the application program in the icon of the verification package, the defects that the step of verifying the operating environment information and/or the version identification information of the application program by capturing the verification package is complicated in operation and low in verification operation efficiency are effectively overcome, the acquiring efficiency and the acquiring speed of the operating environment information and/or the version identification information of the application program are effectively improved, the verification operation program of a developer is simplified, and the development and test efficiency of the application program is improved.
A third embodiment of the present invention provides a method for acquiring identification information, as shown in fig. 3, including the following specific steps:
step S301, obtaining the identification information of the application program by reading the configuration file in the application program.
The identification information of the application program includes but is not limited to: execution environment information and/or version identification information of the application program.
Step S302, extracting the image file corresponding to the icon of the verification package in the application program.
Step S303, writing the acquired identification information into the image file, so as to present the identification information by displaying the image file.
Step S304, replacing the image file corresponding to the icon of the verification package in the application program with the image file in which the identification information has been written.
In step S305, when the verification package is generated by the packaging tool, the identification information is presented in the icon of the verification package.
The method has the advantages that under the condition that the verification package is generated through the packaging tool, the identification information is presented in the icon of the verification package, the automatic setting of the running environment information and/or the version identification information of the application program in the icon of the verification package is realized, the development engineer or the test engineer can quickly obtain the running environment information and/or the version identification information of the application program by reading the running environment information and/or the version identification information of the application program in the icon of the verification package, the defects that the running environment information and the development version identification of the application program are too complicated in verification operation and low in verification operation efficiency due to the fact that the application program needs to be verified in a designated page by grabbing the verification package of the application program or the application program is obtained by the development engineer or the test engineer to obtain the running environment information and/or the version identification of the currently developed application program are effectively overcome, and the defects that the running environment information and/or the version identification of the application program are obtained by the development engineer or the test engineer are effectively improved The efficiency of the identification information simplifies the verification operation program of a development engineer or a test engineer, and improves the development and test efficiency of the application program.
In the method for acquiring identification information according to the third embodiment of the present invention, by automatically setting the operating environment information and/or the version identification information of the application program in the icon of the verification package, the defects that the step of verifying the operating environment information and/or the version identification information of the application program by capturing the verification package is complicated in operation and low in verification operation efficiency are effectively overcome, the acquiring efficiency and the acquiring speed of the operating environment information and/or the version identification information of the application program are effectively improved, the verification operation program of a developer is simplified, and the development and test efficiency of the application program is improved.
A fourth embodiment of the present invention provides a method for acquiring identification information, as shown in fig. 4, including the following specific steps:
step S401, obtaining the identification information of the application program by reading the configuration file in the application program in a preset detection period.
The identification information of the application program includes but is not limited to: execution environment information and/or version identification information of the application program.
In this embodiment, the preset detection period is not specifically limited, and may be 5 minutes, 1 hour, or 24 hours. The method has the advantages that the identification information of the application program is obtained by reading the configuration file in the application program in the preset detection period, the running environment information and/or the version identification information of the application program presented in the icon of the verification package can be effectively updated, and the running environment information and/or the version identification information of the application program presented in the icon of the verification package can be automatically updated at regular time.
Step S402, extracting the image file corresponding to the icon of the verification package in the application program.
Step S403, writing the acquired identification information into the image file, so as to present the identification information by displaying the image file.
Step S404, replace the image file corresponding to the icon of the verification package in the application program with the image file written with the identification information.
In step S405, when the verification package is generated by the packaging tool, the identification information is presented in the icon of the verification package.
In the method for acquiring identification information according to the fourth embodiment of the present invention, by automatically setting the operating environment information and/or the version identification information of the application program in the icon of the verification package, the defects that the step of verifying the operating environment information and/or the version identification information of the application program by capturing the verification package is complicated in operation and low in verification operation efficiency are effectively overcome, the acquiring efficiency and the acquiring speed of the operating environment information and/or the version identification information of the application program are effectively improved, the verification operation program of a developer is simplified, and the development and test efficiency of the application program is improved.
A fifth embodiment of the present invention provides a method for acquiring identification information, as shown in fig. 5, including the following specific steps:
step S501, in a preset detection period, by reading a configuration file in an application program, obtaining identification information of the application program.
The identification information of the application program includes but is not limited to: execution environment information and/or version identification information of the application program.
Step S502, according to the obtained identification information, the identification information set in the icon of the verification package is updated.
In this embodiment, step S502 specifically includes:
extracting an image file corresponding to the icon of the verification package from the application program;
updating the written identification information in the image file by the acquired identification information;
and replacing the image file corresponding to the icon of the verification package in the application program with the image file with the updated identification information.
The method has the advantages that the set identification information in the icon of the verification package is updated according to the acquired identification information of the application program in the preset detection period, the running environment information and/or the version identification information of the application program presented in the icon of the verification package can be effectively updated, the running environment information and/or the version identification information of the application program presented in the icon of the verification package can be automatically updated at regular time, the running environment information and/or the version identification information of the application program can be further acquired efficiently and quickly, the verification operation program of developers is simplified, and the development and test efficiency of the application program is improved
According to the method for acquiring the identification information, the running environment information and/or the version identification information of the application program is automatically set in the icon of the verification packet, so that the defects that the step of verifying the running environment information and/or the version identification information of the application program in a mode of grabbing the verification packet is complicated in operation and low in verification operation efficiency are effectively overcome, the running environment information and/or the version identification information acquisition efficiency and the acquisition speed of the application program are effectively improved, the verification operation program of developers is simplified, and the development and test efficiency of the application program is improved.
A sixth embodiment of the present invention provides an apparatus for acquiring identification information, as shown in fig. 6, including the following components:
the obtaining module 10 is configured to obtain the identification information of the application program by reading the configuration file in the application program.
The identification information of the application program includes but is not limited to: execution environment information and/or version identification information of the application program.
In this embodiment, the running environment information of the application program indicates the current running environment of the application program; the running environment of the application includes but is not limited to: development environment, test environment, and online environment. The online environment is an operating environment in which the application is installed in the user terminal. The version identification information of the application program indicates the current version identification of the application program. And the development engineer or the test engineer of the application program correspondingly develops or tests the currently developed or tested application program through the operating environment information and/or the version identification information of the application program.
For example, in a development environment of a mobile terminal operating system iOS developed by apple inc, the obtaining module 10 is specifically configured to: reading a configuration file in an application program through a PlistBuddy command, and acquiring identification information of the application program; wherein the identification information of the application program comprises: the operating environment information and/or the version identification information of the application program.
And the setting module 20 is configured to set the acquired identification information in an icon of the verification package corresponding to the application program.
In this embodiment, the verification package corresponding to the application includes, but is not limited to: development kit, adhot kit, inhouse kit, release kit, and the like.
By setting the identification information in the icon of the verification package corresponding to the application program, the development engineer or the test engineer can quickly acquire the operating environment information and/or the version identification information of the application program by reading the operating environment information and/or the version identification information of the application program in the icon, thereby effectively avoiding the defects that the operating environment information and/or the development version identification of the application program are excessively complicated in verification operation and low in verification operation efficiency due to the fact that the operating environment information and the development version identification of the application program need to be acquired by grabbing the verification package of the application program or verifying the application program in a specified page, effectively improving the efficiency of the development engineer or the test engineer acquiring the operating environment information and/or the version identification information of the application program, and further simplifying the verification operation program of the development engineer or the test engineer, the development and test efficiency of the application program is improved.
The device for acquiring identification information according to the sixth embodiment of the present invention effectively avoids the defects of complicated operation and low verification operation efficiency in the step of verifying the operating environment information and/or the version identification information of the application program by grabbing the verification package by automatically setting the operating environment information and/or the version identification information of the application program in the icon of the verification package, effectively improves the acquiring efficiency and the acquiring speed of the operating environment information and/or the version identification information of the application program, simplifies the verification operation program of developers, and improves the development and test efficiency of the application program.
A seventh embodiment of the present invention, an apparatus for acquiring identification information, as shown in fig. 7, includes the following components:
the obtaining module 10 is configured to obtain the identification information of the application program by reading the configuration file in the application program.
The identification information of the application program includes but is not limited to: execution environment information and/or version identification information of the application program.
And the extracting module 21 is configured to extract an image file corresponding to the icon of the verification package in the application program.
Optionally, the extracting module 21 is specifically configured to: and extracting the image file corresponding to the icon of each verification package in the application program.
For example, in the development environment of the mobile terminal operating system iOS developed by apple inc, the extraction module 21 is specifically configured to: xcastes of the application program extracts an image file corresponding to the icon of the verification package, and saves the image file to a temporary directory.
And a writing module 22, configured to write the acquired identification information into the image file, so as to present the identification information by displaying the image file.
Optionally, the writing module 22 is specifically configured to:
and writing the acquired identification information into each image file so as to present the identification information by displaying each image file.
For example, in the development environment of the mobile terminal operating system iOS developed by apple inc, the writing module 22 is specifically configured to: and writing the acquired identification information into the image file saved in the temporary directory so as to present the identification information by displaying the image file.
And a replacing module 23, configured to replace the image file corresponding to the icon of the verification package in the application program with the image file to which the identification information has been written.
Optionally, the replacing module 23 is specifically configured to:
and replacing the image file corresponding to the icon of each verification package in the application program with the corresponding image file in which the identification information is written.
For example, in the development environment of the mobile terminal operating system iOS developed by apple inc, the replacement module 23 is specifically configured to: replace the image file corresponding to the icon of the verification package in the assets.
The apparatus for acquiring identification information according to the seventh embodiment of the present invention effectively avoids the defects of complicated operation and low verification operation efficiency in the step of verifying the operating environment information and/or the version identification information of the application program by grabbing the verification package by automatically setting the operating environment information and/or the version identification information of the application program in the icon of the verification package, effectively improves the acquiring efficiency and the acquiring speed of the operating environment information and/or the version identification information of the application program, simplifies the verification operation program of developers, and improves the development and testing efficiency of the application program.
An eighth embodiment of the present invention provides an apparatus for acquiring identification information, as shown in fig. 8, including the following components:
the obtaining module 10 is configured to obtain the identification information of the application program by reading the configuration file in the application program.
The identification information of the application program includes but is not limited to: execution environment information and/or version identification information of the application program.
And the extracting module 21 is configured to extract an image file corresponding to the icon of the verification package in the application program.
And a writing module 22, configured to write the acquired identification information into the image file, so as to present the identification information by displaying the image file.
And a replacing module 23, configured to replace the image file corresponding to the icon of the verification package in the application program with the image file to which the identification information has been written.
A presentation module 30 for presenting the identification information in an icon of the verification package when the verification package is generated by the packaging tool.
The method has the advantages that under the condition that the verification package is generated through the packaging tool, the identification information is presented in the icon of the verification package, the automatic setting of the running environment information and/or the version identification information of the application program in the icon of the verification package is realized, the development engineer or the test engineer can quickly obtain the running environment information and/or the version identification information of the application program by reading the running environment information and/or the version identification information of the application program in the icon of the verification package, the defects that the running environment information and the development version identification of the application program are too complicated in verification operation and low in verification operation efficiency due to the fact that the application program needs to be verified in a designated page by grabbing the verification package of the application program or the application program is obtained by the development engineer or the test engineer to obtain the running environment information and/or the version identification of the currently developed application program are effectively overcome, and the defects that the running environment information and/or the version identification of the application program are obtained by the development engineer or the test engineer are effectively improved The efficiency of the identification information simplifies the verification operation program of a development engineer or a test engineer, and improves the development and test efficiency of the application program.
The apparatus for acquiring identification information according to the eighth embodiment of the present invention effectively avoids the defects of complicated operation and low verification operation efficiency in the step of verifying the operating environment information and/or the version identification information of the application program by grabbing the verification package by automatically setting the operating environment information and/or the version identification information of the application program in the icon of the verification package, effectively improves the acquiring efficiency and the acquiring speed of the operating environment information and/or the version identification information of the application program, simplifies the verification operation program of developers, and improves the development and testing efficiency of the application program.
A ninth embodiment of the present invention, an apparatus for acquiring identification information, as shown in fig. 8, includes the following components:
the obtaining module 10 is configured to obtain the identification information of the application program by reading the configuration file in the application program in a preset detection period.
The identification information of the application program includes but is not limited to: execution environment information and/or version identification information of the application program.
In this embodiment, the preset detection period is not specifically limited, and may be 5 minutes, 1 hour, or 24 hours. The method has the advantages that the identification information of the application program is obtained by reading the configuration file in the application program in the preset detection period, the running environment information and/or the version identification information of the application program presented in the icon of the verification package can be effectively updated, and the running environment information and/or the version identification information of the application program presented in the icon of the verification package can be automatically updated at regular time.
And the extracting module 21 is configured to extract an image file corresponding to the icon of the verification package in the application program.
And a writing module 22, configured to write the acquired identification information into the image file, so as to present the identification information by displaying the image file.
And a replacing module 23, configured to replace the image file corresponding to the icon of the verification package in the application program with the image file to which the identification information has been written.
A presentation module 30 for presenting the identification information in an icon of the verification package when the verification package is generated by the packaging tool.
The device for acquiring identification information according to the ninth embodiment of the present invention effectively avoids the defects of complicated operation and low verification operation efficiency in the step of verifying the operating environment information and/or the version identification information of the application program by grabbing the verification package by automatically setting the operating environment information and/or the version identification information of the application program in the icon of the verification package, effectively improves the acquiring efficiency and the acquiring speed of the operating environment information and/or the version identification information of the application program, simplifies the verification operation program of developers, and improves the development and test efficiency of the application program.
A tenth embodiment of the present invention provides an apparatus for acquiring identification information, as shown in fig. 6, including the following components:
the obtaining module 10 is configured to obtain the identification information of the application program by reading the configuration file in the application program in a preset detection period.
The identification information of the application program includes but is not limited to: execution environment information and/or version identification information of the application program.
And the setting module 20 is configured to update the set identification information in the icon of the verification package according to the acquired identification information.
In this embodiment, the setting module 20 is specifically configured to:
extracting an image file corresponding to the icon of the verification package from the application program;
updating the written identification information in the image file by the acquired identification information;
and replacing the image file corresponding to the icon of the verification package in the application program with the image file with the updated identification information.
The method has the advantages that the set identification information in the icon of the verification package is updated according to the acquired identification information of the application program in the preset detection period, the running environment information and/or the version identification information of the application program presented in the icon of the verification package can be effectively updated, the running environment information and/or the version identification information of the application program presented in the icon of the verification package can be automatically updated at regular time, the running environment information and/or the version identification information of the application program can be further acquired efficiently and quickly, the verification operation program of developers is simplified, and the development and test efficiency of the application program is improved
The apparatus for acquiring identification information according to the tenth embodiment of the present invention effectively avoids the defects of complicated operation and low verification operation efficiency in the step of verifying the operating environment information and/or the version identification information of the application program by grabbing the verification package by automatically setting the operating environment information and/or the version identification information of the application program in the icon of the verification package, effectively improves the acquiring efficiency and the acquiring speed of the operating environment information and/or the version identification information of the application program, simplifies the verification operation program of developers, and improves the development and testing efficiency of the application program.
An eleventh embodiment of the present invention, a computer apparatus, as shown in fig. 9, includes the following components:
a processor 501 and a memory 502. In some embodiments of the invention, the processor 501 and the memory 502 may be connected by a bus or other means.
Processor 501 may be a general-purpose Processor, such as a Central Processing Unit (CPU), a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), or one or more Integrated circuits configured to implement embodiments of the present invention. Wherein, the memory 502 is used for storing executable instructions of the processor 501;
a memory 502 for storing program code and transferring the program code to the processor 501. Memory 502 may include Volatile Memory (Volatile Memory), such as Random Access Memory (RAM); the Memory 502 may also include a Non-Volatile Memory (Non-Volatile Memory), such as a Read-Only Memory (ROM), a Flash Memory (Flash Memory), a Hard Disk (Hard Disk Drive, HDD), or a Solid-State Drive (SSD); the memory 502 may also comprise a combination of memories of the kind described above.
The processor 501 is configured to call the program code management code stored in the memory 502, and perform some or all of the steps in any of the first embodiment to the fifth embodiment of the present invention.
The computer device according to the eleventh embodiment of the present invention effectively avoids the defects of complicated operation and low verification operation efficiency in the step of verifying the operating environment information and/or the version identification information of the application program by capturing the verification package, effectively improves the acquisition efficiency and the acquisition speed of the operating environment information and/or the version identification information of the application program, simplifies the verification operation program of developers, and improves the development and testing efficiency of the application program by automatically setting the operating environment information and/or the version identification information of the application program in the icon of the verification package.
A twelfth embodiment of the present invention is a computer-readable storage medium.
The computer storage media may be RAM memory, flash memory, ROM memory, EPROM memory, EEPROM memory, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage media known in the art.
The computer readable storage medium stores one or more programs which are executable by one or more processors to implement some or all of the steps in any of the first through fifth embodiments of the present invention.
The computer-readable storage medium according to the twelfth embodiment of the present invention stores one or more programs, where the one or more programs are executable by one or more processors, and can set the operating environment information and/or the version identification information of the application program in the icon of the verification package automatically, so as to effectively avoid the defects of complicated operation and low verification operation efficiency in the step of verifying the operating environment information and/or the version identification information of the application program by capturing the verification package, effectively improve the obtaining efficiency and obtaining speed of the operating environment information and/or the version identification information of the application program, simplify the verification operation program of developers, and improve the development and testing efficiency of the application program.
It should be noted that, in this document, 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 like elements in a process, method, article, or apparatus that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (10)

1. A method for obtaining identification information, comprising:
acquiring identification information of an application program by reading a configuration file in the application program; wherein the identification information includes: running environment information and/or version identification information of the application program;
setting the acquired identification information in an icon of a verification package corresponding to the application program;
presenting the identification information in an icon of the verification package when the verification package is generated by a packaging tool.
2. The method according to claim 1, wherein the setting the acquired identification information in an icon of a verification package corresponding to the application program includes:
extracting an image file corresponding to the icon of the verification package from the application program;
writing the acquired identification information into the image file so as to present the identification information by displaying the image file;
and replacing the image file corresponding to the icon of the verification package in the application program with the image file written with the identification information.
3. The method according to claim 1, wherein the obtaining the identification information of the application program by reading a configuration file in the application program comprises:
and acquiring the identification information of the application program by reading a configuration file in the application program in a preset detection period.
4. The method according to claim 1, wherein the setting the acquired identification information in an icon of a verification package corresponding to the application program includes:
and updating the set identification information in the icon of the verification packet according to the acquired identification information.
5. An apparatus for acquiring identification information, comprising:
the acquisition module is used for acquiring the identification information of the application program by reading a configuration file in the application program; wherein the identification information includes: running environment information and/or version identification information of the application program;
the setting module is used for setting the acquired identification information in an icon of the verification package corresponding to the application program;
and the presentation module is used for presenting the identification information in the icon of the verification package when the verification package is generated by a packaging tool after the acquired identification information is set in the icon of the verification package corresponding to the application program by the setting module.
6. The apparatus of claim 5, wherein the setup module comprises:
the extraction module is used for extracting the image file corresponding to the icon of the verification package from the application program;
the writing module is used for writing the acquired identification information into the image file so as to display the identification information by displaying the image file;
and the replacing module is used for replacing the image file corresponding to the icon of the verification package in the application program with the image file written with the identification information.
7. The apparatus of claim 5, wherein the obtaining module is specifically configured to:
and acquiring the identification information of the application program by reading a configuration file in the application program in a preset detection period.
8. The apparatus of claim 5, wherein the obtaining module is specifically configured to:
and updating the set identification information in the icon of the verification packet according to the acquired identification information.
9. A computer device, wherein the computer device comprises a processor and a memory; the processor is used for executing the program for acquiring the identification information stored in the memory so as to realize the steps of the method for acquiring the identification information according to any one of claims 1-4.
10. A computer readable storage medium, characterized in that the computer readable storage medium stores one or more programs which are executable by one or more processors to implement the steps of the method of acquiring identification information according to any one of claims 1 to 4.
CN201811197545.0A 2018-10-15 2018-10-15 Method and device for acquiring identification information, computer equipment and storage medium Active CN109388571B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811197545.0A CN109388571B (en) 2018-10-15 2018-10-15 Method and device for acquiring identification information, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811197545.0A CN109388571B (en) 2018-10-15 2018-10-15 Method and device for acquiring identification information, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN109388571A CN109388571A (en) 2019-02-26
CN109388571B true CN109388571B (en) 2021-11-23

Family

ID=65427391

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811197545.0A Active CN109388571B (en) 2018-10-15 2018-10-15 Method and device for acquiring identification information, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN109388571B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110990171A (en) * 2019-12-02 2020-04-10 北京三快在线科技有限公司 Information prompting method, device, equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103853433A (en) * 2014-04-01 2014-06-11 联想(北京)有限公司 Notification message promoting method and device
CN105763626A (en) * 2016-04-11 2016-07-13 苏州云清伟业网络科技有限公司 SDK initialization method suitable for application client end payment
CN105824611A (en) * 2015-10-20 2016-08-03 广东亿迅科技有限公司 Rapid development system based on Android intelligent operation platform
CN108319460A (en) * 2018-01-24 2018-07-24 广东小天才科技有限公司 Generation method, device, electronic equipment and the storage medium of application program installation kit

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20140080146A (en) * 2012-12-20 2014-06-30 삼성전자주식회사 Method for displaying for content using history an electronic device thereof

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103853433A (en) * 2014-04-01 2014-06-11 联想(北京)有限公司 Notification message promoting method and device
CN105824611A (en) * 2015-10-20 2016-08-03 广东亿迅科技有限公司 Rapid development system based on Android intelligent operation platform
CN105763626A (en) * 2016-04-11 2016-07-13 苏州云清伟业网络科技有限公司 SDK initialization method suitable for application client end payment
CN108319460A (en) * 2018-01-24 2018-07-24 广东小天才科技有限公司 Generation method, device, electronic equipment and the storage medium of application program installation kit

Also Published As

Publication number Publication date
CN109388571A (en) 2019-02-26

Similar Documents

Publication Publication Date Title
CN106598835B (en) Application testing method, device and system
TW201207731A (en) Embedded system with plural firmware and firmware updating method thereof
CN113608692B (en) Storage system data consistency verification method, system, equipment and medium
CN103793248A (en) Method and device for upgrading application program
CN106843947B (en) Method and device for processing code defects
CN113656107A (en) Mobile application loading method and device and electronic equipment
CN110837391B (en) Application program hot updating method and device, storage medium and electronic equipment
CN109388571B (en) Method and device for acquiring identification information, computer equipment and storage medium
CN112306368B (en) Method and device for expanding user data partition by EMMC (enhanced multi-media card)
CN109471799B (en) Method, device, storage medium and terminal for deploying demand environment
CN111880818B (en) Installation method, system and device of virtual machine operating system
CN112631832A (en) File system data volume updating method, terminal equipment, storage medium and device
CN110471828B (en) Operating system testing method, device and equipment thereof
CN108733571B (en) Test method, device, equipment and computer readable storage medium
CN109739756B (en) Method and equipment for testing application of mobile terminal
CN116521414A (en) Fault code positioning method, cloud server, system and storage medium
CN116431467A (en) Page test method, device, equipment and medium
CN111857785A (en) MCU starting method and device and terminal equipment
CN110633196A (en) Automatic use case execution method and device of application program
CN114356346A (en) Application program deployment method, device, storage medium and electronic equipment
CN109002694B (en) Method and device for positioning problem point after application code confusion
CN105279063B (en) A kind of test method, device and server
CN110727945B (en) Virus scanning method, device and computer readable medium
CN109271288B (en) Method for evaluating performance of processor before silicon
CN109284410B (en) Image file saving method and device, computer equipment and readable storage medium

Legal Events

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