Login test method and device, equipment and storage medium

By processing the test deployment package and login service on the server, efficient login testing is achieved, which solves the problem of low login testing efficiency in the existing technology and improves testing efficiency.

CN118567967APending Publication Date: 2024-08-30SHENZHEN TENCENT COMP SYST CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310231490.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-02-28
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

During the application development process, login testing is inefficient and takes a lot of time, resulting in a long testing process.

Method used

By obtaining the test deployment package of the application, perform deployment processing in the server, generate deployment files, use the deployment files and login services to perform login tests, and obtain and verify account information to determine test results.

Benefits of technology

Using the server instead of the terminal for login testing saves the process of installing applications on the terminal and improves the efficiency of login testing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118567967A
    Figure CN118567967A
Patent Text Reader

Abstract

The invention discloses a login test method and device, equipment and a storage medium, and belongs to the technical field of computers. The method is executed by a server and comprises the steps that a test deployment package of an application program is obtained, and the test deployment package carries resource information and an operation function of the application program; the test deployment package is deployed in the server, a deployment file is obtained, and the deployment file is used for achieving the login function of the application program; acquiring account information of the application program, and based on the account information, performing a login test through the deployment file and a login service corresponding to the application program; and determining feedback information corresponding to the login test, wherein the feedback information is used for indicating a test result of the login test. According to the invention, the test deployment package is deployed, the login test is carried out based on the deployment file obtained through deployment and the login service, and the server is used for replacing the terminal to carry out the login test, so that the process of installing the application program on the terminal is saved, and the efficiency of the login test is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a login test method, device, equipment and storage medium. Background Art

[0002] The login test is to install the application on the terminal and test the account login function of the application.

[0003] In the related art, a tester is required to compile and package the script program files of the developed application to obtain an installation package of the application, install the installation package of the application on the terminal, and then perform a login test.

[0004] However, in the process of application development, the developed application is packaged to obtain an installation package, and the installation package is installed on the terminal before performing a login test, which takes a lot of time and the efficiency of the login test is low. Summary of the invention

[0005] The present application provides a login test method, device, equipment and storage medium, and the technical solution is as follows:

[0006] According to one aspect of the present application, a login test method is provided, the method being executed by a server, the method comprising:

[0007] Obtain a test deployment package of the application, wherein the test deployment package carries resource information and running functions of the application;

[0008] Deploy the test deployment package in the server to obtain a deployment file, wherein the deployment file is used to implement a login function of the application program;

[0009] Acquire the account information of the application, and perform the login test based on the account information through the deployment file and the login service corresponding to the application;

[0010] Determine feedback information corresponding to the login test, where the feedback information is used to indicate a test result of the login test.

[0011] According to another aspect of the present application, a login test device is provided, the device comprising:

[0012] An acquisition module is used to acquire a test deployment package of an application, wherein the test deployment package carries resource information and running functions of the application;

[0013] A deployment module, used to deploy the test deployment package in the server to obtain a deployment file, wherein the deployment file is used to implement a login function of the application program;

[0014] A test module, used to obtain the account information of the application, and based on the account information, perform the login test through the deployment file and the login service corresponding to the application;

[0015] The determination module is used to determine feedback information corresponding to the login test, and the feedback information is used to indicate the test result of the login test.

[0016] In an optional design of the present application, the test module is also used for:

[0017] Obtaining account information of the application, where the account information is used for login testing;

[0018] Establishing a connection between the deployment file and the login service through a communication interface;

[0019] Based on the account information, the login test is performed on the deployment file and the login service by using a test command word, and the test command word is used to instruct the server to perform a test mode for the login test.

[0020] In an optional design of the present application, the test module is also used for:

[0021] Obtaining the test command word;

[0022] If the account information passes identity authentication, adding the account information and identity authentication information to the test command word;

[0023] In the case where the test command word carries the identity authentication information, the login test is performed based on the account information carried by the test command word according to the test command word.

[0024] In an optional design of the present application, the deployment module is further used to:

[0025] Decompressing the test deployment package in the server to obtain a resource file and a library file, wherein the resource file includes resource information of the application program, and the library file includes a running function of the application program;

[0026] The deployment file is constructed by calling the running function in the library file and loading the resource information of the application in the resource file in the server.

[0027] In an optional design of the present application, the device further includes:

[0028] A receiving module, used to receive test indication information sent by a terminal, wherein the test indication information carries identification information of the application, and the identification information is used to indicate the application corresponding to the test deployment package, and the login test is performed when the server receives the test indication information;

[0029] The sending module is used to send feedback information corresponding to the login test to the terminal.

[0030] In an optional design of the present application, the test indication information carries account information, and the account information is used to log in to the login service;

[0031] The acquisition module is also used for:

[0032] The test instruction information is parsed and processed to extract the account information carried in the test instruction information.

[0033] In an optional design of the present application, the test instruction information is used to instruct the creation of the account information to perform the login test;

[0034] The acquisition module is also used for:

[0035] Upon receiving the test instruction information, obtaining an account identifier of a historical account, wherein the historical account is a known account used for the login test;

[0036] The account information is created based on the account identifier of the historical account, and the account identifier of the account information is different from the account identifier of the historical account.

[0037] In an optional design of the present application, the device further includes:

[0038] A verification module, used to perform authority verification on the terminal identification carried in the test indication information, wherein the terminal identification is identification information of the terminal, and the authority verification is used to verify whether the terminal has the authority to instruct the server to perform a login test on the application;

[0039] The login test is performed when the terminal identification passes the authority verification.

[0040] In an optional design of the present application, the device further includes:

[0041] The receiving module is further used to receive the rights management information sent by the terminal, the rights management information is used to perform identification editing processing on the terminal identification library, the terminal identification library includes at least one permission identification of a terminal that has passed the authority verification;

[0042] A processing module is used to perform the identification editing processing on the terminal identification library according to the authority management information, and the identification editing processing includes querying and deleting at least one of the permission identifications, and determining at least one newly added terminal identification as at least one of the permission identifications.

[0043] In an optional design of the present application, the device further includes:

[0044] a receiving module, configured to receive program management information sent by a terminal, wherein the program management information is used to perform application editing processing on a candidate application on the server, wherein the candidate application includes the application, the candidate application has a corresponding test deployment package stored on the server, and the server has permission for the candidate application to perform a login test;

[0045] A processing module is used to perform the application editing processing on the candidate applications according to the program management information, and the application editing processing includes querying and deleting at least one of the candidate applications, and adding at least one new application as at least one of the candidate applications.

[0046] According to another aspect of the present application, a computer device is provided, which includes a processor and a memory, wherein the memory stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by the processor to implement the login test method described above.

[0047] According to another aspect of the present application, a computer-readable storage medium is provided, in which at least one instruction, at least one program, a code set or an instruction set is stored, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by a processor to implement the login test method described above.

[0048] According to another aspect of the present application, a computer program product is provided, which includes computer instructions stored in a computer-readable storage medium, and a processor reads and executes the computer instructions from the computer-readable storage medium to implement the login test method described above.

[0049] The beneficial effects of the technical solution provided by this application include at least:

[0050] By deploying the test deployment package, the resource information and running functions in the test deployment package are fully utilized; login testing is performed based on the deployment files and login services obtained by deployment, and the server is used instead of the terminal for login testing, which saves the process of installing the application on the terminal and improves the efficiency of the login test. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] In order to more clearly illustrate the technical solutions in 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 only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0052] Figure 1 is a schematic diagram of a computer system provided by an exemplary embodiment of the present application;

[0053] Figure 2 is a schematic diagram of a login test provided by an exemplary embodiment of the present application;

[0054] Figure 3 is a flow chart of a login test method provided by an exemplary embodiment of the present application;

[0055] Figure 4 is a flow chart of a login test method provided by an exemplary embodiment of the present application;

[0056] Figure 5 is a flow chart of a login test method provided by an exemplary embodiment of the present application;

[0057] Figure 6 is a flow chart of a login test method provided by an exemplary embodiment of the present application;

[0058] Figure 7 is a flow chart of a login test method provided by an exemplary embodiment of the present application;

[0059] Figure 8 is a flow chart of a login test method provided by an exemplary embodiment of the present application;

[0060] Fig. 9 is a flow chart of a login test method provided by an exemplary embodiment of the present application;

