A business system login test method, device, equipment and medium

By obtaining and processing business system information tables, logging in, access and exit testing is carried out based on a unified identity authentication platform, the problem of single and inefficient business system login testing methods in the existing technology is solved, and the efficiency of automated testing and daily inspection is achieved.

CN114238148BActive Publication Date: 2025-03-25DIGITAL GUANGDONG NETWORK CONSTR CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111658125.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-30
Publication Date
2025-03-25
Estimated Expiration
2041-12-30

AI Technical Summary

Technical Problem

The existing business system login testing method is relatively single, not suitable for automated inspections, and has low work efficiency.

Method used

Provide a business system login testing method, by obtaining the target business system information table, logging in and recording the login test results based on the unified identity authentication platform, accessing and recording the access test results, logging out and recording the exit test results until all business systems are tested.

Benefits of technology

It realizes automated testing of all web addresses that access the identity authentication platform, which is suitable for daily inspections and improves work efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114238148B_ABST
    Figure CN114238148B_ABST
Patent Text Reader

Abstract

The embodiment of the present invention discloses a business system login test method, device, equipment and medium, the method comprising: obtaining a target business system information table to be tested, logging into the web page address contained in the current row in the target business system information table based on a unified identity authentication platform, and recording a login test result of the business system corresponding to the web page address; upon successful single-point login to the business system, accessing the business system and recording an access test result of the business system; upon successful access to a user information interface of the business system, exiting the business system on the user information interface and recording an exit test result of the business system; by adopting the above technical solution, a test result of a business system corresponding to a web page address at the time of login can be obtained, all web page addresses connected to the identity authentication platform can be automatically tested, and can also be used for daily inspections, which can achieve a technical effect of improving work efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present invention relate to the technical field of computer systems, and in particular to a business system login test method, device, equipment and medium. Background Art

[0002] In order to facilitate the management of business systems and business data in enterprises, a unified business management platform is provided. Through the business management platform, the technical effect of "one account, one login, and enterprise-wide" is achieved. For example, the establishment of a unified identity authentication platform has become an indispensable and important system for online government services in various provinces. However, in the process of unified identity authentication integration and standardized access across the province, more and more business systems need to be connected to the unified identity authentication platform. How to quickly and efficiently verify whether the accessed business systems are standardized has become a key issue that needs to be solved.

[0003] In order to simplify the testing workload, the existing automated testing methods for business system access are usually divided into the following categories: one is the automated testing of a single business system connected to a unified authentication platform, which mainly simulates login and authentication using the user interface (UI) automated testing framework; the second is the unified authentication automated testing for different user types, which mainly matches the user information to be authenticated after registration and login, and conducts subsequent business function testing after the information authentication is passed; the third is to use the interface to simulate login requests to achieve unified identity authentication, and automatically realize login by directly calling the login authentication interface.

[0004] The above existing method for logging into the automated testing service system is relatively simple, not suitable for automated inspection, and has low work efficiency. Summary of the invention

[0005] The embodiments of the present invention provide a business system login test method, device, equipment and medium, which can optimize the existing implementation scheme of business system login test.

[0006] In a first aspect, an embodiment of the present invention provides a business system login test method, comprising:

[0007] Obtain the target business system information table to be tested, log in to the webpage address contained in the current row of the target business system information table based on the unified identity authentication platform, and record the login test result of the business system corresponding to the webpage address;

[0008] Upon successful single-point login to the business system, access the business system and record the access test result of the business system;

[0009] When successfully accessing the user information interface of the business system, exiting the business system on the user information interface and recording the exit test result of the business system;

[0010] Determine whether the row where the webpage address corresponding to the currently exited business system is located is the last row of the target business system information table;

[0011] If not, a login test is performed on the webpage address in the next row of the target business system information table based on the unified identity authentication platform until all business systems corresponding to the webpage addresses in the target business system information table are tested;

[0012] If so, a test record result of obtaining the target business system information table is generated according to the login test result, the access test result and the exit test result.

[0013] In a second aspect, an embodiment of the present invention provides a business system login test device, including:

[0014] A login module is used to obtain the target business system information table to be tested, log in to the webpage address contained in the current row in the target business system information table based on the unified identity authentication platform, and record the login test result of the business system corresponding to the webpage address;

[0015] An access module, used to access the business system upon successful single-point login to the business system, and record the access test result of the business system;

[0016] An exit module, used to exit the business system on the user information interface when successfully accessing the user information interface of the business system, and record the exit test result of the business system;

[0017] A judgment module, used to judge whether the row where the webpage address corresponding to the currently exited business system is located is the last row of the target business system information table;

[0018] The login module is specifically used to perform a login test on the web page address in the next row of the target business system information table based on the unified identity authentication platform when the row where the web page address corresponding to the currently exited business system is located is not the last row of the target business system information table, until all business systems corresponding to the web page addresses in the target business system information table are tested;

[0019] The acquisition module is used to generate the test record result of the target business system information table according to the login test result, the access test result and the exit test result when the row where the web page address corresponding to the currently exited business system is located is the last row of the target business system information table.

[0020] In a third aspect, an embodiment of the present invention provides a computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, a business system login test method as provided in an embodiment of the present invention is implemented.

[0021] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements a business system login test method as provided in an embodiment of the present invention.

[0022] The business system login test scheme provided in the embodiment of the present invention first obtains the target business system information table to be tested, logs in to the web page address contained in the current row in the target business system information table based on the unified identity authentication platform, and records the login test result of the business system corresponding to the web page address; when the business system is successfully logged in by single point, the business system is then accessed and the access test result of the business system is recorded; when the user information interface of the business system is successfully accessed, the business system is exited on the user information interface and the exit test result of the business system is recorded; by adopting the above technical scheme, the test result of the business system corresponding to a web page address at the time of login can be obtained, and further by judging whether the row where the web page address corresponding to the currently exited business system is located is the last row of the target business system information table; if so, the test record result of the target business system information table is generated according to the login test result, the access test result and the exit test result, so that all web page addresses connected to the identity authentication platform can be automatically tested, and can also be used for daily inspections, which can achieve the technical effect of improving work efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] Figure 1 A flowchart of a business system login test method provided in Embodiment 1 of the present invention;

[0024] Figure 2a A flowchart of a business system login test method provided in Embodiment 2 of the present invention;

[0025] Figure 2b A schematic diagram of a sub-process of a business system login test method provided in Embodiment 2 of the present invention;

[0026] Figure 2c A schematic diagram of a sub-flow of another business system login test method provided in Embodiment 2 of the present invention;

[0027] Figure 2d A schematic diagram of a sub-process of another business system login test method provided in Embodiment 2 of the present invention;

[0028] Figure 2eA schematic diagram of a sub-process of another business system login test method provided in Embodiment 2 of the present invention;

[0029] Figure 3 A structural block diagram of a business system login test device provided in Embodiment 3 of the present invention;

[0030] Figure 4 This is a structural block diagram of a computer device provided in Embodiment 4 of the present invention. DETAILED DESCRIPTION

[0031] The technical solution of the present invention is further described below in conjunction with the accompanying drawings and through specific implementation methods. It is understood that the specific embodiments described herein are only used to explain the present invention, rather than to limit the present invention. It is also necessary to explain that, for ease of description, only parts related to the present invention are shown in the accompanying drawings, rather than all structures.

[0032] It should be mentioned before discussing the exemplary embodiments in more detail that some exemplary embodiments are described as processes or methods depicted as flow charts. Although the flow charts describe the steps as sequential processes, many of the steps therein can be implemented in parallel, concurrently or simultaneously. In addition, the order of the steps can be rearranged. The process can be terminated when its operation is completed, but can also have additional steps not included in the accompanying drawings. The process can correspond to a method, function, procedure, subroutine, subprogram, etc.

[0033] Embodiment 1

[0034] Figure 1 This is a flow chart of a method for implementing a business system login test provided in the first embodiment of the present invention. The method can be executed by a business system login test device, wherein the device can be implemented by software and / or hardware and can generally be integrated in a computer device such as a server. Figure 1 As shown, the method includes:

[0035] S110, obtaining a target business system information table to be tested, logging into the webpage address contained in the current row in the target business system information table based on the unified identity authentication platform, and recording a login test result of the business system corresponding to the webpage address.

[0036] In business systems, in order to facilitate the management of internal personnel and identity information authentication, the unified identity authentication platform is widely used because of its single sign-on and trust transfer features. Single sign-on means that users only need to log in once to access all mutually trusted application systems. For example, after logging in to the unified identity authentication platform based on a single user account, when you need to access an associated business system, you can also log in to the corresponding business system and access the corresponding business system; or after a single user account logs in to a business system, when you need to access other associated business systems, you can log in to access the corresponding business system; or based on an access request from a business system, call the unified login portal of the unified identity authentication platform, and the user can access the business system after logging in through the unified login portal. If you need to access other business systems, you can log in to other business systems based on the login results of the user through the unified login portal.

[0037] For example, taking the unified identity authentication platform as an example, the unified identity authentication platform can realize "one account, one login, and universal use across the province", and has become an indispensable and important system in the online government service processing in various provinces. In order to standardize the business systems connected to the unified identity authentication in the province, in accordance with the management requirements of the provincial government service work, regular tests of single-point login should be conducted on each business system connected to the unified identity authentication platform to ensure that services can be provided correctly and the people's needs for doing things are effectively guaranteed. For example, the various business systems connected to the unified identity authentication platform can be: social security business system, license processing business system, and passport processing business system, etc. The specific types of business systems connected to the unified identity authentication platform are not limited here.

[0038] It is easy to understand that when logging into a business system, you need to log in according to the relevant account information, and after logging in, you need to access the target business system, and after accessing, you need to log out. Therefore, the business system information table can be a table that records the information of each business system that has been connected to the unified identity authentication platform and needs to be tested. The information in the current table may include: business system name, business system login type (the type can be individual or legal person) and business system webpage address (Uniform Resource Locator, referred to as URL) and other information.

[0039] Optionally, the business system login test solution provided by the embodiment of the present invention can also record the button identifier corresponding to each operation when performing login, access or logout operations according to the web address of the business system, that is, record the button identifier that needs to jump to the login page, the button identifier that needs to jump to the account management interface, and the button identifier that can log out, etc. When performing login, access or logout operations, the button identifier corresponding to each operation is not limited to one. In the current operation node, it is necessary to click the relevant button identifier several times to make the current operation successful. Several identifiers are recorded for the current business system in the business system information table.

[0040] It should be noted that the content contained in the above-mentioned business system information table is not limited to the above-mentioned examples, but may also include pop-up windows and user information when logging in, accessing or exiting. When a pop-up window is included, the business system information table also records the identification of the relevant pop-up window.

[0041] The content recorded in the above-mentioned business system information table can be the record result obtained after manually logging into each access unified identity authentication platform, or it can be the business system information table provided by relevant staff when the development of each business system is completed. The business system login test solution provided in the embodiment of the present invention can realize the process of automatic login test based on the content recorded in the business system information table to test whether the relevant records in the business system information table are correct, and can also perform automatic inspection on each business system information table.

[0042] Among them, the target business system information table can be understood as being obtained after preprocessing the above-mentioned business system information table. The current preprocessing method can be to request access to the web page address corresponding to each business system in the business system information table. If the access result of the web page address is not a preset value, the subsequent login test will not be performed on the current business system to filter out business systems that cannot be accessed, reduce the number of business system login tests, save the execution time of this solution, and improve testing efficiency.

[0043] When performing a login operation on the target business system information table, each row represents a business system and information related to each business system. By logging in to the web page address corresponding to the current row, the login operation on the current business system is realized, and the login test result of the business system corresponding to the web page address is recorded. The current test result can be a successful login or a failed login. When the test result is a successful login, the subsequent steps can be executed. When the test result is a failed login, the row where the current web page address is located is recorded as a related login failure, and the subsequent steps are no longer executed. The related login operation can be sequentially performed on the web page address corresponding to the business system in the next row.

[0044] S120. When the single sign-on to the business system is successful, the business system is accessed and the access test result of the business system is recorded.

[0045] When accessing the business system, the access test results of the business system are recorded. The current access can be accessing the user information page and the user's personal account page. When accessing user information, the relevant access test results can be: recording whether the user information is the preset information, whether the user's personal account can be accessed, whether the relevant account information can be modified when accessing the user account, etc.

[0046] Furthermore, relevant management operations can be performed on the user's personal account, such as changing the password, changing the user name, or changing the login verification method. When each corresponding operation is performed, it can be recorded whether the current operation can be performed. If it cannot be performed normally, the current access operation failure is recorded. If it can be performed normally, the current access operation success is recorded.

[0047] When the test result is a successful access, subsequent steps can be executed. When the test result is an access failure, the row where the current web page address is located will be recorded as a related access failure, and subsequent steps will no longer be executed. The relevant login operations can be performed on the web page address corresponding to the business system in the next row before the access operation can be performed.

[0048] S130. When the user information interface of the business system is successfully accessed, the business system is exited on the user information interface, and the exit test result of the business system is recorded.

[0049] After completing the access to the current business system, perform the exit operation and record the exit test result. The current exit test result can be whether the single-point exit is successful on the current interface, whether the single-point exit is successful on the current business system, whether the single-point exit is successful on the unified identity authentication platform, etc. The exit test result can also be a test record of whether the current interface contains an exit control and how many times the current interface needs to be operated before exiting. Among them, when performing the exit operation, it is necessary to identify the logo of the exit control, so that whether the exit is successful can be determined by judging whether the current interface contains an exit control.

[0050] When the current exit test result is a single-point exit success, it indicates that the business system corresponding to the current web page address can perform normal login, access and exit operations. If the exit is not successful, the test result of the current node is recorded and step S140 is executed.

[0051] S140: Determine whether the webpage address corresponding to the currently exited business system is the last row of the target business system information table.

[0052] If it is not the last row, execute step S110; perform a login test on the web page address in the next row of the target business system information table based on the unified identity authentication platform until all business systems corresponding to the web page addresses in the target business system information table have been tested. If the row where the web page address corresponding to the currently exited business system is located is not the last row, indicating that the business systems included in the target business system information table have not been tested, continue to execute step S110 until all business systems corresponding to the web page addresses in the target business system information table have been tested.

[0053] If it is the last row, execute step S150.

[0054] S150: Generate test record results of the target business system information table according to the login test results, access test results and exit test results.

