CN118093288A - Terminal test method, device, equipment, storage medium and program product - Google Patents

Terminal test method, device, equipment, storage medium and program product Download PDF

Info

Publication number
CN118093288A
CN118093288A CN202410356797.2A CN202410356797A CN118093288A CN 118093288 A CN118093288 A CN 118093288A CN 202410356797 A CN202410356797 A CN 202410356797A CN 118093288 A CN118093288 A CN 118093288A
Authority
CN
China
Prior art keywords
page
service
information
visual interface
test
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
CN202410356797.2A
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.)
Industrial and Commercial Bank of China Ltd ICBC
Original Assignee
Industrial and Commercial Bank of China Ltd ICBC
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 Industrial and Commercial Bank of China Ltd ICBC filed Critical Industrial and Commercial Bank of China Ltd ICBC
Priority to CN202410356797.2A priority Critical patent/CN118093288A/en
Publication of CN118093288A publication Critical patent/CN118093288A/en
Pending legal-status Critical Current

Links

Landscapes

  • User Interface Of Digital Computer (AREA)

Abstract

The present disclosure provides a terminal test method, which may be applied to the test technical field, the financial science and technology field, and other fields. The terminal testing method comprises the following steps: according to the information of the page elements of the service page displayed on the visual interface of the terminal equipment, determining service scene information corresponding to the service page; inquiring from a test database according to the service scene information to obtain operation sequence information and test data corresponding to the service scene, wherein the operation sequence information characterizes the sequence of operation on page elements of the service page; and operating the service page according to the test data by controlling a cursor positioned on the visual interface according to the operation sequence information to obtain a terminal test result corresponding to the terminal equipment. The present disclosure also provides a terminal test apparatus, a device, a storage medium, and a program product.

Description