[0061] Fig.10 is a flow chart of a login test method provided by an exemplary embodiment of the present application;

[0062] Fig.11 is a flow chart of a login test method provided by an exemplary embodiment of the present application;

[0063] Fig.12 This is an interface diagram of configuration authority management information provided by an exemplary embodiment of the present application;

[0064] Fig.13 is a flow chart of a login test method provided by an exemplary embodiment of the present application;

[0065] Fig.14 is a flow chart of a login test method provided by an exemplary embodiment of the present application;

[0066] Fig.15 is an interface diagram of configuration program management information provided by an exemplary embodiment of the present application;

[0067] Fig.16 is a schematic diagram of a login test architecture provided by an exemplary embodiment of the present application;

[0068] Fig.17 is a flow chart of a login test method provided by an exemplary embodiment of the present application;

[0069] Fig.18 This is an interface diagram of configuration test indication information provided by an exemplary embodiment of the present application;

[0070] Fig.19 is a structural block diagram of a login test device provided by an exemplary embodiment of the present application;

[0071] Fig. 20 It is a structural block diagram of a server provided by an exemplary embodiment of the present application.

[0072] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application. DETAILED DESCRIPTION

[0073] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.

[0074] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.

[0075] The terms used in this disclosure are for the purpose of describing specific embodiments only and are not intended to limit the disclosure. The singular forms of "a", "said" and "the" used in this disclosure and the appended claims are also intended to include plural forms unless the context clearly indicates otherwise. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.

[0076] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of the relevant countries and regions. For example, the parameter information involved in this application is obtained with full authorization.

[0077] It should be understood that although the terms first, second, etc. may be used in the present disclosure to describe various information, such information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of the present disclosure, the first parameter may also be referred to as the second parameter, and similarly, the second parameter may also be referred to as the first parameter. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".

[0078] Figure 1 A schematic diagram of a computer system provided by an embodiment of the present application is shown. The computer system can be implemented as a system architecture of a login test method. The computer system may include: a terminal 100 and a server 200. The terminal 100 may be an electronic device such as a mobile phone, a tablet computer, a vehicle-mounted terminal (vehicle computer), a wearable device, a PC (Personal Computer), etc. A client that runs a target application may be installed in the terminal 100. The target application may be an application that has the ability to exchange information with the server, or may be other applications that provide the function of exchanging information with the server, and the present application does not limit this. In addition, the present application does not limit the form of the target application, including but not limited to App (Application, application) installed in the terminal 100, applets, etc., and may also be in the form of a web page.

[0079] The terminal 100 sends a test indication message to the server 200. The test indication message carries identification information of the application program. The figure takes the identification information indicating version 2 as an example for explanation.

[0080] The server 200 may be an independent physical server, a server cluster or a distributed system composed of multiple physical servers, or a cloud server providing cloud computing services. The server 200 is used to support the backend development of applications. The applications supported by the server 200 for backend development may be applications installed on the terminal or other applications.

[0081] The server 200 stores test deployment packages corresponding to multiple versions of the application program. The figure shows n test deployment packages, including: test deployment package A, test deployment package B to test deployment package N; the version information corresponding to the test deployment package A is version 1, the version information corresponding to the test deployment package B is version 2, and the version information corresponding to the test deployment package N is version n.

[0082] The server 200 deploys the test deployment package B in the server according to the identification information of the application program carried in the test indication information to obtain a deployment file. A login service providing background support for the login test is also deployed in the server 200. The login test is performed through the login service corresponding to the deployment file and the application program.

[0083] In the login test method provided in the embodiment of the present application, the execution subject of each step may be a computer device, which refers to an electronic device with data calculation, processing and storage capabilities. Figure 1 Taking the implementation environment of the scheme shown as an example, the login test method is usually executed by the server 200. In addition, the technical solution of the present application can be combined with blockchain technology. For example, in the login test method disclosed in the present application, some data involved (terminal identification, test deployment package, etc.) can be stored on the blockchain. The terminal 100 and the server 200 can communicate through a network, such as a wired or wireless network.

[0084] Figure 2 A schematic diagram of a login test provided by an embodiment of the present application is shown. This embodiment is described by taking the execution of the terminal 100 and the server 200 as an example.

[0085] The terminal 100 sends the test instruction information 310 to the server 200, and correspondingly, the server 200 receives the test instruction information 310. The test instruction information 310 carries the identification information 310a of the application, the identity indication information 310b and the terminal identification 310c.

[0086] The identification information 310a of the application is used to indicate a unique identification of the application, such as a version number, an identification code, etc. This embodiment is described by taking the application being a game application based on a virtual environment as an example.

[0087] The identity indication information 310b is used to indicate the account information used for the login test. Exemplarily, the account information indicated by the identity indication information 310b is the account corresponding to the application. For example, if the application is a game application based on a virtual environment, the account information is the corresponding account in the game application.

[0088] The terminal identifier 310c is used to indicate the identification information of the terminal that sends the test indication information 310, such as the unique identifier of the terminal, or the account information of the information sending application installed on the terminal. The information sending application installed on the terminal can send information to the server, such as sending the test indication information 310. The information sending application installed on the terminal can be the same as or different from the application stored on the server 200.

[0089] Furthermore, the server 200 stores a test deployment package 340 of the application 300; the server 200 also deploys a management service 335 and a login service 350 corresponding to the application 300. The management service 335 is used to match and verify the account identifier 332a and the account password 332b in the account information of the application 300. The login service 350 is used to provide background support for the login operation of the application.

[0090] The server 200 also stores a terminal identification library 320, a historical account 330, and a test command word 312 corresponding to the application 300. The terminal identification library 320 includes at least one permission identification of a terminal that has passed the authority verification, and the authority verification is used to verify whether the terminal 100 has the authority to instruct the server 200 to perform a login test on the application 300. The historical account 330 is a known account stored by the server 200 for the login test. The test command word 312 is used to indicate the test mode of the login test. In one implementation, the test command word 312 is a preset command word stored by the server 200; in another implementation, the test command word 312 is a command word generated by the server 200 according to the test indication information 310.

[0091] First, according to the terminal identification library 320, the terminal identification 310c is verified for authority, and it is determined whether the terminal identification 310c carried in the test indication information 310 has the test authority for the login test. The terminal identification library 320 includes at least one permission identification of a terminal that has passed the authority verification. If the permission identification in the terminal identification library 320 is the same as the terminal identification 310c, the authority verification is passed.

[0092] By parsing the identity indication information 310b, the identity indication information 310b indicates that the account information is obtained by creating a new account. The server 200 obtains the stored historical account 330, which is a known account used for login testing; further, the historical account 330 is the account with the latest registration time among the known accounts. The account identifier 332a of the historical account 330 is modified to determine the account identifier 332a and account password 332b of the created account information 332. The management service 335 deployed in the server 200 matches and verifies the account identifier 332a and account password 332b in the account information 332, and obtains the identity authentication information of the account information provided by the management service.

[0093] The test instruction information 310 is parsed, and the test deployment package 340 of the application 300 is obtained according to the identification information 310a of the application. The test deployment package 340 carries the resource information and running function of the application. The test deployment package 340 is decompressed to obtain the deployment file 340a, which includes the resource file 342 and the library file 344. The resource file 342 includes the resource information of the application, and the library file 344 includes the running function of the application. The deployment file 340a is loaded, and a connection is established between the deployment file 340a and the login service 350. By establishing the connection, the application installed in the terminal is simulated to realize the login test directly through the server.

[0094] The server 200 determines the test command word 312 based on the test indication information 310. The test command word 312 is determined according to a preset mapping relationship, that is, according to the test indication information 310, the corresponding test command word 312 is determined by the preset mapping relationship. A login test is performed based on the test command word 312, and the test command word 312 indicates the test method of the login test. In one example, the test command word 312 is used to indicate the creation of a virtual character in a game application. Feedback information 360 corresponding to the login test is sent to the terminal 100, and the feedback information 360 is used to indicate the test result of the login test. For example, the feedback information 360 is: the virtual character is successfully created, or the virtual character is not successfully created, and the reason is: the name of the virtual character is wrong.

[0095] Next, the login test method will be introduced through the following embodiments.