[0055] When all the business systems corresponding to the web page addresses in the target business system information table are tested, the login test results, access test results and exit test results corresponding to each web page address in the target business system information table are obtained, and the test record results of the target business system information table are generated according to the login test results, access test results and exit test results corresponding to each web page address. The current test record results are the test record results of each node when logging into the business system, and examples thereof may include: whether the current business system can successfully log in with a single point, whether the target page can be entered when the single point login is successful, whether the target page can be accessed, whether a reminder window pops up when accessing, the number of times the window pops up and the pop-up logo, whether the single point exit in the current interface is successful, how many times the return button needs to be clicked to exit, etc.

[0056] It should be noted that different business systems display different interfaces when performing login, access and logout operations. Accordingly, the number of pop-up reminder windows, the logo and the nodes where the reminder windows appear are all different. Therefore, it is necessary to test the business systems included in the target business system information table one by one, and record the test results of each node of each business system to implement login testing of the business system.

[0057] The test record results can be recorded or updated in real time in the business system information table. For example, when the target business system information table records the current business system access user information, three reminder windows need to be clicked, and the closing mark of each reminder window is recorded. However, in this test, only two reminder windows need to be clicked. The previous record results will be updated in the current business system, and the corresponding closing mark will be recorded.

[0058] Furthermore, the current test record results can be compared with the results already contained in the target business system information, and the rows with different results can be marked, so that the tester can perform manual test analysis to obtain the correct test results so that the business system login can be automatically completed.

[0059] In an embodiment of the present invention, a business system login test method is provided, which first obtains a target business system information table to be tested, logs in to the web page address contained in the current row in the target business system information table based on a unified identity authentication platform, and records the login test result of the business system corresponding to the web page address; when the business system is successfully logged in by a single point, the business system is then accessed, and the access test result of the business system is recorded; when the user information interface of the business system is successfully accessed, the business system is exited on the user information interface, and the exit test result of the business system is recorded; by adopting the above technical scheme, the test result of the business system corresponding to a web page address at the time of login can be obtained, and further by judging whether the row where the web page address corresponding to the currently exited business system is located is the last row of the target business system information table; if so, the test record result of the target business system information table is generated according to the login test result, the access test result and the exit test result, so that all web page addresses to be entered into the identity authentication platform can be automatically tested, and can also be used for daily inspections, which can achieve the technical effect of improving work efficiency.

[0060] Embodiment 2

[0061] like Figure 2a As shown, Figure 2a A flowchart of a business system login test method provided in Embodiment 2 of the present invention is provided. Specifically, the method comprises the following steps:

[0062] S210: Pre-process the business system information table to obtain the target business system information table for accessing the unified identity authentication platform.

[0063] The purpose of preprocessing the business system information table is that there are a large number of business systems that need to be tested in the business system information table. Preprocessing can be used to filter out business systems that cannot be accessed, reduce the number of business system login tests, save the execution time of this solution, and improve testing efficiency.

[0064] For details, please refer to Figure 2b , Figure 2b A sub-flow diagram of a business system login test method provided in Embodiment 2 of the present invention, preprocessing the business system information table to obtain the target business system information table for accessing the unified identity authentication platform, including the following steps:

[0065] S201. Request access to the web page address contained in the current row in the business system information table to obtain a return code corresponding to the web page address.

[0066] For the business system information table connected to the unified identity authentication platform, for example, the Excel spreadsheet processing tool xlrd can be used to open the business system information table. Through xlrd, the specified rows and cells in the business system information table can be read, and the number of rows in the table in the business system information table can be obtained.

[0067] By requesting access to the web page address corresponding to the business system in the first row of the business system information table, a return code corresponding to the current web page address is obtained. Different return codes represent different states of the business system access request.

[0068] Optionally, when requesting access to the web page address of each row in the business system information table, the request.get method can be used to make a request and the access time can be set to 3 seconds. If the corresponding access result cannot be obtained within 3 seconds, it can be recorded as the return code corresponding to the access timeout.

[0069] For example, the current return code may be 200, 206, 404 or 503, etc., where different return codes have different meanings, 200 means that the request has been successfully processed, and 503 means that the server is currently unavailable. The types of return codes are not limited to the above examples, and are subject to actual conditions.

[0070] S202: Determine whether the return code corresponding to the webpage address is a preset value.

[0071] The current preset value indicates that the return code is 200, indicating that the access request of the current webpage address is successfully processed. If the return code is not the preset value, step S203 is executed; if the return code is the preset value, step S204 is executed.

[0072] S203: Record the access failure of the business system request corresponding to the webpage address.

[0073] When the return code is not 200, the business system corresponding to the current web page address is recorded as access failure. Optionally, since different return codes represent different request states, in order to enable the tester to clearly understand the type of current access failure, the current failure type may be: gateway error, server error or request method error, etc., the corresponding return code can be noted in the row where the current web page address is located, so that the tester can analyze the problem in a targeted manner.

[0074] S204: Mark the row where the webpage address is located as the information row to be tested.

[0075] The purpose of the current mark is to further test the row where the web page address that can be requested for access is located. The current row may record information related to operations such as login, access, and logout. Marking the current row can facilitate the subsequent extraction of business system information that can be successfully accessed contained in the target business information table.

[0076] S205: Determine whether the current row is the last row of the business system information table.

[0077] The current process can be, each time a request is made to access a web page address, after obtaining the corresponding return code, it is determined whether the current row is the last row in the business system information table. If not, a request is made to access the web page address in the next row of the business system information table. If so, it indicates that all web page addresses in the business system information table have been accessed.

[0078] If not, return to step S201; if so, execute step S206.

[0079] S206: Obtain the target business system information table according to the marked information row to be tested.

[0080] S220: Acquire a business system interface obtained when logging into the business system according to the webpage address.

[0081] In the target business system information table obtained, the webpage address contained in the current row in the target business system information table is logged in to obtain the business system interface of the business system corresponding to the current webpage address. For example, when the webpage address of the social security business system is logged in, the business interface corresponding to the social security business system is obtained, and when the webpage address of the passport processing business system is logged in, the business interface corresponding to the passport processing business system is obtained.

[0082] For details, please refer to Figure 2c , Figure 2c A sub-flow diagram of another business system login test method provided in the second embodiment of the present invention. Obtaining a business system interface obtained when logging into a business system according to a webpage address includes the following steps S2201 to S2204:

[0083] S2201. Obtain a login interface displayed when logging into a business system according to a web page address.

[0084] When obtaining the business system interface, first obtain the login interface corresponding to the current business system, so as to implement the login operation on the login interface by entering a personal account.

[0085] S2202: Determine whether the login interface includes a login control.

[0086] When logging in, in order to test whether the current web page address can log in successfully, it can be determined whether the obtained login interface contains a login control. If not, step S2203 is executed; if contained, step S2204 is executed.

[0087] S2203. Record the login test result of the current business system as single sign-on failure.

[0088] When no login control is included, it indicates that there is no test login entry, and the current business system is recorded as having no login entry. The current business system login execution fails, which also indicates that single sign-on cannot be performed.

[0089] S2204. Trigger the login control and obtain the business system interface corresponding to the business system according to the login link.

[0090] When a login control is included, the current login control is triggered to obtain the business system interface corresponding to the business system according to the login link.

[0091] Before triggering the login control, you need to log in according to the user's account information. The current login method can be corporate or personal. When logging in, you can log in according to the user's account and password combination, or you can log in using an account verification code or other methods. The specific login method is not limited here.

