A distribution test method, device and computer equipment based on automated internal

Through the automated distribution test method, complex manual operation and error positioning problems in delivery application testing are solved, automated processing and rapid error tracking are realized, cost and time are reduced, and efficiency is improved.

CN113961474BActive Publication Date: 2024-11-08SHENZHEN YUNYIN DIGITAL INTELLIGENCE TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111399242.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-19
Publication Date
2024-11-08
Estimated Expiration
2041-11-19

AI Technical Summary

Technical Problem

There are complex manual operation processes in the delivery and distribution process of application tests, which are prone to errors, resulting in long test cycles, high personnel costs, and lack of detailed error information when the application crashes, making it difficult to quickly locate problems.

Method used

Adopt an automation-based distribution testing method, and automatically execute configurations through front-end web interaction, database recording and scripts, integrate dynamic Crash collection functions, reduce manual operations, and realize automated processing and fast error tracking.

Benefits of technology

It reduces the error rate and time of manual operation, reduces the number of personnel cooperation, facilitates the defect inspection of developers, improves work efficiency, and realizes self-service updates and real-time download statistics.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113961474B_ABST
    Figure CN113961474B_ABST
Patent Text Reader

Abstract

The present application relates to the field of delivery application test distribution technology, which is used to reduce manual operations. Specifically disclosed is a distribution test method, device and computer equipment based on automation internal, which includes: uploading the tested APP on the web front end; unpacking the ipa, flowing the dynamic library generated by compiling the "Collect Crash" tweak project into the APP, and repackaging; obtaining the packaged file; the front-end web sends the authenticated description file; adding the description file, uploading the device information to the back end; the server records the device information and stores it in the database; according to the tested client, select the Apple account, start the script for relevant configuration; capture the Apple Developer Center request, write it into a preset script, and simulate manual operation; import the configuration file, unpack, re-sign, package, and generate a new plist file for the ipa to be tested; redirect the test device to the address to complete the download distribution plist address and complete the installation; send the test information to the developer according to the preset rules.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of delivery application test distribution, and in particular to a distribution test method, apparatus and computer equipment based on automated internal. Background Art

[0002] At present, there are a large number of complex manual operation processes in the process of delivering application testing and distribution. These operation processes require a certain learning cost and rely on manual experience for configuration. The process is too cumbersome and complex, and prone to errors. The members of each link in the process also rely on the members of the previous link to connect, and the cycle time is too long. What's more, when it is necessary to add new test equipment or replace testers, the relevant personnel need to operate again. Most of these processes are in a repetitive fixed labor process, resulting in a huge waste of personnel costs.

[0003] Another problem is that during the application testing phase, when the application crashes, there is no relevant error information. As a result, when the testers give feedback to the developers, there is a lack of detailed error causes. The developers are also unable to quickly locate the problem and reproduce it.

[0004] This method will solve the above problems by segmenting and sorting out most of the processes and resolving the pain point that distribution requires manual operation.

[0005] According to the usage scenario, it is finely divided into simple front-end web interaction, database records, and script automation to execute configuration and distribution operations.

[0006] At the same time, a set of dynamic Crash collection functions is injected into ipa, which can be effective in various APP occasions after configuration.

[0007] The implementation of this system will reduce the error rate of manual operation, reduce manual operation time, and reduce the number of manual coordination times.

[0008] It is convenient for developers to reduce the difficulty of defect troubleshooting, obtain the time when the error occurred, understand the scope of the error, quickly track the error stack, and improve work efficiency. Summary of the invention

[0009] The present application provides a distribution test method, apparatus and computer equipment based on automated internal system to greatly reduce laborious and time-consuming manual operations.

[0010] In a first aspect, the present application provides a distribution testing method based on automated internal systems, the method comprising:

[0011] Developers upload the APP to be tested on the web front end;

[0012] After storing the ipa, unpack it, compile the dynamic library generated by the tweak project of "Collect Crash" into the APP, and then repackage it;

[0013] Get the repackaged file;

[0014] The front-end web sends the authenticated mobileconfig description file;

[0015] Add description files to the test device and upload device information to the backend;

[0016] The server records the device information and stores it in the database;

[0017] According to the client being tested, select the Apple account in the database and start the script to perform relevant configuration;