[0096] Figure 3 A flowchart of a login test method provided by an exemplary embodiment of the present application is shown. The method can be executed by a server. The method includes:

[0097] Step 510: Obtain a test deployment package of the application;

[0098] Exemplarily, the server obtains a test deployment package, which carries information for implementing a login function of the application. The test deployment package carries resource information and a run function of the application; Exemplarily, the resource information of the application is at least one of information such as an Extensible Markup Language (XML) file, a picture, a font, a cascading style sheet, etc. loaded by the application. The run function is function information that needs to be called when implementing the login function. Exemplarily, the server stores test deployment packages corresponding to multiple versions of the application, the multiple versions of the application have different development times, and the multiple versions of the application implement different functions.

[0099] In one implementation, the test deployment package is obtained by compiling the development files of the application, and the test deployment package carries the compiled files for implementing the login function of the application. The development files are program files written during the development process of the program.

[0100] The test deployment package obtained by the server is usually a compressed file, but it does not exclude multiple folders or multiple files with a file index structure and other formats. The server can directly store the test deployment package or receive the test deployment package from other computer devices. This embodiment does not limit the file format and storage method of the test deployment package.

[0101] Step 520: Deploy the test deployment package in the server to obtain a deployment file;

[0102] Exemplarily, the deployment file is used to implement the login function of the application; the deployment file is obtained in the server to implement the login function of the application on the server. The deployment file is obtained by deploying the resource information and the running function in the test deployment package. In one implementation, it is necessary to call the running function in the test deployment package and load the resource information in the test deployment package to obtain the deployment file.

[0103] Step 530: Obtain the account information of the application, and perform a login test based on the account information through the deployment file and the login service corresponding to the application;

[0104] Exemplarily, the account information of the application can be stored or created by the server, or obtained by the server from other computer devices, such as from a terminal connected to the server; this embodiment does not limit this. The account information can include only the account identifier, such as an identity document (ID), or it can include the account identifier and the account password (Password).

[0105] The login test is based on the account information, and the login service provides background support for the login test. Through the deployment files and login services deployed on the server, the client of the simulated application is implemented on the server to transmit information between the terminal and the server; the login test is implemented on the server based on the account information through the deployment files and the login service corresponding to the application.

[0106] Step 540: Determine feedback information corresponding to the login test;

[0107] Exemplarily, the feedback information is used to indicate the test result of the login test, and the test result includes but is not limited to at least one of information such as whether the login test is successful, log information generated by the login test, and the reason for failure when the login test fails. The feedback information corresponding to the login test can also be used to indicate that the server has executed the login test. This embodiment is not limited.

[0108] To sum up, the method provided in this embodiment fully utilizes the resource information and running functions in the test deployment package by deploying the test deployment package; performs login testing based on the deployment files and login services obtained by deployment, and uses the server instead of the terminal to perform login testing, thereby saving the process of installing the application on the terminal and improving the efficiency of the login test.

[0109] Figure 4 A flowchart of a login test method provided by an exemplary embodiment of the present application is shown. The method can be executed by a server. Figure 3 In the illustrated embodiment, step 530 may be implemented as steps 532, 534, and 536:

[0110] Step 532: Obtain the account information of the application;

[0111] Exemplarily, the account information is used for login testing; the account information is the account corresponding to the application, but it does not rule out the possibility that the account information is bound to accounts on other platforms. Taking the application as a game application as an example, the account information corresponding to the game application is the account used to log in to the game application, but the account may be bound to accounts on other platforms such as social platforms and payment platforms.

[0112] Step 534: Establishing a connection between the deployment file and the login service through the communication interface;

[0113] Exemplarily, the deployment file is typically used to implement the login function of the application within the server. In an optional implementation, the deployment file can also be used to implement other functions provided by the application within the server, such as at least one of the collection and payment functions provided by payment applications, the social information publishing function provided by social applications, and the virtual battle function provided by game applications.

[0114] Exemplarily, establishing a connection is used to simulate the client of the application on the server to transmit information between the terminal and the server. By establishing a connection, information transmission is achieved between the login function of the application and the login service that provides background support for the login test. In one implementation, the connection is established by calling the mobile software development kit interface (Mobile Software Development Kit, MSDK), and in another implementation, it includes but is not limited to establishing a connection by calling at least one of the software development kit interface (Software Development Kit, SDK) and the application programming interface (Application Programming Interface, API). Exemplarily, the connection is established based on the Transmission Control Protocol (Transmission Control Protocol, TCP), but the implementation method of establishing a connection based on other transmission protocols is not excluded.

[0115] Step 536: Based on the account information, a login test is performed on the deployment file and the login service through a test command word;

[0116] The test command word is used to instruct the server to perform a login test. In this embodiment, the test command word can be a pre-set word stored in the server, or can be obtained by the server from other computer devices. Further, the test command word is sent based on the communication protocol for establishing a connection.

[0117] In a specific example, the test method of the login test indicated by the test command word includes testing the login permission of the account information on the login service, specifically including but not limited to at least one of the following: whether the login time of the account information belongs to the allowed login time provided by the login service, whether the geographical location information of the account information is located at the allowed login location supported by the login service. The test command word corresponding to the login test on login permission is expressed as: CS_CMD_CHECK_PERMISSION.

[0118] In another specific example, the test method of the login test indicated by the test command word includes testing the account information to create a role on the login service. Taking the application as a game application as an example, creating a role is to create a virtual character on the game application. Specifically including but not limited to at least one of the following: whether the role name of the role created by the account information exceeds the upper limit of the number of characters, whether the role name of the role created by the account information does not exceed the lower limit of the number of characters, whether the role name of the role created by the account information is repeated with an existing role, whether the role created by the account information receives a database response from the login service, and whether the role name of the role created by the account information includes illegal characters. The test command word corresponding to the login test is expressed as: CS_CMD_GET_ROLE.

[0119] In summary, the method provided in this embodiment fully utilizes the resource information and running functions in the test deployment package by deploying the test deployment package; establishes a connection between the deployment file and the login service, and simulates the client of the application on the server to transmit information between the terminal and the server; performs a login test based on the deployed deployment file and login service, and uses the server instead of the terminal to perform the login test, which saves the process of installing the application on the terminal and improves the efficiency of the login test.

[0120] Figure 5 A flowchart of a login test method provided by an exemplary embodiment of the present application is shown. The method can be executed by a server. Figure 4 In the illustrated embodiment, step 536 may be implemented as step 536a, step 536b, and step 536c:

[0121] Step 536a: Obtain a test command word;

[0122] Exemplarily, the test command word may be stored in the server, or may be directly or indirectly received by the server from other computer devices. In one implementation, the test command word is directly obtained by the server from the terminal, and the terminal directly sends the test command word to the server; in another implementation, the terminal indicates the test mode of the login test to the server, and the server determines the test command word from multiple preset command words according to the test mode of the login test, or the server generates the test command word. This embodiment does not limit the specific method of obtaining the test command word.

[0123] Step 536b: if the account information passes the identity authentication, add the account information and the identity authentication information to the test command word;

[0124] Authentication is used to verify account information. Account information is used to indicate through authentication that the information provided by the account information corresponding to the application is correct. For example, when the account information includes an account identifier, the account identifier in the account information is the account identifier of the application pre-stored by the server. When the account information includes an account identifier and an account password, the account identifier in the account information is the account identifier of the application pre-stored by the server, and the account password in the account information is the same as the account password corresponding to the account identifier of the application pre-stored by the server. Authentication of the account information ensures that the account information is the correct account in the application; illustratively, authentication ensures that the account information obtained by the server is the same as the correct account of the application pre-stored in the data.

[0125] Furthermore, identity authentication can be performed directly by the server, or the management service corresponding to the application can verify the account information. The management service is also called a third-party service. The management service provides identity authentication information.

[0126] In one implementation, the identity authentication information is an identity token, which is in the format of Java Script Object Notation Web Token (JSON Web Token / JWT). Furthermore, the identity token carries account information, and the identity token carrying the account information is added to the test command word.

[0127] Step 536c: in the case where the test command carries identity authentication information, a login test is performed on the account information carried by the test command according to the test command;

[0128] The test command word is used to instruct the server to perform a login test. In this embodiment, the test command word may be a pre-set word stored in the server, or may be obtained by the server from other computer devices.

