CN109491699B - Resource checking method, device, equipment and storage medium of application program - Google Patents

Resource checking method, device, equipment and storage medium of application program Download PDF

Info

Publication number
CN109491699B
CN109491699B CN201811258551.2A CN201811258551A CN109491699B CN 109491699 B CN109491699 B CN 109491699B CN 201811258551 A CN201811258551 A CN 201811258551A CN 109491699 B CN109491699 B CN 109491699B
Authority
CN
China
Prior art keywords
resource
list
resources
check
missing
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
CN201811258551.2A
Other languages
Chinese (zh)
Other versions
CN109491699A (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.)
Netease Hangzhou Network Co Ltd
Original Assignee
Netease Hangzhou Network 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 Netease Hangzhou Network Co Ltd filed Critical Netease Hangzhou Network Co Ltd
Priority to CN201811258551.2A priority Critical patent/CN109491699B/en
Publication of CN109491699A publication Critical patent/CN109491699A/en
Application granted granted Critical
Publication of CN109491699B publication Critical patent/CN109491699B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention provides a resource checking method, a device, equipment and a storage medium of an application program, wherein the method comprises the steps of receiving a resource configuration table and a resource address list sent by client equipment; the resource configuration table comprises information of the configured first resource; the resource address list comprises addresses of second resources; and performing resource check on the first resource according to the resource address list to obtain a check result comprising a missing resource list for feedback. The invention can improve the resource checking efficiency.

Description