Terminal test method, device, equipment, storage medium and program product
Technical Field
The present disclosure relates to the field of testing technology, financial technology, and other fields, and in particular, to a terminal testing method, apparatus, device, medium, and program product.
Background
In the related art, program testing is generally performed on a terminal device by a person. For example, the terminal device may be a service device provided in an organization to facilitate the user's business. For example, the user may transact business by self-service or with the assistance of an associated person by using the intelligent terminal. For example, the user can transact various services on the terminal device by self-help or with the assistance of related personnel by means of identity credentials. For example, the service may include a cashless service or the like.
On the basis, because the terminal equipment has more service types and scenes, before the service transformation point is formally produced on line, under the condition of changing a development program, a tester needs to repeatedly test each branch scene of the service function related to the service transformation point and each branch scene of the core service function. Also, both test data preparation and use require manual operation.
Based on this, in the process of implementing the inventive concept of the present disclosure, the inventor finds that the process of testing the terminal device is complicated, the testing efficiency is low, and the human resources and time resources consumed for testing the terminal device are large.
Disclosure of Invention
In view of the foregoing, the present disclosure provides a terminal test method, apparatus, device, medium, and program product.
According to a first aspect of the present disclosure, there is provided a terminal test method, including: according to the information of the page elements of the service page displayed on the visual interface of the terminal equipment, determining service scene information corresponding to the service page; inquiring from a test database according to the service scene information to obtain operation sequence information and test data corresponding to the service scene, wherein the operation sequence information characterizes the sequence of operation on page elements of the service page; and operating the service page according to the test data by controlling a cursor positioned on the visual interface according to the operation sequence information to obtain a terminal test result corresponding to the terminal equipment.
According to an embodiment of the present disclosure, the test data includes verification test data and transaction test data, and the operation order information includes verification operation order information and transaction operation order information; operating the service page according to the test data by controlling a cursor positioned on a visual interface according to the operation sequence information to obtain a terminal test result corresponding to the terminal equipment, wherein the terminal test result comprises: responding to the visual interface to display the verification page, and operating the verification page according to verification test data by controlling a cursor according to verification operation sequence information until the visual interface displays the service page; responding to the visual interface to display the business page, and operating the business page according to the transaction test data by controlling a cursor according to the transaction operation sequence information until the visual interface displays an operation result page; and generating a terminal test result according to the information of the operation result page.
According to an embodiment of the present disclosure, the page element includes an input box and an end function module, the end function module characterizing a function module for ending a page showing the visual interface; responding to the visual interface to display the business page, operating the business page according to the transaction test data by controlling a cursor according to the transaction operation sequence information until the visual interface displays an operation result page, and comprising the following steps: determining the current operation for the business page according to the transaction operation sequence information; under the condition that the current operation is triggering the input box, controlling a cursor to select the input box positioned on the business page so as to input the transaction test data into the input box positioned on the business page; and under the condition that the current operation is triggering of the ending function module, controlling the cursor to select the ending function module positioned on the service page until the visual interface displays the operation result page.
According to an embodiment of the disclosure, the information of the page element includes position information of the function module, the position information of the function module characterizes a position of the function module in the service page; under the condition that the current operation is triggering of the ending function module, controlling a cursor to select the ending function module positioned on the service page so as to execute test operation on the service page until the visual interface displays an operation result page, wherein the method comprises the following steps: according to the position information of the ending functional module, controlling the cursor to move to a position corresponding to the position information of the ending functional module; and controlling the cursor to execute the selected operation in response to the position of the cursor corresponding to the position information of the ending functional module, so that the visual interface displays an operation result page.
According to an embodiment of the present disclosure, generating a terminal test result according to information of an operation result page includes: under the condition that the operation result page is displayed on the visual interface, extracting key fields of the operation result page; comparing the key field with a preset result field to obtain a comparison result; under the condition that the comparison result represents that the key field is consistent with the comparison of the preset result field, generating a terminal test result representing that the terminal equipment has no abnormal condition; and under the condition that the comparison result characterization key field is inconsistent with the comparison of the preset result field, generating a terminal test result for characterizing the abnormal condition of the terminal equipment.
According to an embodiment of the present disclosure, determining service scenario information corresponding to a service page according to information of a page element of the service page displayed on a visual interface of a terminal device, includes: extracting information of page elements of a service page displayed on a visual interface by using a screen capturing technology; and determining service scene information corresponding to the service page according to the information of the page element.
According to an embodiment of the present disclosure, the terminal test method further includes: under the condition that the visual interface displays the service page, executing screen recording operation aiming at the visual interface to obtain a testing process video corresponding to the terminal equipment; and sending the terminal test result and the test process video to the target client.
A second aspect of the present disclosure provides a terminal test device, including: the determining module is used for determining service scene information corresponding to the service page according to the information of the page element of the service page displayed on the visual interface of the terminal equipment; the query module is used for querying from the test database according to the service scene information to obtain operation sequence information and test data corresponding to the service scene, wherein the operation sequence information represents the sequence of operation on page elements of the service page; and the operation module is used for operating the service page according to the test data by controlling a cursor positioned on the visual interface according to the operation sequence information to obtain a terminal test result corresponding to the terminal equipment.
A third aspect of the present disclosure provides an electronic device, comprising: one or more processors; and a memory for storing one or more computer programs, wherein the one or more processors execute the one or more computer programs to implement the steps of the method.
A fourth aspect of the present disclosure also provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the above method.
A fifth aspect of the present disclosure also provides a computer program product comprising a computer program which, when executed by a processor, implements the steps of the method described above.
According to the embodiment of the disclosure, the information of the service scene is determined according to the information of the page element of the service page displayed on the visual interface of the terminal equipment, so that the operation sequence information and the test data corresponding to the service scene information can be queried from the test database. Therefore, the program of the terminal equipment can be tested by controlling the cursor and writing test data into the service page according to the operation sequence information on the visual interface. Therefore, various business transactions are carried out by simulating manual operation terminal equipment, manual test verification is replaced, and the test efficiency is improved. In addition, because the terminal equipment is operated manually in the use process, the terminal equipment is tested by simulating manual operation, and the accuracy of testing the terminal equipment can be improved.
And the test data and the operation sequence information for testing the terminal equipment can be rapidly deployed through the RPA, so that the terminal equipment can be tested by continuously and automatically utilizing the test data and the operation sequence information, the consumed manpower resources are reduced, the test efficiency is improved, and the test period is shortened.
Drawings
The foregoing and other objects, features and advantages of the disclosure will be more apparent from the following description of embodiments of the disclosure with reference to the accompanying drawings, in which:
FIG. 1 schematically illustrates a schematic diagram of N business pages according to an embodiment of the present disclosure;
Fig. 2 schematically illustrates an application scenario diagram of a terminal test method according to an embodiment of the present disclosure;
FIG. 3 schematically illustrates a flow chart of a terminal test method according to an embodiment of the disclosure;
FIG. 4 schematically illustrates a schematic diagram of acquiring test data according to an embodiment of the present disclosure;
FIG. 5 schematically illustrates a schematic diagram of a terminal test method according to another embodiment of the present disclosure;
FIG. 6 schematically illustrates a schematic diagram of a verification page according to an embodiment of the disclosure;
FIG. 7 schematically illustrates a schematic diagram of page elements of a business page, in accordance with an embodiment of the present disclosure;
FIG. 8 schematically illustrates a schematic diagram of a call relationship according to an embodiment of the disclosure
Fig. 9 schematically shows a block diagram of a terminal test device according to an embodiment of the present disclosure; and
Fig. 10 schematically illustrates a block diagram of an electronic device adapted to implement a terminal test method according to an embodiment of the disclosure.
Detailed Description
Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. It should be understood that the description is only exemplary and is not intended to limit the scope of the present disclosure. In the following detailed description, for purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of the embodiments of the present disclosure. It may be evident, however, that one or more embodiments may be practiced without these specific details. In addition, in the following description, descriptions of well-known structures and techniques are omitted so as not to unnecessarily obscure the concepts of the present disclosure.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. The terms "comprises," "comprising," and/or the like, as used herein, specify the presence of stated features, steps, operations, and/or components, but do not preclude the presence or addition of one or more other features, steps, operations, or components.
All terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art unless otherwise defined. It should be noted that the terms used herein should be construed to have meanings consistent with the context of the present specification and should not be construed in an idealized or overly formal manner.
Where a convention analogous to "at least one of A, B and C, etc." is used, in general such a convention should be interpreted in accordance with the meaning of one of skill in the art having generally understood the convention (e.g., "a system having at least one of A, B and C" would include, but not be limited to, systems having a alone, B alone, C alone, a and B together, a and C together, B and C together, and/or A, B, C together, etc.).
In the technical solution of the present disclosure, the related user information (including, but not limited to, user personal information, user image information, user equipment information, such as location information, etc.) and data (including, but not limited to, data for analysis, stored data, displayed data, etc.) are information and data authorized by the user or sufficiently authorized by each party, and the related data is collected, stored, used, processed, transmitted, provided, disclosed, applied, etc. in compliance with relevant laws and regulations and standards, necessary security measures are taken, no prejudice to the public order colloquia is provided, and corresponding operation entries are provided for the user to select authorization or rejection.
In the scenario of using personal information to make an automated decision, the method, the device and the system provided by the embodiment of the disclosure provide corresponding operation inlets for users, so that the users can choose to agree or reject the automated decision result; if the user selects refusal, the expert decision flow is entered. The expression "automated decision" here refers to an activity of automatically analyzing, assessing the behavioral habits, hobbies or economic, health, credit status of an individual, etc. by means of a computer program, and making a decision. The expression "expert decision" here refers to an activity of making a decision by a person who is specializing in a certain field of work, has specialized experience, knowledge and skills and reaches a certain level of expertise.
According to the embodiment of the disclosure, the terminal equipment has more transaction types, the whole business process can include identity recognition, the user selects a corresponding menu according to page prompts, and the user inputs related information to conduct transaction and ends the transaction. Wherein the identification may be dependent on the hardware of the terminal device for reading the identity information. For example, the terminal device may be deployed with an identification module, a card insertion verification module, and the like. It should be noted that, the information for identification is acquired under the condition that the license authorization is obtained.
Fig. 1 schematically shows a schematic diagram of N business pages according to an embodiment of the present disclosure.
As shown in fig. 1, for each service function of the terminal device, manual page-by-page operation is required for manual testing. For example, in the case where the terminal device 100 has N service pages, it is necessary to perform manual operations on the 1 st service page 101_1 to the nth service page 101_n one by one to complete the test of the terminal device 100. Based on the method, the problems of high manual testing repeatability, complex operation process, low testing efficiency and high consumption of time and human resources exist.
In view of this, embodiments of the present disclosure provide a terminal testing method based on RPA technology. Among other things, RPA (Robotic Process Automation, robotic flow automation) technology may be a technology for simulating human operations on a computer interface. RPA techniques may be used to automatically perform corresponding flow tasks according to rules, instead of or in addition to human completion of related computer operations. By means of RPA technology, a large number of structured, repetitive, rule-based tasks can be performed, whereby the business processes can be repeatedly automated. The method comprises the following steps: and determining service scene information corresponding to the service page according to the information of the page element of the service page displayed on the visual interface of the terminal equipment. And inquiring operation sequence information and test data corresponding to the service scene from a test database according to the service scene information, wherein the operation sequence information characterizes the sequence of operation on page elements of the service page. And operating the service page according to the test data by controlling a cursor positioned on the visual interface according to the operation sequence information to obtain a terminal test result corresponding to the terminal equipment.
Fig. 2 schematically illustrates an application scenario diagram of a terminal test method according to an embodiment of the present disclosure.
As shown in fig. 2, the application scenario 200 according to this embodiment may include a first terminal device 201, a second terminal device 202, a third terminal device 203, a network 204, and a server 205. The network 204 is a medium used to provide a communication link between the first terminal device 201, the second terminal device 202, the third terminal device 203, and the server 205. The network 204 may include various connection types, such as wired, wireless communication links, or fiber optic cables, among others.
The user may interact with the server 205 through the network 204 using the first terminal device 201, the second terminal device 202 or the third terminal device 203, to receive or send messages or the like. Various communication client applications, such as shopping class applications, web browser applications, search class applications, instant messaging tools, mailbox clients, social platform software, etc. (by way of example only) may be installed on the first terminal device 201, the second terminal device 202, and the third terminal device 203.
The first terminal device 201, the second terminal device 202, and the third terminal device 203 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smartphones, tablets, laptop and desktop computers, and the like.
The server 205 may be a server providing various services, such as a background management server (by way of example only) providing support for websites browsed by the user using the first terminal device 201, the second terminal device 202, or the third terminal device 203. The background management server may analyze and process the received data such as the user request, and feed back the processing result (e.g., the web page, information, or data obtained or generated according to the user request) to the terminal device.
It should be noted that, the terminal test method provided in the embodiments of the present disclosure may be generally performed by the server 205. Accordingly, the terminal test device provided in the embodiments of the present disclosure may be generally disposed in the server 205. The terminal test method provided by the embodiments of the present disclosure may also be performed by a server or a server cluster that is different from the server 205 and is capable of communicating with the first terminal device 201, the second terminal device 202, the third terminal device 203, and/or the server 205. Accordingly, the terminal test apparatus provided by the embodiments of the present disclosure may also be provided in a server or a server cluster that is different from the server 205 and is capable of communicating with the first terminal device 201, the second terminal device 202, the third terminal device 203, and/or the server 205.
It should be understood that the number of first terminal devices, second terminal devices, third terminal devices, networks and servers in fig. 2 is merely illustrative. There may be any number of first, second, third, network and server terminals, as desired for implementation.
The terminal test method of the disclosed embodiment will be described in detail below with reference to fig. 3 to 8 based on the scenario described in fig. 2.
Fig. 3 schematically illustrates a flow chart of a terminal test method according to an embodiment of the disclosure.
As shown in fig. 3, the terminal test method of this embodiment includes operations S310 to S330.
In operation S310, service scenario information corresponding to a service page is determined according to information of page elements of the service page displayed on a visual interface of a terminal device.
In operation S320, according to the service scenario information, operation sequence information and test data corresponding to the service scenario are obtained from the test database, wherein the operation sequence information characterizes the sequence of operation on page elements of the service page.
In operation S330, the service page is operated according to the test data by controlling the cursor located on the visual interface according to the operation sequence information, so as to obtain the terminal test result corresponding to the terminal device.
According to embodiments of the present disclosure, a business page may be a page with an actual business scenario. By testing the service page, the actual service scene can be simulated to test the program of the terminal equipment. Different business pages may correspond to different business scenarios. Different business scenarios may have different business processes.
The page elements of the service page may include fields, function modules, etc. located in the service page. The information of the page element of the service page may include category information of the page element of the service page, position information of the page element, and the like.
Since different service pages correspond to different service scenarios, the service scenario corresponding to the service page may be determined according to the page elements of the service page.
The service scenario information may be information of a service scenario corresponding to a service page. The service scenario information may include identification information, type information, and the like of a service scenario corresponding to the service page.
The test database may store therein test data and operation sequence information corresponding to a plurality of business scenarios. The test database may be plural. The plurality of test databases may be databases of different types. The database connection information may be configured in the RPA so that the storage hardware of the terminal device reads the test data and the operation sequence information corresponding to the service scenario information from the test database through the RPA technology.
The test data may include transaction test data, and the like. The transaction test data may be used to simulate data entered by a user at the visual interface. The transaction test data may include transaction amount data, transaction account data, and the like. The test data may be preset by a tester. The source of the test data complies with relevant laws and regulations.
The operation order information may be used to characterize the order in which the page elements are operated on. For example, the operation order information may include an order in which page elements are selected, and the like.
A cursor located on the visual interface may be used to perform the above-described operations of selecting a page element. For example, the cursor may be a mouse cursor.
The terminal test results may be generated by inputting test data into the service page and operating on elements of the service page. Testing the terminal device may refer to testing the running status of the program of the terminal device. The terminal test result can be used for representing the running condition of the program corresponding to the service page under the condition that the terminal equipment displays the service page.
According to the embodiment of the disclosure, the service scene information corresponding to the service page can be queried from the test database according to the information of the page element of the service page displayed on the visual interface of the terminal equipment.
According to the embodiment of the disclosure, the mouse simulation operation and the keyboard simulation operation can be performed through the RPA technology, so that the terminal equipment is tested, and the terminal test result is obtained. For example, the mouse simulation operation may include a mouse operation such as a single click, a double click, a right click, or a drag. The keyboard analog operation may include keyboard operations such as keyboard input, shortcut key use, or combination key use.
For example, RPA includes three analog techniques. The first is application level simulation, for example, keyboard messages may be simulated to target applications using API functions provided in Windows (microsoft Windows operating system) system, for example, API functions may include SendMessage functions and PostMessage functions. The second is a system level simulation that may simulate a window in which a global keyboard message is sent to all programs, such as by using a keybd_event function (i.e., key event function) or a HOOK function (i.e., global HOOK function). The third is the drive level simulation, which can directly read and write the hardware port of the keyboard. Such an implementation amounts to bypassing the application layer and the operating system layer, directly talking to the physical hardware. Whereas ordinary applications are unauthorised to the os port and need to be implemented with corresponding drivers. The mouse is simulated by using a global function, and the abscissa is given to determine the operation of the mouse, for example, the global function may include MOUSEEVENTF _move (i.e., MOVE the mouse) function, MOUSEEVENTF _ LEFTDO-WN (i.e., press the left mouse button), MOUSEEVENTF _ LEFTUP (i.e., release the left mouse button) function, and the like.
Based on the operation sequence information, the operation of the service page is performed according to the test data to obtain a terminal test result corresponding to the terminal equipment.
According to the embodiment of the disclosure, the information of the service scene is determined according to the information of the page element of the service page displayed on the visual interface of the terminal equipment, so that the operation sequence information and the test data corresponding to the service scene information can be queried from the test database. Therefore, the program of the terminal equipment can be tested by controlling the cursor and writing test data into the service page according to the operation sequence information on the visual interface. Therefore, various business transactions are carried out by simulating manual operation terminal equipment, manual test verification is replaced, and the test efficiency is improved. In addition, because the terminal equipment is operated manually in the use process, the terminal equipment is tested by simulating manual operation, and the accuracy of testing the terminal equipment can be improved.
And the test data and the operation sequence information for testing the terminal equipment can be rapidly deployed through the RPA, so that the terminal equipment can be tested by continuously and automatically utilizing the test data and the operation sequence information, the consumed manpower resources are reduced, the test efficiency is improved, and the test period is shortened.
According to an embodiment of the present disclosure, the test data includes verification test data and transaction test data, and the operation order information includes verification operation order information and transaction operation order information. Operating the service page according to the test data by controlling a cursor positioned on a visual interface according to the operation sequence information to obtain a terminal test result corresponding to the terminal equipment, wherein the terminal test result comprises: and responding to the visual interface to display the verification page, and operating the verification page according to the verification operation sequence information by controlling a cursor and the verification test data until the visual interface displays the service page. And responding to the visual interface to display the service page, and operating the service page according to the transaction test data by controlling a cursor according to the transaction operation sequence information until the visual interface displays an operation result page. And generating a terminal test result according to the information of the operation result page.
According to embodiments of the present disclosure, the verification test data may be for testing a program corresponding to the verification page. The verification test data may include account verification data, identification data, and biometric appearance data, among others.
The authentication page may be a page for authenticating the identity of the user. For example, the verification page may include a login page or the like. The page elements of the verification page may include fields, functional modules, etc. located in the verification page. The information of the page element of the verification page may include category information of the page element of the verification page, position information of the page element, and the like.
The verification operation order information may be used to characterize an order in which page elements of the verification page are operated on. For example, the verification operation order information may include an order in which page elements of the verification page are selected, and the like.
The transaction test data may be used to test programs corresponding to business pages. The transaction order information may be used to characterize the order in which page elements of a business page are operated on. For example, the transaction order information may include an order in which page elements of the business page were selected, and so on.
The operation result page may be used to characterize the result of operating on the business page. The operation result page may include operation result field information. For example, in the case where the business process of the business page is successfully completed, the operation result page may display operation result field information corresponding to the successful completion of the process. In the case that the business flow of the business page is not completed, the operation result page may display operation result field information corresponding to the incomplete flow.
According to the embodiment of the disclosure, under the condition that the verification page is displayed on the visual interface, the cursor is controlled to operate page elements of the verification page according to the verification operation sequence information, and verification test data are input into the verification page until the service page is displayed on the visual interface.
According to the embodiment of the disclosure, under the condition that the service page is displayed on the visual interface, the cursor is controlled to operate page elements of the service page according to the transaction operation sequence information, and transaction test data are input into the verification page until the operation result page is displayed on the visual interface.
According to the embodiment of the disclosure, the terminal test result corresponding to the operation result field information can be generated according to the operation result field information of the operation result page.
Fig. 4 schematically illustrates a schematic diagram of acquiring test data according to an embodiment of the present disclosure.
As shown in fig. 4, the data driven component 410 can be constructed based on RPA technology. The data driving component 410 may be configured to interface with a test database. For example, the configuration items of the data driven component 410 can include a plurality of databases of different types. The verification test data 420 and the transaction test data 430 are acquired from the databases 1, 2, and 3 of different types configured by the data driving component 410, and the verification test data 420 and the transaction test data 430 are transmitted to the terminal device. It should be noted that fig. 4 only schematically illustrates the number of test databases, and the number of test databases may be adjusted according to the requirement, which is not limited in this disclosure.
According to the embodiment of the disclosure, the verification page is tested by using the verification test data and the verification operation sequence information corresponding to the verification page, and the service page is tested by using the service test data and the service operation sequence information corresponding to the service page, so that the flexibility and the accuracy of the test are improved.
Fig. 5 schematically illustrates a schematic diagram of a terminal test method according to another embodiment of the present disclosure.
As shown in fig. 5, the terminal test method of this embodiment includes: operations S510 to S550.
In operation S510, service scenario information corresponding to a service page is determined according to information of page elements of the service page displayed on a visual interface of a terminal device.
In operation S520, operation sequence information and test data corresponding to the service scenario are queried from the test database according to the service scenario information.
In operation S530, the verification page is displayed in response to the visual interface, and the verification page is operated according to the verification test data by controlling the cursor according to the verification operation sequence information until the visual interface displays the service page.
In operation S540, the service page is displayed in response to the visual interface, and the operation is performed on the service page according to the transaction test data by controlling the cursor according to the transaction operation sequence information until the visual interface displays the operation result page.
In operation S550, a terminal test result is generated according to the information of the operation result page.
In accordance with embodiments of the present disclosure, in some embodiments, the verification page may be located after the business page. Therefore, by controlling a cursor positioned on a visual interface, operating the service page according to the operation sequence information and the test data, obtaining a terminal test result corresponding to the terminal equipment, wherein the terminal test result comprises the following steps: and responding to the visual interface to display the business page, and operating the business page according to the transaction test data by controlling a cursor according to the transaction operation sequence information until the visual interface displays the verification page. And responding to the visual interface to display the verification page, and operating the verification page according to the verification operation sequence information by controlling a cursor and the verification test data until the visual interface displays an operation result page. And generating a terminal test result according to the information of the operation result page.
Based on the method, the verification page is tested by using verification test data and verification operation sequence information corresponding to the verification page, and the service page is tested by using service test data and service operation sequence information corresponding to the service page, so that the flexibility and the accuracy of the test are improved.
In accordance with embodiments of the present disclosure, in some embodiments, the verification page may not include page elements.
Fig. 6 schematically illustrates a schematic diagram of a verification page according to an embodiment of the disclosure.
As shown in FIG. 6, in some embodiments, page elements may not be included in verification page 600. For example, the verification page 600 may graphically indicate to the user the operations that need to be performed by the user. The verification test data stored in the data driving component can be read through the RPA, and the verification test data is sent to the terminal equipment. And under the condition that the terminal equipment receives the verification test data, the terminal equipment determines that the identity verification is finished.
For example, by controlling a cursor located on a visual interface, according to operation sequence information, operating a service page according to test data to obtain a terminal test result corresponding to a terminal device, including: and responding to the visual interface display verification page, and sending verification test data to the terminal equipment until the visual interface displays the service page. And responding to the visual interface to display the service page, and operating the service page according to the transaction test data by controlling a cursor according to the transaction operation sequence information until the visual interface displays an operation result page. And generating a terminal test result according to the information of the operation result page.
Based on the method, the verification page is tested by using verification test data corresponding to the verification page, and the service page is tested by using service test data corresponding to the service page and service operation sequence information, so that the flexibility and the accuracy of the test are improved.
For example, by controlling a cursor located on the visual interface, according to the operation sequence information, operating the service page according to the test data to obtain a terminal test result corresponding to the terminal device, including: and responding to the visual interface to display the business page, and operating the business page according to the transaction test data by controlling a cursor according to the transaction operation sequence information until the visual interface displays the verification page. And responding to the visual interface display verification page, and sending verification test data to the terminal equipment until the visual interface display operation result page. And generating a terminal test result according to the information of the operation result page.
Based on the method, the verification page is tested by using verification test data corresponding to the verification page, and the service page is tested by using service test data corresponding to the service page and service operation sequence information, so that the flexibility and the accuracy of the test are improved.
According to an embodiment of the present disclosure, the page element includes an input box and an end function module that characterizes the function module for ending the page that presents the visual interface. Responding to the visual interface to display the business page, operating the business page according to the transaction test data by controlling a cursor according to the transaction operation sequence information until the visual interface displays an operation result page, and comprising the following steps: and determining the current operation for the business page according to the transaction operation sequence information. And under the condition that the current operation is triggering the input box, controlling the cursor to select the input box positioned on the business page so as to input the transaction test data into the input box positioned on the business page. And under the condition that the current operation is triggering of the ending function module, controlling the cursor to select the ending function module positioned on the service page until the visual interface displays the operation result page.
According to embodiments of the present disclosure, an input box may be used to input test data. For example, an input box located on a business page may be used to input transaction test data.
According to the embodiment of the disclosure, the ending function module located on the service page can be used for ending displaying the service page displayed on the current visual interface, so that the visual interface displays the next page. The next page may include a next business page or an operation result page. For example, in the case that the number of service pages is N, the end function module of the nth service page located in the N service pages may be selected by controlling the cursor, so as to jump to the n+1th service page in the N service pages, where N is a positive integer greater than 1, and N is a positive integer less than N. For example, the end function module of the nth service page among the N service pages can be selected by controlling the cursor, so that the operation result page is skipped.
According to embodiments of the present disclosure, the current operation for the business page may include an operation of a trigger input box or a trigger function module, or the like. The trigger function may include operations such as a trigger end function.
According to the embodiment of the disclosure, the current operation to be executed on the business page in the current flow can be determined according to the transaction operation sequence information.
According to the embodiment of the disclosure, in the case that the current operation is triggering of the input box, the cursor is controlled to select the input box positioned on the business page, and transaction test data is input into the selected input box.
According to the embodiment of the disclosure, under the condition that the current operation is triggering of the ending function module, the cursor is controlled to select the ending function module positioned on the business page so as to carry out page skip until the visual interface displays the operation result page.
Fig. 7 schematically illustrates a schematic diagram of page elements of a business page according to an embodiment of the disclosure.
As shown in fig. 7, the page elements of the business page 700 may include a business transaction icon 701, an information confirmation icon 702, a meaning confirmation icon 703, an audit authorization icon 704, a result feedback icon 705, a money transfer amount input box 706, a payment account identification input box 707, a money transfer time input box 708, and an end function block 709.
The business transaction icon 701, the information confirmation icon 702, the meaning confirmation icon 703, the audit authorization icon 704, and the result feedback icon 705 may be used to indicate a business process corresponding to the business page 700 displayed on the visual interface. For example, in this embodiment, the icon 701 for business transaction is rendered by shading, so as to represent that the current business process is business transaction. The numbers in the icons may represent the order of the service page among the N service pages. For example, the rank of the business page for business transaction among the N business pages is 1, and thus, the icon 701 for business transaction includes the number 1, and others are the same.
In some embodiments, the business transaction icon 701, the information confirmation icon 702, the meaning confirmation icon 703, the audit authority icon 704, and the result feedback icon 705 may also function as functional modules. By clicking the function module corresponding to each icon, the service page displayed at that time can be switched to the service page corresponding to that function module.
For example, in the case where one of the input box 706 for the money transfer amount, the input box 707 for the payment account identification, and the input box 708 for the money transfer time is selected, the transaction test data stored in the data driving component may be read by the RPA and automatically filled into the input box using the simulated keyboard technology to simulate the process of the user inputting the transaction data.
After the content in the input box is filled out, the business process corresponding to the currently displayed business page can be completed by controlling the cursor to select the ending function module 709, and the business page corresponding to the icon 702 for information confirmation is skipped.
According to the embodiment of the disclosure, the terminal equipment is tested according to the process by triggering the input box or the triggering function module in different business processes, so that the testing accuracy is improved.
According to an embodiment of the present disclosure, in response to a visual interface displaying a service page, operating the service page according to transaction test data by controlling a cursor according to transaction operation sequence information until the visual interface displaying a verification page, including: and determining the current operation for the business page according to the transaction operation sequence information. And under the condition that the current operation is triggering the input box, controlling the cursor to select the input box positioned on the business page so as to input the transaction test data into the input box positioned on the business page. And under the condition that the current operation is triggering of the ending function module, controlling the cursor to select the ending function module positioned on the service page until the visual interface displays the verification page.
Based on the method, the terminal equipment is tested according to the flow by triggering the input box or the function module in different business flows, so that the testing accuracy is improved.
According to embodiments of the present disclosure, the verification page may also include page elements. The page elements of the verification page may include an input box and an end function module. Responding to the visual interface to display the verification page, operating the verification page according to verification test data by controlling a cursor according to verification operation sequence information until the visual interface displays an operation result page, and comprising the following steps: and determining the current operation for the verification page according to the verification operation sequence information. And under the condition that the current operation is triggering the input box, controlling the cursor to select the input box positioned on the verification page so as to input the verification test data into the input box positioned on the verification page. And under the condition that the current operation is triggering of the ending function module, controlling the cursor to select the ending function module positioned on the verification page until the visual interface displays the operation result page.
According to embodiments of the present disclosure, an input box may be used to input test data. For example, an input box located on the verification page may be used to input verification test data.
According to embodiments of the present disclosure, the current operation for the verification page may include an operation of a trigger input box or a trigger function module, or the like. The trigger function may include operations such as a trigger end function.
According to the embodiment of the disclosure, the current operation to be executed on the verification page in the current flow can be determined according to the verification operation sequence information.
According to the embodiment of the disclosure, in the case that the current operation is triggering of the input box, the cursor is controlled to select the input box located on the verification page, and verification test data is input into the selected input box.
According to the embodiment of the disclosure, under the condition that the current operation is triggering of the ending function module, the cursor is controlled to select the ending function module positioned on the verification page so as to carry out page skip until the visual interface displays the operation result page.
According to the embodiment of the disclosure, the terminal equipment is tested according to the flow by triggering the input box or the function module in different verification flows, so that the testing accuracy is improved.
According to an embodiment of the disclosure, the information of the page element includes location information of the function module, the location information of the function module characterizing a location of the function module on the service page. Under the condition that the current operation is triggering of the ending function module, controlling a cursor to select the ending function module positioned on the service page so as to execute test operation on the service page until the visual interface displays an operation result page, wherein the method comprises the following steps: and controlling the cursor to move to the position corresponding to the position information of the ending functional module according to the position information of the ending functional module. And controlling the cursor to execute the selected operation in response to the position of the cursor corresponding to the position information of the ending functional module, so that the visual interface displays an operation result page.
According to an embodiment of the present disclosure, the location information of the end function module may include coordinate information of the end function module on a service page, and the like.
According to embodiments of the present disclosure, the selecting operation may include a single click, a double click, or a right click operation.
According to the embodiment of the disclosure, according to the position information of the ending function module, the cursor is controlled to move to the position corresponding to the position information of the ending function module, and in the case that the cursor reaches the position of the ending function module, the cursor is controlled to execute the selected operation, so that the visual interface displays the operation result page.
According to the embodiment of the disclosure, the cursor can be accurately selected by moving the cursor according to the position information of the ending function module, so that the accuracy of page element operation is improved.
According to an embodiment of the present disclosure, the information of the page element of the verification page includes location information of the functional module located at the verification page, the location information of the functional module located at the verification page characterizing the location of the functional module at the verification page. Under the condition that the current operation is triggering of the ending function module, controlling a cursor to select the ending function module positioned on the service page so as to execute test operation on the service page until the visual interface displays an operation result page, wherein the method comprises the following steps: and controlling the cursor to move to the position corresponding to the position information of the ending functional module according to the position information of the ending functional module. And controlling the cursor to execute the selected operation in response to the position of the cursor corresponding to the position information of the ending functional module, so that the visual interface displays an operation result page.
Based on the method, the cursor is moved according to the position information of the ending function module, so that the cursor can accurately select the ending function module, and the accuracy of page element operation is improved.
According to the embodiment of the disclosure, for the input box of the business page or the input box of the verification page, the cursor can be controlled to move to the position corresponding to the position information of the input box according to the position information of the input box. And controlling the cursor to execute the selected operation in response to the cursor being positioned at the position corresponding to the position information of the input frame, so that the visual interface displays the next page.
Based on the method, the cursor is moved according to the position information of the ending function module, so that the cursor can accurately select the input frame, and the accuracy of page element operation is improved.
According to an embodiment of the present disclosure, generating a terminal test result according to information of an operation result page includes: and under the condition that the visual interface displays the operation result page, extracting key fields of the operation result page. And comparing the key field with a preset result field to obtain a comparison result. And under the condition that the comparison result characterization key field is consistent with the comparison of the preset result field, generating a terminal test result for characterizing that the terminal equipment has no abnormal condition. And under the condition that the comparison result characterization key field is inconsistent with the comparison of the preset result field, generating a terminal test result for characterizing the abnormal condition of the terminal equipment.
According to embodiments of the present disclosure, the key fields may include fields of the operation results page corresponding to the results. For example, the key fields may include "success," "failure," "completion," or "incomplete" fields.
According to an embodiment of the present disclosure, the predetermined result field may be a predetermined field corresponding to a result. For example, the predetermined result field may also include fields of "success", "failure", "completed" or "incomplete", for example.
According to the embodiment of the disclosure, in the case that the operation result page is displayed on the visual interface, key fields located on the operation result page can be identified by utilizing a screen capturing technology. For example, the screen capture technique may be a technique that captures the data presented by the interface directly. Therefore, the information of the page elements of the business page can be obtained through the screen capturing technology without accessing an underlying database or an interface. The screen capturing technology can be divided into the following technical implementation modes of information capturing: object handle element crawling techniques, web page tag crawling techniques, image crawling techniques, OCR (Optical Character Recognition ) techniques, coordinate location crawling techniques, and other types of crawling techniques.
Based on this, the comparison result can be obtained by comparing the key field with the predetermined result field. And under the condition that the comparison result characterization key field is consistent with the comparison of the preset result field, generating a terminal test result for characterizing that the terminal equipment has no abnormal condition. And under the condition that the comparison result characterization key field is inconsistent with the comparison of the preset result field, generating a terminal test result for characterizing the abnormal condition of the terminal equipment. Thus, the terminal test result of the terminal equipment can be obtained. The terminal test results may be stored in a results storage database.
According to the embodiment of the disclosure, since the terminal test result is determined by matching the key field of the operation result page with the predetermined result field, the accuracy of determining the terminal test result is improved.
According to an embodiment of the present disclosure, determining service scenario information corresponding to a service page according to information of a page element of the service page displayed on a visual interface of a terminal device, includes: and extracting the information of the page elements of the business page displayed on the visual interface by using a screen capturing technology. And determining service scene information corresponding to the service page according to the information of the page element.
According to the embodiment of the disclosure, the identification information of the page element positioned on the service page can be determined by using a screen capturing technology, and then the service scene information stored in association with the identification information is queried from the test database according to the identification information.
According to the embodiment of the disclosure, by using the screen capturing technology, the information of the business elements of the accurate business page can be extracted, so that the accuracy of the determined business scene information can be improved.
According to an embodiment of the present disclosure, the terminal test method further includes: and under the condition that the visual interface displays the service page, executing the screen recording operation aiming at the visual interface to obtain the test process video corresponding to the terminal equipment. And sending the terminal test result and the test process video to the target client.
According to an embodiment of the present disclosure, the test procedure video may be a video for recording the running status of the program corresponding to the service page.
According to the embodiment of the disclosure, the RPA may call a screen recording system to record each service page displayed by the visual interface, so as to record execution of each service flow, and obtain a test procedure video corresponding to the terminal device. The mail system can be called through the RPA technology, and the terminal test result and the test process video can be sent to the target client, so that each test can be traced, and the problem can be conveniently checked and traced. Therefore, developers and testers can determine the testing condition of the terminal equipment through the target client according to the terminal testing result and the testing process video.
According to the embodiment of the disclosure, the video of the test process for testing the terminal test equipment is recorded by executing the screen recording operation, and the terminal test result and the video of the test process are sent to the target client together, so that whether an abnormal condition exists in the process of testing the terminal equipment can be determined manually according to the terminal test result and the video of the test process, and the possibility of the abnormal condition of the program of the terminal equipment is reduced.
According to the embodiment of the disclosure, components such as a flow control component, a transaction simulation component, a result analysis component and the like can be constructed based on RPA technology to test the terminal equipment. For example, the business process may be divided by business pages, and the process control component may be configured to invoke a transaction simulation component corresponding to a business page when the business page is displayed on the visual interface, and by executing each process control component in series, a manual operation in each page of the transaction process may be simulated. The transaction simulation component can be used for reading verification test data in a test database configured by the data driving component and sending the verification test data to the terminal equipment, reading transaction test data in the test database configured by the data driving component and filling the transaction test data into the input box, acquiring information of elements of the service page by utilizing a screen capturing technology, and simulating the operation of clicking the page by a user through a mouse simulation technology. The result analysis component can be used for generating a terminal test result according to the information of the operation result page and calling the mailbox system to send the terminal test result and the test process video to the target client. For example, the results analysis component can include an assertion module and a results notification module. The assertion module can be used for generating a terminal test result according to the information of the operation result page. The result notification module may be configured to invoke the mailbox system to send the terminal test result and the test procedure video to the target client.
It should be noted that, components such as process monitoring components may also be constructed based on RPA technology. The process monitoring component may be used to record a process of testing the terminal device.
FIG. 8 schematically illustrates a schematic diagram of a call relationship according to an embodiment of the present disclosure.
As shown in fig. 8, for the nth service page 801—n, the flow control component 802 may be invoked to execute a service flow corresponding to the nth service page 801—n. For example, the flow control component 802 may call the event simulation component 803 to select an input box located in the nth service page 801—n, then the flow control component 802 calls the event simulation component 803 to obtain test data from a test database configured by the data driving component 804, and the flow control component 802 may call the event simulation component 803 to trigger an end function module after writing the test data, so as to perform page skip.
In the case of a jump to the operation results page 805, the content presented by the operation results page 805 may be analyzed by the results analysis component 806 to obtain terminal test results, and the terminal test results may be stored in the results store database 807.
And, the test procedure video and the terminal test result of the terminal equipment can be sent to the target client 809 through the mail system 808, so that developers and testers can determine the test condition of the terminal equipment through the target client 809 according to the terminal test result and the test procedure video.
Based on the terminal testing method, the disclosure further provides a terminal testing device. The device will be described in detail below in connection with fig. 9.
Fig. 9 schematically shows a block diagram of a terminal test device according to an embodiment of the present disclosure.
As shown in fig. 9, the terminal test apparatus 900 of this embodiment includes a determination module 910, a query module 920, and an operation module 930.
The determining module 910 is configured to determine, according to information of a page element of a service page displayed on a visual interface of a terminal device, service scene information corresponding to the service page. In an embodiment, the determining module 910 may be configured to perform the operation S310 described above, which is not described herein.
The query module 920 is configured to query from the test database according to the service scenario information to obtain operation sequence information and test data corresponding to the service scenario, where the operation sequence information characterizes an order of operating page elements of the service page. In an embodiment, the query module 920 may be configured to perform the operation S320 described above, which is not described herein.
The operation module 930 is configured to operate the service page according to the test data by controlling a cursor located on the visual interface according to the operation sequence information, so as to obtain a terminal test result corresponding to the terminal device. In an embodiment, the operation module 930 may be used to perform the operation S330 described above, which is not described herein.
According to an embodiment of the present disclosure, the operation module 930 includes a first operation sub-module, a second operation sub-module, and a generation sub-module. The first operation sub-module is used for responding to the visual interface to display the verification page, and operating the verification page according to verification test data by controlling a cursor according to verification operation sequence information until the visual interface displays a service page; the second operation sub-module is used for responding to the visual interface to display the service page, and operating the service page according to the transaction test data by controlling the cursor according to the transaction operation sequence information until the visual interface displays the operation result page; the generating sub-module is used for generating a terminal test result according to the information of the operation result page.
According to an embodiment of the present disclosure, the second operation sub-module includes a determination unit, a first control unit, and a second control unit. The determining unit is used for determining the current operation for the business page according to the transaction operation sequence information; the first control unit is used for controlling the cursor to select the input box positioned on the business page under the condition that the current operation is triggering the input box so as to input the transaction test data into the input box positioned on the business page; the second control unit is used for controlling the cursor to select the ending function module positioned on the service page until the visual interface displays the operation result page under the condition that the current operation is triggering the ending function module.
According to an embodiment of the present disclosure, the second control unit comprises a first control subunit and a second control subunit. The first control subunit is used for controlling the cursor to move to the position corresponding to the position information of the ending functional module according to the position information of the ending functional module; the first control subunit is used for controlling the cursor to execute the selected operation in response to the position of the cursor corresponding to the position information of the ending functional module, so that the visual interface displays the operation result page.
According to an embodiment of the present disclosure, the generating submodule includes an extracting unit, an comparing unit, a first generating unit, and a second generating unit. The extraction unit is used for extracting key fields of the operation result page under the condition that the operation result page is displayed on the visual interface; the comparison unit is used for obtaining a comparison result by comparing the key field with a preset result field; the comparison unit is used for generating a terminal test result representing that the terminal equipment has no abnormal condition under the condition that the comparison result represents that the key field is consistent with the comparison of the preset result field; the second generating unit is used for generating a terminal test result representing that the terminal equipment has an abnormal condition under the condition that the comparison of the comparison result representation key field and the preset result field is inconsistent.
According to an embodiment of the present disclosure, the determination module 910 includes an extraction sub-module and a determination sub-module. The extraction sub-module is used for extracting the information of page elements of the service page displayed on the visual interface by using a screen capturing technology; the determining submodule is used for determining service scene information corresponding to the service page according to the information of the page element.
According to an embodiment of the present disclosure, the terminal test device 900 further includes a screen recording module and a sending module. The screen recording module is used for executing screen recording operation aiming at the visual interface under the condition that the visual interface displays the service page, so as to obtain a testing process video corresponding to the terminal equipment; the sending module is used for sending the terminal test result and the test process video to the target client.
Any of the determination module 910, the query module 920, and the operation module 930 may be combined in one module to be implemented, or any of them may be split into a plurality of modules according to an embodiment of the present disclosure. Or at least some of the functionality of one or more of the modules may be combined with, and implemented in, at least some of the functionality of other modules. According to embodiments of the present disclosure, at least one of the determination module 910, the query module 920, and the operation module 930 may be implemented at least in part as hardware circuitry, such as a Field Programmable Gate Array (FPGA), a Programmable Logic Array (PLA), a system-on-chip, a system-on-substrate, a system-on-package, an Application Specific Integrated Circuit (ASIC), or in hardware or firmware, such as any other reasonable manner of integrating or packaging the circuitry, or in any one of or a suitable combination of any of three implementations of software, hardware, and firmware. Or at least one of the determination module 910, the query module 920, and the operation module 930 may be at least partially implemented as computer program modules that, when executed, perform the corresponding functions.
Fig. 10 schematically illustrates a block diagram of an electronic device adapted to implement a terminal test method according to an embodiment of the disclosure.
As shown in fig. 10, an electronic device 1000 according to an embodiment of the present disclosure includes a processor 1001 that can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 1002 or a program loaded from a storage section 1008 into a Random Access Memory (RAM) 1003. The processor 1001 may include, for example, a general purpose microprocessor (e.g., a CPU), an instruction set processor and/or an associated chipset and/or a special purpose microprocessor (e.g., an Application Specific Integrated Circuit (ASIC)), or the like. The processor 1001 may also include on-board memory for caching purposes. The processor 1001 may include a single processing unit or multiple processing units for performing different actions of the method flows according to embodiments of the present disclosure.
In the RAM 1003, various programs and data necessary for the operation of the electronic apparatus 1000 are stored. The processor 1001, the ROM 1002, and the RAM 1003 are connected to each other by a bus 1004. The processor 1001 performs various operations of the method flow according to the embodiment of the present disclosure by executing programs in the ROM 1002 and/or the RAM 1003. Note that the program may be stored in one or more memories other than the ROM 1002 and the RAM 1003. The processor 1001 may also perform various operations of the method flow according to the embodiments of the present disclosure by executing programs stored in the one or more memories.
According to an embodiment of the disclosure, the electronic device 1000 may also include an input/output (I/O) interface 1005, the input/output (I/O) interface 1005 also being connected to the bus 1004. The electronic device 1000 may also include one or more of the following components connected to the I/O interface 1005: an input section 1006 including a keyboard, a mouse, and the like; an output portion 1007 including a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), etc., and a speaker, etc.; a storage portion 1008 including a hard disk or the like; and a communication section 1009 including a network interface card such as a LAN card, a modem, or the like. The communication section 1009 performs communication processing via a network such as the internet. The drive 1010 is also connected to the I/O interface 1005 as needed. A removable medium 1011, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like, is installed as needed in the drive 1010, so that a computer program read out therefrom is installed as needed in the storage section 1008.
The present disclosure also provides a computer-readable storage medium that may be embodied in the apparatus/device/system described in the above embodiments; or may exist alone without being assembled into the apparatus/device/system. The computer-readable storage medium carries one or more programs which, when executed, implement methods in accordance with embodiments of the present disclosure.
According to embodiments of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium, which may include, for example, but is not limited to: a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this disclosure, a computer-readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. For example, according to embodiments of the present disclosure, the computer-readable storage medium may include ROM 1002 and/or RAM 1003 and/or one or more memories other than ROM 1002 and RAM 1003 described above.
Embodiments of the present disclosure also include a computer program product comprising a computer program containing program code for performing the methods shown in the flowcharts. The program code, when executed in a computer system, causes the computer system to perform the methods provided by embodiments of the present disclosure.
The above-described functions defined in the system/apparatus of the embodiments of the present disclosure are performed when the computer program is executed by the processor 1001. The systems, apparatus, modules, units, etc. described above may be implemented by computer program modules according to embodiments of the disclosure.
In one embodiment, the computer program may be based on a tangible storage medium such as an optical storage device, a magnetic storage device, or the like. In another embodiment, the computer program may also be transmitted in the form of signals on a network medium, distributed, and downloaded and installed via the communication section 1009, and/or installed from the removable medium 1011. The computer program may include program code that may be transmitted using any appropriate network medium, including but not limited to: wireless, wired, etc., or any suitable combination of the foregoing.
In such an embodiment, the computer program may be downloaded and installed from a network via the communication portion 1009, and/or installed from the removable medium 1011. The above-described functions defined in the system of the embodiments of the present disclosure are performed when the computer program is executed by the processor 1001. The systems, devices, apparatus, modules, units, etc. described above may be implemented by computer program modules according to embodiments of the disclosure.
According to embodiments of the present disclosure, program code for performing computer programs provided by embodiments of the present disclosure may be written in any combination of one or more programming languages, and in particular, such computer programs may be implemented in high-level procedural and/or object-oriented programming languages, and/or assembly/machine languages. Programming languages include, but are not limited to, such as Java, c++, python, "C" or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, partly on a remote computing device, or entirely on the remote computing device or server. In the case of remote computing devices, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., connected via the Internet using an Internet service provider).
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
Those skilled in the art will appreciate that the features recited in the various embodiments of the disclosure and/or in the claims may be provided in a variety of combinations and/or combinations, even if such combinations or combinations are not explicitly recited in the disclosure. In particular, the features recited in the various embodiments of the present disclosure and/or the claims may be variously combined and/or combined without departing from the spirit and teachings of the present disclosure. All such combinations and/or combinations fall within the scope of the present disclosure.
The embodiments of the present disclosure are described above. These examples are for illustrative purposes only and are not intended to limit the scope of the present disclosure. Although the embodiments are described above separately, this does not mean that the measures in the embodiments cannot be used advantageously in combination. The scope of the disclosure is defined by the appended claims and equivalents thereof. Various alternatives and modifications can be made by those skilled in the art without departing from the scope of the disclosure, and such alternatives and modifications are intended to fall within the scope of the disclosure.

