CN113553271A - Method for generating and testing internal test program of application program - Google Patents

Method for generating and testing internal test program of application program Download PDF

Info

Publication number
CN113553271A
CN113553271A CN202110898880.9A CN202110898880A CN113553271A CN 113553271 A CN113553271 A CN 113553271A CN 202110898880 A CN202110898880 A CN 202110898880A CN 113553271 A CN113553271 A CN 113553271A
Authority
CN
China
Prior art keywords
internal test
login
program
package
application
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110898880.9A
Other languages
Chinese (zh)
Inventor
曲茵
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Ziroom Information Technology Co Ltd
Original Assignee
Beijing Ziroom Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Ziroom Information Technology Co Ltd filed Critical Beijing Ziroom Information Technology Co Ltd
Priority to CN202110898880.9A priority Critical patent/CN113553271A/en
Publication of CN113553271A publication Critical patent/CN113553271A/en
Pending legal-status Critical Current

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/3668Software testing
    • G06F11/3672Test management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/31User authentication

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • Computer Security & Cryptography (AREA)
  • Software Systems (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a method for generating and testing an internal test program of an application program based on an iOS system, which comprises the following steps: developing a login verification code module, wherein the login verification code module adopts a method interaction technology and loads a login verification code on the basis of executing an original starting code; compiling and generating a dynamic library according to the login verification code module; and injecting the dynamic library into a source package of the application program and re-signing the source package as an internal test program package. By implementing the invention, the developed login verification code module has the capabilities of exchanging APP starting codes and loading self-calling, and a dynamic library is generated by compiling and exporting Xcode. The dynamic library can be injected into any APP needing internal test, an authority popup function can be added into the APP, hard codes do not need to be added into source codes of the APP, and the APP can be used in a plug-and-play mode. Meanwhile, the generated dynamic library has good portability, does not depend on other APPs, and can run independently.

Description

Method for generating and testing internal test program of application program
Technical Field
The invention relates to the technical field of mobile application, in particular to a method for generating and testing an internal test program of an application program based on an iOS system.
Background
As the internet enters the era of mobile internet, APPs (Application programs) are widely used, and people are gradually accustomed to the way of surfing the internet by using APP clients, such as WeChat APPs, Paibao APPs, Taobao APPs, and the like. For an APP program, not only needs to ensure that functions of the APP program meet requirement definition, but also needs to ensure that performance of the APP program is sufficiently optimized, a User Interface (UI) of the APP program is sufficiently attractive, and better User experience can be achieved.
Gray scale publication requires that a particular demographic group be first published for testing before it can be formally published to the outside. For example, before a certain application program is released, a specific user group is selected as a gray level user, the installation package of the application program to be tested is directly issued to the gray level user for testing, and the gray level user feeds back the use experience to a third party after using the application program to be tested. However, the gray level publishing method does not limit the gray level user to a certain extent, which will cause leakage of some new function information in the application program to be tested, affect the purpose of gray level publishing, and cause unnecessary trouble to the developer of the application program.
Disclosure of Invention
In view of this, embodiments of the present invention provide a method for generating and testing an internal test program of an application program based on an iOS system, so as to solve the technical problem that a gray release effect is affected by leakage of some new function information in the application program to be tested due to the fact that a gray user is not limited in a gray release manner in the prior art.
The technical scheme provided by the invention is as follows:
a first aspect of an embodiment of the present invention provides an iOS system-based method for generating an internal test program of an application program, including: developing a login verification code module, wherein the login verification code module adopts a method interaction technology and loads a login verification code on the basis of executing an original starting code; compiling and generating a dynamic library according to the login verification code module; and injecting the dynamic library into a source package of the application program and re-signing the source package as an internal test program package.
Optionally, a login authentication code module is developed, the login authentication code module adopts a method interaction technology, and loads a login authentication code on the basis of executing an original start code, and the method includes: and developing a login authentication code module, modifying the corresponding relation between the selector and the function pointer according to the method exchange technology, adding login authentication code call in an application program entry start function, and generating the login authentication code module.
Optionally, the dynamic library is generated by compiling with an Xcode compiler; the file format of the dynamic library is the dylib format.
Optionally, injecting the dynamic library into a source package of an application, including: injecting the dynamic library into a binary file of the application source package using a binary tool.
A second aspect of the embodiments of the present invention provides an internal test method for an application based on an iOS system, in which an internal test package generated by the internal test program generation method for an application based on an iOS system according to any one of the first aspect and the first aspect of the embodiments of the present invention is installed in an iOS device; opening an application program installed according to the internal test program package, and inputting a login account and a password in a popped login verification popup window; judging whether the login account has internal testing qualification or not according to the input login account and the password; and when the user has the internal test qualification, controlling the login account to log in the application program, and displaying feedback prompt information for prompting the user to feed back the internal test qualification information.
A third aspect of the embodiments of the present invention provides an internal application test program generating apparatus based on an iOS system, including: the code generation module is used for generating a login authentication code module according to the method exchange technology; the dynamic library generating module is used for compiling and generating a dynamic library according to the login verification code module; and the internal test package generation module is used for injecting the dynamic library into a source package of an application program to be used as an internal test program package.
A fourth aspect of the present invention provides an internal test apparatus for an application based on an iOS system, including: an installation module, configured to install, into the iOS device, an internal test package generated by the internal test program generation method for an application based on the iOS system according to any one of the first aspect and the first aspect of the embodiment of the present invention; the login module is used for opening the application program installed according to the internal test program package and inputting a login account and a password in a popped login verification popup window; the verification module is used for judging whether the login account has internal testing qualification or not according to the input login account and the password; and the internal test module is used for controlling the login account to log in the application program when the internal test module has the internal test qualification, and displaying feedback prompt information for prompting the user to feed back the internal test experience information.
A fifth aspect of the embodiments of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions for causing the computer to execute the method for generating an internal application test program based on an iOS system according to any one of the first aspect and the first aspect of the embodiments of the present invention or the method for generating an internal application test program based on an iOS system according to the second aspect of the embodiments of the present invention.
A sixth aspect of an embodiment of the present invention provides an electronic device, including: the system comprises a memory and a processor, wherein the memory and the processor are communicatively connected with each other, the memory stores computer instructions, and the processor executes the computer instructions to execute the method for generating the internal application program test program based on the iOS system according to any one of the first aspect and the first aspect of the embodiment of the present invention or the method for generating the internal application program test program based on the iOS system according to the second aspect of the embodiment of the present invention.
The technical scheme provided by the invention has the following effects:
according to the method for generating the internal test program of the application program based on the iOS system, the developed login verification code module has the capabilities of exchanging the APP starting code and loading the APP starting code into the module for calling, and the dynamic library is generated by compiling and deriving the Xcode. The dynamic library can be injected into any APP needing internal test, the authority popup function can be rapidly added to any APP needing internal test, hard codes do not need to be added into source codes of the APPs, and the functions are plug-and-play. Meanwhile, the generated dynamic library has good portability, does not depend on other APPs, and can run independently. And the mode of injecting the dynamic library into the APP source package also avoids secondary development of the application program, and reduces the cost of internal test.
According to the internal test method of the application program based on the iOS system, when a user uses an APP installed in iOS equipment according to an internal test program package, after the APP is opened, a login verification window can be popped up, interaction between the user and the APP can be blocked by the login verification window, and the internal test can be carried out only when the user inputs a correct login account and a correct password. Therefore, the internal test method realizes the test of the specified internal test user through the internal test program package.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a flowchart of an iOS system based application internal test program generation method according to an embodiment of the present invention;
FIG. 2 is a block diagram of an internal test method of an application based on an iOS system according to an embodiment of the present invention;
FIG. 3 is a block diagram of a method for internal testing of an application based on an iOS system according to another embodiment of the present invention;
FIG. 4 is a block diagram of an internal test apparatus for an application based on an iOS system according to an embodiment of the present invention;
FIG. 5 is a block diagram of an internal test apparatus for an application based on an iOS system according to another embodiment of the present invention;
FIG. 6 is a schematic structural diagram of a computer-readable storage medium provided according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of an electronic 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.
As described in the background art, currently, when the APP performs the gray release, the APP directly issues the installation package of the application program to be tested to the gray user for testing, but the gray release mode does not limit the gray user to a certain extent. Therefore, in order to enable designated personnel to install the terminal, and unauthorized users cannot conduct internal testing, the login entrance popup window can be popped up after the APP is started. APP can only be used if the corresponding username and password are owned.
However, the solution for setting the popup window of the login portal is to add hard code into the code, that is, directly embed the corresponding code of the popup window into the running code of the APP application. However, when the APP is formally on-line, the hard code recoding needs to be deleted, so that not only is the packing repeated, but also the internal test code risks being brought on-line.
Example 1
Based on this, an embodiment of the present invention provides an iOS system-based application internal test program generation method, as shown in fig. 1, the method includes the following steps:
step S101: and developing a login verification code module, wherein the login verification code module adopts a method interaction technology and loads the login verification code on the basis of executing the original starting code. In an embodiment, a login authentication code module is developed, the corresponding relation between the selector and the function pointer can be modified according to a method exchange technology, login authentication code calling is added into an application program starting entry function, and the login authentication code module is generated and has the capability of exchanging APP starting codes.
Specifically, the Method Swizzling technology of Objective-C Runtime can be used to dynamically change the correspondence between SEL and IMP, and the didfinishlaunchwithoptions function is processed, and a login authentication code call is added to the function.
Wherein at runtime, Selectors (SEL) are used to represent the name of a method. The Selector is a C-type string that is registered (or mapped) at runtime. The Selector is generated by a compiler and the mapping of names and implementations is done automatically by the runtime when a class is loaded into memory. Impplementation (IMP for short) is the place that points to the very beginning of an Implementation of a method. The method is implemented using standard C-method calls for current CPU architectures.
At runtime, Class (Class) maintains a message distribution list to resolve the correct delivery of messages. The entry to each message list is a Method (Method) that maps a pair of key-value pairs, where the key is the name Selector (SEL) of the Method and the value points to the function pointer Implementation (IMP) implemented by the Method. The message distribution list of the class can be modified by adopting a Method switzling technology (Method switzling), so that the existing selector maps another implementation instance-position, namely the corresponding relation between the SEL and the IMP is changed.
Thus, by means of the Method Swizzling technique, a boot entry function (didfinishlaunchwithoptions function) can be processed, and a login authentication code call is added to the function. Therefore, when the APP is started, the login verification popup window can be popped up, and the specified user is guaranteed to carry out internal test.
Step S102: compiling and generating a dynamic library according to the login verification code module; in one embodiment, for the generated login authentication code module, an Xcode compiler may be employed to compile the generated dynamic library in the dylib format. Specifically, the dynamic library comprises a section of packed code, and is loaded when the application program is started, so that a login authentication window can be popped up. Dynamic libraries may also be referred to as dynamically linked libraries.
Step S103: and injecting the dynamic library into a source package of the application program and re-signing the source package as an internal test program package.
Specifically, the generated dynamic library may be injected into a source package of the application program, where the source package of the application program includes all codes of the APP in normal operation, and at the time of injection, the dynamic library may be injected into a binary file of the source package of the application program by using a binary tool.
After the dynamic library is injected, re-signing the source packet injected into the dynamic library; wherein the dynamic library is injected into the source packet of the APP, which in effect modifies the original APP. In this case, if the APP installation package after code injection is directly installed, the APP installation package cannot pass the digital signature verification of the iOS device provider such as apple, and the APP installation package after code injection needs to be re-signed, and the original digital signature is replaced with the digital signature obtained after re-signing, so that the digital signature verification of the iOS device provider is passed. The source package after re-signing can be successfully installed in the iOS device only when the source package is used as an internal test package. When re-signing is carried out, all executable files, dynamic libraries, bundle, frame and plugin in the installation package can be traversed recursively, the APP developer is used for carrying out digital signature on the APP developer by using the digital certificate, and the obtained digital signature is used for replacing the original digital signature.
According to the method for generating the internal test program of the application program based on the iOS system, the developed login verification code module has the capabilities of exchanging the APP starting code and loading the APP starting code into the module for calling, and the dynamic library is generated by compiling and deriving the Xcode. This dynamic storehouse can inject into arbitrary APP, can add the permission popup window function for any APP that wants interior survey fast, need not add hard code, plug-and-play in APP's source code. Meanwhile, the generated dynamic library has good portability, does not depend on other APPs, and can run independently. And the mode of injecting the dynamic library into the APP source package also avoids secondary development of the application program, and reduces the cost of internal test.
Example 2
An embodiment of the present invention further provides an internal test method for an application based on an iOS system, as shown in fig. 2, the test method includes the following steps,
step S201: the internal test package generated by the method for generating the internal test program of the application based on the iOS system according to the above-described embodiment is installed into the iOS apparatus. Specifically, the generated internal test package may be pushed to all users using corresponding APPs, or the user may install the internal test package according to an update prompt popped up by the corresponding application.
Step S202: and opening an application program installed according to the internal test program package, and inputting a login account and a password in a popped login verification popup window. Specifically, when the application is opened after installation is completed, a dynamic library containing login authentication is injected into an internal test program package, and therefore the APP pops up a login authentication window to prompt a user to input a login account and a password.
Step S203: and judging whether the login account has internal testing qualification or not according to the input login account and the password. Specifically, account information with internal qualification may be stored in advance, for example, users in a specific range, such as users reaching a certain level, users in a certain area, or users in a certain QQ group, may be selected, and the selected users may be set as users with internal qualification. When the internal testing qualification is judged, the login account can be matched with the pre-stored account information, whether the account information consistent with the login account can be matched or not is judged, if yes, the login account is judged to have the internal testing qualification, and otherwise, the login account is judged not to have the internal testing qualification.
Step S204: and when the user has the internal test qualification, controlling the login account to log in the application program, and displaying prompt information for prompting the user to feed back the internal test experience information. Specifically, after the internal test qualification verification, whether the login account number and the password are matched needs to be verified, and when the login account number and the password are matched, the user can control the login account number to login the application program. In addition, when the internal test qualification is judged not to be available, guidance information can be prompted to guide the user to audit the internal test qualification. Specifically, the account with the internal test qualification can be managed according to a preset judgment standard, for example, when a certain account is judged not to be logged in within one month, the account is cancelled with the internal test qualification; or receiving a new account application, and adding the account into the account information with the internal measurement qualification after judging that the account meets the evaluation standard of the internal measurement qualification.
According to the internal test method of the application program based on the iOS system, when a user uses an APP installed in iOS equipment according to an internal test program package, after the APP is opened, a login verification window can be popped up, interaction between the user and the APP can be blocked by the login verification window, and the internal test can be carried out only when the user inputs a correct login account and a correct password. Therefore, the internal test method realizes the test of the specified internal test user through the internal test program package.
In one embodiment, as shown in fig. 3, the internal test method for an application based on an iOS system may be implemented according to the following procedures: compiling an APP to be subjected to internal testing to generate a source package of the application program; and then injecting the generated dynamic library into the source package, and performing re-signing to obtain an internal test program package. And after the internal test program package is installed and opened, inputting a correct login account and a correct password in a popped login verification window to perform internal test. After the internal test is finished, if the feedback is not problematic, the source package of the application program can be directly put on shelf and pushed to all users for updating.
Example 3
An embodiment of the present invention provides an internal application test program generating apparatus based on an iOS system, and as shown in fig. 4, the generating apparatus includes:
the code generation module is used for developing a login authentication code module, and the login authentication code module adopts a method interaction technology and loads a login authentication code on the basis of executing an original starting code; for details, refer to the related description of step S101 in the above method embodiment.
The dynamic library generating module is used for compiling and generating a dynamic library according to the login verification code module; for details, refer to the related description of step S102 in the above method embodiment.
And the internal test package generation module is used for injecting the dynamic library into a source package of an application program to be used as an internal test program package. For details, refer to the related description of step S103 in the above method embodiment.
According to the device for generating the internal test program of the application program based on the iOS system, the developed login verification code module has the capabilities of exchanging the APP starting code and loading the APP starting code into the device for calling, and the dynamic library is generated by compiling and deriving the Xcode. This dynamic storehouse can inject into arbitrary APP, can add the permission popup window function for any APP that wants interior survey fast, need not add hard code, plug-and-play in APP's source code. Meanwhile, the generated dynamic library has good portability, does not depend on other APPs, and can run independently. And the mode of injecting the dynamic library into the APP source package also avoids secondary development of the application program, and reduces the cost of internal test.
For a functional description of the device for generating the internal application test program based on the iOS system according to the embodiment of the present invention, reference is made to the description of the method for generating the internal application test program based on the iOS system in the above embodiment.
Example 4
An embodiment of the present invention provides an internal test apparatus for an application based on an iOS system, as shown in fig. 5, the internal test apparatus includes:
an installation module, configured to install the internal test package generated by the method for generating an internal test program of an application based on the iOS system according to the foregoing embodiment into the iOS device; for details, refer to the related description of step S201 in the above method embodiment.
The login module is used for opening the application program installed according to the internal test program package and inputting a login account and a password in a popped login verification popup window; for details, refer to the related description of step S202 in the above method embodiment.
The verification module is used for judging whether the login account has internal testing qualification or not according to the input login account and the password; for details, refer to the related description of step S203 in the above method embodiment.
And the internal test module is used for controlling the login account to log in the application program when the internal test module has the internal test qualification, and displaying feedback prompt information for prompting the user to feed back the internal test experience information. For details, refer to the related description of step S204 in the above method embodiment.
According to the internal test device for the application program based on the iOS system, provided by the embodiment of the invention, when a user uses the APP installed in the iOS device according to the internal test program package, after the APP is opened, a login verification window can be popped up, the window can block the interaction between the user and the APP, and the internal test can be carried out only when the user inputs a correct login account and a correct password. Therefore, the internal test method realizes the test of the specified internal test user through the internal test program package.
The functional description of the internal test device for the application based on the iOS system according to the embodiment of the present invention refers to the description of the internal test method for the application based on the iOS system in the above embodiment.
Example 4
An embodiment of the present invention further provides a storage medium, as shown in fig. 6, on which a computer program 601 is stored, where the instructions, when executed by a processor, implement the steps of the internal test method for an application based on an IOS system in the foregoing embodiment. The storage medium is also stored with audio and video stream data, characteristic frame data, an interactive request signaling, encrypted data, preset data size and the like. The storage medium may be a magnetic Disk, an optical Disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a Flash Memory (Flash Memory), a Hard Disk (Hard Disk Drive, abbreviated as HDD) or a Solid State Drive (SSD), etc.; the storage medium may also comprise a combination of memories of the kind described above.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic Disk, an optical Disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a Flash Memory (Flash Memory), a Hard Disk (Hard Disk Drive, abbreviated as HDD), a Solid State Drive (SSD), or the like; the storage medium may also comprise a combination of memories of the kind described above.
Example 6
An embodiment of the present invention further provides an electronic device, as shown in fig. 7, the electronic device may include a processor 51 and a memory 52, where the processor 51 and the memory 52 may be connected by a bus or in another manner, and fig. 7 takes the connection by the bus as an example.
The processor 51 may be a Central Processing Unit (CPU). The Processor 51 may also be other general purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, or combinations thereof.
The memory 52, which is a non-transitory computer readable storage medium, may be used to store non-transitory software programs, non-transitory computer executable programs, and modules, such as the corresponding program instructions/modules in the embodiments of the present invention. The processor 51 executes various functional applications and data processing of the processor by running non-transitory software programs, instructions and modules stored in the memory 52, that is, the internal test method of the application program based on the IOS system in the above method embodiment is implemented.
The memory 52 may include a storage program area and a storage data area, wherein the storage program area may store an operating device, an application program required for at least one function; the storage data area may store data created by the processor 51, and the like. Further, the memory 52 may include high speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, the memory 52 may optionally include memory located remotely from the processor 51, and these remote memories may be connected to the processor 51 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The one or more modules are stored in the memory 52 and, when executed by the processor 51, perform the IOS system based application internal test method of the embodiment shown in FIGS. 1-2.
The details of the electronic device may be understood by referring to the corresponding descriptions and effects in the embodiments shown in fig. 1 to fig. 2, and are not described herein again.
Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the invention, and such modifications and variations fall within the scope defined by the appended claims.

Claims (9)

1. An internal test program generation method for an application program based on an iOS system is characterized by comprising the following steps:
developing a login verification code module, wherein the login verification code module adopts a method interaction technology and loads a login verification code on the basis of executing an original starting code;
compiling and generating a dynamic library according to the login verification code module;
and injecting the dynamic library into a source package of the application program and re-signing the source package as an internal test program package.
2. The method for generating the internal test program of the application program based on the iOS system as claimed in claim 1, wherein a login authentication code module is developed, the login authentication code module employs a method interaction technique to load the login authentication code on the basis of executing the original boot code, comprising:
and developing a login authentication code module, modifying the corresponding relation between the selector and the function pointer according to the method exchange technology, adding login authentication code call in an application program entry start function, and generating the login authentication code module.
3. The iOS system-based application internal test program generating method according to claim 1,
the dynamic library is generated by adopting an Xcode compiler for compiling;
the file format of the dynamic library is the dylib format.
4. The iOS system-based application internal test program generation method of claim 1, wherein injecting the dynamic library into a source package of an application comprises:
injecting the dynamic library into a binary file of the application source package using a binary tool.
5. An internal test method of an application program based on an iOS system is characterized in that,
installing the internal test package generated by the iOS system based application internal test program generation method according to any one of claims 1 to 4 into the iOS apparatus;
opening an application program installed according to the internal test program package, and inputting a login account and a password in a popped login verification popup window;
judging whether the login account has internal testing qualification or not according to the input login account and the password;
and when the user has the internal test qualification, controlling the login account to log in the application program, and displaying feedback prompt information for prompting the user to feed back the internal test qualification information.
6. An internal application test program generating apparatus based on an iOS system, comprising:
the code generation module is used for developing a login authentication code module, and the login authentication code module adopts a method interaction technology and loads a login authentication code on the basis of executing an original starting code;
the dynamic library generating module is used for compiling and generating a dynamic library according to the login verification code module;
and the internal test package generation module is used for injecting the dynamic library into a source package of the application program and re-signing the source package to be used as an internal test program package.
7. An internal application test device based on an iOS system, comprising:
an installation module for installing the internal test package generated by the iOS system based application internal test program generation method according to any one of claims 1 to 4 into the iOS device;
the login module is used for opening the application program installed according to the internal test program package and inputting a login account and a password in a popped login verification popup window;
the verification module is used for judging whether the login account has internal testing qualification or not according to the input login account and the password;
and the internal test module is used for controlling the login account to log in the application program when the internal test module has the internal test qualification, and displaying feedback prompt information for prompting the user to feed back the internal test experience information.
8. A computer-readable storage medium storing computer instructions for causing a computer to execute the iOS system-based application internal test program generating method of any one of claims 1 to 4 or the iOS system-based application internal test method of claim 5.
9. An electronic device, comprising: a memory and a processor, the memory and the processor being communicatively connected to each other, the memory storing computer instructions, the processor executing the computer instructions to perform the iOS system-based application internal test program generating method of any one of claims 1 to 4 or the iOS system-based application internal test method of claim 5.
CN202110898880.9A 2021-08-06 2021-08-06 Method for generating and testing internal test program of application program Pending CN113553271A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110898880.9A CN113553271A (en) 2021-08-06 2021-08-06 Method for generating and testing internal test program of application program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110898880.9A CN113553271A (en) 2021-08-06 2021-08-06 Method for generating and testing internal test program of application program

Publications (1)

Publication Number Publication Date
CN113553271A true CN113553271A (en) 2021-10-26

Family

ID=78105363

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110898880.9A Pending CN113553271A (en) 2021-08-06 2021-08-06 Method for generating and testing internal test program of application program

Country Status (1)

Country Link
CN (1) CN113553271A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113626033A (en) * 2021-10-13 2021-11-09 广州市玄武无线科技股份有限公司 Mobile terminal interface modification method and device, computer terminal equipment and medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113626033A (en) * 2021-10-13 2021-11-09 广州市玄武无线科技股份有限公司 Mobile terminal interface modification method and device, computer terminal equipment and medium
CN113626033B (en) * 2021-10-13 2022-03-29 广州市玄武无线科技股份有限公司 Mobile terminal interface modification method and device, computer terminal equipment and medium

Similar Documents

Publication Publication Date Title
US20170085591A1 (en) Fetching a policy definition library from a policy server at mobile device runtime of an application package to control access to mobile device resources
CN107733847B (en) Method and device for platform login website, computer equipment and readable storage medium
CN110502222B (en) AAR method, apparatus, medium, and device for outbound dependency on internal base repository
CN108628743B (en) Application program testing method, device, equipment and storage medium
US11204983B2 (en) Scoring cloud packages for risk assessment automation
CN110333868B (en) Method and system for generating installation packages of sub-applications
CN108197469B (en) Method and device for verifying application program, storage medium and electronic equipment
CN107870793B (en) Method and device for loading SO file in application program
US9971582B2 (en) Selecting application wrapper logic components based on features of a mobile application to be wrapped
CN108259479B (en) Business data processing method, client and computer readable storage medium
CN108229144B (en) Verification method of application program, terminal equipment and storage medium
CN109891415B (en) Securing a Web server for an unauthorized client application
US10430166B2 (en) Resource injection for application wrapping
CN106709281B (en) Patch granting and acquisition methods, device
CN111400760B (en) Method, device, server and storage medium for web application to access database
CN110928571A (en) Business program development method and device
CN113553271A (en) Method for generating and testing internal test program of application program
CN114461223A (en) Code generation method and device and terminal equipment
CN112416395A (en) Hot repair updating method and device
US9354849B2 (en) Modification of compiled applications and application management using retrievable policies
CN110581863B (en) Single sign-on method, device, equipment and medium for cloud platform
CN109635558B (en) Access control method, device and system
CN113220314B (en) APP resource loading and APK generation method, device, equipment and medium
CN115407981A (en) Front-end data mock method and system based on middleware adaptation
CN114462101A (en) Processing system, method and device for application apk packet

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