Resource checking method, device, equipment and storage medium of application program
Technical Field
The present invention relates to the field of internet technologies, and in particular, to a method, an apparatus, a device, and a storage medium for checking resources of an application.
Background
With the development of network technology, the functions of the application programs are more and more abundant. For more functions, development of some application programs with more complex implementation usually requires cooperation of multiple parties.
For an application program that needs to be developed cooperatively, the cooperative party needs to synchronize the code of the application program, the table of the application program, the resource of the application program, and the like to the other party. The code of the application, the table of the application, the resources of the application, etc. are merged by the other party. However, during the synchronization process, resource omission may occur, which requires the two cooperating parties to communicate back and forth many times to fill up the omitted resource.
At present, most of the cooperative application programs need the existing testers to manually check whether the resources applicable to the application programs are missing or missing, and the checking efficiency of the resources is low.
Disclosure of Invention
The invention provides a resource checking method, a device, equipment and a storage medium of an application program, which are used for improving the resource checking efficiency
In a first aspect, the present invention provides a method for checking resources of an application, where the method includes:
receiving a checking request sent by a client device, wherein the checking request comprises: a resource configuration table and a resource address list; the resource configuration table includes: information to configure a first resource of the application; the resource address list includes: an address of a second resource that the client device has;
according to the resource address list, performing resource check on the first resource configured by the resource configuration table to obtain a check result; the inspection result includes: a list of missing resources; the list of missing resources includes: information of at least one missing resource, the missing resource being: a resource present in the first resource and absent in the second resource;
and sending the checking result to the client device.
In a second aspect, the present invention provides a resource checking method for an application, including:
sending a check request to a server, the check request comprising: a resource configuration table and a resource address list; the resource configuration table includes: information of a first resource of the configured application; the resource address list includes: an address of a second resource that the client device has; the check request is used for enabling the server to perform resource check on the first resource configured by the resource configuration table according to the resource address list to obtain a check result; the inspection result includes: a list of missing resources; the list of missing resources includes: information of at least one missing resource, the missing resource being: a resource present in the first resource and absent in the second resource;
receiving a check result returned by the server, wherein the check result comprises: the list of missing resources.
In a third aspect, the present invention further provides an apparatus for checking resources of an application, including:
a receiving module, configured to receive an inspection request sent by a client device, where the inspection request includes: a resource configuration table and a resource address list; the resource configuration table includes: information to configure a first resource of the application; the resource address list includes: an address of a second resource that the client device has;
the checking module is used for performing resource checking on the first resource configured by the resource configuration table according to the resource address list to obtain a checking result; the inspection result includes: a list of missing resources; the list of missing resources includes: information of at least one missing resource, the missing resource being: a resource present in the first resource and absent in the second resource;
and the sending module is used for sending the checking result to the client equipment.
In a third aspect, the present invention further provides an apparatus for checking resources of an application, including:
a sending module, configured to send a check request to a server, where the check request includes: a resource configuration table and a resource address list; the resource configuration table includes: information of a first resource of the configured application; the resource address list includes: an address of a second resource that the client device has; the check request is used for enabling the server to perform resource check on the first resource configured by the resource configuration table according to the resource address list to obtain a check result; the inspection result includes: a list of missing resources; the list of missing resources includes: information of at least one missing resource, the missing resource being: a resource present in the first resource and absent in the second resource;
a receiving module, configured to receive an inspection result returned by the server, where the inspection result includes: the list of missing resources.
In a fifth aspect, the present invention may also provide a server, comprising: a memory and a processor; the memories are respectively connected with the processors;
the memory to store program instructions;
the processor is configured to, when the program instruction is executed, implement the resource checking method for the application program according to the first aspect.
In a sixth aspect, the present invention may also provide a client device, including: a memory and a processor; the memories are respectively connected with the processors;
the memory to store program instructions;
the processor is configured to, when the program instructions are executed, implement the resource checking method for the application program according to the second aspect.
In a seventh aspect, the present invention may also provide a computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, implements the resource checking method for an application program according to the first aspect.
In an eighth aspect, the present invention may also provide a computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, implements the resource checking method of the application program according to the second aspect.
The invention provides a resource checking method, a device, equipment and a storage medium of an application program, which can receive a checking request of a resource address list including a resource configuration table sent by client equipment through a server, wherein the resource configuration table comprises the following steps: the information of the first resource of the application program is configured in advance, and the resource address list comprises: the server also performs resource check on the first resource configured by the resource configuration table according to the resource address list to obtain a check result including a missing resource list, and returns the check result to the client device. Wherein the list of missing resources comprises: information of at least one missing resource, the missing resource being: resources that are present in the first resource and not present in the second resource. According to the method, the server can check the resources on the side of the client device according to the resource configuration table and the resource address list sent by the client device to obtain the check result, so that the resource check efficiency is effectively improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, a brief description will be given below of the drawings required for the embodiments or the technical solutions in the prior art, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a first flowchart of a resource checking method for an application according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a resource checking method for an application according to an embodiment of the present invention;
fig. 3 is a flowchart of a method for checking resources of an application according to an embodiment of the present invention;
fig. 4 is a fourth flowchart of a resource checking method for an application according to an embodiment of the present invention;
FIG. 5 is a first schematic structural diagram of an apparatus for checking resources of an application according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a server according to an embodiment of the present invention;
FIG. 7 is a second schematic structural diagram of a resource checking apparatus for an application according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of a client device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first", "second", third "and the like in the various parts of the embodiments and drawings are used for distinguishing similar objects and not necessarily for describing a particular order or sequence. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
The method flow diagrams of the embodiments of the invention described below are merely exemplary and do not necessarily include all of the contents and steps, nor do they necessarily have to be performed in the order described. For example, some steps may be broken down and some steps may be combined or partially combined, so that the order of actual execution may be changed according to actual situations.
The functional blocks in the block diagrams referred to in the embodiments of the present invention described below are only functional entities and do not necessarily correspond to physically separate entities. I.e. these functional entities may be implemented in the form of software, or in one or more hardware modules or integrated circuits, or in different networks and/or processors and/or microcontrollers.
The following describes a resource checking method, device, apparatus, and storage medium for an application according to embodiments of the present invention with reference to a plurality of examples.
Fig. 1 is a first flowchart of a resource checking method for an application according to an embodiment of the present invention. The resource checking method of the application program can be interactively executed by the client device and the server. The client terminal may be a terminal device such as a test client installed with the application program, which is similar to the application program, for example, a desktop computer, a notebook computer, a Personal Digital Assistant (PDA), a smart phone, a tablet computer, and the like. The server may be, for example, a server of the application program, or a server for testing or resource checking the application program, and may be implemented on one physical machine, or implemented in cooperation with multiple physical machines, which is not described herein again.
The application program according to the embodiment of the present application may be an application program that needs to be developed cooperatively, may be a game-type application program, or may be another non-game-type application program. The resource related to the embodiment of the present application may be a resource of an application program, and the resource of the application program may be a resource required for implementing each functional module of the application program. If the application is a game-like application, the resource of the application may be referred to as a game resource. Whatever the application, its resources may include: at least one of a picture asset, a video asset, or an audio asset, etc.
In order to avoid the problems of incomplete functions and the like caused by missing of resources of the cooperative application programs, the present embodiment provides the following resource checking method for various application programs, which is used to determine the resources of the missing application programs, improve the resource checking efficiency, and ensure the resource checking accuracy.
As shown in fig. 1, the method for checking resources of an application program according to this embodiment may include the following steps:
s101, the client device sends a check request to the server, wherein the check request comprises a resource configuration table and a resource address list.
The resource configuration table may include: information to configure a first resource of the application. The resource configuration table may be a locally up-to-date resource configuration table that the client device has. The resource allocation table may include: the information of the first resource needed for realizing the functions of the application program is configured. In the resource configuration table, the information of each resource may include: the identification of each resource, the usage parameter of each resource, the usage scenario of each resource, and the like.
The resource address list includes: the client device has an address of a second resource, which may be derived by the client device from a locally up-to-date resource directory address.
In the method, the client device may scan the resource directory address when receiving a selection instruction for the resource configuration table and the resource directory address input by a user, so as to obtain the address of the second resource located locally, and summarize the address to generate a resource address list including the address of the second resource, and carry the resource configuration table and the resource address list in the check request, and send the check request to the server to upload the resource configuration table and the resource address list to the server.
In the method, the resource address list obtained by summarizing the address of the at least one second resource of the client device is sent to the server without sending the at least one second resource of the client device, so that the information transmission quantity is reduced, and the resource checking efficiency can be improved.
S102, the server receives the checking request sent by the client device.
S103, the server performs resource check on the first resource configured by the resource configuration table according to the resource address list to obtain a check result; the check result includes a list of missing resources.
The list of missing resources includes: information of at least one missing resource, the missing resource being a resource present in the first resource and absent in the second resource.
Since the first resource is a pre-configured resource of the application and the second resource is a resource possessed by the client device, the missing resource is a pre-configured resource, and the resource is missing on the client device side, i.e. does not exist.
When receiving the check request, the server may determine the first resource of the application program configured in advance according to the resource configuration table, determine the second resource of the client device according to the resource address list, check the first resource according to the second resource by using a preset check rule, determine a missing resource, that is, a non-existing resource, in the second resource, and generate the missing resource list according to the information of the missing resource. The list of missing resources may include: information of at least one missing resource.
The server also generates a check result according to the missing resource list.
S104, the server sends the check result to the client device.
The server may send the check result including the list of missing resources to the client device.
S105, the client device receives the checking result sent by the server.
After receiving the check result, the client device may determine to generate a missing resource document in a preset format according to the missing resource list in the check result. The missing resource document may be used for review by a user, such as a user on the agent side.
After the user consults the missing resource document, a preset filtering rule can be input. The client device can filter the resource information in the missing resource list in the missing resource document according to the filtering rule, send the filtering result and the filtering parameters of the filtering rule to the server, and add the filtering result and the filtering parameters of the filtering rule into a preset resource filtering library by the server. And the server also regenerates the missing resource document according to the received filtering result sent by the client equipment, and then sends the missing resource document to the client equipment for the user to use.
The client device may store and/or display the list of missing resources after receiving the inspection result.
In the resource inspection method for an application program provided in this embodiment, a server may receive an inspection request including a resource address list of a resource configuration table sent by a client device, where the resource configuration table includes: the information of the first resource of the application program is configured in advance, and the resource address list comprises: the server also performs resource check on the first resource configured by the resource configuration table according to the resource address list to obtain a check result including a missing resource list, and returns the check result to the client device. Wherein the list of missing resources comprises: information of at least one missing resource, the missing resource being: resources that are present in the first resource and not present in the second resource. According to the method, the server can check the resources on the side of the client device according to the resource configuration table and the resource address list sent by the client device to obtain the check result, so that the resource check efficiency is effectively improved.
In addition, in the method, the client equipment only needs to upload the resource address list without uploading the resources of the client equipment, so that the information transmission quantity is reduced, and the resource checking efficiency is improved.
After the resource check is performed once, the subsequent check can be performed on the resource information added in the resource configuration table or the resource addresses added in the resource address list, and the resource check is not required to be performed completely, so that the resource check time is shortened.
It should be noted that the client device may also check the resource allocation table according to a preset period, and if it is found that the resource allocation table changes, for example, a table, a sub-table, or a field that is newly added is included, the method shown in fig. 1 may be executed again, and the resource checking method shown in fig. 1 is executed for the changed part in the resource allocation table, so as to shorten the resource checking time.
Optionally, fig. 2 is a second flowchart of a resource checking method of an application program according to an embodiment of the present invention. As shown in fig. 2, the resource checking, by the server in S103 in fig. 1, the resource checking the first resource configured in the resource configuration table according to the resource address list, and obtaining a checking result includes:
s201, the server analyzes the resource configuration table to obtain a resource list; the resource list includes: information of the first resource.
In the method, the server may analyze the content in the resource configuration table to obtain the information of the first resource, so as to obtain information including: a resource list of information of the first resource. The resource list may also be referred to as a resource list corresponding to the resource configuration table.
The server may configure a cell in the resource configuration table according to information such as a table name, a sub-table (sheet) name in the table, and a row and column value in the table, and perform content analysis on a plurality of cells of the resource configuration table according to a preset information adding rule to obtain information of the first resource, so as to obtain information including: a resource list of information of the first resource. The first resource may include: a plurality of resources.
S202, the server checks whether the first resource exists in the second resource.
The server may determine the resource corresponding to the resource configuration table, that is, the first resource, and may also determine the second resource of the client device according to the resource address list, and check whether the first resource exists in the second resource by using a preset check rule.
S203, if the first resource does not exist in the second resource, the server generates the missing resource list according to the information of the first resource that does not exist in the second resource.
The server may determine the first resource that does not exist in the second resource as a missing resource, and add information of the missing resource to the missing resource list, thereby generating the missing resource list.
In the method, the server can perform resource check according to the resource list obtained by analyzing the resource configuration table, so that the accuracy of the resource check can be improved.
Optionally, the method may further include:
and S204, if the first resource exists in the second resource, the server also generates a used resource list according to the information of the first resource existing in the second resource.
The server may determine the first resource existing in the second resource as a used resource, and generate the used resource list according to information of the used resource.
S205, the server determines whether the information of the reference resource exists in the used resource list according to the used resource list.
The server may determine whether each used resource in the used resource list has a referenced resource, that is, whether each used resource references other resources, according to the used resource list, and if so, may determine that information of the referenced resource exists in the used resource list.
If information such as a reference index exists in the information of each used resource in the used resource list, it can be determined that the used resource refers to other resources.
S206, if the information of the reference resource exists in the used resource list, the server checks whether the reference resource exists in the second resource.
The server may recursively check the referenced resource in the second resource to determine whether the referenced resource exists in the second resource.
S207, if the referenced resource does not exist in the second resource, the server adds the information of the referenced resource into the missing resource list.
If the referenced resource does not exist in the second resource, it may be determined that the referenced resource is also a missing resource of the client device, and information of the referenced resource is added to the missing resource list.
In the method, the server can determine whether the second resource has the referenced resource under the condition that the information of the referenced resource exists in the used resource list of the second resource, and adds the referenced resource into the missing resource list under the condition that the referenced resource does not exist in the second resource, thereby ensuring the accuracy of the information in the missing resource list and improving the accuracy of resource check.
Optionally, the method may further include:
s208, if the referenced resource exists in the second resource, the server adds the information of the referenced resource into the used resource list.
If the referenced resource exists in the second resource, the referenced resource can be determined to be the used resource of the client device, and the information of the referenced resource is added into the used resource list.
In the method, the server can add the reference resource into the used resource list under the condition that the reference resource exists in the second resource, so that the accuracy of the information in the used resource list is ensured, and the accuracy of resource check is improved.
Optionally, the method may further include:
s209, the server compares the resource information in the used resource list with the information of the resource in the resource library of the latest version to determine that the resource which does not exist in the resource library of the latest version is a redundant resource.
The server may compare the resource information in the list of used resources with information of resources in the latest version of the repository to determine whether the resources in the list of used resources are in the latest version of the repository. The resource that is present in the resource list is used, and the resource that is not present in the latest version of the resource library is actually not used by the application of the latest version although the resource is present on the client device side, and thus the resource can be determined to be a redundant resource.
S210, the server generates a redundant resource list according to the redundant resource information; the list of excess resources includes information of the excess resources.
After the server generates the redundant resource list, the server can also carry the redundant resource list in the check result and send the check result to the client device. Namely, the above inspection result may further include: the list of redundant resources.
For the redundant resource list, there may be some special cases, which may be actually used, or even if the resource is redundant, it may not be desirable to delete the resource, so the server or the client device may filter the resource information of the redundant resource list, add the resource information to be filtered in the redundant resource list into the resource filter library, and regenerate the resource list from the resource information other than the resource information to be filtered in the redundant resource list.
After the client device obtains the redundant resource list, the redundant resources can be deleted according to the information in the redundant resource list, so that the occupied space of the resources is reduced, and the resource package of the application program is reduced.
Therefore, the solution of this embodiment can determine not only the resources missing from the client device, but also the resources redundant to the client device, thereby improving the accuracy of the resource check.
In one approach, in the resource configuration table shown above, the contents of the cells may include: in the resource path, the step of analyzing the resource configuration table by the server in S201 in the above embodiment to obtain the resource list may include:
the server obtains a resource address according to the resource path and a preset prefix and/or suffix; the information of the resources in the resource list includes: the resource address.
The resource address is the resource address corresponding to the cell.
In another way, as shown above, in the resource configuration table, the contents of the cell may not include: in the resource path, the step of analyzing the resource configuration table by the server in S201 in the above embodiment to obtain the resource list may include:
the server splits the digit of the cell in the resource configuration table to obtain a split directory, and obtains a resource address according to the split directory and a preset prefix and/or suffix; the resource information in the resource list includes: the resource address. The resource address can also be called the resource address corresponding to the cell.
In this embodiment, by providing a method for implementing parsing of the resource configuration table, the resource list can be more accurate, and thus the accuracy of resource check is ensured.
Optionally, an embodiment of the present invention may further provide a resource checking method for an application program. Fig. 3 is a flowchart of a method for checking resources of an application according to an embodiment of the present invention. As shown in fig. 3, in the method as described above, before the server performs resource check on the first resource configured in the resource configuration table according to the resource address list in S103 and obtains a check result, the method may further include:
s301, the server determines whether a table or a sub-table needing to be filtered exists in the resource configuration table according to a preset table filtering library.
The preset table filter library may have filter rules for tables or sub-tables.
The table or sub-table to be filtered is actually the table or sub-table in the resource configuration table, which does not need to be checked.
Specifically, the server may filter each table in the resource configuration table according to the preset table filter library, determine whether a table to be filtered exists in the resource configuration table, and if the table to be filtered does not exist in the resource table, filter each sub-table in each table according to the preset table filter library, and determine whether the sub-table to be filtered exists in each table.
Then, in the above S103, performing resource check on the first resource configured in the resource configuration table according to the resource address list, and obtaining a check result, the method may include:
s302, if the table or the sub-table to be filtered exists in the resource configuration table, the server performs resource check on the resources configured by the information except the table or the sub-table to be filtered in the resource configuration table according to the resource address list to obtain the check result.
In this embodiment, according to the resource address list, the resource configured by the information other than the table or the sub-table to be filtered in the resource configuration table is subjected to resource check, so that the result of the resource check is more accurate.
Optionally, an embodiment of the present invention may further provide a resource checking method for an application program. Fig. 4 is a fourth flowchart of a resource checking method for an application according to an embodiment of the present invention. As shown in fig. 4, in the method as described above, before the server performs resource check on the first resource configured in the resource configuration table according to the resource address list in S103 and obtains a check result, the method may further include:
s401, the server determines whether the second resource has the resource to be filtered according to a preset resource filtering library.
The server can determine whether the information such as the name of the second resource exists in the resource filtering library according to the preset resource filtering library, and if so, can determine whether the second resource exists in the resource to be filtered; if not, it is determined that the second resource does not have a resource to be filtered.
Then, in the above S103, performing resource check on the first resource configured in the resource configuration table according to the resource address list, and obtaining a check result, the method may include:
s402, if the resource to be filtered exists in the second resource, the server performs resource check on the first resource according to the addresses of other resources except the resource to be filtered in the resource address list to obtain the check result.
In this embodiment, the resource check is performed on the first resource according to the addresses of the resources other than the resource to be filtered in the resource address list, so that the result of the resource check is more accurate.
Optionally, the method may further include:
and S403, if the resource to be filtered does not exist in the second resource, the server further determines whether the resource type of the second resource exists in the resource type to be filtered according to the preset resource filtering library.
The resource type of the second resource may include, for example: jpg type, png type, acb type, and the like. The server may determine the resource type based on the end of name of the resource in the second resource.
Then, in the above S103, performing resource check on the first resource according to the addresses of the resources other than the resource to be filtered in the resource address list, to obtain a check result, which may include:
s404, if the resource type of the second resource has the resource type to be filtered, the server performs resource check according to the addresses of other types of resources except the resource type to be filtered in the resource address list to obtain a check result.
In this embodiment, the server may further perform, when the resource to be filtered does not exist in the second resource, resource type screening to determine whether the resource type of the second resource is the resource type to be filtered, and if the resource type of the second resource exists in the resource type to be filtered, the server performs resource inspection according to addresses of other types of resources except the resource type to be filtered in the resource address list, so that a resource inspection result may be effectively improved.
In addition, whether the table or the sub-table in the resource allocation table is filtered or the resource in the second resource is filtered, the server further needs to determine whether the content to be filtered, such as the table, the sub-table or the resource, belongs to the permanent filtering, and if so, the server performs the resource check according to the filtered content. If the content to be filtered does not belong to the permanent filtering, the server also needs to determine the filtering validity period of the content to be filtered, such as a table, a sub-table or a resource, and the like, namely, the content to be filtered can be filtered within the validity period, so that the content to be filtered is not checked. And outside the valid period, the test is required to be checked again.
In the process of executing the filtering of the resource configuration table or the second resource, the information which does not belong to the current version can be filtered into warning information by combining with a time configuration file, and for part of resources which need to be used for a long time, a necessary resource list can be listed, so that the condition of deleting the resources is prevented.
Whether a missing resource list or a redundant resource list, the client device, upon retrieval, may generate a document in the same or similar format therefrom. The client device can sort the resource information in the missing resource list according to the resource type and generate a missing resource document according to the sorting result; and the resource information in the redundant resource list can be matched according to the resource type, and redundant resource documents can be sorted according to the sorting result.
Taking the missing resource document as an example, in the missing resource document, the information of the missing picture resource may be located in sub table 1, the information of the missing video resource may be located in sub table 2, and the information of the missing audio resource may be located in sub table 3.
In the missing resource document or the redundant resource document, the resource information may have a link of a resource address, and the link of the resource address may correspond to a position of the resource in the resource configuration table, such as a table in the resource configuration table, a sub-table in the table, or a row and a column of the sub-table in the table. Therefore, the user can conveniently acquire the missing resource document or the redundant resource document and perform tracking modification according to the resource configuration table so as to avoid resource inspection errors and the like caused by table configuration errors and the like. Meanwhile, the client device can also transmit the missing resource document or the redundant resource document to the terminal device or the server of the partner for reasonably adding the missing resource, thereby avoiding the inevitable trouble.
Meanwhile, the client device can also distinguish the names of the tables in the resource configuration table, so that the system which part of the application program has resource deficiency or more redundant resources is accurately determined, and then the operations such as optimization analysis and the like are performed.
The following is an embodiment of the apparatus of the present invention, which can be used to implement the above-mentioned embodiment of the method of the present invention, and the implementation principle and technical effects are similar.
Fig. 5 is a first schematic structural diagram of a resource checking apparatus for an application according to an embodiment of the present invention. As shown in fig. 5, the resource check device 50 of the application program of the present embodiment may include:
a receiving module 51, configured to receive a check request sent by a client device, where the check request includes: a resource configuration table and a resource address list; the resource configuration table includes: information to configure a first resource of the application; the resource address list includes: the client device has an address of a second resource.
The checking module 52 is configured to perform resource checking on the first resource configured in the resource configuration table according to the resource address list to obtain a checking result; the inspection result includes: a list of missing resources; the list of missing resources includes: information of at least one missing resource, the missing resource being: resources present in the first resources and absent in the second resources.
A sending module 53, configured to send the check result to the client device.
Optionally, the checking module 52 is configured to analyze the resource configuration table to obtain a resource list; the resource list includes: information of the first resource; checking whether the first resource exists in the second resource; and if the first resource does not exist in the second resource, generating the missing resource list according to the information of the first resource which does not exist in the second resource.
Optionally, the checking module 52 is further configured to, if the first resource exists in the second resource, generate a used resource list according to the information of the first resource existing in the second resource; determining whether information for referencing resources exists in the used resource list or not according to the used resource list; if the information of the referenced resource exists in the used resource list, checking whether the referenced resource exists in the second resource; and if the referenced resource does not exist in the second resource, adding the information of the referenced resource into the missing resource list.
Optionally, the checking module 52 is further configured to add the information of the referenced resource to the used resource list if the referenced resource exists in the second resource.
Optionally, the checking module 52 is further configured to compare the resource information in the used resource list with the information of the resource in the resource library of the latest version, and determine that the resource that does not exist in the resource library of the latest version is a redundant resource; generating a redundant resource list; the list of redundant resources includes: information of the excess resources.
Optionally, if the resource allocation table includes the following cells: a resource path;
the checking module 52 is further configured to obtain a resource address according to the resource path and a preset prefix and/or suffix; the resource information in the resource list includes: the resource address.
Optionally, the checking module 52 is further configured to split the number of bits of the cell in the resource configuration table to obtain a split directory; obtaining a resource address according to the splitting directory and a preset prefix and/or suffix; in the resource list, the information of the resource includes: the resource address.
Optionally, the checking module 52 is further configured to determine whether a table or a sub-table to be filtered exists in the resource configuration table according to a preset table filter library; and if the table or the sub-table to be filtered exists in the resource configuration table, performing resource check on the resources configured by the information except the table or the sub-table to be filtered in the resource configuration table according to the resource address list to obtain the check result.
Optionally, the checking module 52 is further configured to determine whether the second resource includes a resource to be filtered according to a preset resource filtering library; and if the resource to be filtered exists in the second resource, performing resource check on the first resource according to the addresses of other resources except the resource to be filtered in the resource address list to obtain the check result.
Optionally, the checking module 52 is further configured to determine whether the resource type of the second resource has a resource type that needs to be filtered if the resource that needs to be filtered does not exist in the second resource; and if the resource type of the second resource has the resource type to be filtered, performing resource check according to the addresses of other types of resources except the resource type to be filtered in the resource address list to obtain the check result.
Optionally, the resource is a picture resource, a video resource or an audio resource.
Fig. 6 is a schematic structural diagram of a server according to an embodiment of the present invention. As shown in fig. 6, the server 60 of the present embodiment includes: a memory 61 and a processor 62. The memory 61 is connected to the processor 62 via a bus.
A memory 61 for storing program instructions.
And a processor 62, configured to execute the resource checking method of the application program executed by any one of the servers in fig. 1-4 when the program instructions are executed.
An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program is executable by the processor 62 described in the foregoing fig. 6 to implement a resource check method for an application executed by a server in any of fig. 1 to fig. 4 shown in any of the foregoing embodiments.
The resource check device, the server, and the computer-readable storage medium for the application program according to the embodiments of the present invention may execute the resource check method for the application program executed by any server in fig. 1 to 4, and specific implementation and effective effects thereof may be referred to above, and are not described herein again.
Fig. 7 is a schematic structural diagram of a resource checking apparatus for an application according to an embodiment of the present invention. As shown in fig. 7, the resource check device 70 of the application program of the present embodiment may include:
a sending module 71, configured to send a check request to a server, where the check request includes: a resource configuration table and a resource address list; the resource configuration table includes: information of a first resource of the configured application; the resource address list includes: an address of a second resource that the client device has; the check request is used for enabling the server to perform resource check on the first resource configured by the resource configuration table according to the resource address list to obtain a check result; the inspection result includes: a list of missing resources; the list of missing resources includes: information of at least one missing resource, the missing resource being: resources present in the first resources and absent in the second resources.
A receiving module 72, configured to receive an inspection result returned by the server, where the inspection result includes: the list of missing resources.
Optionally, the resource is a picture resource, a video resource or an audio resource.
Fig. 8 is a schematic structural diagram of a client device according to an embodiment of the present invention. As shown in fig. 8, the server 80 of the present embodiment includes: a memory 81 and a processor 82. The memory 81 is connected to the processor 82 via a bus.
A memory 81 for storing program instructions.
A processor 82, configured to execute the resource checking method of the application program executed by any one of the client devices in fig. 1-4 when the program instructions are executed.
An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program is executable by the processor 82 described in fig. 8 to implement a resource check method for an application executed by a client device in any one of fig. 1 to fig. 4 shown in any one of the above embodiments.
The resource check device, the client device, and the computer-readable storage medium for the application program according to the embodiments of the present invention may execute the resource check method for the application program executed by any one of the client devices in fig. 1 to 4, and specific implementation and effective effects thereof may be referred to above, and are not described herein again.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The computer program may be stored in a computer readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media capable of storing program codes, such as a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, and an optical disk.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (19)