[0092] The login link refers to the link that jumps after the login control is triggered, so as to display the business system interface through the jump link. Generally, when jumping to the business system interface through the login link, in order to ensure that the current link is legal, the general login link should carry the client key parameter, and then obtaining the business system interface corresponding to the business system according to the login link includes the following steps S2205 to S2207:

[0093] S2205: Determine whether the login link contains a client key parameter.

[0094] If not included, execute step S2206; if included, execute step S2207.

[0095] S2206. Record the test result of the current business system when logging in as no client key client key parameter, and display the business system interface.

[0096] The client key parameter is used to ensure the legitimacy of the login link. It is a parameter carried when verifying the login link. If the current login link does not contain the client key parameter, it will not affect the display of the business system interface. It only records the current status, making the test result without the client key parameter, so that the tester can decide whether to replace the new login link.

[0097] S2207. Record the test result of the current business system at login as having client key parameters, and display the business system interface.

[0098] Furthermore, before displaying the business system interface, the displayed business system interface may not be the target interface, that is, it is not the interface where relevant business can be handled. The current interface may also include a relevant reminder window, which may be: whether to enter the current interface, or whether to install the corresponding plug-in, etc. Therefore, before displaying the business system interface, the following steps are also included:

[0099] a) Determine whether the business system interface includes a first reminder window.

[0100] If it is included, proceed to step b); if it is not included, proceed to step c).

[0101] b) Identify the first click identifier of the first reminder window closing control, display the business system interface after the first click identifier is triggered, and record the first click identifier.

[0102] Here, the first reminder window is not limited to one, and may include multiple ones. When identifying the first click identifier of the first reminder window closing control, there are several first reminder windows, and the click identifiers of several first reminder windows should be included. After all the first click identifiers are triggered, the business system interface is displayed, and the first click identifier of the click is recorded. It should be noted that when there are multiple first click identifiers, each identifier is not necessarily the same. For example, the click operation on the current reminder window may be related operations such as continue, exit, yes or no, etc.

[0103] c) Display the business system interface.

[0104] When the first reminder window is not included, the business system interface is directly displayed.

[0105] S221, determining whether the target interface information on the business system interface is consistent with the preset interface information;

[0106] In the displayed business system interface, it is necessary to determine whether the current interface is the interface corresponding to the web page address, and then it is necessary to determine whether the target interface information on the business system interface is consistent with the preset interface information.

[0107] The above target interface information can be understood as the interface information displayed when logging into the business system, the preset interface information can be the preset information displayed on the current interface recorded in the target business system information table, and the current preset information can be understood as the necessary elements on the target interface, which can be exemplified as: a paragraph of text or a picture, etc. Taking the preset information as a picture as an example, when displaying the business system interface, it can be determined whether the target interface information on the business system interface is consistent with the preset interface information by detecting whether the current picture is included in the target interface information.

[0108] If they are inconsistent, execute step S222; if they are consistent, execute step S223.

[0109] S222. Record the login test result of the current business system as single sign-on failure.

[0110] If they are inconsistent, it means that the login to the current business system has failed, indicating that the current business system has not been successfully connected to the unified identity authentication platform. After the single sign-on failure is recorded in the row where the current business system is located, no subsequent operations will be performed.

[0111] S223. Record the login test result of the current business system as single sign-on success.

[0112] If they are consistent, it means that the current business system has been successfully connected to the unified identity authentication platform, that is, one account can log in once and implement corresponding business operations in the business system.

[0113] S230: Obtain user information in the user information interface displayed by the business system.

[0114] Please refer to Figure 2d , Figure 2d A sub-flow diagram of another business system login test method provided in Embodiment 2 of the present invention.

[0115] After a successful login, the user information interface corresponding to the business system and the user information contained in the user information interface will be displayed. The current user information can be: user name, user account, or the name corresponding to the user account, so as to confirm that the currently logged in business system is the system corresponding to the current user account by comparing the user information.

[0116] Optionally, before the user information interface is displayed, there may be a second reminder window on the user information interface, and the user information interface will not be displayed until a corresponding click operation is performed on the second reminder window.

[0117] The second reminder window may be a related reminder page, or may be a related interface that requires a click operation before entering the user information interface. Accordingly, the test operation on the second reminder window may include the following steps:

[0118] a) Determine whether the user information interface includes a second reminder window.

[0119] If the second reminder window is included, execute step b); if not, execute step c).

[0120] b) identifying a second click identifier of the second reminder window closing control, displaying a user information interface after the second click identifier is triggered, and recording the second click identifier;

[0121] The user information interface can be entered according to the number of displays or clicks of the current second reminder window. If clicked once, the second click mark is identified and clicked through xpath or js to enter the account management page; if clicked multiple times, the element is identified through xpath or js, and different buttons are clicked to enter the user information interface.

[0122] Among them, the current second reminder window is not limited to one. When there are multiple second reminder windows, the second click mark that needs to be clicked is recorded, so that in the subsequent automated testing process, the second click mark can be automatically clicked to display the account management interface.

[0123] c) Display the user information interface.

[0124] S231: Determine whether the target user information on the user information interface is consistent with the preset user information.

[0125] In the displayed user information interface, it is necessary to determine whether the target user information on the user information interface is consistent with the preset user information, so as to record the current determination result.

[0126] The above-mentioned target user information can be understood as the relevant information of the user information interface displayed when logging into the business system, the preset user information can be the preset information of the current user information interface recorded in the target business system information table, and the current preset information can be understood as the necessary elements of the target user information, which can be exemplified as: a string of numbers, a paragraph of text or a picture, etc. Taking the preset information as a picture as an example, when displaying the user information interface, it can be determined whether the user information interface on the user information interface is consistent with the preset user information by detecting whether the current picture is included in the target user information.

[0127] If they are inconsistent, execute step S232; if they are consistent, execute step S233.

[0128] S232. Record the test result of the current business system as access failure.

[0129] If the comparison results are inconsistent, it indicates that the business system login user information is incorrect, and the test result of the current business system is recorded as access failure, and the incorrect user information is also recorded.

[0130] S233. Record the test result of the current business system as successful access.

[0131] If the comparison results are consistent, it indicates that the business system login user information is correct, and the test result of the current business system is recorded as successful access, and the user information is recorded as correct.

[0132] S234: Determine whether the user information interface includes an account management control.

[0133] After the information on the current business system user information interface is correct, it is necessary to perform management operations on the user account in the user information interface. The current management operations may be to change the account password or change the account verification method, etc. Then it can be further determined whether the user information interface contains an account management control.

[0134] If not, execute step S235; if included, execute step S236.

[0135] S235. Record the test result of the business system as account management failure.

[0136] If the account management control is not included, account management operations cannot be performed, and the test result of the business system is recorded as account management failure.

[0137] S236. Receive a click operation on the account management control and display the account management interface.

[0138] If an account management control is included, it means that the account management control can be triggered to display the account management interface.

[0139] Optionally, before displaying the account management interface, the following steps may also be included:

[0140] a) Determine whether the account management interface includes a third reminder window.

[0141] Before the account management interface is displayed, there may be a third reminder window on the account management interface, and the account management interface will not be displayed until a corresponding click operation is performed on the third reminder window.

[0142] Among them, the above-mentioned third reminder window may be a related reminder page, or it may be a related interface that requires a click operation when entering the account management interface from the user information interface.