[0018] According to the request of capturing Apple Developer Center, a preset script is written to simulate logging into the Developer Center, adding devices, setting configuration file information, and downloading the configuration file to the local computer;

[0019] Import the configuration file, unpack, re-sign, and package the ipa file to be tested, and generate a new plist file;

[0020] The test device is redirected to the address to complete the download and distribution plist address and complete the installation;

[0021] If the APP crashes unexpectedly, the exception will be recorded in the sandbox of the test device;

[0022] Send test information to developers according to preset rules.

[0023] In a second aspect, the present application further provides a distribution test device based on automation internal, the device comprising:

[0024] The repackaging unit is used by developers to upload the tested APP on the web front end, unpack the ipa after storage, flow the dynamic library generated by compiling the tweak project of "Collect Crash" into the APP, and then repack it;

[0025] The configuration unit is used to obtain the repackaged files, the front-end web sends the authenticated mobileconfig description file, the test device adds the description file, uploads the device information to the back-end, the server records the device information, stores it in the database, and selects the Apple account in the database according to the tested client, and starts the script to perform relevant configuration;

[0026] The script simulation unit is used to write preset scripts based on the requests from the Apple Developer Center, simulate logging into the Developer Center, add devices, set configuration file information, download configuration files to the local computer, import configuration files, unpack, re-sign, and package the ipa file to be tested, and generate a new plist file.

[0027] Install the test unit, which is used to redirect the test device to the address to complete the download and distribution of the plist address and complete the installation. If the APP crashes abnormally, the abnormality will be recorded in the sandbox of the test device;

[0028] The feedback unit is used to send test information to developers according to preset rules.

[0029] In a third aspect, the present application also provides a computer device, comprising a memory and a processor; the memory is used to store a computer program; the processor is used to execute the computer program and implement the above-mentioned automated internal distribution testing method when executing the computer program.

[0030] The present application discloses a distribution test method, device and computer equipment based on automation internal, which can achieve more automated processing and less manual intervention, greatly reducing laborious and laborious manual operation behaviors. Developers only need to upload IPA files to achieve self-service updates and real-time download statistics. Testers only need to access the page to automatically collect device information, configure relevant certificate configuration files, and achieve stable and efficient distribution. The integrated collection of Crash function is convenient for developers again to quickly track the error stack. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0032] Figure 1 is a schematic flow chart of an automated internal distribution test method provided by an embodiment of the present application;

[0033] Figure 2 yes Figure 1 A schematic flow chart of the sub-steps of the automated internal distribution test method;

[0034] Figure 3 A schematic block diagram of a distribution test device based on automation internally provided in an embodiment of the present application;

[0035] Figure 4A schematic block diagram of the structure of a computer device provided in one embodiment of the present application. DETAILED DESCRIPTION

[0036] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0037] The flowcharts shown in the accompanying drawings are only examples and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps may also be decomposed, combined or partially merged, so the actual execution order may change according to actual conditions.

[0038] The embodiment of the present application provides a distribution test method, device and computer equipment based on automation internal, wherein the method can be applied in a terminal or a server to reduce manual intervention and manual operation.

[0039] In conjunction with the accompanying drawings, some embodiments of the present application are described in detail below. In the absence of conflict, the following embodiments and features in the embodiments can be combined with each other.

[0040] See also Figure 1 , Figure 1 This is a schematic flow chart of a distribution test method based on automated internal control provided by an embodiment of the present application. The method includes steps S1 to S13.

[0041] S1. The developer uploads the APP to be tested on the web front end.

[0042] S2. After storing the ipa, unpack it, check the UDID, and record it in the library. Then compile the dynamic library generated by the tweak project of "Collect Crash" and flow it into the APP, and then repackage it.

[0043] The dynamic library generated by compiling the "Collect Crash" tweak project is flowed into the APP and then repackaged to facilitate tracking of the error stack during installation and testing.

[0044] The essence of tweak is the dynamic library of iOS platform. There are two types of dynamic libraries on iOS platform, dylib and framework. Framework is more commonly used by developers, while dylib is relatively less used, such as libsqlite.dylib, libz.dylib, etc. Tweak uses the dynamic library in the form of dylib.

[0045] S3. Obtain the repackaged file.

[0046] Specifically, the tester can scan the QR code to go to the specified web page to obtain the repackaged file.

[0047] S4. The front-end web sends the authenticated mobileconfig description file.

