Mobile terminal page and transaction code matching method and device, equipment, storage medium and program product
By executing automated testing on the mobile terminal and monitoring the transaction process, the mapping relationship between the mobile terminal page and the transaction code is established, which solves the problems of low confidentiality, incomplete testing and poor user experience in the mobile terminal page update test in the existing technology, and achieves Efficient transaction processing and user experience improvement.
Patent Information
- Application Number
- CN202411338918.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-25
- Publication Date
- 2025-01-21
AI Technical Summary
The prior art has problems such as low confidentiality, incomplete testing and poor user experience in mobile page update testing, and it is impossible to effectively match mobile pages and transaction codes.
Through the transaction request of the mobile terminal, the first transaction page is obtained according to the automatic test of the automatic script, and the log message containing the transaction code is obtained through the monitoring automation test process. When the time point of obtaining the page and the log message, the mapping relationship between the mobile page and the trading code is established.
A comprehensive test coverage has been achieved, the transaction processing speed is improved, the user waiting time is shortened, and the mobile user experience and transaction security and efficiency are improved.
Smart Images

Figure CN119336627A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of mobile Internet technology and can be applied to the financial field. More specifically, it relates to a method, device, equipment, storage medium and program product for matching a mobile terminal page with a transaction code. Background Art
[0002] With the development of communication technology and the popularization of mobile terminals, in the financial field, more and more people conduct financial transactions through mobile terminals. Therefore, how to update the mobile terminal page in time and improve the display effect of the mobile terminal page is an extremely important issue.
[0003] In order to update the mobile page in time, it is usually necessary to test the mobile page to complete the page design. In the current existing technology, the mobile page update is mainly completed by the background developer modifying the local file. However, this testing solution not only requires the page to be exposed to the external network for a long time, which has extremely low confidentiality, but also has low comprehensive coverage and poor testability. It is impossible to judge the pages and transaction requests that have changed during the test, resulting in poor user experience and low transaction efficiency on the mobile page after the test. Summary of the invention
[0004] In view of the above problems, the present disclosure provides a method, apparatus, device, storage medium and program product for matching a mobile terminal page with a transaction code.
[0005] According to a first aspect of the present disclosure, a method for matching a mobile terminal page with a transaction code is provided, the method comprising: in response to a transaction request from a mobile terminal, performing an automated test on the mobile terminal according to a preset script and obtaining a first transaction page; obtaining a log message containing a transaction code by monitoring the automated test process, wherein the transaction code is used to identify the transaction request; when a first time point for obtaining the first transaction page is the same as a second time point for obtaining the log message, establishing a mapping relationship between the first transaction page of the mobile terminal and the transaction code to complete the matching.
[0006] According to an embodiment of the present disclosure, an automated test is performed on a mobile terminal according to a preset script and a first transaction page is obtained, including: determining menu path data based on a transaction request; generating a script template for automated testing based on the menu path data; running the script template, performing automated testing on the mobile terminal, and obtaining test results; and obtaining the first transaction page based on the test results.
[0007] According to an embodiment of the present disclosure, log messages containing transaction codes are obtained by monitoring the automated testing process, including: configuring log records in the script used for automated testing; monitoring the automated testing process based on a preset monitoring tool, and collecting the generated log message set in real time, wherein the log output format in the log message set is consistent.
[0008] According to an embodiment of the present disclosure, log messages containing transaction codes are obtained by monitoring the automated testing process, which also includes: based on the query function of the monitoring tool, log messages containing transaction codes are obtained, and the log messages containing transaction codes are transaction logs corresponding to a specific time period.
[0009] According to an embodiment of the present disclosure, obtaining a first time point of a first transaction page includes: based on a transaction request time of a mobile terminal, taking a timestamp of the first transaction page corresponding to the transaction request as the first time point.
[0010] According to an embodiment of the present disclosure, when the first time point for obtaining the first transaction page is the same as the second time point for obtaining the log message, a mapping relationship between the first transaction page of the mobile terminal and the transaction code is established to complete the matching, including: determining that the first time point for obtaining the first transaction page is the same as the second time point for obtaining the log message containing the transaction code; based on a preset matching algorithm, associating the first transaction page with the transaction code to establish a mapping relationship; and using a preset data structure to store the mapping relationship between the first transaction page and the transaction code.
[0011] According to an embodiment of the present disclosure, when the first time point for obtaining the first transaction page is the same as the second time point for obtaining the log message, a mapping relationship between the first transaction page of the mobile terminal and the transaction code is established to complete the matching, and also includes: based on the mapping relationship, verifying the validity of the transaction to obtain a verification result; and feeding back the verification result to the mobile terminal.
[0012] A second aspect of the present disclosure provides a device for matching a mobile terminal page with a transaction code, the device comprising: a first transaction page acquisition module, for responding to a transaction request from a mobile terminal, performing an automated test on the mobile terminal according to a preset script and acquiring a first transaction page; a log message acquisition module, for acquiring a log message containing a transaction code by monitoring the automated test process, wherein the transaction code is used to identify the transaction request; and a mapping relationship establishment module, for establishing a mapping relationship between the first transaction page of the mobile terminal and the transaction code to complete the matching when a first time point for acquiring the first transaction page is the same as a second time point for acquiring the log message.
[0013] A third aspect of the present disclosure provides an electronic device, comprising: one or more processors; 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 above method.
[0014] The fourth aspect of the present disclosure further provides a computer-readable storage medium on which a computer program or instruction is stored, and when the computer program or instruction is executed by a processor, the steps of the above method are implemented.
[0015] The fifth aspect of the present disclosure also provides a computer program product, including a computer program or instructions, which implement the steps of the above method when the computer program or instructions are executed by a processor. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] The above contents and other purposes, features and advantages of the present disclosure will become more apparent through the following description of the embodiments of the present disclosure with reference to the accompanying drawings, in which:
[0017] Figure 1 A diagram schematically shows an application scenario of a method for matching a mobile terminal page with a transaction code according to an embodiment of the present disclosure;
[0018] Figure 2 A flowchart schematically shows a method for matching a mobile terminal page with a transaction code according to an embodiment of the present disclosure;
[0019] Figure 3 A flowchart of obtaining a first transaction page according to an embodiment of the present disclosure is schematically shown;
[0020] Figure 4 A flowchart of obtaining a log message set according to an embodiment of the present disclosure is schematically shown;
[0021] Figure 5 A flowchart of establishing a mapping relationship according to an embodiment of the present disclosure is schematically shown;
[0022] Figure 6 A schematic diagram of a structural block diagram of a device for matching a mobile terminal page with a transaction code according to an embodiment of the present disclosure is shown; and
[0023] Figure 7 A block diagram of an electronic device suitable for implementing a method for matching a mobile terminal page with a transaction code according to an embodiment of the present disclosure is schematically shown. DETAILED DESCRIPTION
[0024] Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. However, it should be understood that these descriptions are exemplary only and are not intended to limit the scope of the present disclosure. In the following detailed description, for ease of explanation, many specific details are set forth to provide a comprehensive understanding of the embodiments of the present disclosure. However, it is apparent that one or more embodiments may also be implemented without these specific details. In addition, in the following description, descriptions of known structures and technologies are omitted to avoid unnecessary confusion of the concepts of the present disclosure.
[0025] In the technical solution of the present disclosure, the user information (including but not limited to user personal information, user image information, user device information, such as location information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved are all information and data authorized by the user or fully authorized by all parties, and the collection, storage, use, processing, transmission, provision, disclosure and application of the relevant data comply with relevant laws, regulations and standards, take necessary confidentiality measures, do not violate public order and good morals, and provide corresponding operation entrances for users to choose to authorize or refuse.
[0026] It should be noted that in the embodiments of the present application, certain software, components, models and other existing solutions in the industry may be mentioned, and they should be regarded as exemplary. Their purpose is only to illustrate the feasibility of implementing the technical solution of the present application, but it does not mean that the applicant has or will necessarily use the solution.
[0027] In the scenario of using personal information for automated decision-making, the methods, devices, and systems provided by the embodiments of the present disclosure provide users with corresponding operation portals for users to choose to agree or reject the automated decision-making results; if the user chooses to reject, the expert decision-making process will be entered. The expression "automated decision-making" here refers to the activity of automatically analyzing and evaluating a person's behavioral habits, interests and hobbies, or economic, health, credit status, etc. through computer programs, and making decisions. The expression "expert decision-making" here refers to the activity of making decisions by people who specialize in a certain field, have specialized experience, knowledge and skills, and have reached a certain level of professionalism.
[0028] An embodiment of the present disclosure provides a method for matching a mobile terminal page with a transaction code, comprising: in response to a transaction request from a mobile terminal, performing an automated test on the mobile terminal according to a preset script and obtaining a first transaction page; obtaining a log message containing a transaction code by monitoring the automated test process, wherein the transaction code is used to identify the transaction request; when a first time point for obtaining the first transaction page is the same as a second time point for obtaining the log message, establishing a mapping relationship between the first transaction page of the mobile terminal and the transaction code to complete the matching.
[0029] Through the embodiments of the present disclosure, not only can the mapping relationship between the mobile terminal page and the transaction code be used to determine whether a valid match is established during the page design test to determine the changed pages and transactions, thereby facilitating comprehensive coverage testing; but the effective matching of the mobile terminal page and the transaction code can greatly improve the transaction processing speed, shorten the user's waiting time, help improve the mobile terminal user experience, and improve the security and efficiency of transactions.
[0030] Figure 1 The application scenario diagram of the method for matching a mobile terminal page with a transaction code according to an embodiment of the present disclosure is schematically shown.
[0031] like Figure 1 As shown, the application scenario 100 according to this embodiment may include a first terminal device 101, a second terminal device 102, a third terminal device 103, a network 104, and a server 105. The network 104 is used to provide a medium for a communication link between the first terminal device 101, the second terminal device 102, the third terminal device 103, and the server 105. The network 104 may include various connection types, such as wired, wireless communication links, or optical fiber cables, etc.
[0032] The user can use the first terminal device 101, the second terminal device 102, and the third terminal device 103 to interact with the server 105 through the network 104 to receive or send messages, etc. Various communication client applications can be installed on the first terminal device 101, the second terminal device 102, and the third terminal device 103, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc. (only for example).
[0033] The first terminal device 101, the second terminal device 102, and the third terminal device 103 may be various electronic devices having display screens and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, desktop computers, and the like.
[0034] The server 105 may be a server that provides various services, such as a background management server (only as an example) that provides support for websites browsed by users using the first terminal device 101, the second terminal device 102, and the third terminal device 103. The background management server may analyze and process the received data such as user requests, and feed back the processing results (such as web pages, information, or data obtained or generated according to user requests) to the terminal device.
[0035] It should be noted that the matching method of the mobile terminal page and the transaction code provided in the embodiment of the present disclosure can generally be executed by the server 105. Accordingly, the matching device of the mobile terminal page and the transaction code provided in the embodiment of the present disclosure can generally be set in the server 105. The matching method of the mobile terminal page and the transaction code provided in the embodiment of the present disclosure can also be executed by a server or server cluster that is different from the server 105 and can communicate with the first terminal device 101, the second terminal device 102, the third terminal device 103 and / or the server 105. Accordingly, the matching device of the mobile terminal page and the transaction code provided in the embodiment of the present disclosure can also be set in a server or server cluster that is different from the server 105 and can communicate with the first terminal device 101, the second terminal device 102, the third terminal device 103 and / or the server 105.
[0036] It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.
[0037] The following will be based on Figure 1 The scene described by Figure 2~Figure 5 The matching method between the mobile terminal page and the transaction code of the disclosed embodiment is described in detail.
[0038] Figure 2 The flowchart of the method for matching a mobile terminal page with a transaction code according to an embodiment of the present disclosure is schematically shown.
[0039] like Figure 2 As shown, the method for matching the mobile terminal page with the transaction code may further include operations S210 to S230.
[0040] In operation S210, in response to a transaction request from a mobile terminal, an automated test is performed on the mobile terminal according to a preset script and a first transaction page is obtained.
[0041] Specifically, during the testing of the mobile page, the transaction page is obtained according to the transaction request sent by the development mobile terminal. For example, the application scenario can be when performing UI automation testing on the mobile application side, usually a tool or library is required to interact with the application on the device, based on the interactive transaction request and obtain the screenshot of the current screen. Each automation scenario and each step will have a corresponding page screenshot.
[0042] Exemplarily, these transaction pages may not only be screenshots, but also mobile terminal pages may be created based on the file content of the transaction request in the development mobile terminal, and experience pages and the like may be obtained.
[0043] Figure 3A flowchart for obtaining a first transaction page according to an embodiment of the present disclosure is schematically shown.
[0044] like Figure 3 As shown, in an embodiment of the present disclosure, performing automated testing on the mobile terminal according to a preset script and obtaining the first transaction page may further include operations S310 to S340.
[0045] In operation S310, menu path data is determined based on the transaction request.
[0046] In operation S320, a script template for automated testing is generated according to the menu path data.
[0047] In operation S330, the script template is run to perform automated testing on the mobile terminal to obtain test results.
[0048] In operation S340, based on the test result, a first transaction page is obtained.
[0049] Exemplarily, after starting the APP (application) login, the menu path data for entering the final target page (ie, the first page) is determined based on a preset path database, and a script template for performing UI automation testing is generated according to the menu path data.
[0050] In the embodiments of the present disclosure, two script templates are provided based on the menu path data. The first one is a pure text click template. When executing automated testing, the menu path node data can be read in sequence based on the click operation of the script template and converted into automated clickable operation steps. The second one is an operation template with a sliding step. When executing automated testing, the sliding step can be converted into an automated operation step based on the position of the menu path and the sliding step according to the specific step of the sliding step.
[0051] Run the script template containing the menu path data, perform mobile terminal automated testing to obtain test results, and finally obtain the first transaction page. For example, the first transaction page here can be the last page screenshot in the automated testing process.
[0052] In operation S220, a log message including a transaction code is obtained by monitoring the automated testing process, wherein the transaction code is used to identify a transaction request.
[0053] Figure 4 The flowchart of obtaining a log message set according to an embodiment of the present disclosure is schematically shown.
[0054] like Figure 4 As shown, in an embodiment of the present disclosure, obtaining a log message containing a transaction code by monitoring the automated testing process may further include operations S410 to S420.
[0055] In operation S410 , logging is configured in a script for automated testing.
[0056] In operation S420, the automated test process is monitored based on a preset monitoring tool, and a generated log message set is collected in real time, wherein the log output format in the log message set is consistent.
[0057] In the embodiments of the present disclosure, the process of automated testing is monitored, and the execution status of test cases is tracked in real time using monitoring tools, and the results of each test (success, failure, exception) are recorded for subsequent analysis. For example, log records are added to the automated test script to record necessary information such as transaction codes, status codes, etc., so that the log message sets generated by automated testing can be collected in real time before and after key operations.
[0058] In the embodiments of the present disclosure, a log management tool may also be used to centrally store and manage the test log message sets to facilitate subsequent retrieval and analysis.
[0059] For example, by rooting the mobile device, you can get the ability to hook application functions and process the application. During the automated testing process, you can also monitor the log messages to files for subsequent data analysis and processing. This module can output log messages, which contain transaction codes, time points and other information.
[0060] It should be noted that, based on the query function of the monitoring tool, the log message containing the transaction code is obtained from the log message set, and the log message containing the transaction code is a transaction log corresponding to a specific time period.
[0061] Through the embodiments of the present disclosure, monitoring the automated test can not only improve the effectiveness of the test, but also provide important data support for subsequent development and operation and maintenance. In addition, by adjusting the automated test script, not only the first transaction page can be automatically obtained, but also the log message can be automatically obtained.
[0062] In operation S230, when the first time point for acquiring the first transaction page is the same as the second time point for acquiring the log message, a mapping relationship between the first transaction page of the mobile terminal and the transaction code is established to complete the matching.
[0063] Figure 5 The flowchart of establishing a mapping relationship according to an embodiment of the present disclosure is schematically shown.
[0064] like Figure 5As shown, in an embodiment of the present disclosure, when the first time point for obtaining the first transaction page is the same as the second time point for obtaining the log message, a mapping relationship between the first transaction page of the mobile terminal and the transaction code is established to complete the matching, which may further include operations S510 to S530.
[0065] In operation S510, it is determined that a first time point for acquiring a first transaction page is the same as a second time point for acquiring a log message containing a transaction code.
[0066] In operation S520, based on a preset matching algorithm, the first transaction page is associated with the transaction code to establish a mapping relationship.
[0067] In operation S530, a mapping relationship between the first transaction page and the transaction code is stored using a preset data structure.
[0068] Specifically, based on the transaction request time of the mobile terminal, the timestamp of the first transaction page corresponding to the transaction request is used as the first time point. For example, based on the first transaction page (page screenshot) output in step S340 and the time point of the page screenshot. Based on the log message containing the transaction code output in step S420 as a transaction log corresponding to a specific time period, determine the second time point for obtaining the log message containing the transaction code. The time point of the first transaction page and the second time point of the log message are accurately obtained, and the two time points should be compared to confirm that they are exactly the same.
[0069] Then, when the time points are the same, write a matching algorithm to associate the mobile page and the transaction code to establish a mapping relationship. If there are multiple transaction codes corresponding to the page at the same time point, for example, use the latest transaction code or a list of all transaction codes. Finally, design a suitable data structure to store the mapping relationship between the mobile page and the transaction code, such as a dictionary, hash table, etc., for fast search and access.
[0070] It should be noted that, taking into account various abnormal situations during operation, such as time point asynchrony, data inconsistency, etc., that is, the inability to form a match, it is necessary to establish an exception handling mechanism to ensure system stability and reliability.
[0071] In the embodiment of the present disclosure, based on the mapping relationship between the first transaction page and the transaction code, the transaction is verified for validity to obtain a verification result, and the verification result is fed back to the mobile terminal. In this way, the first transaction page of the mobile terminal is effectively matched with the transaction code, providing support for subsequent transaction processing.
[0072] Through the embodiments of the present disclosure, not only can the changed pages and transactions be identified during the page design test, facilitating comprehensive coverage testing; but the effective matching of the mobile terminal page and the transaction code can greatly increase the transaction processing speed, shorten the user's waiting time, help improve the mobile terminal user experience, and improve the security and efficiency of transactions.
[0073] Based on the above-mentioned method for matching a mobile terminal page with a transaction code, the present disclosure also provides a device for matching a mobile terminal page with a transaction code. Figure 6 The device is described in detail.
[0074] Figure 6 The structural block diagram of the device for matching a mobile terminal page with a transaction code according to an embodiment of the present disclosure is schematically shown.
[0075] like Figure 6 As shown, the mobile terminal page and transaction code matching device 600 of this embodiment includes a first transaction page acquisition module 610, a log message acquisition module 620 and a mapping relationship establishment module 630.
[0076] The first transaction page acquisition module 610 is used to respond to the transaction request of the mobile terminal, perform automated testing on the mobile terminal according to a preset script and obtain the first transaction page. In one embodiment, the first transaction page acquisition module 610 can be used to perform the operation S210 described above, which will not be repeated here.
[0077] The log message acquisition module 620 is used to acquire the log message containing the transaction code by monitoring the automated test process, wherein the transaction code is used to identify the transaction request. In one embodiment, the log message acquisition module 620 can be used to perform the operation S220 described above, which will not be described in detail here.
[0078] The mapping relationship establishment module 630 is used to establish a mapping relationship between the first transaction page of the mobile terminal and the transaction code to complete the matching when the first time point of obtaining the first transaction page is the same as the second time point of obtaining the log message. In one embodiment, the mapping relationship establishment module 630 can be used to perform the operation S230 described above, which will not be repeated here.
[0079] According to an embodiment of the present disclosure, any multiple modules among the first transaction page acquisition module 610, the log message acquisition module 620, and the mapping relationship establishment module 630 can be combined into one module for implementation, or any one of the modules can be split into multiple modules. Alternatively, at least part of the functions of one or more of these modules can be combined with at least part of the functions of other modules and implemented in one module. According to an embodiment of the present disclosure, at least one of the first transaction page acquisition module 610, the log message acquisition module 620, and the mapping relationship establishment module 630 can be at least partially implemented as a hardware circuit, such as a field programmable gate array (FPGA), a programmable logic array (PLA), a system on a chip, a system on a substrate, a system on a package, an application specific integrated circuit (ASIC), or can be implemented by hardware or firmware such as any other reasonable way of integrating or packaging the circuit, or implemented in any one of the three implementation methods of software, hardware, and firmware, or in an appropriate combination of any of them. Alternatively, at least one of the first transaction page acquisition module 610, the log message acquisition module 620 and the mapping relationship establishment module 630 may be at least partially implemented as a computer program module, and when the computer program module is executed, the corresponding function may be executed.
[0080] Figure 7 A block diagram of an electronic device suitable for implementing a method for matching a mobile terminal page with a transaction code according to an embodiment of the present disclosure is schematically shown.
[0081] like Figure 7 As shown, the electronic device 700 according to an embodiment of the present disclosure includes a processor 701, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 702 or a program loaded from a storage part 707 to a random access memory (RAM) 703. The processor 701 may include, for example, a general-purpose microprocessor (e.g., a CPU), an instruction set processor and / or a related chipset and / or a dedicated microprocessor (e.g., an application-specific integrated circuit (ASIC)), etc. The processor 701 may also include an onboard memory for caching purposes. The processor 701 may include a single processing unit or multiple processing units for performing different actions of the method flow according to an embodiment of the present disclosure.
[0082] In RAM 703, various programs and data required for the operation of electronic device 700 are stored. Processor 701, ROM 702 and RAM 703 are connected to each other via bus 704. Processor 701 performs various operations of the method flow according to the embodiment of the present disclosure by executing the program in ROM 702 and / or RAM 703. It should be noted that the program can also be stored in one or more memories other than ROM 702 and RAM 703. Processor 701 can also perform various operations of the method flow according to the embodiment of the present disclosure by executing the program stored in one or more memories.
[0083] According to an embodiment of the present disclosure, the electronic device 700 may further include an input / output (I / O) interface 705, which is also connected to the bus 704. The electronic device 700 may further include one or more of the following components connected to the I / O interface 705: an input portion 706 including a keyboard, a mouse, etc.; an output portion 707 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage portion 707 including a hard disk, etc.; and a communication portion 709 including a network interface card such as a LAN card, a modem, etc. The communication portion 709 performs communication processing via a network such as the Internet. A drive 710 is also connected to the I / O interface 705 as needed. A removable medium 711, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 710 as needed, so that a computer program read therefrom is installed into the storage portion 707 as needed.
[0084] The present disclosure also provides a computer-readable storage medium, which may be included in the device / apparatus / system described in the above embodiments; or may exist independently without being assembled into the device / apparatus / system. The above computer-readable storage medium carries one or more programs, and when the above one or more programs are executed, the method according to the embodiment of the present disclosure is implemented.
[0085] According to an embodiment of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium, for example, it may include but is not limited to: a portable computer disk, 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 disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, an apparatus or a device. For example, according to an embodiment of the present disclosure, the computer-readable storage medium may include the ROM 702 and / or RAM 703 described above and / or one or more memories other than ROM 702 and RAM 703.
[0086] The embodiment of the present disclosure also includes a computer program product, which includes a computer program, and the computer program contains program code for executing the method shown in the flowchart. When the computer program product is run in a computer system, the program code is used to enable the computer system to implement the method provided by the embodiment of the present disclosure.
[0087] The above functions defined in the system / device of the embodiment of the present disclosure are performed when the computer program is executed by the processor 701. According to the embodiment of the present disclosure, the system, device, module, unit, etc. described above can be implemented by a computer program module.
[0088] In one embodiment, the computer program may rely on tangible storage media such as optical storage devices, magnetic storage devices, etc. In another embodiment, the computer program may also be transmitted and distributed in the form of signals on a network medium, and downloaded and installed through the communication part 709, and / or installed from the removable medium 711. The program code contained in the computer program may be transmitted using any appropriate network medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.
[0089] In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 709, and / or installed from the removable medium 711. When the computer program is executed by the processor 701, the above functions defined in the system of the embodiment of the present disclosure are performed. According to the embodiment of the present disclosure, the system, device, means, module, unit, etc. described above can be implemented by a computer program module.
[0090] According to an embodiment of the present disclosure, the program code for executing the computer program provided by the embodiment of the present disclosure can be written in any combination of one or more programming languages. Specifically, these computing programs can be implemented using high-level process and / or object-oriented programming languages, and / or assembly / machine languages. Programming languages include, but are not limited to, Java, C++, python, "C" language or similar programming languages. The program code can be executed entirely on the user computing device, partially on the user device, partially on the remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device can be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computing device (for example, using an Internet service provider to connect through the Internet).
[0091] The flow charts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0092] It will be appreciated by those skilled in the art that the features described in the various embodiments of the present disclosure may be combined and / or combined in a variety of ways, even if such combinations or combinations are not explicitly described in the present disclosure. In particular, without departing from the spirit and teachings of the present disclosure, the features described in the various embodiments of the present disclosure may be combined and / or combined in a variety of ways. All of these combinations and / or combinations fall within the scope of the present disclosure.
[0093] The embodiments of the present disclosure are described above. However, these embodiments are only for illustrative purposes and are not intended to limit the scope of the present disclosure. Although the embodiments are described above, this does not mean that the measures in the various embodiments cannot be used in combination to advantage. Without departing from the scope of the present disclosure, those skilled in the art may make a variety of substitutions and modifications, which should all fall within the scope of the present disclosure.
Claims
1. A method for matching a mobile terminal page with a transaction code, characterized in that: The method comprises: In response to a transaction request from a mobile terminal, performing an automated test on the mobile terminal according to a preset script and obtaining a first transaction page; Acquire a log message including a transaction code by monitoring the automated testing process, wherein the transaction code is used to identify the transaction request; When the first time point of acquiring the first transaction page is the same as the second time point of acquiring the log message, a mapping relationship between the first transaction page of the mobile terminal and the transaction code is established to complete the matching.
2. The method for matching a mobile terminal page with a transaction code according to claim 1, characterized in that: The performing of automated testing on the mobile terminal according to a preset script and obtaining the first transaction page includes: Based on the transaction request, determining menu path data; Generate a script template for automated testing according to the menu path data; Run the script template to perform automated testing on the mobile terminal to obtain test results; Based on the test results, the first transaction page is obtained.
3. The method for matching a mobile terminal page with a transaction code according to claim 1 or 2, characterized in that: The step of obtaining a log message containing a transaction code by monitoring the automated testing process includes: configuring logging in the script for automated testing; The automated testing process is monitored based on a preset monitoring tool, and the generated log message set is collected in real time, wherein the log output format in the log message set is consistent.
4. The method for matching a mobile terminal page with a transaction code according to claim 3, characterized in that: The step of obtaining a log message containing a transaction code by monitoring the automated testing process further includes: Based on the query function of the monitoring tool, a log message containing a transaction code is obtained, and the log message containing the transaction code is a transaction log corresponding to a specific time period.
5. The method for matching a mobile terminal page with a transaction code according to claim 1, characterized in that: The obtaining of the first time point of the first transaction page includes: Based on the transaction request time of the mobile terminal, a timestamp of the first transaction page corresponding to the transaction request is used as the first time point.
6. The method for matching a mobile terminal page with a transaction code according to claim 4 or 5, characterized in that: When the first time point of acquiring the first transaction page is the same as the second time point of acquiring the log message, establishing a mapping relationship between the first transaction page of the mobile terminal and the transaction code to complete the matching, includes: Determining that a first time point for acquiring the first transaction page is the same as a second time point for acquiring the log message containing the transaction code; Based on a preset matching algorithm, the first transaction page is associated with the transaction code to establish a mapping relationship; A mapping relationship between the first transaction page and the transaction code is stored using a preset data structure.
7. The method for matching a mobile terminal page with a transaction code according to claim 6, characterized in that: When the first time point of acquiring the first transaction page is the same as the second time point of acquiring the log message, establishing a mapping relationship between the first transaction page of the mobile terminal and the transaction code to complete the matching, further comprising: Based on the mapping relationship, verify the validity of the transaction to obtain a verification result; The verification result is fed back to the mobile terminal.
8. A device for matching a mobile terminal page with a transaction code, characterized in that: The device comprises: A first transaction page acquisition module, configured to respond to a transaction request from a mobile terminal, perform an automated test on the mobile terminal according to a preset script, and acquire a first transaction page; A log message acquisition module, used to acquire a log message containing a transaction code by monitoring the automated test process, wherein the transaction code is used to identify the transaction request; The mapping relationship establishing module is used to establish a mapping relationship between the first transaction page of the mobile terminal and the transaction code to complete the matching when the first time point of acquiring the first transaction page is the same as the second time point of acquiring the log message.
9. An electronic device, comprising: one or more processors; a memory for storing one or more computer programs, It is 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 having a computer program or instruction stored thereon, characterized in that: When the computer program or instruction is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.
11. A computer program product comprising a computer program or instructions, characterized in that When the computer program or instruction is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.