Claims (11)

1. A method for testing a terminal, the method comprising:
According to the information of page elements of a service page displayed on a visual interface of a terminal device, determining service scene information corresponding to the service page;
inquiring from a test database according to the service scene information to obtain operation sequence information and test data corresponding to the service scene, wherein the operation sequence information characterizes the sequence of operating page elements of the service page;
And operating the service page according to the test data according to the operation sequence information by controlling a cursor positioned on the visual interface to obtain a terminal test result corresponding to the terminal equipment.
2. The method of claim 1, wherein the test data comprises verification test data and transaction test data, and the operational sequence information comprises verification operational sequence information and transaction operational sequence information;
and operating the service page according to the operation sequence information by controlling a cursor positioned on the visual interface and the test data to obtain a terminal test result corresponding to the terminal equipment, wherein the terminal test result comprises the following steps:
Responding to the visual interface to display a verification page, and operating the verification page according to the verification test data by controlling the cursor according to the verification operation sequence information until the visual interface displays the service page;
Responding to the visual interface to display a service page, and operating the service page according to the transaction test data by controlling the cursor according to the transaction operation sequence information until the visual interface displays an operation result page;
and generating the terminal test result according to the information of the operation result page.
3. The method of claim 2, wherein the page element includes an input box and an end function module, the end function module characterizing a function module for ending a page showing the visual interface;
And responding to the visual interface to display a service page, and operating the service page according to the transaction test data by controlling the cursor according to the transaction operation sequence information until the visual interface displays an operation result page, wherein the method comprises the following steps:
Determining the current operation aiming at the business page according to the transaction operation sequence information;
Controlling the cursor to select an input box positioned on the business page under the condition that the current operation is triggering the input box so as to input the transaction test data into the input box positioned on the business page;
and under the condition that the current operation is triggering of the ending function module, controlling the cursor to select the ending function module positioned on the service page until the visual interface displays the operation result page.
4. A method according to claim 3, wherein the information of the page element comprises location information of a function module, the location information of the function module characterizing the location of the function module at the service page;
And under the condition that the current operation triggers the ending function module, controlling the cursor to select the ending function module positioned on the service page so as to execute the test operation for the service page until the visual interface displays the operation result page, wherein the method comprises the following steps:
controlling the cursor to move to a position corresponding to the position information of the ending function module according to the position information of the ending function module;
And controlling the cursor to execute the selected operation in response to the position of the cursor corresponding to the position information of the ending function module, so that the visual interface displays the operation result page.
5. The method according to claim 2, wherein generating the terminal test result according to the information of the operation result page includes:
extracting key fields of the operation result page under the condition that the visual interface displays the operation result page;
comparing the key field with a preset result field to obtain a comparison result;
under the condition that the comparison result represents that the key field is consistent with the comparison of the preset result field, generating a terminal test result representing that the terminal equipment has no abnormal condition;
And under the condition that the comparison result indicates that the key field is inconsistent with the comparison of the preset result field, generating a terminal test result indicating that the abnormal condition exists in the terminal equipment.
6. The method according to claim 1, wherein the determining the service scenario information corresponding to the service page according to the information of the page element of the service page displayed on the visual interface of the terminal device includes:
extracting information of page elements of a service page displayed on the visual interface by using a screen capturing technology;
And determining service scene information corresponding to the service page according to the information of the page element.
7. The method according to claim 1, wherein the method further comprises:
Under the condition that the service page is displayed by the visual interface, executing screen recording operation aiming at the visual interface to obtain a testing process video corresponding to the terminal equipment;
and sending the terminal test result and the test process video to a target client.
8. A terminal test device, the device comprising:
The determining module is used for determining service scene information corresponding to the service page according to the information of the page element of the service page displayed on the visual interface of the terminal equipment;
the query module is used for querying and obtaining operation sequence information and test data corresponding to the service scene from a test database according to the service scene information, wherein the operation sequence information characterizes the sequence of operation on page elements of the service page;
and the operation module is used for operating the service page according to the test data by controlling a cursor positioned on the visual interface according to the operation sequence information to obtain a terminal test result corresponding to the terminal equipment.
9. An electronic device, comprising:
one or more processors;
A memory for storing one or more computer programs,
Characterized in that the one or more processors execute the one or more computer programs to implement the steps of the method according to any one of claims 1 to 7.
10. A computer-readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, realizes the steps of the method according to any one of claims 1-7.
11. A computer program product comprising a computer program or instructions which, when executed by a processor, implement the steps of the method according to any one of claims 1 to 7.
CN202410356797.2A 2024-03-27 2024-03-27 Terminal test method, device, equipment, storage medium and program product Pending CN118093288A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410356797.2A CN118093288A (en) 2024-03-27 2024-03-27 Terminal test method, device, equipment, storage medium and program product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410356797.2A CN118093288A (en) 2024-03-27 2024-03-27 Terminal test method, device, equipment, storage medium and program product