[0048] Among them, the mobileconfig file is a configuration file created for devices running iOS, macOS, watchOS, or tvOS. It contains device setting information, such as password policies, access permissions, and proxy connection information, as well as VPN, email, and calendar settings. The mobileconfig file is often used to deploy and enroll Apple device configurations in corporate and school networks.

[0049] MobileConfig files are typically hosted by a remote configuration file service that communicates with an Apple device to configure and register it. When transmitted, MobileConfig files can be digitally signed so that the information is sent securely.

[0050] S5. Add a description file to the test device and upload the device information to the backend.

[0051] S6. The server records the device information and stores it in a database.

[0052] Specifically, the server receives the returned device information data (POST XML stream), parses the XML, and records the information of the mobile device into the database. This information includes: UDID, IMEI, ICCID, VERSION PRODUC, and createTime. UDID refers to the unique device identifier of the device. Mobile advertisers and game network operators often need to use UDID to identify player users and track user activities. IMEI is the International Mobile Equipment Identity, commonly known as the mobile phone serial number or "serial number" of the mobile phone. It is used to identify each independent mobile phone and other mobile communication devices in the mobile phone network, which is equivalent to the ID card of the mobile phone.

[0053] S7. According to the client under test, select the Apple account in the database and start the script to perform relevant configuration.

[0054] Specifically, the Apple account is pre-stored in the database for testers to choose and use. The database is queried to see if the device has a UDID. If so, the package path is returned; if not, the account contained in the library is queried based on the certificate-related information of the package.

[0055] S8. Based on the captured Apple Developer Center request, a preset script is written to simulate logging into the Developer Center, adding devices, setting configuration file information, and downloading configuration files to local operations.

[0056] The script performs the following operations: performing a manual simulation of fasteners in the past, capturing network requests based on Charles (a packet capture software) or Firefox browser; obtaining the corresponding interface, request parameters, and return parameters based on the capture; performing manual coding to simulate such requests based on the above information, and then automatically executing the processing according to this service.

[0057] Take "Add device number" as an example:

[0058] Post request

[0059] filename:account / device / addDevices.action

[0060] Request parameters: deviceNames deviceNumbers devicePlatforms register teamId

[0061] Return parameter: devices failedDevices

[0062] S9. Import the configuration file, unpack, re-sign, package the ipa to be tested, and generate a new plist file.

[0063] Import the downloaded configuration file, unpack the ipa file to be tested, re-sign it with the new configuration file, generate an ipa package, and change the new plist file for the ipa package.

[0064] S10. The test device is redirected to the address to complete the download and distribution of the plist address and complete the installation.

[0065] S11. If the APP crashes abnormally, the exception will be recorded in the sandbox of the test device.

[0066] During the testing phase of this step, if the APP crashes due to an exception, the exception will be recorded in the sandbox of the test device and uploaded back to the backend the next time the APP is entered. The recorded parameters are appName version schemedeviceModel deviceVersion userId logName timeStamp createTime.

[0067] In some optional embodiments, S11 includes steps S111 - S114 .

[0068] S111. APP crashes unexpectedly. Use NSException and NSSetUncaughtExceptionHandler to handle the exception.

[0069] S112. Save the exception as a txt file in the device sandbox.

[0070] S113. At the same time, the content error in txt has been informed to the current tester, and the reason is displayed. You can try to click "Continue" to continue running (partially available, not complete program running), and "Exit" to exit the APP.

[0071] Take array out of bounds as an example. In the past, array out of bounds would cause the APP to crash. However, in step S113, after being informed of the crash caused by out of bounds, click "Continue" and the interface will remain at the out of bounds stage, and a small amount of UI interaction can be performed. If you need to rely on the array part, it will not run. This is equivalent to a bicycle with a flat tire. Under normal circumstances, the bicycle cannot be used, but you can still use the bicycle with a flat tire, although it may cause more errors.

[0072] S114. When the APP is entered next time, the APP silently transmits the information back to the backend.

[0073] S12. Send the test results to the developer according to the preset rules.

[0074] Specifically, you can preset rules, perform immediate or scheduled tasks, summarize relevant test information, and send it to developers in the form of emails.