[0129] Furthermore, the login service verifies the identity authentication information to prevent the identity authentication information from being tampered with. Furthermore, the identity authentication information is parsed to obtain the account information carried, and the login region corresponding to the account information can also be obtained.

[0130] In summary, the method provided in this embodiment, by deploying the test deployment package, makes full use of the resource information and running functions in the test deployment package; authenticates the account information to ensure that the account information is the correct account in the application; performs login testing based on the deployment file and login service obtained by deployment, and uses the server instead of the terminal for login testing, which saves the process of installing the application on the terminal and improves the efficiency of the login test.

[0131] Figure 6 A flowchart of a login test method provided by an exemplary embodiment of the present application is shown. The method can be executed by a server. Figure 3 In the illustrated embodiment, step 520 may be implemented as steps 522 and 524:

[0132] Step 522: decompress the test deployment package in the server to obtain resource files and library files;

[0133] Exemplarily, the test deployment package is stored in the form of a compressed package, and the test deployment package is decompressed to obtain the resource files and library files carried in the test deployment package. Exemplarily, the resource file includes resource information of the application, and the library file includes the running function of the application;

[0134] Step 524: calling the running function in the library file and loading the resource information of the application in the resource file in the server to build a deployment file;

[0135] Exemplarily, the deployment file is used to implement the login function of the application in the server. Exemplarily, the resource information in the resource file used to implement the login function is loaded, and the resource file is called to include the run function used to implement the login function, to obtain the constructed deployment file. The loaded resource file may correspond to all or part of the resource information carried in the test deployment package, and the called library file may correspond to all or part of the run function carried in the test deployment package. This embodiment does not restrict whether the test deployment package and the decompressed resource files and library files carry resource information or run functions other than the side function.

[0136] In one implementation, the deployment file is used to simulate the login function in the client of the application; when constructing the deployment file, the calling method of the library file and the loading method of the resource file are determined with reference to the login function in the application.

[0137] To sum up, the method provided in this embodiment deploys the test deployment package, decompresses the resource files and library files, and calls the resource files and library files to construct the deployment file, thereby making full use of the resource information and running functions in the test deployment package; performs login testing based on the deployment files and login services obtained by deployment, and uses the server instead of the terminal to perform login testing, which saves the process of installing the application on the terminal and improves the efficiency of the login test.

[0138] In an optional implementation, the login test is performed when the server receives an instruction from the terminal. Next, it is described in detail through the following embodiments:

[0139] Figure 7A flowchart of a login test method provided by an exemplary embodiment of the present application is shown. The method can be executed by a server. Figure 3 Based on the embodiment shown, step 502 and step 550 are also included:

[0140] Step 502: receiving test indication information sent by the terminal;

[0141] The test indication information carries identification information of the application program, and the identification information is used to indicate the application program corresponding to the test deployment package. The login test is performed when the server receives the test indication information.

[0142] In one implementation, the identification information of the application includes, but is not limited to, at least one of: a version number, environmental information, and a time stamp, wherein the version number is used to indicate the version information during the development process, the environmental information is used to indicate that the application corresponds to a trunk or a branch (release) on a version management tool, and the environmental attribute of the application is at least one of a self-test environment, a quality assurance test (Quality Assurance, QA) environment, or a delivery environment. The time stamp is the time when the development is completed. For example, the identification information is: trunk_dev1-2.5.0.20221214154006. Trunk means that it corresponds to the trunk on the version management tool, dev1 means that the environmental attribute is a self-test environment, 2.5.0 is the version number, and 20221214154006 is the time stamp.

[0143] Exemplarily, the version management tool (Perforce) is introduced. The version management tool corresponds to the trunk (trunk) or branch (release). The application is developed on the trunk and released on the branch. When the function development is completed, a new version is released, such as version number 2.5.0. There are trunk versions (trunk_main) and old versions on branches at the same time, such as version number 2.4.0. The same version of the application corresponds to multiple environmental attributes, including but not limited to at least one of the following: a self-test environment for developers to self-test, called dev; a QA environment for quality assurance testing, called test; a delivery environment for version delivery testing, called stable. In one implementation, the new version, old version on the branch, and trunk version can correspond to the above three environmental attributes respectively.

[0144] It should be noted that in this embodiment, the time sequence for executing step 502 is before executing the login test, that is, step 502 can be executed before, after or at the same time as steps 510 and 520, and step 502 can also be executed before, after or at the same time as obtaining the account information of the application; this embodiment does not make any restrictive provisions for this.

[0145] Step 550: Sending feedback information corresponding to the login test to the terminal;

[0146] Exemplarily, after determining the feedback information corresponding to the login test, the server sends the feedback information to the terminal. Exemplarily, the terminal sends the test indication information to the server, and the terminal receives the feedback information through an application installed on the terminal that has information exchange capability with the server.

[0147] To sum up, the method provided in this embodiment receives the test indication information sent by the terminal. When the server receives the test indication information, it performs a login test based on the deployment file and login service obtained by deployment, and uses the server instead of the terminal to perform the login test, which saves the process of installing the application on the terminal and improves the efficiency of the login test.

[0148] The feedback information to the terminal is introduced as follows:

[0149] Figure 8 A flowchart of a login test method provided by an exemplary embodiment of the present application is shown. The method can be executed by a server. The method includes:

[0150] Step 672: Request an identity token using the account information;

[0151] Exemplarily, the identity token is in the format of Java Script Object Notation Web Token (JSON Web Token / JWT). Furthermore, the identity token carries account information, and the identity token carrying the account information is added to the test command word.

[0152] Step 674: Determine whether the identity token is successfully obtained;

[0153] The identity token is provided by the management service and is successfully obtained when the account information passes the identity authentication.

[0154] If the identity token is not obtained successfully, execute step 676; if the identity token is obtained successfully, execute step 678.

[0155] Step 676: If the identity token is not successfully obtained, send a first failure message to the terminal;

[0156] The first failure information is used to indicate that the management service for identity authentication is abnormal, and the error code of the management service is sent to the terminal.

[0157] Step 678: When the identity token is successfully obtained, the communication interface is called to establish a connection with the login server;

[0158] The communication interface establishes a connection with the login server, and the connection is used to simulate the client of the application on the server to transmit information with the server on the terminal. For example, the mobile software development kit interface (Mobile Software Development Kit, MSDK) is called to establish the connection.

[0159] Step 680: Determine whether the connection is successfully established;

[0160] Determine whether the connection can achieve information transmission. If the connection is not successfully established, execute step 682, and if the connection is successfully established, execute step 684.

[0161] Step 682: If the connection is not successfully established, send a second failure message to the terminal;

[0162] The second failure information is used to indicate that the login service deployment error or the login service process exits abnormally, and the second failure information is sent to the terminal.

[0163] Step 684: When the connection is successfully established, obtain a test command word;

[0164] The test command word is used to instruct the server to perform a test mode for a login test; in one implementation, the test command word is determined based on the test instruction information sent by the terminal.

[0165] Step 686: Determine whether the test command word has test authority;

[0166] The test authority is to test whether the account information carried in the command word has the authority to log in on the login service. If the test command word does not have the test authority, step 688 is executed, and if the test command word has the test authority, step 690 is executed.

[0167] Step 688: When the test command word does not have the test authority, send a third failure message to the terminal;

[0168] The third failure information is used to indicate at least one of the following, including but not limited to: the login time of the account information does not belong to the allowed login time provided by the login service, and the geographical location information of the account information is not located in the allowed login location supported by the login service. The third failure information also carries an error code of the login service.

[0169] Step 690: When the test command word has the test authority, create a virtual role;

[0170] For example, if the application is a game application, a virtual character is created in the application.

[0171] Step 692: Determine whether the creation is successful;

[0172] Whether the virtual character is successfully created, such as the role information of the virtual character is saved in the database of the server. If the virtual character is not successfully created, step 694 is executed, and if the virtual character is successfully created, step 696 is executed.

[0173] Step 694: If the creation is not successful, send a fourth failure message to the terminal;

[0174] The fourth failure information is used to indicate at least one of the following, including but not limited to: the role name of the role created by the account information exceeds the upper limit of the number of characters, the role name of the role created by the account information does not exceed the lower limit of the number of characters, the role name of the role created by the account information is the same as an existing role, the role created by the account information does not receive a database response from the login service, and the role name of the role created by the account information includes illegal characters.