1. A resource checking method for an application program, the method comprising:
receiving a checking request sent by a client device, wherein the checking request comprises: a resource configuration table and a resource address list; the resource configuration table includes: information to configure a first resource of the application; the resource address list includes: an address of a second resource that the client device has;
checking whether second resources included in the resource address list include the first resources or not so as to perform resource check on the first resources configured by the resource configuration table to obtain a check result; the inspection result includes: a list of missing resources; the list of missing resources includes: information of at least one missing resource, the missing resource being: a resource present in the first resource and absent in the second resource;
and sending the checking result to the client device.
2. The method according to claim 1, wherein checking whether the first resource is included in the second resources included in the resource address list to check the first resource configured in the resource configuration table, and obtaining a check result includes:
analyzing the resource configuration table to obtain a resource list; the resource list includes: information of the first resource;
checking whether the first resource exists in the second resource;
and if the first resource does not exist in the second resource, generating the missing resource list according to the information of the first resource which does not exist in the second resource.
3. The method of claim 2, further comprising:
if the first resource exists in the second resource, generating a used resource list according to the information of the first resource existing in the second resource;
determining whether information for referencing resources exists in the used resource list or not according to the used resource list;
if the information of the referenced resource exists in the used resource list, checking whether the referenced resource exists in the second resource;
and if the referenced resource does not exist in the second resource, adding the information of the referenced resource into the missing resource list.
4. The method of claim 3, further comprising:
and if the referenced resource exists in the second resource, adding the information of the referenced resource into the used resource list.
5. The method of claim 3, further comprising:
comparing the resource information in the used resource list with the information of the resource in the resource library of the latest version, and determining that the resource which does not exist in the resource library of the latest version is a redundant resource;
generating a redundant resource list; the list of redundant resources includes: information of the excess resources.
6. The method according to any of claims 2-5, wherein if the resource allocation table has a cell content comprising: a resource path;
the analyzing the resource configuration table to obtain a resource list includes:
obtaining a resource address according to the resource path and a preset prefix and/or suffix; the resource information in the resource list includes: the resource address.
7. The method according to any one of claims 2-5, wherein the parsing the resource configuration table to obtain a resource list comprises:
splitting the digit of a cell in the resource configuration table to obtain a split directory;
obtaining a resource address according to the splitting directory and a preset prefix and/or suffix; in the resource list, the information of the resource includes: the resource address.
8. The method according to any one of claims 1 to 5, wherein before checking whether the first resource is included in the second resources included in the resource address list to perform resource check on the first resource configured by the resource configuration table, the method further includes:
determining whether a table or a sub-table to be filtered exists in the resource configuration table according to a preset table filtering library;
if the table or the sub-table to be filtered exists in the resource configuration table, the checking whether the second resource included in the resource address list includes the first resource or not to perform resource checking on the first resource configured in the resource configuration table to obtain a checking result, including:
the second resource in the resource address list is checked to see whether the second resource comprises a first resource of a first type, and the first resource of the first type in the resource configuration table is subjected to resource check to obtain a check result; the first resource of the first type is a first resource configured by information except a table or a sub-table to be filtered in the resource configuration table.
9. The method according to any one of claims 1 to 5, wherein before performing resource check on the first resource configured by the resource configuration table according to the resource address list and obtaining a check result, the method further includes:
determining whether the second resource has a resource to be filtered according to a preset resource filtering library;
if the resource to be filtered exists in the second resource, the checking whether the second resource in the resource address list includes the first resource to perform resource checking on the first resource configured by the resource configuration table to obtain a checking result includes:
and according to the addresses of other second resources except the second resource to be filtered, which are included in the resource address list, performing resource check on the first resource to obtain the check result.
10. The method of claim 9, further comprising:
if the resource to be filtered does not exist in the second resource, determining whether the resource type of the second resource exists in the resource type to be filtered;
if the resource type of the second resource has the resource type to be filtered, performing resource check on the first resource according to addresses of other second resources, which are included in the resource address list, except the second resource to be filtered, to obtain a check result, including:
and according to the addresses of second resources of other types except the type of the resource to be filtered, which are included in the resource address list, performing resource check on the first resource to obtain the check result.
11. The method of any one of claims 1-5, wherein the asset is a picture asset, a video asset, or an audio asset.
12. A resource check method for an application program is characterized by comprising the following steps:
sending a check request to a server, the check request comprising: a resource configuration table and a resource address list; the resource configuration table includes: information of a first resource of the configured application; the resource address list includes: the client device has an address of a second resource; the check request is used for enabling the server to check whether the second resources included in the resource address list include the first resources or not so as to perform resource check on the first resources configured by the resource configuration table to obtain a check result; the inspection result includes: a list of missing resources; the list of missing resources includes: information of at least one missing resource, the missing resource being: a resource present in the first resource and absent in the second resource;
receiving a check result returned by the server, wherein the check result comprises: the list of missing resources.
13. The method of claim 12, wherein the resource is a picture resource, a video resource, or an audio resource.
14. An apparatus for inspecting resources of an application, the apparatus comprising:
a receiving module, configured to receive an inspection request sent by a client device, where the inspection request includes: a resource configuration table and a resource address list; the resource configuration table includes: information to configure a first resource of the application; the resource address list includes: an address of a second resource that the client device has;
the checking module is used for checking whether the second resources included in the resource address list include the first resources or not so as to perform resource checking on the first resources configured in the resource configuration table to obtain a checking result; the inspection result includes: a list of missing resources; the list of missing resources includes: information of at least one missing resource, the missing resource being: a resource present in the first resource and absent in the second resource;
and the sending module is used for sending the checking result to the client equipment.
15. An apparatus for inspecting resources of an application, comprising:
a sending module, configured to send a check request to a server, where the check request includes: a resource configuration table and a resource address list; the resource configuration table includes: information of a first resource of the configured application; the resource address list includes: the client device has an address of a second resource; the check request is used for enabling the server to check whether the second resources included in the resource address list include the first resources or not so as to perform resource check on the first resources configured by the resource configuration table to obtain a check result; the inspection result includes: a list of missing resources; the list of missing resources includes: information of at least one missing resource, the missing resource being: a resource present in the first resource and absent in the second resource;
a receiving module, configured to receive an inspection result returned by the server, where the inspection result includes: the list of missing resources.
16. A server, comprising: a memory and a processor; the memories are respectively connected with the processors;
the memory to store program instructions;
the processor, configured to implement the resource checking method of the application program according to any one of claims 1 to 11 when the program instructions are executed.
17. A client device, comprising: a memory and a processor; the memories are respectively connected with the processors;
the memory to store program instructions;
the processor, configured to implement the resource checking method of the application program according to claim 12 or 13 when the program instructions are executed.
18. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out a method for resource checking of an application program according to any one of claims 1 to 11.
19. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements the resource checking method of an application program according to claim 12 or 13.
CN201811258551.2A 2018-10-26 2018-10-26 Resource checking method, device, equipment and storage medium of application program Active CN109491699B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811258551.2A CN109491699B (en) 2018-10-26 2018-10-26 Resource checking method, device, equipment and storage medium of application program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811258551.2A CN109491699B (en) 2018-10-26 2018-10-26 Resource checking method, device, equipment and storage medium of application program