[0075] The method provided by the above embodiment has more automated processing and less manual intervention, which greatly reduces the laborious and laborious manual operation behavior. Developers only need to upload the IPA file to achieve self-service update and real-time download statistics. Testers only need to visit the page to automatically collect device information, configure relevant certificate configuration files, and achieve stable and efficient distribution. The integrated Crash collection function is convenient for developers again to quickly track the error stack.

[0076] In an optional embodiment, S2 includes steps S21-S27.

[0077] S21. Store the APP in the form of binary stream.

[0078] S22. Unpack the ipa file.

[0079] Execute Unzip through the shell script to unpack the ipa package.

[0080] S23. Find the corresponding certificate file, check the UDID, and record it in the database.

[0081] Use the shell script to access the app directory to find the corresponding certificate file embedded.mobileprovision, execute security cms to extract the plist, and then check if the plist contains UDID and record it in the database.

[0082] S24. Compile the tweak project of the "Collect Crash" function and obtain a dynamic library after compilation.

[0083] The shell script will compile the tweak project of the "Collect Crash" function and generate a dynamic library .dylib after compilation.

[0084] S25. Change the dynamic library dependency and inject the dynamic library.

[0085] The shell script changes the dynamic library dependency and injects the dynamic library.

[0086] S26, then package the ipa.

[0087] The shell script then re-signs and packages the ipa.

[0088] S27. Record to database.

[0089] Recorded in the database: appId appName version path createTime totaldowns.

[0090] See also Figure 3 , Figure 3 It is a schematic block diagram of an automated internal distribution test device provided in one embodiment of the present application. The device can be configured in a server and used for an automated internal distribution test method.

[0091] like Figure 3 As shown, the device 200 includes: a repackaging unit 201, a configuration unit 202, a script simulation unit 203, an installation test unit 204 and a feedback unit 205.

[0092] The repackaging unit 201 is used for developers to upload the tested APP on the web front end, unpack the ipa after storage, flow the dynamic library generated after compiling the tweak project of "Collect Crash" into the APP, and then repack it;

[0093] Configuration unit 202, used to obtain the repackaged file, the front-end web sends the authenticated mobileconfig description file, the test device adds the description file, uploads the device information to the back-end, the server records the device information, stores it in the database, selects the Apple account in the database according to the tested client, and starts the script to perform relevant configuration;

[0094] The script simulation unit 203 is used to write a preset script according to the captured Apple Developer Center request, simulate logging into the Developer Center, add a device, set configuration file information, download the configuration file to the local, import the configuration file, unpack, re-sign, and package the ipa to be tested, and generate a new plist file;

[0095] The installation test unit 204 is used to redirect the test device to the address to complete the download and distribution of the plist address and complete the installation. If the APP crashes abnormally, the abnormality is recorded in the sandbox of the test device;

[0096] The feedback unit 205 is used to send the test information to the developer according to the preset rules.

[0097] It should be noted that those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the above-described device and each unit can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.

[0098] The above-mentioned device can be implemented in the form of a computer program. Figure 4 Runs on the computer device shown.

[0099] See also Figure 4 , Figure 4 1 is a schematic block diagram of a computer device provided in an embodiment of the present application. The computer device may be a server or a terminal.

[0100] See also Figure 4 The computer device includes a processor, a memory and a network interface connected through a system bus, wherein the memory may include a non-volatile storage medium and an internal memory.

[0101] The non-volatile storage medium can store an operating system and a computer program. The computer program includes program instructions, and when the program instructions are executed, the processor can execute any distribution test method based on the automation interior.

[0102] The processor is used to provide computing and control capabilities and support the operation of the entire computer equipment.

[0103] The internal memory provides an environment for the operation of the computer program in the non-volatile storage medium. When the computer program is executed by the processor, the processor can execute any distribution test method based on the automation internal.

[0104] The network interface is used for network communication, such as sending assigned tasks, etc. Those skilled in the art will understand that Figure 4 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0105] It should be understood that the processor may be a central processing unit (CPU), and the processor may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Among them, the general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.

[0106] In one embodiment, the processor is used to run a computer program stored in the memory to implement the following steps:

[0107] Developers upload the APP to be tested on the web front end;

[0108] After storing the ipa, unpack it, compile the dynamic library generated by the tweak project of "Collect Crash" into the APP, and then repackage it;

[0109] Get the repackaged file;

[0110] The front-end web sends the authenticated mobileconfig description file;