[0143] If the third reminder window is included, execute step b); if not, execute step c).

[0144] b) identifying the third click mark of the third reminder window, displaying the account management interface after the third click mark is triggered, and recording the third click mark.

[0145] The account management interface can be entered according to the number of displays or clicks of the current third reminder window. If clicked once, the third click mark is identified and clicked through xpath or js to enter the account management page; if clicked multiple times, the element is identified through xpath or js, and different buttons are clicked to enter the account management interface.

[0146] Among them, the current third reminder window is not limited to one. When there are multiple third reminder windows, the third click mark that needs to be clicked is recorded, so that in the subsequent automated testing process, the third click mark can be automatically clicked to display the account management interface.

[0147] c) If not included, the account management interface is displayed.

[0148] When it is determined that the third reminder window is not included, the account management interface is directly displayed.

[0149] S237: Determine whether the target account information on the account management interface is consistent with the preset account information.

[0150] Furthermore, on the displayed account management interface, it is necessary to determine whether the target account information is consistent with the preset account information.

[0151] Among them, the above-mentioned target account information can be understood as the account management interface related to the target account information displayed after the account management interface is successfully accessed, the preset account information can be the actual account information corresponding to the current account management interface recorded in the target business system information table, and the current preset account information can be understood as the necessary elements of the target account information, which can be exemplified as: a string of numbers, a paragraph of text or a picture, etc. Taking the preset account information as a string of numbers as an example, the current value can be the target account, which can be compared by comparing the target account on the account management interface with the preset account.

[0152] If they are inconsistent, execute step S238; if they are consistent, execute step S239.

[0153] S238. Record the test result of the current business system as failure to access the account management interface.

[0154] If the target account information on the account management interface is inconsistent with the preset account information, the test result of the current business system is recorded as a failure to access the account management interface, and subsequent operations cannot be performed.

[0155] S239. Record the test result of the current business system as successful access to the account management interface.

[0156] S240: When an exit control is included on the user information interface, trigger the exit control.

[0157] Please refer to Figure 2e , Figure 2e A sub-flow diagram of another business system login test method provided in Embodiment 2 of the present invention.

[0158] When the access to the business system is completed, you need to exit the current business system. When the exit control is included on the user information interface, the exit control operation can be triggered to complete the exit operation of the current business system. However, when the exit control operation is triggered, the exit control may not be executed successfully. Therefore, it is necessary to determine whether the exit control is executed successfully.

[0159] It should be noted that the current recognition and triggering operation of the exit control can be to recognize or trigger the identification information of the exit control, so as to determine whether the user information interface contains the exit control or complete the triggering operation of the exit control by recognizing and triggering the identification information of the exit control.

[0160] S241, determining whether the exit control is executed successfully.

[0161] If not, execute step S242; if so, execute step S243.

[0162] S242. Record the test result of the business system as single point exit failure.

[0163] S243. Record the test result of the business system as successful single point exit.

[0164] That is, the current business system exits successfully by triggering the current exit control.

[0165] In an optional embodiment, when the user information interface does not include an exit control, the login test solution provided by the embodiment of the present invention includes the following steps:

[0166] a) Trigger the return control of the user information interface to display the current interface of the business system.

[0167] If the user information interface does not include an exit control, the return interface is triggered by identifying the return control identifier of the user information interface, so as to display the current interface of the business system after the return operation is triggered.

[0168] b) Determine whether the current interface contains an exit control.

[0169] After operating the return control, it is further determined whether the current interface includes an exit control.

[0170] If it is included, execute step c); if it is not included, execute step d).

[0171] c) Trigger the exit control of the current interface and record the number of times the return control is triggered.

[0172] When the return control is triggered once and the current interface contains an exit control, the exit control of the current interface is triggered and the number of times the return control is clicked is recorded. If the button is clicked once, the exit control can be identified and clicked through methods such as Extensible Markup Language Path Language (Xml Path Language, referred to as XPath) or JS scripting language (JavaScript, referred to as JS).

[0173] d) Trigger the return control of the current interface until the exit control is displayed, and record the number of times the return control is triggered.

[0174] If the current interface does not contain an exit control after the return control is triggered once, the return control operation of the current interface will continue to be triggered until the exit control is displayed. The operation of the exit control is triggered and the number of times the return control is triggered is recorded. In this way, in subsequent automatic testing, it is clear how many times the return operation is automatically triggered so that the exit control can be displayed.

[0175] Optionally, when the exit control is not included on the user information interface, the "jump" control of the user interface can be identified, and the jump control can be triggered to jump to the current business system homepage. The current business system homepage can be the interface displayed after logging into the business system according to the web page address, so as to determine whether the exit control is included on the current business system homepage.

[0176] After the test result of the business system is that the single point exit is successful, it also includes:

[0177] S244: Determine whether the user interface included in the unified identity authentication platform includes an exit control.

[0178] Furthermore, when the test result of the business system is that the single point logout is successful, it can also be determined whether the connected unified identity authentication platform is logged out successfully. The current judgment process can be to determine whether the user interface included in the unified identity authentication platform includes a logout control.

[0179] If it is included, execute step S245; if it is not included, execute step S246.

[0180] S245. Record the failure of single-point logout from the unified identity authentication platform.

[0181] If the unified identity authentication platform also includes an exit control, it means that the unified identity authentication platform failed to exit synchronously with the business system, and the failure of the unified identity authentication platform single-point exit is recorded.

[0182] S246. Record the success of single-point logout from the unified identity authentication platform.

[0183] If the unified identity authentication platform does not contain an exit control, it means that the unified identity authentication platform is exited synchronously with the business system, and the single-point exit of the unified identity authentication platform is recorded as successful.

[0184] S250: Determine whether the row where the webpage address corresponding to the currently exited business system is located is the last row of the target business system information table.

[0185] If not, the process returns to step S220 to perform a login test on the webpage address in the next row of the target business system information table until all business systems corresponding to the webpage addresses in the target business system information table are tested. If yes, the process proceeds to step S251.

[0186] S251. Generate test record results of the target business system information table according to the login test results, access test results and exit test results.

[0187] In an optional embodiment, after the test record result is generated according to the login test result, the access test result and the exit test result, the test record result may be compared and analyzed, specifically including the following steps:

[0188] a) Calling the preset test record result, the preset test record result is the test record corresponding to each web page address in the target business system information table.

[0189] After the testing of all business systems in the target business system information table is completed, the record results of all business systems in the target business system information table can be obtained. Accordingly, the record results can be compared with the preset test record results so that the tester can clearly understand whether the current test results are consistent with the preset test record results. If not, further testing and processing is required.

[0190] The preset test record result may be a test result obtained after manually logging into all business systems in the target business system information table in advance, or may be a test result obtained by automatically logging into all business systems in the target business system information table last time. The last time may be a preset time period, that is, using the business system login test method provided by the embodiment of the present invention, automatic inspection may be performed at intervals of a preset time period according to the results recorded in the target business system information table to obtain a new inspection record.

[0191] b) Determine line by line whether the current test record result and the preset test record result in the test record result are consistent.

[0192] After obtaining the test record results of the target business system information table, the test record results of the target business system information table are compared line by line with the preset test record results to determine whether the current test record results are consistent with the preset test record results.