Publications (2)

Publication Number Publication Date
CN109491699A CN109491699A (en) 2019-03-19
CN109491699B true CN109491699B (en) 2022-04-15

Family

ID=65693159

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811258551.2A Active CN109491699B (en) 2018-10-26 2018-10-26 Resource checking method, device, equipment and storage medium of application program

Country Status (1)

Country Link
CN (1) CN109491699B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110413282B (en) * 2019-08-01 2024-01-30 腾讯科技(深圳)有限公司 Redundant resource processing method, device, equipment and storage medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104156243B (en) * 2014-08-05 2017-12-12 网际傲游(北京)科技有限公司 A kind of application distribution and the system and method for quick load operating
CN105389182A (en) * 2015-11-02 2016-03-09 广州华多网络科技有限公司 Software upgrading method and apparatus
US10601871B2 (en) * 2017-01-18 2020-03-24 International Business Machines Corporation Reconfiguration of security requirements for deployed components of applications
CN107203395A (en) * 2017-05-19 2017-09-26 北京京东尚科信息技术有限公司 Resource graded method, device and computer-readable recording medium and electronic equipment
CN108509209A (en) * 2018-04-08 2018-09-07 平安普惠企业管理有限公司 A kind of generation method, device, computer equipment and the storage medium of resource packet