[0111] Add description files to the test device and upload device information to the backend;

[0112] The server records the device information and stores it in the database;

[0113] According to the client being tested, select the Apple account in the database and start the script to perform relevant configuration;

[0114] According to the request of capturing Apple Developer Center, a preset script is written to simulate logging into the Developer Center, adding devices, setting configuration file information, and downloading the configuration file to the local computer;

[0115] Import the configuration file, unpack, re-sign, and package the ipa file to be tested, and generate a new plist file;

[0116] The test device is redirected to the address to complete the download and distribution plist address and complete the installation;

[0117] If the APP crashes unexpectedly, the exception will be recorded in the sandbox of the test device;

[0118] Send test information to developers according to preset rules.

[0119] A computer-readable storage medium is also provided in an embodiment of the present application, wherein the computer-readable storage medium stores a computer program, wherein the computer program includes program instructions, and the processor executes the program instructions to implement any one of the automated internal distribution testing methods provided in the embodiments of the present application.

[0120] The computer-readable storage medium may be an internal storage unit of the computer device described in the foregoing embodiment, such as a hard disk or memory of the computer device. The computer-readable storage medium may also be an external storage device of the computer device, such as a plug-in hard disk, a smart memory card (SmartMedia Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc., equipped on the computer device.

[0121] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in the present application, and these modifications or replacements should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.

Claims

1. A distribution test method based on automated internal system, characterized in that: include: Developers upload the APP to be tested on the web front end; After storing the ipa, unpack it, compile the dynamic library generated by the tweak project of "Collect Crash" and flow it into the APP, and then repackage it; Get the repackaged file; The front-end web sends the authenticated mobileconfig description file; Add description files to the test device and upload device information to the backend; The server records the device information and stores it in the database; According to the client being tested, select the Apple account in the database and start the script to perform relevant configuration; According to the request of capturing Apple Developer Center, a preset script is written to simulate logging into the Developer Center, adding devices, setting configuration file information, and downloading the configuration file to the local computer; Import the configuration file, unpack, re-sign, and package the ipa file to be tested, and generate a new plist file; The test device is redirected to the address to complete the download and distribution plist address and complete the installation; If the APP crashes unexpectedly, the exception will be recorded in the sandbox of the test device; Send test information to developers according to preset rules.

2. The automated internal distribution test method according to claim 1, characterized in that: The ipa is stored and then unpacked, the dynamic library generated by compiling the "Collect Crash" tweak project is flowed into the APP, and then repackaged and sent to the specified web page, including: Store the APP in binary stream form; Unpack ipa; Find the corresponding certificate file, check the UDID, and record it in the database; Compile the tweak project of the "Collect Crash" function and get the dynamic library after compilation; Change dynamic library dependencies and inject dynamic libraries; Then package the ipa; Record to database.

3. The automated internal distribution test method according to claim 1, characterized in that: The front-end web sends the authenticated mobileconfig description file, including: Determine whether there is a mobileconfig description file; If not, generate a mobileconfig description file, use the current valid certificate, and call the signature script for signing; After signing, the mobileconfig description file in the site.

4. A distribution test device based on automated internal system, characterized in that: include: The repackaging unit is used by developers to upload the tested APP on the web front end, unpack the ipa after storage, flow the dynamic library generated by compiling the tweak project of "Collect Crash" into the APP, and then repack it; The configuration unit is used to obtain the repackaged files, the front-end web sends the authenticated mobileconfig description file, the test device adds the description file, uploads the device information to the back-end, the server records the device information, stores it in the database, selects the Apple account in the database according to the client under test, and starts the script for relevant configuration; The script simulation unit is used to write preset scripts based on the requests from the Apple Developer Center, simulate logging into the Developer Center, add devices, set configuration file information, download configuration files to the local computer, import configuration files, unpack, re-sign, and package the ipa file to be tested, and generate a new plist file. Install the test unit, which is used to redirect the test device to the address to complete the download and distribution of the plist address and complete the installation. If the APP crashes abnormally, the abnormality will be recorded in the sandbox of the test device; The feedback unit is used to send test information to developers according to preset rules.

5. A computer device, characterized in that: The computer device includes a memory and a processor; The memory is used to store computer programs; The processor is configured to execute the computer program and implement the automated internal distribution test method according to any one of claims 1 to 3 when executing the computer program.