[0193] If they are consistent, it means that the test record result corresponding to the current row is the same as the current preset test record result, and no corresponding operation is required, and the original record result is retained. If they are inconsistent, it means that the test record result corresponding to the current row is inconsistent with the preset test record result, and step c) is executed.

[0194] It should be noted that the comparison method can be, for the current row of the current test record result and the current row of the preset test record result, both need to be test record results for the same business system. When comparing, the current row can be compared cell by cell, and the properties of the cells in the current two test records should be consistent.

[0195] c) Mark the business system corresponding to the current row in the current test record result to obtain the marked information row.

[0196] The rows whose test record results corresponding to the current row are inconsistent with the preset test record results are marked to facilitate analysis of the marked rows later.

[0197] d) When the current test record result and the preset test record result are compared line by line, the test comparison result is obtained according to the marked information line.

[0198] The current step can be, when the comparison between the test record results of the current row and the preset test record results is completed, determine whether the current row is the last row. If not, compare the test record results of the next row with the preset test record results; if so, the test comparison results can be obtained according to the mark information row.

[0199] Furthermore, after the comparison is completed, the obtained test comparison results can be organized into a comparison result table, and the current comparison result table can be marked with a corresponding label. The current label can be marked with the number of comparisons, for example, the xth comparison result table. It can also be marked according to the time when the comparison result table was obtained, so as to distinguish it from the previously obtained comparison result table.

[0200] Optionally, the test record results and the comparison result table of the target business system information table obtained this time may be sent to the tester in the form of an email for further analysis by the tester.

[0201] The business system login test method provided by the embodiment of the present invention has high execution efficiency. Before each automatic execution of single sign-on, the business system information table will be pre-processed and optimized, and the system returning other error codes will be judged as an abnormal or offline business system. Then, only the business system returning 200 codes will be tested, saving execution time and improving test efficiency; it has strong scalability, fully considering the characteristics of most business systems, and adaptively compatible with the interaction of jumping to different business systems. The various steps in the test method have been classified and completely abstracted into different automated test units, and the execution logic and system data are almost completely separated, so new systems can be added at any time to perform tests. For new business systems connected to unified identity authentication, as long as a new data is entered in the business system information table, it can be automatically tested when the next inspection is executed; it has high ease of use, supports outputting result reports and sending emails, and provides comparison reports for the latest results and the last results, without additional manual verification. When implemented, it can automatically start execution and automatically output reports, which is conducive to automated inspections.

[0202] Embodiment 3

[0203] Figure 3 This is a structural block diagram of a business system login test device provided in the third embodiment of the present invention. The device can be implemented by software and / or hardware, and can generally be integrated in a computer device such as a server. The business system can be automatically tested by executing the business system login test method. Figure 3 As shown, the device includes: a login module 31, an access module 32, a logout module 33, a judgment module 34 and an acquisition module 35, wherein:

[0204] A login module 31 is used to obtain a target business system information table to be tested, log in to the webpage address contained in the current row in the target business system information table based on a unified identity authentication platform, and record a login test result of the business system corresponding to the webpage address;

[0205] An access module 32, used to access the business system and record the access test result of the business system when the single sign-on to the business system is successful;

[0206] An exit module 33 is used to exit the business system on the user information interface when successfully accessing the user information interface of the business system, and record the exit test result of the business system;

[0207] A judgment module 34 is used to judge whether the row where the webpage address corresponding to the currently exited business system is located is the last row of the target business system information table;

[0208] The login module 31 is specifically used to perform a login test on the webpage address in the next row of the target business system information table based on the unified identity authentication platform when the row where the webpage address corresponding to the currently exited business system is located is not the last row of the target business system information table, until all business systems corresponding to the webpage addresses in the target business system information table are tested;

[0209] The acquisition module 35 is used to generate the test record result of the target business system information table according to the login test result, the access test result and the exit test result when the row where the webpage address corresponding to the currently exited business system is located is the last row of the target business system information table.

[0210] The business system login test device provided in the embodiment of the present invention first obtains the target business system information table to be tested, logs in to the web page address contained in the current row in the target business system information table based on the unified identity authentication platform, and records the login test result of the business system corresponding to the web page address; when the business system is successfully logged in by single point, the business system is then accessed and the access test result of the business system is recorded; when the user information interface of the business system is successfully accessed, the business system is exited on the user information interface and the exit test result of the business system is recorded; by adopting the above technical scheme, the test result of the business system corresponding to a web page address at the time of login can be obtained, and further by judging whether the row where the web page address corresponding to the currently exited business system is located is the last row of the target business system information table; if so, the test record result of the target business system information table is generated according to the login test result, the access test result and the exit test result, so that all web page addresses connected to the identity authentication platform can be automatically tested, and can also be used for daily inspections, which can achieve the technical effect of improving work efficiency.

[0211] Optionally, the device further comprises: a preprocessing module;

[0212] The preprocessing module is used to preprocess the business system information table to obtain the target business system information table for accessing the unified identity authentication platform.

[0213] The pre-processing module includes: a request access unit, a first judgment unit, a target information table acquisition unit, a first recording unit and a marking unit, wherein:

[0214] The access request unit is used to request access to the web page address contained in the current row in the business system information table, and obtain a return code corresponding to the web page address;

[0215] A first judging unit, configured to judge whether a return code corresponding to the webpage address is a preset value;

[0216] If not, the first recording unit is used to record the failure of the business system request corresponding to the webpage address to access the business system;

[0217] If yes, a marking unit is used to mark the row where the webpage address is located as a row of information to be tested;

[0218] The target information table obtaining unit is used to obtain the target business system information table according to the marked information rows to be tested when all the web page addresses included in the business system information table have been requested to be accessed.

[0219] Optionally, the login module 31 includes: an interface obtaining unit, a second judging unit, and a second recording unit, wherein:

[0220] An interface obtaining unit, used to obtain a business system interface obtained when logging into the business system according to the webpage address;

[0221] A second judgment unit is used to judge whether the target interface information on the business system interface is consistent with the preset interface information;

[0222] If they are inconsistent, the second recording unit is used to record the login test result of the current business system as single sign-on failure;

[0223] If they are consistent, the second recording unit is further used to record the login test result of the current business system as single sign-on success.

[0224] Optionally, the interface acquisition unit includes: a login interface acquisition subunit, a first judgment subunit and a first recording subunit, wherein:

[0225] A login interface acquisition subunit, used to acquire a login interface displayed when logging into the business system according to the webpage address;

[0226] A first judging subunit, used to judge whether the login interface includes a login control;

[0227] If not included, the first recording subunit is used to record that the login test result of the current business system is a single sign-on failure;

[0228] If included, the first recording subunit is also used to trigger the login control and obtain the business system interface corresponding to the business system according to the login link.

[0229] Optionally, the first judgment subunit is specifically used to judge whether the login link contains a client key parameter;

[0230] If not included, the first recording subunit is further used to record that the test result of the current business system at login is no client key parameter, and display the business system interface;

[0231] If included, the first recording subunit is also used to record the test result of the current business system at login as having client key parameters, and display the business system interface.

[0232] Optionally, the first judgment subunit is further configured to judge whether the business system interface includes a first reminder window;

[0233] If included, the first recording subunit is further used to identify a first click identifier of the first reminder window closing control, and display the business system interface after the first click identifier is triggered, and record the first click identifier;

[0234] If not included, the first recording subunit is also used to display the business system interface.

