CN114238148A - Business system login test method, device, equipment and medium - Google Patents

Business system login test method, device, equipment and medium Download PDF

Info

Publication number
CN114238148A
CN114238148A CN202111658125.XA CN202111658125A CN114238148A CN 114238148 A CN114238148 A CN 114238148A CN 202111658125 A CN202111658125 A CN 202111658125A CN 114238148 A CN114238148 A CN 114238148A
Authority
CN
China
Prior art keywords
service system
interface
recording
test result
login
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111658125.XA
Other languages
Chinese (zh)
Inventor
卢日含
邓影
周美欣
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Digital Guangdong Network Construction Co Ltd
Original Assignee
Digital Guangdong Network Construction Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Digital Guangdong Network Construction Co Ltd filed Critical Digital Guangdong Network Construction Co Ltd
Priority to CN202111658125.XA priority Critical patent/CN114238148A/en
Publication of CN114238148A publication Critical patent/CN114238148A/en
Pending legal-status Critical Current

Links

Images

Classifications

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • Computer Security & Cryptography (AREA)
  • Software Systems (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the invention discloses a method, a device, equipment and a medium for testing login of a service system, wherein the method comprises the following steps: acquiring a target service system information table to be tested, logging in a webpage address contained in a current row in the target service system information table based on a unified identity authentication platform, and recording a logging test result of a service system corresponding to the webpage address; when the service system is successfully single-point logged in, accessing the service system and recording an access test result of the service system; when the user information interface of the service system is successfully accessed, the service system is quitted on the user information interface, and the quitting test result of the service system is recorded; by adopting the technical scheme, the testing result of the business system corresponding to one webpage address during login can be obtained, all webpage addresses accessed to the identity authentication platform can be automatically tested, the method can also be used for daily inspection, and the technical effect of improving the working efficiency can be achieved.

Description

Business system login test method, device, equipment and medium
Technical Field
The embodiment of the invention relates to the technical field of computer systems, in particular to a method, a device, equipment and a medium for testing login of a service system.
Background
In order to facilitate the management of a business system and business data in an enterprise, a unified business management platform is provided, and the technical effects of one account number, one-time login and enterprise universality are realized through the business management platform. For example, the establishment of a unified identity authentication platform has become an indispensable and important system for government affairs services on each province line. However, in the process of unified identity authentication integration and standardized access in the province, more and more business systems need to be connected with a unified identity authentication platform, and how to quickly and efficiently verify whether the accessed business systems are in the standardized access becomes a key problem to be solved.
In order to simplify the testing workload, the existing automated testing methods for service system access generally fall into the following categories: firstly, only aiming at the automatic test of a single service system for connecting a unified authentication platform, the authentication is carried out by simulating login by using a User Interface (UI) automatic test framework; secondly, aiming at the unified authentication automation test of different user types, the information of the user to be authenticated is matched after registration and login are mainly passed, and the subsequent service function test is carried out after the information authentication is passed; thirdly, the interface is used for simulating a login request to realize unified identity authentication, and login is automatically realized by directly calling a login authentication interface.
The existing method for automatically testing the login of the service system is relatively single, is not suitable for automatic inspection, and has low working efficiency.
Disclosure of Invention
The embodiment of the invention provides a method, a device, equipment and a medium for testing the login of a service system, which can optimize the implementation scheme of the existing login test of the service system.
In a first aspect, an embodiment of the present invention provides a method for testing login of a service system, including:
acquiring a target service system information table to be tested, logging in a webpage address contained in a current row in the target service system information table based on a unified identity authentication platform, and recording a logging test result of a service system corresponding to the webpage address;
when the single sign-on of the service system is successful, accessing the service system and recording an access test result of the service system;
when the user information interface of the service system is successfully accessed, quitting the service system on the user information interface, and recording the quitting test result of the service system;
judging whether the row of the webpage address corresponding to the currently withdrawn service system is the last row of the target service system information table;
if not, performing login test on the next row of webpage addresses in the target service system information table based on the unified identity authentication platform until all service systems corresponding to the webpage addresses in the target service system information table are tested;
if yes, generating a test record result for obtaining the target service system information table according to the login test result, the access test result and the quit test result.
In a second aspect, an embodiment of the present invention provides a service system login testing apparatus, including:
the login module is used for acquiring a target service system information table to be tested, logging in a webpage address contained in a current row in the target service system information table based on a unified identity authentication platform, and recording a login test result of a service system corresponding to the webpage address;
the access module is used for accessing the service system and recording an access test result of the service system when the service system is successfully single-point logged in;
the exit module is used for exiting the service system on the user information interface and recording the exit test result of the service system when the user information interface of the service system is successfully accessed;
the judging module is used for judging whether the row of the webpage address corresponding to the currently withdrawn business system is the last row of the target business system information table;
the login module is specifically used for performing login test on the next row of webpage addresses in the target service system information table based on the unified identity authentication platform when the row of the webpage addresses corresponding to the currently logged-out service system is not the last row of the target service system information table until all the service systems corresponding to the webpage addresses in the target service system information table are tested;
and the obtaining module is used for generating a test record result of the target service system information table according to the login test result, the access test result and the quit test result when the row of the webpage address corresponding to the currently quit service system is the last row of the target service system information table.
In a third aspect, an embodiment of the present invention provides a computer device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor executes the computer program to implement the service system login testing method provided in the embodiment of the present invention.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the service system login testing method provided in the embodiment of the present invention.
The business system login test scheme provided by the embodiment of the invention comprises the steps of firstly obtaining a target business system information table to be tested, logging in a webpage address contained in a current row in the target business system information table based on a unified identity authentication platform, and recording a login test result of a business system corresponding to the webpage address; when the single sign-on of the service system is successful, then accessing the service system, and recording an access test result of the service system; when the user information interface of the service system is successfully accessed, the service system is quitted on the user information interface, and the quitting test result of the service system is recorded; by adopting the technical scheme, the test result of the business system corresponding to one webpage address during login can be obtained, and whether the row of the webpage address corresponding to the currently logged-out business system is the last row of the target business system information table is further judged; if the target service system information table is the target service system information table, a test record result of the target service system information table is generated according to the login test result, the access test result and the quit test result, all webpage addresses accessed to the identity authentication platform can be automatically tested, the method can also be used for daily inspection, and the technical effect of improving the working efficiency can be achieved.
Drawings
Fig. 1 is a schematic flowchart of a service system login testing method according to an embodiment of the present invention;
fig. 2a is a schematic flowchart of a service system login testing method according to a second embodiment of the present invention;
fig. 2b is a sub-flow diagram of a service system login testing method according to a second embodiment of the present invention;
fig. 2c is a schematic sub-flow chart of another service system login testing method according to the second embodiment of the present invention;
fig. 2d is a schematic sub-flow chart of another service system login testing method according to the second embodiment of the present invention;
fig. 2e is a sub-flow diagram of another service system login testing method according to the second embodiment of the present invention;
fig. 3 is a block diagram of a service system login testing apparatus according to a third embodiment of the present invention;
fig. 4 is a block diagram of a computer device according to a fourth embodiment of the present invention.
Detailed Description
The technical scheme of the invention is further explained by the specific implementation mode in combination with the attached drawings. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Before discussing exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart may describe the steps as a sequential process, many of the steps can be performed in parallel, concurrently or simultaneously. In addition, the order of the steps may be rearranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figure. The processes may correspond to methods, functions, procedures, subroutines, and the like.
Example one
Fig. 1 is a schematic flowchart of a method for implementing a service system login test according to an embodiment of the present invention, where the method may be executed by a service system login test apparatus, where the apparatus may be implemented by software and/or hardware, and may generally be integrated in a computer device such as a server. As shown in fig. 1, the method includes:
s110, obtaining a target service system information table to be tested, logging in a webpage address contained in a current row in the target service system information table based on the unified identity authentication platform, and recording a logging test result of a service system corresponding to the webpage address.
In a business system, in order to facilitate management of personnel in an enterprise and authentication of identity information, a unified identity authentication platform is widely applied due to the characteristics of single sign-on and trust transfer. The single sign-on indicates that a user can access all mutually trusted application systems only by logging on once, for example, after logging on a unified identity authentication platform based on a single user account, the user can log in a corresponding service system when needing to access an associated service system and can access the corresponding service system; or after a single user account logs in a service system, when needing to access other associated service systems, the user can log in and access the corresponding service system; or based on the access request of a service system, calling a unified login entry of the unified identity authentication platform, enabling a user to access the service system after logging in through the unified login entry, and if the user needs to access other service systems, logging in other service systems based on the login result of the user through the unified login entry.
For example, taking the unified identity authentication platform as an example, the unified identity authentication platform can realize 'one account, one login, general use in the whole province', and becomes an indispensable important system in the online government service transaction of each province. In order to standardize each business system accessed to the unified identity authentication in the whole province, each business system accessed to the unified identity authentication platform is subjected to periodic test of single sign-on conditions according to the management requirements of the work of the government affairs service in the whole province, so that the service can be accurately provided, and the business handling requirements of common people are practically guaranteed. Illustratively, each service system accessing the unified identity authentication platform may be: the social security service system, the license transaction service system, the passport transaction service system, and the like, and the types of service systems specifically accessing the unified identity authentication platform are not limited herein.
It is easy to understand that when logging in to a business system, logging in needs to be performed according to the related account information, a target business system needs to be accessed after logging in is completed, and operations such as logging out needs to be performed after accessing is completed. Therefore, the service system information table may be a table in which information of each service system that needs to be tested when the unified identity authentication platform is accessed is recorded, and the information in the current table may include: the name of the service system, the type of the service system login (which may be a person or a legal person), and the web address (URL) of the service system.
Optionally, in the logging test scheme for the service system provided in the embodiment of the present invention, when the logging, accessing or exiting operation is performed according to the web address of the service system, a button identifier corresponding to each operation may be recorded, that is, a button identifier for jumping to the logging when clicked, a button identifier for jumping to the account management interface when clicked, a button identifier for logging out when clicked, and an identifier for logging out when clicked, and the like are recorded. When the login, access or exit operation is performed, the button identifier corresponding to each operation is not limited to one, the current operation can be successful by clicking the relevant button identifier several times in the current operation node, and several identifiers are recorded in the service system information table for the current service system.
The contents included in the service system information table are not limited to the above example, and may include a pop-up window and user information that are popped up when a login, access, or logout operation is performed, and when the pop-up window is included, an identifier of the pop-up window is recorded in the service system information table.
The content recorded in the service system information table can be a recorded result obtained after logging in each access unified identity authentication platform manually, and can also be a service system information table provided by related working personnel when the development of each service system is completed. The business system login test scheme provided by the embodiment of the invention can realize the process of carrying out automatic login test based on the content recorded in the business system information table so as to test whether the related record in the business system information table is correct or not, and can also carry out automatic inspection and the like on each business system information table.
The target service system information table can be obtained after preprocessing the service system information table, and the current preprocessing mode can be that a request access is carried out on a webpage address corresponding to each service system in the service system information table, if the access result of the webpage address is not a preset value, subsequent login tests are not carried out on the current service system, so that the service systems which cannot be accessed are filtered, the number of the login tests of the service systems is reduced, the execution time of the scheme is saved, and the test efficiency is improved.
When the target service system information table is subjected to login operation, each row represents one service system and information related to each service system, the login operation of the current service system is realized by logging in the webpage address corresponding to the current row, and the login test result of the service system corresponding to the webpage address is recorded. The current test result can be login success or login failure, when the test result is login success, the subsequent steps can be executed, when the test result is login failure, the related login failure record is carried out on the row where the current webpage address is located, the subsequent steps are not executed, and the related login operation can be sequentially carried out on the webpage address corresponding to the next row of corresponding service system.
And S120, when the service system is successfully single-point logged in, accessing the service system and recording an access test result of the service system.
When the service system is accessed, the access test result of the service system is recorded, and the current access can be to an access user information page, an access user personal account page and the like. When accessing user information, the relevant access test result may be: whether the user information is preset information or not is recorded, whether access operation can be carried out on a personal account of the user or not, whether related account information can be modified or not when the user account is accessed, and the like.
Furthermore, the management operation related to the personal account of the user may be performed, for example, changing a password, changing a user name, or changing a login authentication manner. And recording whether the current operation can be carried out or not when each corresponding operation is carried out, if the current operation cannot be carried out normally, recording that the current access operation fails, and if the current operation can be carried out normally, recording that the current access operation succeeds.
And when the test result is successful access, the subsequent steps can be executed, when the test result is failed access, the relevant access failure record is carried out on the row where the current webpage address is located, the subsequent steps are not executed, and the access operation can be carried out after the relevant login operation is carried out on the webpage address corresponding to the next row of the corresponding service system.
S130, when the user information interface of the service system is successfully accessed, quitting the service system on the user information interface, and recording the quitting test result of the service system.
Performing exit operation after the current service system is accessed, and recording an exit test result, wherein the current exit test result can be whether the current interface is successfully exited in a single point mode, whether the current service system is successfully exited in a single point mode, whether the identity authentication platform is successfully unified in a single point mode, and the like; the quitting test result can also be a test record of whether the current interface contains the quitting control or not and the quitting can be carried out only by operating the current interface for a plurality of times. When the exit operation is performed, the identification of the exit control needs to be identified, so that whether the exit is successful can be determined by judging whether the exit control is included in the current interface.
If the current exit test result is that the single-point exit is successful, it indicates that the service system corresponding to the current web page address can perform normal login, access and exit operations, and if the exit cannot be successful, the test result of the current node is recorded and then step S140 is executed.
S140, judging whether the webpage address corresponding to the currently withdrawn service system is the last line of the target service system information table.
If not, go to step S110; and logging in and testing the next row of webpage addresses in the target service system information table based on the unified identity authentication platform until all service systems corresponding to the webpage addresses in the target service system information table are tested. If the row of the web address corresponding to the currently exited service system is not the last row, which indicates that the service system included in the target service system information table is not tested, the step S110 is continuously executed until all the service systems corresponding to the web address in the target service system information table are tested.
If yes, go to step S150.
And S150, generating a test record result of the target service system information table according to the login test result, the access test result and the quit test result.
And when the service systems corresponding to the webpage addresses in the target service system information table are tested, acquiring a login test result, an access test result and an exit test result corresponding to each webpage address in the target service system information table, and generating a test record result of the target service system information table according to the login test result, the access test result and the exit test result corresponding to each webpage address. The current test record result is a test record result of each node when logging in the service system, and may exemplarily be: whether the current business system can successfully perform single-point login or not, whether a target page can be entered or not when the single-point login is successful or not, whether the target page can be accessed or not, whether a reminding window pops up or not, the window popping-up times and popping-up marks exist during the access, whether the single-point logout is successful or not on the current interface, and only logout can be performed by clicking a return button for several times during logout, and the like.
It should be noted that, when different service systems perform login, access, and exit operations, the displayed interfaces are different, and accordingly, the number of times of the pop-up reminding window, the identifier, and the node where the reminding window appears are different, so that it is necessary to test the service systems included in the target service system information table one by one, and record the test result of each node of each service system, so as to implement the login test of the service system.
The test recording result may be recorded or updated in real time in the service system information table, for example, when the current service system access user information is recorded in the target service system information table, three prompting windows need to be clicked, and the closing identifier of each prompting window is recorded, but only two prompting windows need to be clicked during the test, the previous recording result is updated in the current service system, and the corresponding closing identifier is recorded.
Furthermore, the current test record result can be compared with the result contained in the target service system information, and the lines with different results are marked, so that the tester can perform manual test analysis, thereby obtaining the correct test result, and the service system can automatically complete login when logging in.
The embodiment of the invention provides a business system login test method, which comprises the steps of firstly obtaining a target business system information table to be tested, logging in a webpage address contained in a current row in the target business system information table based on a unified identity authentication platform, and recording a login test result of a business system corresponding to the webpage address; when the single sign-on service system is successfully completed, the service system is accessed, and the access test result of the service system is recorded; when the user information interface of the service system is successfully accessed, the service system is quitted on the user information interface, and the quitting test result of the service system is recorded; by adopting the technical scheme, the test result of the business system corresponding to one webpage address during login can be obtained, and whether the row of the webpage address corresponding to the currently logged-out business system is the last row of the target business system information table is further judged; if so, generating a test record result of the target service system information table according to the login test result, the access test result and the exit test result, automatically testing all webpage addresses to be entered into the identity authentication platform, and being also used for daily inspection, thereby achieving the technical effect of improving the working efficiency.
Example two
As shown in fig. 2a, fig. 2a is a schematic flow chart of a service system login testing method provided by a second embodiment of the present invention, and specifically, the method includes the following steps:
s210, preprocessing the service system information table to obtain a target service system information table accessed to the unified identity authentication platform.
The aim of preprocessing the service system information table is that the number of service systems needing to be tested in the service system information table is large, the service systems which cannot be accessed are filtered out in a preprocessing mode, the number of service system login tests is reduced, the execution time of the scheme is saved, and the test efficiency is improved.
Specifically, referring to fig. 2b, fig. 2b is a sub-flow diagram of a service system login testing method according to a second embodiment of the present invention, where the service system information table is preprocessed to obtain a target service system information table accessed to a unified identity authentication platform, and the method includes the following steps:
s201, performing access request on the webpage address contained in the current row in the service system information table, and obtaining a return code corresponding to the webpage address.
For the service system information table accessed to the unified identity authentication platform, for example, an Excel form processing tool xlrd can be used to open the service system information table, and the specified rows and the specified cells in the service system information table can be read through xlrd, and meanwhile, the row number of the table in the service system information table can be acquired.
And acquiring a return code corresponding to the current webpage address by requesting access to the webpage address corresponding to the first row of service systems in the service system information table, wherein different return codes represent different states of the service system requesting access.
Optionally, when a request access is performed on a web page address of each row in the service system information table, the request may be performed by using a request.get method, and the access time is set to 3 seconds, and if the corresponding access result cannot be obtained after exceeding 3 seconds, the return code corresponding to the access timeout may be recorded.
Illustratively, the current return code may be 200, 206, 404, 503, etc., where different return codes indicate different meanings, 200 indicates successful processing of the request, and 503 indicates that the server is currently unavailable. The type of the return code is not limited to the above example, and the specific case is the standard.
S202, judging whether the return code corresponding to the webpage address is a preset numerical value or not.
The current preset value represents a value of which the return code is 200, which indicates that the access request of the current webpage address is successfully processed. If the return code is not the preset value, executing step S203; if the return code is the predetermined value, step S204 is executed.
S203, recording the access failure of the business system request corresponding to the webpage address.
And when the return code is not 200, recording that the service system corresponding to the current webpage address is access failure. Optionally, since the request statuses represented by different return codes are different, in order to make the tester know the type of the current access failure, the current failure type may be: the gateway error, the server error, the request mode error and the like can be remarked with corresponding return codes in the row where the current webpage address is located, so that a tester can analyze the problem in a targeted manner.
And S204, marking the row where the webpage address is as the information row to be tested.
The purpose of the current marking is to further test the row where the webpage address capable of requesting access is located, information of relevant operations such as login, access and logout may be recorded in the current row, and marking the current row can facilitate subsequent extraction of successfully-accessible service system information contained in the target service information table.
S205, judging whether the current line is the last line of the service system information table.
The current process may be that, each pair of web page addresses is accessed once, after obtaining the corresponding return code, it is judged whether the current row is the last row in the service system information table, if not, the web page addresses in the next row of the service system information table are accessed, if yes, it indicates that all the web page addresses in the service system information table have been accessed,
if not, the process returns to step S201, and if yes, step S206 is performed.
And S206, acquiring a target service system information table according to the marked information row to be tested.
And S220, acquiring a service system interface obtained when the service system is logged in according to the webpage address.
And in the obtained target service system information table, logging in a webpage address contained in the current row in the target service system information table, and obtaining a service system interface for logging in a service system corresponding to the current webpage address. For example, when the webpage address of the social security service system is registered, the service interface corresponding to the social security service system is obtained, and when the webpage address of the passport transaction service system is registered, the service interface corresponding to the passport transaction service system is obtained.
Specifically, referring to fig. 2c, fig. 2c is a sub-flow diagram of another service system login testing method according to a second embodiment of the present invention. The method for acquiring the service system interface acquired when the service system is logged in according to the webpage address comprises the following steps of S2201-S2204:
s2201, obtaining a login interface displayed when the business system is logged in according to the webpage address.
When the business system interface is obtained, a login interface corresponding to the current business system is obtained first, so that login operation of the login interface is achieved by inputting a personal account.
S2202, judging whether the login interface comprises a login control.
When logging in, in order to test whether the current webpage address can be successfully logged in, whether a login control is included in the obtained login interface can be judged, and if not, the step S2203 is executed; if yes, go to step S2204.
S2203, recording the login test result of the current service system as single sign-on failure.
When the login control is not included, it indicates that no login entry is tested, the corresponding record of the current service system is a login-free entry, and the login execution of the current service system fails, which also indicates that single-point login cannot be performed.
And S2204, triggering the login control, and obtaining a service system interface corresponding to the service system according to the login link.
And when the login control is included, triggering the current login control to obtain a service system interface corresponding to the service system according to the record link.
Before triggering the login control, the user needs to login according to the account information of the user, the current login mode can be an enterprise or an individual, the user can login in a mode of combining the account and the password of the user during login, the user can also login in modes of account verification codes and the like, and the specific login mode is not limited herein.
The login link represents a link which is jumped after the login control is triggered, and a business system interface is displayed through the jump link. Generally, when jumping to a service system interface through a login link, in order to ensure that the current link is legal, a general login link should carry a client key parameter, and obtaining the service system interface corresponding to the service system according to the login link includes the following steps S2205 to S2207:
s2205, determining whether the login link includes the client key parameter.
If not, go to step S2206; if yes, go to step S2207.
S2206, recording a test result of the current service system during login as a client key parameter without a client key, and displaying a service system interface.
The client key parameter is a parameter carried during verification of the login link in order to ensure the validity of the login link, and if the current login link does not contain the client key parameter, the client key parameter does not affect the display of a service system interface, and only records the current state, so that a test result is the client-side-free key parameter, and a tester can conveniently decide whether to replace a new login link.
S2207, recording the test result of the current service system during login as a client key parameter, and displaying the service system interface.
Further, before the business system interface is displayed, the displayed business system interface may not be a target interface, that is, an interface capable of performing related business handling, and a related reminding window may be further included in the current interface, where the related reminding window may be: whether to enter the current interface or whether to install a corresponding plug-in, etc., therefore, before displaying the business system interface, the method also comprises the following steps:
a) and judging whether the service system interface contains a first reminding window.
If yes, step b); if not, executing step c).
b) And identifying a first click identification of the first reminding window closing control, displaying a service system interface after triggering the first click identification, and recording the first click identification.
The first reminding window is not limited to one, and may include a plurality of first reminding windows, when the first click mark of the first reminding window closing control is identified, several first reminding windows exist, the click marks of the several first reminding windows should be included, after all the first click marks are triggered, the business system interface is displayed, and the clicked first click mark is recorded. It should be noted that, when there are multiple first click identifiers, each identifier is not necessarily the same, and for example, the click operation on the current reminder window may be, continue, exit, yes or no, and the like.
c) And displaying the business system interface.
And when the first reminding window is not included, directly displaying the service system interface.
S221, judging whether target interface information on a service system interface is consistent with preset interface information;
in the displayed service system interface, whether the current interface is the interface corresponding to the webpage address needs to be judged, and whether the target interface information on the service system interface is consistent with the preset interface information needs to be judged.
The target interface information may be understood as interface information displayed when logging in the service system, the preset interface information may be preset information displayed on a current interface recorded in an information table of the target service system, and the current preset information may be understood as an element necessary on the target interface, which may be exemplarily: a piece of text or a picture, etc. Taking the preset information as an example, when the service system interface is displayed, whether the target interface information on the service system interface is consistent with the preset interface information can be judged by detecting whether the target interface information contains the current picture.
If not, go to step S222; if yes, go to step S223.
S222, recording the login test result of the current business system as single sign-on failure.
If the current business system is inconsistent with the unified identity authentication platform, the login of the current business system is proved to be failed, the fact that the current business system is not successfully accessed to the unified identity authentication platform is shown, and after the single-point login failure is recorded in the row where the current business system is located, subsequent operation is not carried out.
And S223, recording the login test result of the current service system as the success of single sign-on.
If the service system is consistent with the unified identity authentication platform, the service system is indicated to be successfully accessed to the unified identity authentication platform, namely, one account logs in once, and corresponding service handling operation can be realized in the service system.
And S230, acquiring the user information in the user information interface displayed by the service system.
Referring to fig. 2d, fig. 2d is a sub-flow diagram of another service system login testing method according to a second embodiment of the present invention.
After the login is successful, a user information interface corresponding to the service system and user information contained in the user information interface are displayed, and the current user information may be: and the user name, the user account or the name corresponding to the user account is used for confirming that the currently logged-in service system is the system corresponding to the current user account by comparing the user information.
Optionally, before the user information interface is displayed, a second reminding window may exist on the user information interface, and the user information interface is displayed only after the second reminding window is clicked correspondingly.
The second reminding window may be a related reminding page, or may be a related interface that needs to be clicked before entering the user information interface, and accordingly, the test operation on the second reminding window may include the following steps:
a) and judging whether the user information interface comprises a second reminding window.
If the second reminding window is included, executing the step b); if not, executing step c).
b) Identifying a second click identification of a second reminding window closing control, displaying a user information interface after triggering the second click identification, and recording the second click identification;
and entering a user information interface according to the display number or click times of the current second reminding window. If the account number is clicked once, identifying and clicking a second click identification to enter an account number management page through methods such as xpath or js; if the user needs to click for multiple times, elements are identified through methods such as xpath or js, different buttons are clicked, and the user enters a user information interface.
The current second reminding window is not limited to one, and when the number of the current second reminding windows is multiple, second click identifications needing to be clicked are recorded, so that the second click identifications can be automatically clicked in the subsequent automatic test process, and then the account management interface is displayed.
c) And displaying a user information interface.
S231, judging whether the target user information on the user information interface is consistent with the preset user information.
In the displayed user information interface, whether the target user information on the user information interface is consistent with the preset user information needs to be judged, so that the current judgment result is recorded.
The target user information may be understood as related information of a user information interface displayed when logging in the service system, the preset user information may be preset information of a current user information interface recorded in an information table of the target service system, and the current preset information may be understood as an element necessary for the target user information, which may be exemplarily: a string of numbers, a piece of text, or a picture, etc. Taking the preset information as an example, when the user information interface is displayed, whether the user information interface on the user information interface is consistent with the preset user information can be judged by detecting whether the current picture is contained in the target user information.
If not, go to step S232; if yes, go to step S233.
And S232, recording the test result of the current service system as access failure.
If the comparison result is not consistent, the information of the user logged in the service system is incorrect, the test result recorded as the current service system is the access failure, and meanwhile, the user information is recorded to be incorrect.
And S233, recording the test result of the current service system as successful access.
If the comparison result is consistent, the information of the user logged in by the service system is correct, the test result recorded as the current service system is successful in access, and meanwhile, the user information is correct.
And S234, judging whether the user information interface contains an account management control.
After the information of the user information interface of the current service system is correct, a management operation needs to be performed on a user account in the user information interface, and the current management operation may be to change an account password or an account verification mode, and the like. Whether the user information interface contains the account management control can be further judged.
If not, go to step S235; if yes, go to step S236.
And S235, recording the test result of the service system as account management failure.
If the account management control is not included, the account management operation cannot be performed, and the test result of the service system is recorded as account management failure.
And S236, receiving the click operation of the account management control, and displaying an account management interface.
If the account management control is included, the account management control can be triggered to display an account management interface.
Optionally, before displaying the account management interface, the method may further include the following steps:
a) and judging whether the account management interface contains a third reminding window.
Before the account management interface is displayed, a third reminding window may exist on the account management interface, and the account management interface is displayed only after the third reminding window is subjected to corresponding clicking operation.
The third reminding window may be a related reminding page, or may be a related interface which needs to be clicked when entering the account management interface from the user information interface.
If the third reminding window is included, executing the step b); if not, executing step c).
b) And identifying a third click mark of a third reminding window, displaying an account management interface after triggering the third click mark, and recording the third click mark.
And entering an account management interface according to the display number or click times of the current third reminding window. If the user clicks once, identifying and clicking a third click identifier to enter an account management page by methods such as xpath or js; if the user needs to click for multiple times, elements are identified through methods such as xpath or js, different buttons are clicked, and the user enters an account management interface.
The current third reminding window is not limited to one, and when the number of the current third reminding windows is multiple, the third click identification needing to be clicked is recorded, so that the third click identification can be automatically clicked in the subsequent automatic test process, and then the account management interface is displayed.
c) And if not, displaying the account management interface.
And when the third reminding window is judged not to be included, directly displaying the account management interface.
And S237, judging whether the target account information on the account management interface is consistent with the preset account information.
Further, on the displayed account management interface, it needs to be determined whether the target account information is consistent with the preset account information.
The target account information may be understood as an account management interface related to the target account information, which is displayed after the account management interface is successfully accessed, the preset account information may be actual account information corresponding to the current account management interface recorded in the target service system information table, and the current preset account information may be understood as an element necessary for the target account information, which may be, for example: a string of numbers, a piece of text, or a picture, etc. Taking the preset account information as a string of numbers as an example, the current value may be a target account, and the comparison may be performed by comparing the target account with the preset account on the account management interface.
If not, go to step S238; if yes, go to step S239.
And S238, recording the test result of the current service system as the access failure of the account management interface.
And recording the test result of the current service system as the access failure of the account management interface by comparing that the target account information on the account management interface is inconsistent with the preset account information, and not executing the subsequent operation.
And S239, recording the test result of the current service system as the successful access of the account management interface.
And S240, triggering the quit control when the quit control is included on the user information interface.
Referring to fig. 2e, fig. 2e is a sub-flow diagram of another service system login testing method according to a second embodiment of the present invention.
When the access to the service system is completed and the current service system needs to be quitted, the quitting control operation can be triggered when the quitting control is included on the user information interface, so that the quitting operation of the current service system is completed. However, when the exit control is triggered to operate, the exit control is not necessarily successfully executed, and therefore, it is necessary to determine whether the exit control is successfully executed.
It should be noted that the current identification and triggering operation on the exit control may be identification information for identifying or triggering the exit control, so as to determine whether the user information interface includes the exit control or complete the triggering operation on the exit control by identifying and triggering the identification information on the exit control.
And S241, judging whether the quit control is executed successfully.
If not, go to step S242; if yes, go to step S243.
And S242, recording the test result of the service system as a single point exit failure.
And S243, recording the test result of the service system as the success of single-point exit.
Namely, the current business system is successfully logged out by triggering the current logging-out control.
An optional embodiment, where the user information interface does not include an exit control, the login test scheme provided in the embodiment of the present invention includes the following steps:
a) and triggering a return control of the user information interface, and displaying the current interface of the service system.
If the exit control is not included in the user information interface, the return interface is triggered by identifying the return control identification of the user information interface, so that the current interface of the business system is displayed after the return operation is triggered.
b) And judging whether the current interface contains an exit control.
After the return control is operated, whether the current interface contains an exit control is further judged.
If yes, executing step c), if no, executing step d).
c) And triggering the exit control of the current interface, and recording the triggering times of clicking the return control.
When the once-returning control is triggered and the exiting control is included on the current interface, the exiting control of the current interface is triggered, the triggering times of clicking the returning control are recorded, and if the once-clicking button is clicked, the exiting control can be identified and clicked through methods such as an extensible markup Language Path Language (Xml Path Language, XPath for short) or a JS script Language (JavaScript for short).
d) And triggering the return control of the current interface until the exit control is displayed, and recording the triggering times of the return control.
If the current interface does not contain the exit control after the return control is triggered once, continuing to trigger the return control operation of the current interface until the exit control is displayed, triggering the operation on the exit control, and recording the triggering times of the return control, so that the return operation is explicitly and automatically triggered for several times during subsequent automatic tests, and the exit control can be displayed.
Optionally, when the user information interface does not include the exit control, a "jump" control of the user interface may be identified, and the jump to the home page of the current service system is performed by triggering the jump control, where the home page of the current service system may be an interface displayed after logging in the service system according to the web address, so as to determine whether the exit control is included in the home page of the current service system.
After the test result of the service system is that the single point quit is successful, the method further comprises the following steps:
s244, judging whether the user interface contained in the unified identity authentication platform contains an exit control.
Further, when the test result of the service system is that the single-point logout is successful, it can also be determined whether the accessed unified identity authentication platform is successful in logout, and the current determination process can be determined whether the user interface included in the unified identity authentication platform includes a logout control.
If yes, step S245 is executed, and if no, step S246 is executed.
S245, recording single-point exit failure of the unified identity authentication platform.
If the unified identity authentication platform also comprises an exit control, the unified identity authentication platform is indicated to fail to exit synchronously with the service system, and the single-point exit failure of the unified identity authentication platform is recorded.
And S246, recording the single-point exit success of the unified identity authentication platform.
If the unified identity authentication platform does not comprise an exit control, the unified identity authentication platform is indicated to synchronously exit along with the service system, and the single-point exit success of the unified identity authentication platform is recorded.
And S250, judging whether the row of the webpage address corresponding to the currently exited service system is the last row of the information table of the target service system.
If not, returning to execute the step S220, and performing login test on the next row of web page addresses in the target service system information table until all service systems corresponding to the web page addresses in the target service system information table are tested. If yes, go to step S251.
And S251, generating a test record result of the target service system information table according to the login test result, the access test result and the quit test result.
An optional embodiment, after generating a test record result according to the login test result, the access test result, and the exit test result, may perform a comparison analysis on the test record result, which specifically includes the following steps:
a) and calling a preset test record result, wherein the preset test record result is a test record corresponding to each webpage address in the target service system information table.
After the test of all the service systems in the target service system information table is completed, the recorded results of all the service systems in the target service system information table can be obtained, and correspondingly, the recorded results can be compared with the preset test recorded results, so that a tester can determine whether the current test result is consistent with the preset test recorded results, and if not, further test processing is required.
The preset test record result may be a test result obtained after all the service systems in the target service system information table are manually logged in advance and may also be a test result obtained after all the service systems in the target service system information table are automatically logged in last time. The last time can be a preset time period, namely, the service system login testing method provided by the embodiment of the invention can automatically patrol according to the result recorded in the target service system information table at intervals of the preset time period so as to obtain a new patrol record.
b) And judging whether the current test recording result is consistent with the preset test recording result in the test recording results line by line.
After the test recording result of the target service system information table is obtained, the test recording result of the target service system information table is compared with a preset test recording result line by line, and whether the current test recording result is consistent with the preset test recording result is judged.
If the test record results are consistent with the preset test record results, the test record results corresponding to the current row are the same as the preset test record results, corresponding operation is not needed, and the original record results are reserved. And if the test record result is inconsistent with the preset test record result, the step c) is executed.
It should be noted that, the comparison method may be that, for the current line of the current test record result and the current line of the preset test record result, the two test record results need to be for the same service system, during comparison, the cell-by-cell comparison may be performed for the current line, and the attributes of the cells in the test records of the two current test records should be kept consistent.
c) And marking the service system corresponding to the current line in the current test record result to obtain a marked information line.
And marking the lines with inconsistent test recording results corresponding to the current lines and preset test recording results so as to analyze the marked lines in the later period.
d) And when the current test recording result is compared with the preset test recording result line by line, obtaining a test comparison result according to the marking information line.
The current step may be that, when the comparison of the test record result of the current row with the preset test record result is completed, it is determined whether the current row is the last row, and if not, the comparison of the test record result of the next row with the preset test record result is performed; if yes, a test comparison result can be obtained according to the marking information.
Further, after the comparison is finished, the obtained test comparison results may be sorted into a comparison result table, and a corresponding tag may be marked on the current comparison result table, where the current tag may be marked by the comparison times, for example, the comparison result table of the x-th time, or may be marked according to the time of obtaining the comparison result table, so as to distinguish from the comparison result table obtained before.
Optionally, the test record result of the target service system information table obtained this time and the comparison result table may be sent to the tester in the form of an email for further analysis by the tester.
The business system login testing method provided by the embodiment of the invention has high execution efficiency, and before automatically executing single-point login each time, the business system information table is preprocessed and optimized, systems returning other error codes are judged to be abnormal or offline business systems, and then the detection is carried out only for the business systems returning 200 codes, so that the execution time is saved, and the testing efficiency is improved; the method has strong expandability, fully considers the characteristics of most service systems, and performs adaptive compatibility on the interaction of skipping different service systems. All steps in the test method are classified and completely abstracted into different automatic test units, and the execution logic and system data are almost completely separated, so that a new system can be added to execute the test at any time. For a new service system accessed with unified identity authentication, only a new piece of data is recorded in a service system information table, and the automatic test can be carried out along with the next inspection; the method has the advantages of high usability, support of outputting the result report and sending the mail, and provide the comparison report aiming at the latest result and the last result without additional manual check. When the system is implemented, the system can be automatically started to execute, automatically output reports and facilitate automatic routing inspection.
EXAMPLE III
Fig. 3 is a block diagram of a service system login testing apparatus according to a third embodiment of the present invention, where the apparatus may be implemented by software and/or hardware, and may be generally integrated in a computer device such as a server, and may automatically test a service system by executing a service system login testing method. As shown in fig. 3, the apparatus includes: a login module 31, an access module 32, an exit module 33, a determination module 34, and an acquisition module 35, wherein:
the login module 31 is configured to acquire a target service system information table to be tested, log in a webpage address included in a current row in the target service system information table based on a unified identity authentication platform, and record a login test result of a service system corresponding to the webpage address;
the access module 32 is configured to access the service system and record an access test result of the service system when the service system is successfully single-point logged in;
the quitting module 33 is configured to quit the service system on the user information interface and record a quitting test result of the service system when the user information interface of the service system is successfully accessed;
a judging module 34, configured to judge whether a row where a web address corresponding to the currently exited service system is located is a last row of the target service system information table;
the login module 31 is specifically configured to, when the row of the web page address corresponding to the currently logged-out service system is not the last row of the target service system information table, perform login testing on the web page address of the next row in the target service system information table based on the unified identity authentication platform until all the service systems corresponding to the web page addresses in the target service system information table are tested;
the obtaining module 35 is configured to generate a test record result of the target service system information table according to the login test result, the access test result, and the logout test result when the row of the web address corresponding to the currently logged-out service system is the last row of the target service system information table.
The business system login testing device provided by the embodiment of the invention firstly obtains a target business system information table to be tested, logs in a webpage address contained in a current row in the target business system information table based on a unified identity authentication platform, and records a login testing result of a business system corresponding to the webpage address; when the single sign-on service system is successfully completed, the service system is accessed, and the access test result of the service system is recorded; when the user information interface of the service system is successfully accessed, the service system is quitted on the user information interface, and the quitting test result of the service system is recorded; by adopting the technical scheme, the test result of the business system corresponding to one webpage address during login can be obtained, and whether the row of the webpage address corresponding to the currently logged-out business system is the last row of the target business system information table is further judged; if so, generating a test record result of the target service system information table according to the login test result, the access test result and the quit test result, automatically testing all webpage addresses accessed to the identity authentication platform, and being also used for daily inspection, thereby achieving the technical effect of improving the working efficiency.
Optionally, the apparatus further comprises: a preprocessing module;
and the preprocessing module is used for preprocessing the service system information table to obtain the target service system information table accessed to the unified identity authentication platform.
The preprocessing module comprises: the device comprises a request access unit, a first judgment unit, a target information table obtaining unit, a first recording unit and a marking unit, wherein:
the request access unit is used for performing request access on a webpage address contained in a current row in a service system information table and acquiring a return code corresponding to the webpage address;
the first judgment unit is used for judging whether the return code corresponding to the webpage address is a preset numerical value or not;
if not, the first recording unit is used for recording the access failure of the business system request corresponding to the webpage address;
if so, a marking unit is used for marking the row of the webpage address as an information row to be tested;
and the target information table obtaining unit is used for obtaining the target service system information table according to the marked information row to be tested when all the webpage addresses contained in the service system information table are requested to be accessed.
Optionally, the login module 31 includes: interface acquisition unit, second judgement unit, second record unit, wherein:
the interface obtaining unit is used for obtaining a service system interface obtained when the service system is logged in according to the webpage address;
the second judging unit is used for judging whether the target interface information on the service system interface is consistent with the preset interface information;
if the log-in test result of the current service system is inconsistent with the single-point log-in test result of the current service system, the second recording unit is used for recording the log-in test result of the current service system as single-point log-in failure;
and if the log-in test result of the current service system is consistent with the log-in test result of the current service system, the second recording unit is further used for recording the log-in test result of the current service system as the success of single sign-on.
Optionally, the interface obtaining unit includes: the login interface acquisition subunit, the first judgment subunit and the first recording subunit, wherein:
a login interface obtaining subunit, configured to obtain a login interface displayed when logging in the service system according to the web page address;
the first judgment subunit is used for judging whether the login interface comprises a login control or not;
if not, the first recording subunit is used for recording the login test result of the current service system as single sign-on failure;
and if the login link exists, the first recording subunit is further used for triggering the login control and obtaining a service system interface corresponding to the service system according to the login link.
Optionally, the first determining subunit is specifically configured to determine whether the login link includes a client key parameter;
if not, the first recording subunit is further configured to record that a test result of the current service system during login is a client-side-free key parameter, and display the service system interface;
and if the client key parameter exists, the first recording subunit is also used for recording that the test result of the current service system during login is the client key parameter, and displaying the service system interface.
Optionally, the first determining subunit is further specifically configured to determine whether the service system interface includes a first reminding window;
if yes, the first recording subunit is further used for identifying a first click identifier of the first reminding window closing control, displaying the service system interface after triggering the first click identifier, and recording the first click identifier;
and if not, the first recording subunit is also used for displaying the service system interface.
Optionally, the access module 32 comprises: a user information acquisition unit, a third judgment unit and a third recording unit, wherein:
the user information acquisition unit is used for acquiring the user information in the user information interface displayed by the service system;
the third judging unit is used for judging whether the target user information on the user information interface is consistent with the preset user information;
if the test result is inconsistent with the access failure, the third recording unit is used for recording the test result of the current service system as the access failure;
and if the test result is consistent with the test result, the third recording unit is used for recording that the test result of the current service system is successful in access.
Optionally, the third determining unit is specifically configured to determine whether the user information interface includes an account management control;
if not, the third recording unit is specifically configured to record the test result of the service system as an account management failure;
and if the account number management control comprises the third recording unit, the third recording unit is specifically used for receiving the click operation of the account number management control and displaying an account number management interface.
Optionally, the third determining unit is specifically configured to determine whether target account information on the account management interface is consistent with preset account information;
if the test result is inconsistent with the test result of the current service system, the third recording unit is specifically used for recording the test result of the current service system as the access failure of the account management interface;
and if the test result is consistent with the test result, the third recording unit specifically records the test result of the current service system as the successful access of the account management interface.
Optionally, the user information obtaining unit includes: the second judges subunit, the second records subunit and the interface show subunit, wherein:
the second judgment subunit is used for judging whether the user information interface comprises a second reminding window or not;
if yes, a second recording subunit, configured to identify a second click identifier of the second reminding window closing control, display the user information interface after triggering the second click identifier, and record the second click identifier;
and if not, the interface display subunit is used for displaying the user information interface.
Optionally, the second determining subunit is specifically configured to determine whether a third reminding window is included in the account management interface;
if yes, the second recording subunit is specifically used for identifying a third click mark of the third reminding window, displaying the account management interface after triggering the third click mark, and recording the third click mark;
and if not, displaying a subunit by an interface, wherein the subunit is specifically used for displaying the account management interface.
Optionally, the exit module 33 includes: a fourth judging unit and a fourth recording unit, wherein:
the fourth judging unit is used for triggering the quitting control when the user information interface comprises the quitting control, and judging whether the quitting control is executed successfully or not;
if not, a fourth recording unit, configured to record the test result of the service system as a single-point exit failure;
and if so, the fourth recording unit is specifically configured to record the test result of the service system as a single-point exit success.
Optionally, the exit module 33 further includes: a current interface presentation unit, wherein:
a current interface display unit, configured to trigger a return control of the user information interface when the user information interface does not include an exit control, and display a current interface of the service system
A fourth judging unit, configured to specifically judge whether the current interface includes an exit control;
if yes, a fourth recording unit, specifically configured to trigger the exit control of the current interface, and record the number of times of clicking the trigger of the return control;
and if not, the fourth recording unit is specifically used for triggering the return control of the current interface until the exit control is displayed, and recording the triggering times of the return control.
Optionally, the fourth determining unit is specifically configured to determine whether a user interface included in the unified identity authentication platform includes an exit control;
if yes, a fourth recording unit, which is specifically used for recording the single point exit failure of the unified identity authentication platform;
and if not, the fourth recording unit is specifically used for recording the single-point exit success of the unified identity authentication platform.
Optionally, the apparatus further comprises: calling module and record module, wherein:
the calling module is used for calling a preset test record result, and the preset test record result is a test record corresponding to each webpage address in the target service system information table;
the judging module is specifically used for judging whether the current test recording result in the test recording results is consistent with a preset test recording result line by line;
if the current test record result is consistent with the current test record result, the business system corresponding to the current line in the current test record result is not operated;
if the test record result is inconsistent with the current test record result, the recording module is used for marking the service system corresponding to the current line in the current test record result to obtain a marked information line;
and the obtaining module is specifically used for obtaining a test comparison result according to the marking information line when the comparison between the current test recording result and a preset test recording result is completed line by line.
The service system login testing device provided by the embodiment of the invention can execute the service system login testing device provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects for executing the method.
Example four
The embodiment of the invention provides computer equipment, and the computer equipment can be integrated with the service system login testing device provided by the embodiment of the invention. Fig. 4 is a block diagram of a computer device according to a fourth embodiment of the present invention. The computer device 400 may include: the system comprises a memory 401, a processor 402 and a computer program stored on the memory 401 and executable by the processor, wherein the processor 402 implements the service system login test device method according to the embodiment of the invention when executing the computer program.
The computer device provided by the embodiment of the invention can execute the method for logging in the service system test device provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects for executing the method.
EXAMPLE five
An embodiment of the present invention further provides a storage medium containing computer-executable instructions, where the computer-executable instructions are used in a method for logging in a test device in a service system when executed by a computer processor, and the method includes:
acquiring a target service system information table to be tested, logging in a webpage address contained in a current row in the target service system information table based on a unified identity authentication platform, and recording a logging test result of a service system corresponding to the webpage address;
when the single sign-on of the service system is successful, accessing the service system and recording an access test result of the service system;
when the user information interface of the service system is successfully accessed, quitting the service system on the user information interface, and recording the quitting test result of the service system;
judging whether the row of the webpage address corresponding to the currently withdrawn service system is the last row of the target service system information table;
if not, performing login test on the next row of webpage addresses in the target service system information table based on the unified identity authentication platform until all service systems corresponding to the webpage addresses in the target service system information table are tested;
and if so, generating a test record result of the target service system information table according to the login test result, the access test result and the quit test result.
Storage medium-any of various types of memory devices or storage devices. The term "storage medium" is intended to include: mounting media such as CD-ROM, floppy disk, or tape devices; computer system memory or random access memory such as DRAM, DDRRAM, SRAM, EDORAM, Lanbas (Rambus) RAM, etc.; non-volatile memory such as flash memory, magnetic media (e.g., 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 a first computer system in which the program is executed, or may be located in a different second computer system connected to the first computer system through a network (such as the internet). The second computer system may 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, such as in different computer systems that are connected by a network. The storage medium may store program instructions (e.g., embodied as a computer program) that are executable by one or more processors.
Of course, the storage medium provided in the embodiment of the present invention includes computer-executable instructions, and the computer-executable instructions are not limited to the service system login test operation described above, and may also perform related operations in the service system login test method provided in any embodiment of the present invention.
The service system login testing device, the equipment and the storage medium provided in the above embodiments can execute the service system login testing method provided in any embodiment of the present invention, and have corresponding functional modules and beneficial effects for executing the method. For technical details that are not described in detail in the above embodiments, reference may be made to a service system login testing method provided in any embodiment of the present invention.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (18)

1. A service system login test method is characterized by comprising the following steps:
acquiring a target service system information table to be tested, logging in a webpage address contained in a current row in the target service system information table based on a unified identity authentication platform, and recording a logging test result of a service system corresponding to the webpage address;
when the single sign-on of the service system is successful, accessing the service system and recording an access test result of the service system;
when the user information interface of the service system is successfully accessed, quitting the service system on the user information interface, and recording the quitting test result of the service system;
judging whether the row of the webpage address corresponding to the currently withdrawn service system is the last row of the target service system information table;
if not, performing login test on the next row of webpage addresses in the target service system information table based on the unified identity authentication platform until all service systems corresponding to the webpage addresses in the target service system information table are tested;
and if so, generating a test record result of the target service system information table according to the login test result, the access test result and the quit test result.
2. The method of claim 1, wherein before obtaining the target business system information table to be tested, the method further comprises:
preprocessing a service system information table to obtain a target service system information table accessed to the unified identity authentication platform;
correspondingly, the preprocessing the service system information table to obtain the target service system information table accessed to the unified identity authentication platform includes:
performing request access on a webpage address contained in a current row in the service system information table to obtain a return code corresponding to the webpage address;
judging whether a return code corresponding to the webpage address is a preset numerical value or not;
if not, recording the access failure of the business system request corresponding to the webpage address;
if so, marking the row of the webpage address as an information row to be tested;
and when all the webpage addresses contained in the business system information table are requested to be accessed, acquiring the target business system information table according to the marked information row to be tested.
3. The method of claim 1, wherein logging in a web page address contained in a current row of the target service system information table based on a unified identity authentication platform, and recording a logging test result of a service system corresponding to the web page address comprises:
acquiring a service system interface obtained when the service system is logged in according to the webpage address;
judging whether the target interface information on the service system interface is consistent with the preset interface information;
if not, recording the login test result of the current service system as single sign-on failure;
if the log-in test result of the current service system is consistent with the log-in test result of the current service system, the log-in test result of the current service system is recorded as the success of single sign-on.
4. The method of claim 3, wherein the business system interface obtained when logging in the business system according to the webpage address comprises:
acquiring a login interface displayed when logging in the service system according to the webpage address;
judging whether the login interface contains a login control or not;
if not, recording the login test result of the current service system as single sign-on failure;
and if so, triggering the login control, and acquiring a service system interface corresponding to the service system according to the login link.
5. The method of claim 4, wherein obtaining the service system interface corresponding to the service system according to the login link comprises:
judging whether the login link contains a client key parameter or not;
if not, recording the test result of the current service system during login as a client-side-free key parameter, and displaying the service system interface;
if yes, recording the test result of the current service system during login as the client key parameter, and displaying the service system interface.
6. The method of claim 5, wherein prior to presenting the business system interface, the method further comprises:
judging whether the business system interface contains a first reminding window or not;
if yes, identifying a first click identification of the first reminding window closing control, displaying the service system interface after triggering the first click identification, and recording the first click identification;
and if not, displaying the service system interface.
7. The method of claim 1, wherein upon successful single sign-on of the business system, accessing the business system and recording results of the access test of the business system comprises:
acquiring user information in a user information interface displayed by the service system;
judging whether the target user information on the user information interface is consistent with preset user information or not;
if not, recording the test result of the current service system as access failure;
and if the test result is consistent with the test result, recording the test result of the current service system as successful access.
8. The method of claim 7, further comprising, after the test result of the current service system is successful access:
judging whether the user information interface contains an account management control or not;
if not, recording the test result of the service system as account management failure;
and if so, receiving the click operation of the account management control, and displaying an account management interface.
9. The method of claim 8, after presenting the account management interface, further comprising:
judging whether the target account information on the account management interface is consistent with preset account information or not;
if the test result is inconsistent, recording the test result of the current service system as the access failure of the account management interface;
if the account number is consistent with the service number, recording the test result of the current service system as the successful access of the account number management interface.
10. The method of claim 7, wherein prior to obtaining user information in a user information interface exposed by the business system, the method further comprises:
judging whether a second reminding window is included in the user information interface;
if yes, identifying a second click identification of the second reminding window, displaying the user information interface after triggering the second click identification, and recording the second click identification;
and if not, displaying the user information interface.
11. The method of claim 8, wherein prior to presenting the account management interface, the method further comprises:
judging whether a third reminding window is included in the account management interface;
if yes, identifying a third click identification of the third reminding window, displaying the account management interface after triggering the third click identification, and recording the third click identification;
and if not, displaying the account management interface.
12. The method of claim 1, wherein upon successful access to the user information interface of the business system, logging the exit test result of the business system by exiting the business system on the user information interface comprises:
when the user information interface comprises an exit control, triggering the exit control, and judging whether the exit control is executed successfully or not;
if not, recording the test result of the service system as a single-point exit failure;
if so, recording the test result of the service system as the success of single-point exit.
13. The method of claim 12, further comprising:
when the user information interface does not contain an exit control, triggering a return control of the user information interface, and displaying the current interface of the business system;
judging whether the current interface contains an exit control or not;
if yes, triggering an exit control of the current interface, and recording the triggering times of clicking the return control;
if not, triggering the return control of the current interface until the exit control is displayed, and recording the triggering times of the return control.
14. The method of claim 12, wherein after the test result of the service system is a single exit success, the method further comprises:
judging whether a user interface contained in the unified identity authentication platform contains an exit control or not;
if yes, recording the single point exit failure of the unified identity authentication platform;
if not, recording the single-point exit success of the unified identity authentication platform.
15. The method of claim 1, further comprising, after generating a test record result of the target service system information table according to the login test result, the access test result, and the logout test result:
calling a preset test record result, wherein the preset test record result is a test record corresponding to each webpage address in the target service system information table;
judging whether the current test recording result is consistent with a preset test recording result in the test recording results line by line;
if not, marking the service system corresponding to the current line in the current test record result to obtain a marked information line;
and when the current test recording result is compared with a preset test recording result line by line, obtaining a test comparison result according to the marking information line.
16. A business system login testing device is characterized by comprising:
the login module is used for acquiring a target service system information table to be tested, logging in a webpage address contained in a current row in the target service system information table based on a unified identity authentication platform, and recording a login test result of a service system corresponding to the webpage address;
the access module is used for accessing the service system and recording an access test result of the service system when the service system is successfully single-point logged in;
the exit module is used for exiting the service system on the user information interface and recording the exit test result of the service system when the user information interface of the service system is successfully accessed;
the judging module is used for judging whether the row of the webpage address corresponding to the currently withdrawn business system is the last row of the target business system information table;
the login module is specifically used for performing login test on the next row of webpage addresses in the target service system information table based on the unified identity authentication platform when the row of the webpage addresses corresponding to the currently logged-out service system is not the last row of the target service system information table until all the service systems corresponding to the webpage addresses in the target service system information table are tested;
and the obtaining module is used for generating a test record result of the target service system information table according to the login test result, the access test result and the quit test result when the row of the webpage address corresponding to the currently quit service system is the last row of the target service system information table.
17. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the method according to any of claims 1-15 when executing the computer program.
18. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1 to 15.
CN202111658125.XA 2021-12-30 2021-12-30 Business system login test method, device, equipment and medium Pending CN114238148A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111658125.XA CN114238148A (en) 2021-12-30 2021-12-30 Business system login test method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111658125.XA CN114238148A (en) 2021-12-30 2021-12-30 Business system login test method, device, equipment and medium

Publications (1)

Publication Number Publication Date
CN114238148A true CN114238148A (en) 2022-03-25

Family

ID=80744946

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111658125.XA Pending CN114238148A (en) 2021-12-30 2021-12-30 Business system login test method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN114238148A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116301456A (en) * 2023-02-21 2023-06-23 广州市保伦电子有限公司 Windows client login test management method, device and system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116301456A (en) * 2023-02-21 2023-06-23 广州市保伦电子有限公司 Windows client login test management method, device and system

Similar Documents

Publication Publication Date Title
CN110399925B (en) Account risk identification method, device and storage medium
CN108628748B (en) Automatic test management method and automatic test management system
CN111240994A (en) Vulnerability processing method and device, electronic equipment and readable storage medium
JP5102556B2 (en) Log analysis support device
CN110764980A (en) Log processing method and device
CN111198797B (en) Operation monitoring method and device and operation analysis method and device
CN110088744A (en) A kind of database maintenance method and its system
CN112199277A (en) Browser-based defect reproduction method, device, equipment and storage medium
CN114238148A (en) Business system login test method, device, equipment and medium
Reidemeister et al. Diagnosis of recurrent faults using log files
US11897527B2 (en) Automated positive train control event data extraction and analysis engine and method therefor
CN112181836A (en) Test case generation method, system, device and storage medium
US10289531B2 (en) Software integration testing with unstructured database
CN116662197A (en) Automatic interface testing method, system, computer and readable storage medium
JP5102555B2 (en) Log analysis support device
CN116126808A (en) Behavior log recording method, device, computer equipment and storage medium
Ereiz Automating Web Application Testing Using Katalon Studio
CN115330335A (en) SAAS personalization system for serving hunting enterprises
CN111786991B (en) Block chain-based platform authentication login method and related device
CN115878448A (en) Database test method, distributed database and storage medium
US9076061B2 (en) System and method for updating geographic data
JP2006113993A (en) Test system for internet system
Rong et al. How Do Developers' Profiles and Experiences Influence their Logging Practices? An Empirical Study of Industrial Practitioners
CN116881880B (en) Space-time data management system and space-time data service resource cooperative scheduling method
JP5069057B2 (en) Log analysis support device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination