Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method for generating and testing internal test program of application program

An application and internal testing technology, applied in the field of mobile applications, can solve problems such as affecting the effect of grayscale publishing, information leakage of new functions, etc., to achieve good portability, avoid secondary development, and reduce costs.

Pending Publication Date: 2021-10-26
北京自如信息科技有限公司
View PDF0 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In view of this, the embodiment of the present invention provides an iOS system-based application internal test program generation and testing method to solve the grayscale release method in the prior art. Since there is no certain restriction on grayscale users, the Technical issues that lead to the leakage of some new function information in the application to be tested and affect the effect of gray scale release

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method for generating and testing internal test program of application program
  • Method for generating and testing internal test program of application program
  • Method for generating and testing internal test program of application program

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0030] Based on this, the embodiment of the present invention provides a method for generating an application internal test program based on an iOS system, such as figure 1 As shown, the method includes the following steps:

[0031] Step S101: Developing a login verification code module. The login verification code module uses method interaction technology to load the login verification code on the basis of executing the original startup code. In one embodiment, when developing a login verification code module, the corresponding relationship between the selector and the function pointer can be modified according to the method exchange technology, and the login verification code call can be added to the application startup entry function to generate the login verification code module. The login verification code module has the ability to exchange APP startup codes.

[0032] Specifically, you can use the Method Swizzling technology of Objective-C Runtime to dynamically change t...

Embodiment 2

[0042] The embodiment of the present invention also provides a method for internal testing of application programs based on the iOS system, such as figure 2 As shown, the test method includes the following steps,

[0043] Step S201: Install the internal test program package generated according to the iOS system-based application internal test program generation method described in the above embodiment into the iOS device. Specifically, the generated internal test program package can be pushed to all users using the corresponding APP, or in other words, the user can install the internal test program package according to the update prompt popped up by the corresponding application program.

[0044] Step S202: Open the application program installed according to the internal test package, and enter the login account and password in the pop-up login verification pop-up window. Specifically, when the application is opened after the installation is complete, a dynamic library conta...

Embodiment 3

[0050] The embodiment of the present invention provides an iOS system-based application internal test program generation device, such as Figure 4 As shown, the generating device includes:

[0051] The code generation module is used to develop the login verification code module. The login verification code module adopts method interaction technology to load the login verification code on the basis of executing the original startup code; for details, refer to the relevant description of step S101 in the above method embodiment.

[0052] A dynamic library generating module, configured to compile and generate a dynamic library according to the login verification code module; for details, refer to the relevant description of step S102 in the above method embodiment.

[0053] The internal test package generation module is used to inject the dynamic library into the source package of the application program as an internal test package. For details, refer to the related description ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a method for generating and testing an internal test program of an application program based on an iOS system. The method comprises the steps of: developing a login verification code module, wherein the login verification code module employs 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; injecting the dynamic library into a source package of the application program and re-signing to serve as an internal test program package. Through the implementation of the method, the developed login verification code module has the capability of exchanging APP starting codes and loading self calling, and a dynamic library is exported and generated through Xcode compiling; the dynamic library can be injected into any APP needing internal testing, a permission pop-up window function can be added into the dynamic library, and a hard code does not need to be added into a source code of the APP, so that plug and play is achieved; meanwhile, the generated dynamic library has good portability, does not depend on other APPs, and can run independently.

Description

technical field [0001] The invention relates to the technical field of mobile applications, in particular to an iOS system-based application internal test program generation and testing method. Background technique [0002] As the Internet enters the era of mobile Internet, APP (Application, application program) is widely used, and people gradually get used to the way of using APP client to surf the Internet, such as through WeChat APP, Alipay APP, Taobao APP and so on. For an APP program, it is necessary to ensure that its functions meet the definition of requirements, but also ensure that its performance is sufficiently optimized, its user interface (User Interface, UI) is beautiful enough, and it can have a good user experience. Internal testing is required before promotion, that is, grayscale release. [0003] Grayscale releases need to be released to specific groups of people for testing before they are officially released to the public. For example, before a certain ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F11/36G06F21/31
CPCG06F11/3672G06F11/3688G06F11/3684G06F21/31
Inventor 曲茵
Owner 北京自如信息科技有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products