[0175] Step 696: If the creation is successful, send a success message to the terminal;

[0176] A success message is used to indicate the completion of the login test.

[0177] In summary, the method provided in this embodiment provides the terminal with feedback information of the login test through failure information and success information, and uses the server instead of the terminal to perform the login test, which saves the process of installing the application on the terminal and improves the efficiency of the login test.

[0178] Based on the test indication information sent by the terminal received by the server, the account information obtained by the server may be implemented in at least the following two ways:

[0179] Implementation method 1: the test instruction information carries the account information;

[0180] Implementation method 2: The test indication information does not carry the account information, and the account information is created or saved by the server.

[0181] Next, the above two implementation methods are introduced respectively:

[0182] Implementation method 1: The test instruction information carries the account information.

[0183] In implementation method 1, the server obtains the account information of the application program in the following specific steps:

[0184] Parsing the test instruction information to extract the account information carried in the test instruction information;

[0185] Exemplarily, the account information is used to log in to the login service. The account information carried in the test instruction information may be explicit or implicit, for example, the test instruction information may directly include the account information explicitly, or the account information may be encoded and implicitly carried in the test instruction information.

[0186] To sum up, the method provided in this embodiment carries account information in the test indication information; based on the deployment file and login service obtained by deployment, a login test is performed on the account information, and the server is used instead of the terminal to perform the login test, which saves the process of installing the application on the terminal and improves the efficiency of the login test.

[0187] Implementation method 2: The test indication information does not carry the account information, and the account information is created or saved by the server.

[0188] In the second implementation, when the server creates the account information, the server obtains the account information of the application program in the following specific steps:

[0189] Upon receiving the test instruction information, obtaining an account identifier of a historical account, where the historical account is a known account used for the login test;

[0190] Exemplarily, the historical account is a historical account obtained by the server for login testing; further, when the server obtains multiple accounts, the historical account is an account whose registration timestamp is closest to the current time.

[0191] Based on the account ID of the historical account, account information is created, and the account ID of the account information is different from the account ID of the historical account;

[0192] Exemplarily, the account identifier of the historical account is modified, the modified account identifier is determined as the account identifier of the account information, and a corresponding account password is set for the account identifier. Further, the account password may include some or all characters in the account identifier.

[0193] In one example, the account identifier of the historical account includes date information and a sequential number;

[0194] When the date information of the historical account is different from the date of the current timestamp, the account ID of the created account information is determined to be the date information corresponding to the current timestamp and the first sequential number, for example: the account ID of the account information is 22121501; where 221215 represents the date information and 01 is the first sequential number.

[0195] When the date information of the historical account is the same as the date of the current timestamp, the account ID of the created account information is determined to be the next sequential number after the date information corresponding to the current timestamp and the sequential number of the historical account. For example, the account ID of the historical account is 22121402, the date information corresponding to the current timestamp is 221214, and the account ID of the account information is 22121403, where 03 is the next sequential number after 02 of the sequential number of the historical account.

[0196] In the second implementation, if the account information is stored by the server, the server obtains the account information of the application program by the following specific steps:

[0197] When receiving the test instruction information, the server obtains the pre-saved account information.

[0198] Exemplarily, the account information pre-saved by the server is used as a default account for the login test, and the default account is stored in a database of the server.

[0199] To sum up, the method provided in this embodiment is that when the server receives test indication information, the server creates or saves account information; based on the deployment file and login service obtained by deployment, a login test is performed on the account information, and the server is used instead of the terminal to perform the login test, which saves the process of installing the application on the terminal and improves the efficiency of the login test.

[0200] Fig. 9 A flowchart of a login test method provided by an exemplary embodiment of the present application is shown. The method can be executed by a server. Figure 7 Based on the illustrated embodiment, step 504 is also included:

[0201] Step 504: Performing authority verification on the terminal identifier carried in the test instruction information;

[0202] Exemplarily, the terminal identifier is the identification information of the terminal, such as the device code information of the terminal, or the account information of the application installed on the terminal and exchanging information with the server. In one implementation, the terminal exchanges information with the server through the installed social application, and accordingly, the terminal identifier carried in the test indication information can be the social account logged in on the social application.

[0203] Exemplarily, the permission verification is used to verify whether the terminal has the permission to instruct the server to perform a login test on the application; a terminal with the permission to log in is also called a test terminal, and the permission verification is also called login permission verification. In this embodiment, the login test is performed when the terminal identification passes the permission verification; for example, the login test in step 530 of this embodiment is performed when the terminal identification passes the permission verification.

[0204] In an optional implementation, Fig.10 As shown, the following steps are also included:

[0205] Step 501a: receiving the rights management information sent by the terminal;

[0206] Exemplarily, the authority management information is used to perform identification editing processing on a terminal identification library, wherein the terminal identification library includes a permission identification of at least one terminal that has passed the authority verification;

[0207] Furthermore, the rights management information carries the identification information of the terminal, and the identification information carried in the rights management information is verified, and the verification is used to verify whether the terminal has the authority to edit the terminal identification library, and the verification can also be called identification editing authority verification. In one implementation, a terminal with the authority to edit the terminal identification library is also called a management terminal; further, the management terminal usually also has the authority to log in to the test.

[0208] Step 501b: Edit the terminal identification library according to the authority management information;

[0209] Exemplarily, the identification editing process includes querying and deleting at least one permitted identification, and determining at least one newly added terminal identification as at least one of the permitted identifications. At least one of adding, deleting and querying the terminal identification library is achieved by performing identification editing on the terminal identification library.

[0210] To sum up, the method provided in this embodiment ensures that the terminal sending the test indication information has the authority to instruct the server to perform a login test on the application by verifying the authority of the terminal identifier carried in the test indication information; performs a login test based on the deployment file and login service obtained by deployment, and uses the server instead of the terminal to perform the login test, which saves the process of installing the application on the terminal and improves the efficiency of the login test.

[0211] Fig.11 A flowchart of a login test method provided by an exemplary embodiment of the present application is shown. The method can be executed by a server. The method includes:

[0212] Step 602: receiving the rights management information sent by the terminal;

[0213] Exemplarily, the terminal sends permission management information to the server, and the permission management information is used to edit the terminal identification library. In a specific example, the terminal is installed with a social application, and the permission management information is sent to the server through the social application, such as sending the permission management information to the server through the group robot function in the social application of the enterprise A letter.

[0214] Step 604: parse and obtain the terminal identifier carried in the rights management information;

[0215] Exemplarily, the rights management information carries a terminal identifier. When the rights management information is sent to the server via a social application, the terminal identifier is a social account logged into the social application. Optionally, there may be a binding relationship between the social account and the account information corresponding to the application.

[0216] Step 606: judging whether the terminal has the authority to edit the terminal identification library according to the terminal identification;

[0217] Exemplarily, a terminal identification library is stored in the memory of the server, and the terminal identification library includes a first permission identification of at least one terminal that has passed the authority verification, and the first permission identification is used to indicate a terminal that has the authority to instruct the server to perform a login test on the application.

[0218] Furthermore, the terminal identification library includes at least one second permission identification corresponding to a terminal having permission to edit the candidate application. Fig.13 Introduction.

[0219] Furthermore, the terminal identification library includes at least one third permission identification corresponding to a terminal having the authority to edit the terminal identification library. Whether the terminal has the authority to edit the terminal identification library is judged through the terminal identification library.

[0220] In one example, the terminal corresponding to the first permission identifier in the terminal identification library is also called a test terminal, the terminal corresponding to the second permission identifier in the terminal identification library is also called an operation and maintenance terminal, and the terminal corresponding to the third permission identifier in the terminal identification library is also called a management terminal.

[0221] Step 608: If the terminal does not have the authority to edit the terminal identification library, send a failure message to the terminal;

[0222] The failure information is used to inform the terminal that the terminal does not have the authority to edit the terminal identification library.

[0223] Step 610: If the terminal has the authority to edit the terminal identification library, the terminal identification library is edited;

[0224] The editing process of the terminal identification library is determined according to the authority management information, and the authority management information includes at least one of authority adding information, authority deleting information and authority querying information.