Also Published As

Publication number Publication date
CN109491699A (en) 2019-03-19

Similar Documents

Publication Publication Date Title
CN108897691B (en) Data processing method, device, server and medium based on interface simulation service
CN109800258B (en) Data file deployment method, device, computer equipment and storage medium
CN103078945B (en) To the method and system that browser crash data processes
CN111190551B (en) Redis data migration system, migration method, migration device and terminal
CN109672608B (en) Method for transmitting messages according to time
CN109815112B (en) Data debugging method and device based on functional test and terminal equipment
CN112636992A (en) Dynamic routing method, device, equipment and storage medium
CN113608692A (en) Method, system, equipment and medium for verifying data consistency of storage system
CN112181430A (en) Code change statistical method and device, electronic equipment and storage medium
CN109491699B (en) Resource checking method, device, equipment and storage medium of application program
CN113282347B (en) Plug-in operation method, device, equipment and storage medium
CN114611039B (en) Analysis method and device of asynchronous loading rule, storage medium and electronic equipment
CN113031995B (en) Rule updating method and device, storage medium and electronic equipment
CN113179332B (en) Method, electronic device and storage medium for acquiring configuration information
CN112579472B (en) Automatic generation method and device for test cases
CN111736848B (en) Packet conflict positioning method, device, electronic equipment and readable storage medium
CN111538651A (en) Interface testing method, device, server and storage medium
CN112597109B (en) Data storage method, device, electronic equipment and storage medium
CN111459411B (en) Data migration method, device, equipment and storage medium
CN116108089A (en) Big data testing method, computer equipment and storage medium
CN117950994A (en) Interface testing method and device, electronic equipment and storage medium
CN113825166A (en) Base station testing method and device, electronic equipment and storage medium
CN116955120A (en) Test script generation method, device, computer equipment and storage medium
CN117171262A (en) Data synchronization method and device, storage medium and electronic equipment
CN112015666A (en) Web testing method and device based on contextPath

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