Publications (1)

Publication Number Publication Date
CN118093288A true CN118093288A (en) 2024-05-28

Family

ID=91145651

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410356797.2A Pending CN118093288A (en) 2024-03-27 2024-03-27 Terminal test method, device, equipment, storage medium and program product

Country Status (1)

Country Link
CN (1) CN118093288A (en)

Similar Documents

Publication Publication Date Title
CN109376078B (en) Mobile application testing method, terminal equipment and medium
CN111552633A (en) Interface abnormal call testing method and device, computer equipment and storage medium
CN108830383B (en) Method and system for displaying machine learning modeling process
WO2021129335A1 (en) Operation monitoring method and apparatus, operation analysis method and apparatus
CN114626069A (en) Threat modeling method and device
CN113535577A (en) Application testing method and device based on knowledge graph, electronic equipment and medium
CN111402069B (en) Accumulation fund data acquisition method and device, computer equipment and storage medium
CN114510305B (en) Model training method and device, storage medium and electronic equipment
CN115827122A (en) Operation guiding method and device, electronic equipment and storage medium
CN118093288A (en) Terminal test method, device, equipment, storage medium and program product
CN111556993A (en) Electronic product testing system and method
CN114115628A (en) U shield display information acquisition method, device, equipment, medium and program product applied to U shield test
CN111931465A (en) Method and system for automatically generating user manual based on user operation
CN114296839B (en) Payment control method, device and equipment and computer storage medium
CN118377722A (en) Page test method, device, equipment, medium and program product
CN118363703A (en) Intelligent contract management method, information processing method and device and electronic equipment
CN118569702A (en) Information processing method, apparatus, device, medium and program product
CN118295929A (en) Client compatibility test method, device, equipment, storage medium and program product
CN116434043A (en) Image processing method, device, equipment and storage medium
CN116483769A (en) Multi-U-shield check-in-free testing method and device
CN114037565A (en) Method, device, equipment and medium for processing court case based on RPA and AI
Ahmed et al. A Project Paper on Smart Gym Management System
CN114840435A (en) Method, device, equipment, storage medium and program product for determining data flow direction
CN117056191A (en) Assertion program processing method, device, equipment, medium and product
CN118550832A (en) Data processing method, apparatus, device, medium, and program product

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