[0225] When the permission management information is permission addition information, at least one newly added terminal identifier carried in the permission management information is added to the terminal identifier library; when the permission management information is permission deletion information, at least one permission identifier carried in the permission management information is deleted from the terminal identifier library; when the permission management information is permission query information, at least one identifier to be queried carried in the permission management information is searched in the terminal identifier library, and the search result is sent to the terminal.

[0226] Fig.12 An interface diagram for configuring permission management information provided by an exemplary embodiment of the present application is shown. A schematic diagram of the interface for configuring permission management information on a terminal is shown. The first interface 600a displays the function entrances of the permission management function, the program management function and the login test function by sending a trigger message "@test" in a social application installed on the terminal. The second interface 600b is displayed by triggering the permission management function, and the second interface 600b provides a function entrance for adding, deleting and viewing the information in the terminal identification library. Specifically, function entrances for adding a test terminal, deleting a test terminal and viewing a test terminal are provided. Similarly, function entrances for adding, deleting and viewing operation and maintenance terminals and management terminals are provided respectively. Taking the function entrance for triggering the addition of a test terminal as an example, as shown in the third interface 600c, in response to inputting the terminal identification of the newly added test terminal, feedback information of adding the test terminal is displayed, and the feedback information is: the test terminal has been successfully added, which is used to indicate that the newly added test terminal has been synchronized to the database of the server.

[0227] Step 612: Update database information;

[0228] The edited terminal identification library is synchronized to the server's database.

[0229] In summary, the method provided in this embodiment ensures that the terminal sending the permission management information has the editing authority to the terminal identification library by verifying the authority of the terminal identification carried in the permission management information. The terminal identification library is edited according to the permission management information, and the authority of the terminal to instruct the server to perform a login test on the application is flexibly configured.

[0230] Fig.13 A flowchart of a login test method provided by an exemplary embodiment of the present application is shown. The method can be executed by a server. Figure 3 Based on the embodiment shown, step 501c and step 501d are also included:

[0231] Step 501c: receiving program management information sent by the terminal;

[0232] Exemplarily, the program management information is used to perform application editing processing on a candidate application on a server, the candidate application includes an application, the candidate application has a corresponding test deployment package stored on the server, and the server has permission to perform a login test on the candidate application;

[0233] Furthermore, the program management information carries the identification information of the terminal, and the identification information carried in the program management information is verified, and the verification is used to verify whether the terminal has the authority to edit the candidate application, and the verification can also be called program editing authority verification. In one implementation, the terminal with the authority to edit the candidate application is also called an operation and maintenance terminal; further, the operation and maintenance terminal usually also has the authority to log in and test, and the operation and maintenance terminal usually does not have the authority to edit the terminal identification library.

[0234] Step 501d: performing application editing processing on the candidate application according to the program management information;

[0235] The application editing process includes querying at least one candidate application, deleting at least one candidate application, and adding at least one new application as a candidate application. At least one of adding, deleting and querying the candidate application is achieved by performing application editing on the candidate application.

[0236] In summary, the method provided in this embodiment verifies the authority of the terminal identifier carried in the program management information, thereby ensuring that the terminal that sends the program management information has the authority to edit the candidate application. The candidate application is edited according to the program management information, thereby realizing flexible configuration of the candidate application with login test authority on the server.

[0237] Fig.14 A flowchart of a login test method provided by an exemplary embodiment of the present application is shown. The method can be executed by a server. The method includes:

[0238] Step 622: receiving program management information sent by the terminal;

[0239] Exemplarily, the terminal sends program management information to the server, and the program management information is used to identify and edit the candidate application. In a specific example, the terminal is installed with a social application, and the program management information is sent to the server through the social application, such as sending the program management information to the server through the group robot function in the social application of the enterprise A letter.

[0240] Step 624: parse and obtain the terminal identifier carried in the program management information;

[0241] Exemplarily, the program management information carries a terminal identifier. When the program management information is sent to the server via a social application, the terminal identifier is a social account logged into the social application. Optionally, there may be a binding relationship between the social account and the account information corresponding to the application.

[0242] Step 626: determining whether the terminal has the authority to edit the candidate application according to the terminal identification;

[0243] Exemplarily, a terminal identification library is stored in the memory of the server, and the terminal identification library includes a second permission identification corresponding to at least one terminal having permission to edit the candidate application. Fig.13 The terminal corresponding to the second permission identifier in the terminal identifier library is also called an operation and maintenance terminal.

[0244] Step 628: If the terminal does not have the authority to edit the candidate application, send a failure message to the terminal;

[0245] The failure information is used to provide the terminal with the information that the terminal does not have the authority to edit the candidate application.

[0246] Step 630: If the terminal has the authority to edit the candidate application, edit the candidate application;

[0247] The editing process for the candidate application is determined based on the program management information, which includes at least one of program addition information, program deletion information and program query information.

[0248] When the program management information is program addition information, at least one newly added application carried in the program management information is determined as a candidate application; when the program management information is program deletion information, at least one application carried in the program management information is deleted from the candidate applications; when the program management information is program query information, at least one application to be queried carried in the program management information is searched among the candidate applications, and the search result is sent to the terminal.

[0249] Fig.15An interface diagram for configuring program management information provided by an exemplary embodiment of the present application is shown. An interface schematic diagram for configuring program management information on a terminal is shown. The fourth interface 620a displays the function entrances of the permission management function, the program management function, and the login test function by sending a trigger message "@test" from a social application installed on the terminal. The fifth interface 620b is displayed by triggering the program management function, and the fifth interface 620b provides function entrances for adding, deleting, and viewing candidate applications. Specifically, function entrances for adding candidate applications, deleting candidate applications, and viewing candidate applications are provided. Taking the function entrance for triggering viewing candidate applications as an example, as shown in the sixth interface 620c, feedback information for viewing candidate applications is displayed, and the feedback information includes a list of candidate applications: trunk_dev, trunk_test, and trunk_stable.

[0250] Step 632: Update database information;

[0251] The edited candidate applications are synchronized to a database of the server.

[0252] In summary, the method provided in this embodiment verifies the authority of the terminal identifier carried in the program management information, thereby ensuring that the terminal that sends the program management information has the authority to edit the candidate application. The candidate application is edited according to the program management information, thereby realizing flexible configuration of the candidate application with login test authority on the server.

[0253] Fig.16 A schematic diagram of a login test architecture provided by an exemplary embodiment of the present application is shown.

[0254] The login test architecture includes an interface layer 702, a functional layer 704, a logic layer 706, and a data layer 708; the interface layer 702 is used to provide an information input interface, including applications installed on the terminal and exchanging information with the server, such as a social application 702a. The functional layer 704 provides a permission management function 704a, a program management function 704b, and a login test function 704c; wherein, the permission management function 704a is implemented based on the permission management logic 706a in the logic layer 706; similarly, the program management function 704b is implemented by the program management logic 706b, and the login test function 704c is implemented by the login test logic 706c. The database 708a in the data layer 708 is used to store data information needed by the upper layer. The login test method will be specifically introduced through the following embodiment.

[0255] Fig.17A flowchart of a login test method provided by an exemplary embodiment of the present application is shown. The method can be executed by a server. The method includes:

[0256] Step 642: receiving test indication information sent by the terminal;

[0257] Exemplarily, the terminal sends test instruction information to the server, and the test instruction information carries the identification information of the application program, which is used to instruct the server to perform a login test on the application program. In a specific example, the terminal is installed with a social application program, and the program management information is sent to the server through the social application program, for example, the test instruction information is sent to the server through the group robot function in the social application program of the enterprise A letter.

[0258] Step 644: parse and obtain the terminal identifier carried in the test instruction information;

[0259] Exemplarily, the rights management information carries a terminal identifier. When the rights management information is sent to the server via a social application, the terminal identifier is a social account logged into the social application. Optionally, there may be a binding relationship between the social account and the account information corresponding to the application.

[0260] Step 646: judging whether the terminal has the authority to instruct the server to perform a login test according to the terminal identifier;

[0261] Exemplarily, a terminal identification library is stored in the memory of the server, and the terminal identification library includes a first permission identification of at least one terminal that has passed the authority verification, and the first permission identification is used to indicate a terminal that has the authority to instruct the server to perform a login test on the application.

[0262] Step 648: If the terminal does not have the authority to instruct the server to perform a login test, a failure message is sent to the terminal;