[0235] Optionally, the access module 32 includes: a user information acquisition unit, a third judgment unit and a third recording unit, wherein:

[0236] A user information acquisition unit, used to acquire user information in a user information interface displayed by the business system;

[0237] A third judgment unit, used to judge whether the target user information on the user information interface is consistent with the preset user information;

[0238] If they are inconsistent, the third recording unit is used to record the test result of the current business system as access failure;

[0239] If they are consistent, the third recording unit is used to record the test result of the current business system as successful access.

[0240] Optionally, the third determination unit is specifically configured to determine whether the user information interface includes an account management control;

[0241] If not included, a third recording unit is specifically used to record that the test result of the business system is account management failure;

[0242] If included, the third recording unit is specifically used to receive a click operation on the account management control and display the account management interface.

[0243] Optionally, a third judgment unit is specifically used to judge whether the target account information on the account management interface is consistent with the preset account information;

[0244] If they are inconsistent, the third recording unit is specifically used to record the test result of the current business system as a failure to access the account management interface;

[0245] If they are consistent, the third recording unit is specifically used to record the test result of the current business system as successful access to the account management interface.

[0246] Optionally, the user information acquisition unit includes: a second judgment subunit, a second recording subunit and an interface display subunit, wherein:

[0247] A second judging subunit is used to judge whether the user information interface includes a second reminder window;

[0248] If included, a second recording subunit is used to identify a second click identifier of the second reminder window closing control, and display the user information interface after the second click identifier is triggered, and record the second click identifier;

[0249] If not included, the interface display subunit is used to display the user information interface.

[0250] Optionally, the second judgment subunit is specifically used to judge whether the account management interface includes a third reminder window;

[0251] If included, the second recording subunit is specifically used to identify the third click identifier of the third reminder window, and display the account management interface after triggering the third click identifier, and record the third click identifier;

[0252] If not included, the interface display subunit is specifically used to display the account management interface.

[0253] Optionally, the exit module 33 includes: a fourth judgment unit and a fourth recording unit, wherein:

[0254] A fourth judgment unit, configured to trigger an exit control when an exit control is included on the user information interface, and to judge whether the exit control is executed successfully;

[0255] If not, the fourth recording unit is used to record that the test result of the business system is a single point exit failure;

[0256] If so, the fourth recording unit is specifically used to record that the test result of the business system is a successful single-point logout.

[0257] Optionally, the exit module 33 further includes: a current interface display unit, wherein:

[0258] The current interface display unit is used to trigger the return control of the user information interface and display the current interface of the business system when the user information interface does not contain an exit control.

[0259] A fourth determination unit, specifically configured to determine whether the current interface includes an exit control;

[0260] If included, a fourth recording unit is specifically used to trigger the exit control of the current interface and record the number of times the return control is clicked;

[0261] If not included, the fourth recording unit is specifically used to trigger the return control of the current interface until the exit control is displayed, and record the number of times the return control is triggered.

[0262] Optionally, the fourth judgment unit is specifically used to judge whether the user interface included in the unified identity authentication platform includes an exit control;

[0263] If included, a fourth recording unit is specifically used to record the failure of single-point logout of the unified identity authentication platform;

[0264] If not included, the fourth recording unit is specifically used to record the success of the single-point logout of the unified identity authentication platform.

[0265] Optionally, the device further comprises: a calling module and a recording module, wherein:

[0266] A calling module, used to call a preset test record result, wherein the preset test record result is a test record corresponding to each web page address in the target business system information table;

[0267] A judgment module, specifically used to judge whether the current test record result and the preset test record result in the test record result are consistent line by line;

[0268] If they are consistent, no operation is performed on the business system corresponding to the current row in the current test record result;

[0269] If they are inconsistent, the recording module is used to mark the business system corresponding to the current row in the current test record result to obtain a marked information row;

[0270] The obtaining module is specifically used to obtain the test comparison result according to the mark information line when the current test record result and the preset test record result are compared line by line.

[0271] The business system login test device provided in the embodiment of the present invention can execute the business system login test device method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects for executing the method.

[0272] Embodiment 4

[0273] An embodiment of the present invention provides a computer device, in which the business system login test device provided by the embodiment of the present invention can be integrated. Figure 4The present invention provides a structural block diagram of a computer device according to the fourth embodiment of the present invention. The computer device 400 may include: a memory 401, a processor 402, and a computer program stored in the memory 401 and executable on the processor. When the processor 402 executes the computer program, the business system login test device method according to the embodiment of the present invention is implemented.

[0274] The computer device provided in the embodiment of the present invention can execute the business system login test device method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects for executing the method.

[0275] Embodiment 5

[0276] An embodiment of the present invention further provides a storage medium containing computer executable instructions, wherein the computer executable instructions are used for a business system login test device method when executed by a computer processor, the method comprising:

[0277] Obtaining a target business system information table to be tested, logging into the webpage address contained in the current row of the target business system information table based on a unified identity authentication platform, and recording a login test result of the business system corresponding to the webpage address;

[0278] Upon successful single-point login to the business system, access the business system and record the access test result of the business system;

[0279] When successfully accessing the user information interface of the business system, exiting the business system on the user information interface and recording the exit test result of the business system;

[0280] Determine whether the row where the webpage address corresponding to the currently exited business system is located is the last row of the target business system information table;

[0281] If not, a login test is performed on the webpage address in the next row of the target business system information table based on the unified identity authentication platform until all business systems corresponding to the webpage addresses in the target business system information table are tested;

[0282] If so, a test record result of the target business system information table is generated according to the login test result, the access test result and the exit test result.

[0283] Storage medium - any of various types of memory devices or storage devices. The term "storage medium" is intended to include: installation media, such as CD-ROM, floppy disk or tape device; computer system memory or random access memory, such as DRAM, DDRRAM, SRAM, EDORAM, Rambus RAM, etc.; non-volatile memory, such as flash memory, magnetic media (such as hard disk or optical storage); registers or other similar types of memory elements, etc. The storage medium may also include other types of memory or combinations thereof. In addition, the storage medium may be located in the first computer system in which the program is executed, or may be located in a different second computer system, which is connected to the first computer system via a network (such as the Internet). The second computer system can provide program instructions to the first computer for execution. The term "storage medium" may include two or more storage media that may reside in different locations (for example, in different computer systems connected by a network). The storage medium may store program instructions (for example, embodied as a computer program) that can be executed by one or more processors.

[0284] Of course, the computer executable instructions of a storage medium containing computer executable instructions provided in an embodiment of the present invention are not limited to the business system login test operation described above, and can also execute related operations in the business system login test method provided in any embodiment of the present invention.

[0285] The business system login test device, equipment and storage medium provided in the above embodiments can execute the business system login test method provided in any embodiment of the present invention, and have the corresponding functional modules and beneficial effects of executing the method. For technical details not described in detail in the above embodiments, please refer to the business system login test method provided in any embodiment of the present invention.

[0286] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims

1. A business system login test method, characterized in that: include: Obtain the target business system information table to be tested, log in to the webpage address contained in the current row of the target business system information table based on the unified identity authentication platform, and record the login test result of the business system corresponding to the webpage address; the target business system information table includes the business system name, the type of business system login and the webpage address of the business system; Upon successful single-point login to the business system, access the business system and record the access test result of the business system; When successfully accessing the user information interface of the business system, exiting the business system on the user information interface and recording the exit test result of the business system; Determine whether the row where the webpage address corresponding to the currently exited business system is located is the last row of the target business system information table; If not, a login test is performed on the web page address in the next row of the target business system information table based on the unified identity authentication platform until all business systems corresponding to the web page addresses in the target business system information table are tested; If yes, generating a test record result of the target business system information table according to the login test result, the access test result and the exit test result; When the single sign-on to the business system is successful, the business system is accessed and the access test result of the business system is recorded, including: Obtaining user information in a user information interface displayed by the business system; Determine whether the target user information on the user information interface is consistent with the preset user information; If they are inconsistent, the test result of the current business system is recorded as access failure; If they are consistent, the test result of the current business system is recorded as successful access.

2. The method according to claim 1, characterized in that Before obtaining the target business system information table to be tested, the method further includes: Preprocessing the business system information table to obtain a target business system information table for access to the unified identity authentication platform; Accordingly, the preprocessing of the business system information table to obtain the target business system information table accessing the unified identity authentication platform includes: Requesting access to the web page address contained in the current row in the business system information table to obtain a return code corresponding to the web page address; Determine whether the return code corresponding to the webpage address is a preset value; If not, then record that the business system request corresponding to the webpage address has failed to access; If yes, then mark the row where the webpage address is located as the information row to be tested; When all the web page addresses included in the business system information table are accessed, the target business system information table is obtained according to the marked information rows to be tested.

3. The method according to claim 1, characterized in that Logging in the webpage address contained in the current row of the target business system information table based on the unified identity authentication platform, and recording the login test result of the business system corresponding to the webpage address, including: Acquire the business system interface obtained when logging into the business system according to the webpage address; Determine whether the target interface information on the business system interface is consistent with the preset interface information; If they are inconsistent, the login test result of the current business system is recorded as single sign-on failure; If they are consistent, the login test result of the current business system is recorded as single sign-on success.

4. The method according to claim 3, characterized in that The business system interface obtained when logging into the business system according to the webpage address includes: Obtaining a login interface displayed when logging into the business system according to the webpage address; Determine whether the login interface includes a login control; If not included, the login test result of the current business system is recorded as single sign-on failure; If included, the login control is triggered, and the business system interface corresponding to the business system is obtained according to the login link.

5. The method according to claim 4, characterized in that Obtain the business system interface corresponding to the business system according to the login link, including: Determining whether the login link contains a client key parameter; If not included, the test result of the current business system at login is recorded as no client key parameter, and the business system interface is displayed; If included, the test result of the current business system at login is recorded as having client key parameters, and the business system interface is displayed.

6. The method according to claim 5, characterized in that Before displaying the business system interface, the method further includes: Determining whether the business system interface includes a first reminder window; If included, identifying a first click identifier of the first reminder window closing control, displaying the business system interface after the first click identifier is triggered, and recording the first click identifier; If not included, the business system interface is displayed.

7. The method according to claim 1, characterized in that After the test result of the current business system is access success, it also includes: Determining whether the user information interface includes an account management control; If not, the test result of the business system is recorded as account management failure; If included, a click operation on the account management control is received and the account management interface is displayed.

8. The method according to claim 7, characterized in that After displaying the account management interface, it also includes: Determine whether the target account information on the account management interface is consistent with the preset account information; If they are inconsistent, the test result of the current business system is recorded as a failure to access the account management interface; If they are consistent, the test result of the current business system is recorded as successful access to the account management interface.

9. The method according to claim 1, characterized in that: Before obtaining the user information in the user information interface displayed by the business system, the method further includes: Determining whether the user information interface includes a second reminder window; If included, identifying the second click identifier of the second reminder window, displaying the user information interface after triggering the second click identifier, and recording the second click identifier; If not included, the user information interface is displayed.

10. The method according to claim 7, characterized in that Before displaying the account management interface, the method further includes: Determining whether the account management interface includes a third reminder window; If included, identifying the third click mark of the third reminder window, displaying the account management interface after triggering the third click mark, and recording the third click mark; If not included, the account management interface is displayed.

11. The method according to claim 1, characterized in that: When successfully accessing the user information interface of the business system, exiting the business system on the user information interface and recording the exit test result of the business system include: When an exit control is included on the user information interface, triggering the exit control and determining whether the exit control is executed successfully; If not, the test result of the business system is recorded as single point exit failure; If so, the test result of the business system is recorded as single point exit success.

12. The method according to claim 11, characterized in that The method further comprises: When the user information interface does not include an exit control, triggering a return control of the user information interface to display the current interface of the business system; Determine whether the current interface includes an exit control; If included, the exit control of the current interface is triggered, and the number of times the return control is clicked is recorded; If not included, the return control of the current interface is triggered until the exit control is displayed, and the number of times the return control is triggered is recorded.

13. The method according to claim 11, characterized in that After the test result of the business system is that the single point exit is successful, it also includes: Determining whether the user interface included in the unified identity authentication platform includes an exit control; If included, the failure of single-point logout of the unified identity authentication platform is recorded; If not included, the single-point logout of the unified identity authentication platform is recorded as successful.

14. The method according to claim 1, characterized in that After generating the test record result of the target business system information table according to the login test result, the access test result and the exit test result, the method further includes: Calling a preset test record result, wherein the preset test record result is a test record corresponding to each web page address in the target business system information table; Determining line by line whether the current test record result and the preset test record result in the test record result are consistent; If they are inconsistent, marking the business system corresponding to the current row in the current test record result to obtain a marking information row; When the current test record result and the preset test record result are compared line by line, the test comparison result is obtained according to the mark information line.

15. A business system login test device, characterized in that: include: A login module is used to obtain the target business system information table to be tested, log in to the webpage address contained in the current row in the target business system information table based on the unified identity authentication platform, and record the login test result of the business system corresponding to the webpage address; the target business system information table includes the business system name, the type of business system login and the webpage address of the business system; An access module, used to access the business system upon successful single-point login to the business system, and record the access test result of the business system; An exit module, used to exit the business system on the user information interface when successfully accessing the user information interface of the business system, and record the exit test result of the business system; A judgment module, used to judge whether the row where the webpage address corresponding to the currently exited business system is located is the last row of the target business system information table; The login module is specifically used to perform a login test on the web page address in the next row of the target business system information table based on the unified identity authentication platform when the row where the web page address corresponding to the currently exited business system is located is not the last row of the target business system information table, until all business systems corresponding to the web page addresses in the target business system information table are tested; An acquisition module, for generating a test record result of the target business system information table according to the login test result, the access test result and the exit test result when the row where the webpage address corresponding to the currently exited business system is located is the last row of the target business system information table; The access module includes: a user information acquisition unit, a third judgment unit and a third recording unit, wherein: A user information acquisition unit, used to acquire user information in a user information interface displayed by the business system; A third judgment unit, used to judge whether the target user information on the user information interface is consistent with the preset user information; If they are inconsistent, the third recording unit is used to record the test result of the current business system as access failure; If they are consistent, the third recording unit is used to record the test result of the current business system as successful access.

16. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method according to any one of claims 1 to 14 is implemented.

17. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 14 is implemented.

Citation Information

Patent Citations

  • System and method for realizing single sign-on based on container

    CN111444495A

  • Test result determination method and device, electronic equipment and storage medium

    CN113806219A