[0263] The failure information is used to provide the terminal with the information that the terminal does not have the authority to instruct the server to perform a login test on the application.

[0264] Step 650: When the terminal has the authority to instruct the server to perform a login test, obtain the account information of the application program;

[0265] Exemplarily, the account information is used for login testing; the account information is the account corresponding to the application. Exemplarily, the account information can be sent by the terminal, or stored or obtained by the server. The above two implementation methods are described in detail in the implementation method 1 and the implementation method 2 above.

[0266] Step 652: Request an identity token using the account information;

[0267] Exemplarily, the identity token (Token) adopts the format of Java Script Object Notation Web Token (JSON Web Token / JWT). Furthermore, the identity token carries account information, and the identity token carrying the account information is added to the test command word. The account information request obtains the Token to indicate that the information provided by the account information corresponding to the application is correct.

[0268] Step 654: Obtain a test deployment package;

[0269] Exemplarily, the test indication information carries identification information of the application program to indicate the application program corresponding to the test deployment package. For example, the identification information is a version number, and the test deployment package is obtained from an Internet Protocol Address (IP address) corresponding to the version number stored in the server. For example, the test deployment package is downloaded from the pipeline warehouse according to the version number in the identification information.

[0270] Step 656: decompress the test deployment package to obtain resource files and library files;

[0271] The test deployment package carries resource files and library files. Exemplarily, the resource files include resource information of the application, and the library files include the running functions of the application.

[0272] Step 658: Imitate the client, call the communication interface and log in to the server to establish a connection;

[0273] Load the resource information in the resource file for implementing the login function, and call the resource file including the run function for implementing the login function to simulate the client. Optionally, simulate the login function provided by the client. Establish a connection to simulate the client of the application on the server to transmit information to the server on the terminal. For example, call the Mobile Software Development Kit (MSDK) interface to establish a connection.

[0274] Step 660: Perform a login test according to the test command word;

[0275] The test command word is used to instruct the server to perform a test mode for a login test; in one implementation, the test command word is determined based on the test instruction information sent by the terminal.

[0276] Step 662: Send feedback information to the terminal;

[0277] Sending feedback information to the terminal. Exemplarily, the terminal sending the test indication information to the server and the terminal receiving the feedback information may be implemented by an application installed on the terminal and having information exchange capability with the server.

[0278] Fig.18 An interface diagram for configuring test indication information provided by an exemplary embodiment of the present application is shown. An interface schematic diagram for configuring test indication information on a terminal is shown. The seventh interface 640a displays the function entrances of the permission management function, the program management function and the login test function by sending the trigger information "@test" to the social application installed on the terminal. The eighth interface 640b is displayed by triggering the login test function, and the second interface 600b provides a function entrance for selecting the identification information. The identification information of the candidate application for which the server has the authority to perform the login test is provided. Taking the selection of the identification information as trunk_test as an example, the ninth interface 640c is displayed; the ninth interface 640c provides a function entrance for selecting the login service. There may be multiple login services that provide background support for the login operation of the application. Here, three login services are used as examples for explanation. The login service is also called the lobby service (ZoneSvr). Taking the selection of the login service named ZoneSvr B as trunk_test as an example, the tenth interface 640d is displayed; the tenth interface 640d provides a function entrance for configuring the account information, and provides a function entrance for creating an account, using a specified account, and using a default account. After completing the configuration of the above four interfaces, the server performs a login test.

[0279] To sum up, the method provided in this embodiment fully utilizes the resource information and running functions in the test deployment package by deploying the test deployment package; performs login testing based on the deployment files and login services obtained by deployment, and uses the server instead of the terminal to perform login testing, thereby saving the process of installing the application on the terminal and improving the efficiency of the login test.

[0280] Those skilled in the art can understand that the above embodiments can be implemented independently, or the above embodiments can be freely combined to form new embodiments to implement the login test method of the present application.

[0281] Fig.19 A structural block diagram of a login test device provided by an exemplary embodiment of the present application is shown.

[0282] The device includes:

[0283] The acquisition module 810 is used to acquire a test deployment package of the application, wherein the test deployment package carries resource information and running functions of the application;

[0284] A deployment module 820, configured to deploy the test deployment package in the server to obtain a deployment file, wherein the deployment file is used to implement a login function of the application program;

[0285] A testing module 830 is used to obtain the account information of the application program, and based on the account information, perform the login test through the deployment file and the login service corresponding to the application program;

[0286] The determination module 840 is used to determine feedback information corresponding to the login test, where the feedback information is used to indicate a test result of the login test.

[0287] In an optional design of this embodiment, the testing module 830 is further used for:

[0288] Obtaining account information of the application, where the account information is used for login testing;

[0289] Establishing a connection between the deployment file and the login service through a communication interface;

[0290] Based on the account information, the login test is performed on the deployment file and the login service by using a test command word, and the test command word is used to instruct the server to perform a test mode for the login test.

[0291] In an optional design of this embodiment, the testing module 830 is further used for:

[0292] Obtaining the test command word;

[0293] If the account information passes identity authentication, adding the account information and identity authentication information to the test command word;

[0294] In the case where the test command word carries the identity authentication information, the login test is performed based on the account information carried by the test command word according to the test command word.

[0295] In an optional design of this embodiment, the deployment module 820 is further used to:

[0296] Decompressing the test deployment package in the server to obtain a resource file and a library file, wherein the resource file includes resource information of the application program, and the library file includes a running function of the application program;

[0297] The deployment file is constructed by calling the running function in the library file and loading the resource information of the application in the resource file in the server.

[0298] In an optional design of this embodiment, the device further includes:

[0299] The receiving module 850 is used to receive the test indication information sent by the terminal, the test indication information carries the identification information of the application, the identification information is used to indicate the application corresponding to the test deployment package, and the login test is performed when the server receives the test indication information;

[0300] The sending module 860 is used to send feedback information corresponding to the login test to the terminal.

[0301] In an optional design of this embodiment, the test instruction information carries account information, and the account information is used to log in to the login service;

[0302] The acquisition module 810 is also used for:

[0303] The test instruction information is parsed and processed to extract the account information carried in the test instruction information.

[0304] In an optional design of this embodiment, the test instruction information is used to instruct the creation of the account information to perform the login test;

[0305] The acquisition module 810 is also used for:

[0306] Upon receiving the test instruction information, obtaining an account identifier of a historical account, wherein the historical account is a known account used for the login test;

[0307] The account information is created based on the account identifier of the historical account, and the account identifier of the account information is different from the account identifier of the historical account.

[0308] In an optional design of this embodiment, the device further includes:

[0309] A verification module 870 is used to perform authority verification on the terminal identification carried in the test indication information, where the terminal identification is identification information of the terminal, and the authority verification is used to verify whether the terminal has the authority to instruct the server to perform a login test on the application;

[0310] The login test is performed when the terminal identification passes the authority verification.

[0311] In an optional design of this embodiment, the device further includes:

[0312] The receiving module 850 is further used to receive the authority management information sent by the terminal, the authority management information is used to perform identification editing processing on the terminal identification library, the terminal identification library includes at least one permission identification of a terminal that has passed the authority verification;

[0313] The processing module 880 is used to perform the identification editing processing on the terminal identification library according to the authority management information, and the identification editing processing includes querying and deleting at least one of the permission identifications, and determining at least one newly added terminal identification as at least one of the permission identifications.

[0314] In an optional design of this embodiment, the device further includes:

[0315] A receiving module 850 is used to receive program management information sent by a terminal, wherein the program management information is used to perform application editing processing on a candidate application on the server, wherein the candidate application includes the application, the candidate application has a corresponding test deployment package stored on the server, and the server has permission for the candidate application to perform a login test;

[0316] The processing module 880 is used to perform the application editing processing on the candidate applications according to the program management information, and the application editing processing includes querying and deleting at least one of the candidate applications, and adding at least one new application as at least one of the candidate applications.

[0317] One point that needs to be explained is that the device provided in the above embodiment only uses the division of the above-mentioned functional modules as an example to implement its functions. In actual applications, the above-mentioned functions can be assigned to different functional modules according to actual needs, that is, the content structure of the device can be divided into different functional modules to complete all or part of the functions described above.

[0318] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method; the technical effects achieved by each module performing operations are the same as those in the embodiment of the method, and will not be elaborated here.

[0319] An embodiment of the present application also provides a computer device, which includes: a processor and a memory, wherein a computer program is stored in the memory; the processor is used to execute the computer program in the memory to implement the login test method provided by the above-mentioned method embodiments.

[0320] Optionally, the computer device is a server. Fig. 20It is a structural block diagram of a server provided by an exemplary embodiment of the present application.

[0321] Typically, the server 2300 includes: a processor 2301 and a memory 2302 .

[0322] The processor 2301 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 2301 may be implemented in at least one hardware form of digital signal processing (DSP), field programmable gate array (FPGA), and programmable logic array (PLA). The processor 2301 may also include a main processor and a coprocessor. The main processor is a processor for processing data in an awake state, also known as a central processing unit (CPU); the coprocessor is a low-power processor for processing data in a standby state. In some embodiments, the processor 2301 may be integrated with a graphics processing unit (GPU), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 2301 may also include an artificial intelligence (AI) processor, which is used to process computing operations related to machine learning.

[0323] The memory 2302 may include one or more computer-readable storage media, which may be non-transitory. The memory 2302 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In some embodiments, the non-transitory computer-readable storage medium in the memory 2302 is used to store at least one instruction, which is used to be executed by the processor 2301 to implement the login test method provided in the method embodiment of the present application.

[0324] In some embodiments, the server 2300 may also optionally include: an input interface 2303 and an output interface 2304. The processor 2301, the memory 2302, the input interface 2303, and the output interface 2304 may be connected via a bus or a signal line. Each peripheral device may be connected to the input interface 2303 and the output interface 2304 via a bus, a signal line, or a circuit board. The input interface 2303 and the output interface 2304 may be used to connect at least one peripheral device related to input / output (I / O) to the processor 2301 and the memory 2302. In some embodiments, the processor 2301, the memory 2302, the input interface 2303, and the output interface 2304 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 2301, the memory 2302, the input interface 2303, and the output interface 2304 may be implemented on a separate chip or circuit board, which is not limited in the embodiments of the present application.

[0325] Those skilled in the art will appreciate that the structure shown above does not constitute a limitation on the server 2300 , and may include more or fewer components than shown in the figure, or combine certain components, or adopt a different component arrangement.

[0326] In an exemplary embodiment, a chip is also provided, which includes a programmable logic circuit and / or program instructions. When the chip runs on a computer device, it is used to implement the login test method described in the above aspects.

[0327] In an exemplary embodiment, a computer program product is also provided, the computer program product includes computer instructions, the computer instructions are stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor reads and executes the computer instructions from the computer-readable storage medium to implement the login test method provided by the above-mentioned method embodiments.

[0328] In an exemplary embodiment, a computer-readable storage medium is further provided, in which a computer program is stored. The computer program is loaded and executed by a processor to implement the login test method provided by the above-mentioned method embodiments.

[0329] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.

[0330] Those skilled in the art should be aware that in one or more of the above examples, the functions described in the embodiments of the present application can be implemented with hardware, software, firmware, or any combination thereof. When implemented using software, these functions can be stored in a computer-readable medium or transmitted as one or more instructions or codes on a computer-readable medium. Computer-readable media include computer storage media and communication media, wherein the communication media include any media that facilitates the transmission of a computer program from one place to another. The storage medium can be any available medium that a general or special-purpose computer can access.

[0331] The above description is only an optional embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.

Claims

1. A login test method, It is characterized in that The method is executed by a server, and comprises: Obtain a test deployment package of the application, wherein the test deployment package carries resource information and running functions of the application; Deploy the test deployment package in the server to obtain a deployment file, wherein the deployment file is used to implement a login function of the application program; Acquire the account information of the application, and perform the login test based on the account information through the deployment file and the login service corresponding to the application; Determine feedback information corresponding to the login test, where the feedback information is used to indicate a test result of the login test.

2. The method according to claim 1, It is characterized in that The obtaining the account information of the application and performing the login test based on the account information through the deployment file and the login service corresponding to the application includes: Obtaining account information of the application, where the account information is used for login testing; Establishing a connection between the deployment file and the login service through a communication interface; Based on the account information, the login test is performed on the deployment file and the login service by using a test command word, and the test command word is used to instruct the server to perform a test mode for the login test.

3. The method according to claim 2, It is characterized in that The step of performing the login test on the deployment file and the login service based on the account information by using a test command word includes: Obtaining the test command word; If the account information passes identity authentication, adding the account information and identity authentication information to the test command word; In the case where the test command word carries the identity authentication information, the login test is performed based on the account information carried by the test command word according to the test command word.

4. The method according to any one of claims 1 to 3, It is characterized in that The step of performing deployment processing on the test deployment package in the server to obtain a deployment file includes: Decompressing the test deployment package in the server to obtain a resource file and a library file, wherein the resource file includes resource information of the application program, and the library file includes a running function of the application program; The deployment file is constructed by calling the running function in the library file and loading the resource information of the application in the resource file in the server.

5. The method according to any one of claims 1 to 3, It is characterized in that The method further comprises: receiving test indication information sent by a terminal, the test indication information carrying identification information of the application, the identification information being used to indicate the application corresponding to the test deployment package, the login test being performed when the server receives the test indication information; Sending feedback information corresponding to the login test to the terminal.

6. The method according to claim 5, It is characterized in that The test instruction information carries account information, and the account information is used to log in to the login service; The obtaining the account information of the application comprises: The test instruction information is parsed and processed to extract the account information carried in the test instruction information.

7. The method according to claim 5, It is characterized in that The test instruction information is used to instruct the creation of the account information to perform the login test; The obtaining the account information of the application comprises: Upon receiving the test instruction information, obtaining an account identifier of a historical account, wherein the historical account is a known account used for the login test; The account information is created based on the account identifier of the historical account, and the account identifier of the account information is different from the account identifier of the historical account.

8. The method according to claim 5, It is characterized in that The method further comprises: Performing authority verification on the terminal identification carried in the test indication information, where the terminal identification is identification information of the terminal, and the authority verification is used to verify whether the terminal has the authority to instruct the server to perform a login test on the application; The login test is performed when the terminal identification passes the authority verification.

9. The method according to claim 8, It is characterized in that The method further comprises: Receiving the rights management information sent by the terminal, the rights management information is used to perform identification editing processing on a terminal identification library, the terminal identification library including at least one permission identification of a terminal that has passed the rights verification; According to the authority management information, the terminal identification library is subjected to the identification editing process, and the identification editing process includes querying and deleting at least one of the permission identifications, and determining at least one newly added terminal identification as at least one of the permission identifications.

10. The method according to any one of claims 1 to 3, It is characterized in that The method further comprises: receiving program management information sent by a terminal, the program management information being used to perform application editing processing on a candidate application on the server, the candidate application including the application, the candidate application having a corresponding test deployment package stored on the server, and the server having permission for the candidate application to perform a login test; The application editing process is performed on the candidate applications according to the program management information, and the application editing process includes querying and deleting at least one of the candidate applications, and adding at least one new application as at least one of the candidate applications.

11. A login test device, It is characterized in that The device comprises: An acquisition module is used to acquire a test deployment package of an application, wherein the test deployment package carries resource information and running functions of the application; A deployment module, used to deploy the test deployment package in the server to obtain a deployment file, wherein the deployment file is used to implement a login function of the application program; A test module, used to obtain the account information of the application, and based on the account information, perform the login test through the deployment file and the login service corresponding to the application; The determination module is used to determine feedback information corresponding to the login test, and the feedback information is used to indicate the test result of the login test.

12. A computer device, It is characterized in that The computer device includes: a processor and a memory, wherein the memory stores at least one program; the processor is used to execute the at least one program in the memory to implement the login test method as described in any one of claims 1 to 10.

13. A computer-readable storage medium, It is characterized in that The readable storage medium stores executable instructions, and the executable instructions are loaded and executed by a processor to implement the login test method as described in any one of claims 1 to 10.

14. A computer program product, It is characterized in that The computer program product includes computer instructions, which are stored in a computer-readable storage medium. The processor reads and executes the computer instructions from the computer-readable storage medium to implement the login test method as described in any one of claims 1 to 10.