An RPA login component automatic generation tool
Through the RPA login component automatic generation tool, large model technology and the PyQt toolkit are used to generate visual online banking login components, which solves the problems of complexity and low efficiency of online banking automatic login in the existing technology, and achieves efficient and safe component generation and testing. Development costs and risks are reduced.
Patent Information
- Application Number
- CN202410804795.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-21
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2044-06-21
AI Technical Summary
It is difficult to realize automatic login from the highly secure online banking system and frequent login or logout of different accounts with existing technology, resulting in high development threshold, low efficiency, low component reuse rate, low degree of standardization, and the need for constant adjustment by professional and technical personnel. Design, complex and time-consuming.
Provides an automatic generation tool for RPA login components, including an automatic login, operating environment detection configuration module, account information input module, security verification module and component generation module. It generates visual online banking login components through the Python programming language and uses large model technology to automatically Generate code and combine it with the PyQt toolkit to realize automated generation and testing of components, reducing development costs and risks.
It enables non-professional technical personnel to create visual online banking login components by themselves, improves the security and efficiency of the login process, reduces development complexity and risks, ensures the availability and security of components, reduces repeated development and manual intervention, and improves improve user interaction experience.
Smart Images

Figure CN118377470B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to an RPA login component automatic generation tool. Background Art
[0002] RPA Designer is a design software specifically for Robotic Process Automation (RPA). RPA Designer includes a visual task process modeling tool that can create or recreate RPA processes in a short time by dragging and linking. It supports importing processes from existing process systems and can easily automate workflows. This drag-and-drop design helps non-technical personnel to implement RPA development faster and is a tool used by RPA development engineers in the process of implementing process automation.
[0003] In the development of financial software, development engineers can use the code components in the RPA designer to complete the development work. However, during the development and testing process, if developers want to automatically obtain account data from online banking, they need to frequently log in or log out of different accounts. In this case, it is necessary to first develop an online banking automatic login program, through which the online banking automatic login program can be used to open the browser, enter the user password, identify the verification code, simulate the login process, etc. However, there are many types of online banking systems and the security precautions are relatively high. Usually, security verification is designed to prevent robots from automatically logging in. In particular, some key customers are constantly upgrading their security verification methods. Therefore, the online banking automatic login program currently has a high development threshold, low efficiency, low component reuse rate, low standardization, and low one-time development pass rate.
[0004] There is also a similar invention patent in the prior art with the patent application number: 202310479079.X "A financial reconciliation method, device, equipment and medium based on RPA". This patent includes a financial reconciliation method, device, equipment and medium based on RPA, including: obtaining the login information of the specified financial software during the operation of the specified financial software; determining the verification information for logging into the specified financial software according to the login information of the specified financial software; identifying the verification information according to the recognition program pre-set by RPA, and determining the corresponding verification code; logging into the specified financial software according to the verification code, and performing reconciliation operations on the specified financial software. This illustrative embodiment of a technical method based on RPA robot process automation develops a fixed robot automation process through the RPA designer, allowing the robot to simulate the manual login work of humans, helping the relevant RPA robots to log in and handle business normally, which provides great help for the robot financial work in large financial enterprises.
[0005] Although from the content, the document also includes the robot simulating the manual operation of human login work, realizing the function of automatic login. However, it should be noted that the invention logs in to the designated financial software designed by itself. The developer is clear about the performance, verification method and security verification method of the financial software developed by himself, so it is very easy to realize automatic login of the designated financial software. However, this method cannot realize the automatic login of the developed software to the online banking system account with higher security.
[0006] The invention patent "A software development method and system for a vehicle controller based on GPT" with patent application number 202311028548.2 in the prior art provides a software development method and system for a vehicle controller based on GPT, which relates to the field of vehicle technology. The method includes: receiving instructions input by a user, and using GPT technology to generate a simulation model from the instructions; modifying the simulation model through a simulation tool to form an initial model, exporting the initial model, and performing a model-in-the-loop test on the initial model until a test result that meets the preset requirements is obtained to form a final model; parsing the final model through an auxiliary tool to generate program code and machine code, and burning the machine code into the controller; performing software-in-the-loop testing and verification on the program code, and performing hardware-in-the-loop testing and verification on the controller to obtain the created software. The invention can solve the technical problems in the prior art that the model design is complex and difficult and cannot achieve two-way mapping and synchronization with the code.
[0007] Although this patent application is also a method of automatically generating programs using models and also adopts GPT technology, it does not involve the security management of accounts and is only suitable for the development of vehicle controllers. Summary of the invention
[0008] In view of the problem that the prior art cannot automatically obtain account data from online banking during the development and testing process to frequently log in or log out of different accounts, the present invention provides an RPA login component automatic generation tool, including an automatic login device with a communication module, the automatic login device is connected to an operating environment detection configuration module, an account information input module, a security verification module based on the operating environment detection result, and a component generation module; wherein:
[0009] The automatic login device is used to receive user instructions to obtain the operation intention, and open the target web page based on the operation intention until the account login interface is opened;
[0010] Running environment detection configuration module: detects the web page environment when opening a web page, verifies the connection security, identifies the account information input window in the account login interface, and keeps the account login interface continuously activated;
[0011] The automatic login device obtains the account information requirement based on the webpage, obtains the specific content of the account information through the account information input module based on the user's intention, and fills it into the account information input window to confirm the input;
[0012] The operating environment detection configuration module detects the security verification information that pops up after the webpage obtains the account information. The security verification module identifies the security verification information, attempts to perform automatic verification, requests manual verification when automatic verification is not possible, and records the operation steps of manual verification; after the verification is successful, the account login is completed;
[0013] At this time, the operating environment detection configuration module sends the information of successful account login to the component generation module. The component generation module obtains the user input text through the automatic login device, and describes the complete execution process of the login based on the web page information and operation information recorded by the operating environment detection configuration module; based on this complete execution process, a code is generated, and the Python programming language is used in the present invention, and stored in the code database of the component generation module;
[0014] The toolkit for creating graphical user interface applications obtains the corresponding code from the code database according to the login requirements and automatically generates a visual online banking login component.
[0015] Preferably, it also includes a model building step, which includes pre-training and model fine-tuning; first, repeat the account login step multiple times, and automatically develop a personalized model in the retrained financial process; simulate the Debug process based on the model to evaluate whether the code generated by the model is correct. If all the result codes fail to be generated, the error code is corrected through programming tools in combination with the financial industry data, and the model is corrected at the same time. Since the corresponding websites of online banking will be logged in multiple times during the training process, and these websites will have security shielding measures, such login operations will also cause troubles to the bank. Therefore, after a period of login work, a mathematical model can be established to simulate the login process independently of the web page, and the relevant code can be generated from this model.
[0016] Preferably, in order to improve the credibility of the established model, the model needs to be evaluated. The specific process of evaluating the model includes calculating the probability of the correct answer to the same question. The trained model generates k results, and the quantitative evaluation index pass@k is:
[0017] ;
[0018] Where: n: for the same question, let the model generate n answers; k: randomly select k answers from these n answers; in the model, k<=nc: among the n answers generated by the model, there are c answers that pass the unit test; is the probability that all k answers are wrong when selecting k answers from the n answers generated by the model;
[0019] pass@k: In summary, this indicator indicates the probability of getting the correct answer from k randomly selected answers from the model; finally, from the result code, find the first Python code segment with the correct execution result as the executable code segment.
[0020] Preferably, the present invention further comprises a component pre-audit module, which automatically runs the visual online banking login component, and repeats the login process through the visual online banking login component to confirm that the component can operate normally; the tested visual online banking login component is compressed into a separate execution package. The user can choose to install the component with one click to realize the automatic embedding of the online banking login component.
[0021] Preferably, the component pre-audit module is also provided with an auxiliary design module to analyze the python code obtained from the code database. If the code test fails during the code test, the python development tool is used to perform the test and modification; the auxiliary design module marks the abnormal code segment position and calculates the code deviation. The auxiliary design module marks the abnormal code segment position and calculates the code deviation; the large model generates code, such as input: "Write a python code to automatically open the web page and automatically enter the customer number and password of a certain bank", the system automatically generates the following code, the key code segment: password_field.send_keys ("your password"). From the above code analysis, although the code structure is complete, there are often many problems in the actual application process. For example, the web page loads slowly during operation, resulting in slow page loading speed, and the program cannot find the element through find_element_by_id in the process of finding the element. The program reports an error, and the code program test pass rate is low. The stability and scalability of the code are weak.
[0022] Code testing includes: Semantic Analysis: Semantic analysis checks whether the code is meaningful based on grammatical correctness. This includes checking whether variables have been defined before use, whether functions are called with the correct number and type of parameters, etc. Development tools will report semantic errors at this stage.
[0023] Control Flow Analysis: Development tools analyze the control flow statements in the code (such as if, for, while, etc.) to ensure that their use is reasonable and there are no problems such as infinite loops that cause the program to not terminate.
[0024] Data Flow Analysis: Data flow analysis checks the use of variables in the program to ensure that they are correctly assigned values before use and are not accidentally modified after assignment. Development tools use this analysis to report data-related errors, such as using uninitialized variables.
[0025] Static Type Checking: For statically typed languages (such as Java, C#, etc.), development tools perform type checking at compile time to ensure that the use of variables and functions conforms to their declared types. This helps to find type errors before runtime.
[0026] Dynamic Type Checking: For dynamically typed languages (such as Python, JavaScript, etc.), although the compiler does not perform static type checking, the development tools may provide runtime type checking capabilities to catch type errors while the program is running.
[0027] The above code test content does not need to be repeated multiple times, and can be performed in sequence according to the component configuration.
[0028] Preferably, a threshold is set in the component pre-review module, and the component is considered available when the code accuracy threshold is ≥80%. When the code accuracy threshold is <80%, manual intervention is performed, and code tuning is performed through tools; the correct code is input into the model, and code accuracy is improved through repeated training.
[0029] Preferably, the code database of the component generation module is deployed in the public network, which is convenient for sharing; the components generated by the component generation module are deployed in the local private cloud, which is convenient for the generator to use and can be forwarded to colleagues when necessary; sensitive data is encrypted and stored locally for personal use only. This makes it easy to obtain data without the risk of data leakage.
[0030] Preferably, PyQt obtains the corresponding python code from the code database according to the login requirements, and the specific steps of automatically generating the visual online banking login component are:
[0031] S1: PyQt automatically imports necessary modules;
[0032] S2: Create an application instance and enable the corresponding API interface;
[0033] S3: The application sends a request protocol to the code database through the API interface. The code database recognizes that the service type is "automatic component generation" and provides the corresponding code according to subsequent requests.
[0034] S4: Create a window and main components of the visual online banking login component based on the acquired code;
[0035] S5: further create and add controls in the main component; set the signals of the relevant controls and connect the signals of the controls to the corresponding slot functions;
[0036] S6: Establishing a display window and an interactive interface;
[0037] S7: The visual online banking login component is generated.
[0038] Preferably, the automatic login device is provided with an instruction receiving module, which has an RPA designer text instruction entry, and the RPA designer text instruction entry directly obtains the online banking login instruction. After receiving the online banking login instruction, the instruction receiving module automatically analyzes the semantics; performs similarity matching on the user instruction based on the constructed code database, and finds several codes that match the user input instruction; and sends the target code to the component generation module in sequence and in order through key prompts. Such a design is more convenient for realizing component generation through natural language.
[0039] The present invention also includes a device, comprising: a processor, and a memory connected to the processor;
[0040] The memory is used to store a computer program, and the computer program is used to generate a visual online banking login component through an RPA login component automatic generation tool;
[0041] The processor is used to call and execute the computer program in the memory.
[0042] The present invention proposes an RPA login component automatic generation tool and an implementation method thereof. The present invention connects the design, test and verification of software in the RPA development process through the big model technology. On the basis of the code database provided by professional and technical personnel, users can customize the visual online banking login component according to their own needs, and realize the seamless connection between the user input text and the design, code generation, testing and verification of the component, thereby reducing the development cost and risk and improving the user's interactive experience, thereby solving the technical problem in the prior art that the visual online banking login component requires professional and technical personnel to constantly adjust according to user needs and the design is complex and difficult, and also solves the problem that similar visual online banking login components require repeated development by professional and technical personnel.
[0043] Its specific advantages are: 1. A dedicated login model is generated through the login action. Professional technicians write codes based on the login model and store them in a convenient place so that financial operators in different scenarios can create and obtain the required visual online banking login components without the assistance of professional technicians.
[0044] 2. Ensure that the created visual online banking login component is actually usable through the pre-review module. If any problem occurs during the login process, it can be discovered in time and automatically forwarded to professional technicians for resolution.
[0045] 3. The operating environment detection configuration module ensures that the web page is correct and the network is secure when logging in. On this basis, the component code and the information required for login are stored separately to improve the security of the visual online banking login component during operation. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present invention.
[0047] Figure 1 It is a schematic diagram of the overall architecture of an RPA login component automatic generation tool of the present invention.
[0048] Figure 2 It is a schematic diagram of a component generation process in an RPA login component automatic generation tool of the present invention. DETAILED DESCRIPTION
[0049] The following will be combined with the accompanying drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. It can be understood that the specific implementation methods described here are only used to explain the relevant content, rather than to limit the present disclosure.
[0050] Since the present invention involves a number of similar but different technical terms in the computer field, they are first explained one by one here:
[0051] The main purpose of the present invention is to automatically log in to an online banking account based on a test. When logging in to the online banking account, account information needs to be entered. The account information includes at least a user name and a password, and also includes secondary verification information and login time and location.
[0052] Automatic generation of python code: The natural language processing (NLP) method is used. NLP technology can understand natural language and convert it into code. For example, tools such as OpenAI Codex, GitHub Copilot and GPT-3 can convert natural language descriptions into Python code. The present invention uses OpenAI Codex.
[0053] It should be noted that the present invention can theoretically support a variety of high-level programming languages, but the applicant has temporarily only implemented the functions described in the present invention through Python.
[0054] PyQt: Literally, it means "Python Qt". It is a concise and memorable way to refer to this powerful tool for developing cross-platform GUI applications using Python. Qt is a popular framework for developing graphical user interfaces (GUIs) for applications running on various operating systems, including Windows, macOS, Linux, and Unix. PyQt makes it possible to develop Qt applications using the Python programming language. And the PyQt signal and slot mechanism allows Python code to interact with Qt objects; where signals are events emitted by Qt objects, and slots are Python code that responds to these events.
[0055] In this embodiment, the user enters the online banking login component instruction to be generated through the RPA designer text instruction entrance, such as: "Generate a login component for the treasury management platform of a certain bank", and the system automatically analyzes the semantics after receiving it. Receive the text instruction input by the user, perform similarity matching on the user instruction based on the constructed code database, and find out several codes that match the user input instruction; use key prompts to sort the target codes in sequence and input them into the customized model to obtain the code component required by the user. The code database described in the present invention supports automated deployment functions. When the code passes the review and is merged into the main branch, the build, test and deployment process can be automatically triggered, which helps to increase the deployment speed and reduce the error rate.
[0056] This application is based on the field of corporate financial accumulation, and the Python code private library is combined with the open source OpenAI codex training model to generate code; the program involved in the invention is deployed in a local private cloud. The system performs similarity matching on the text sent by the user based on the constructed component code database, searches for the code database corresponding to the user's question, and combines the several components through prompt words to form the final component. To implement basic functions, you only need to run PyQt, obtain the corresponding python code from the code database according to the login requirements, and automatically generate a visual online banking login component. However, for more complex login environments, multiple simulations and combinations are required on the generated model. Such as Figure 1 As shown, the present invention provides an RPA login component automatic generation tool, including an automatic login device with a communication module, the automatic login device is connected to an operating environment detection configuration module, an account information input module, a security verification module based on the operating environment detection result, and a component generation module; wherein:
[0057] The automatic login device is used to receive user instructions to obtain the operation intention, and open the target web page based on the operation intention until the account login interface is opened;
[0058] Running environment detection configuration module: detects the web page environment when opening a web page, verifies the connection security, identifies the account information input window in the account login interface, and keeps the account login interface continuously activated;
[0059] The automatic login device obtains the account information requirement based on the webpage, obtains the specific content of the account information through the account information input module based on the user's intention, and fills it into the account information input window to confirm the input;
[0060] The operating environment detection configuration module detects the security verification information that pops up after the webpage obtains the account information. The security verification module identifies the security verification information, attempts to perform automatic verification, requests manual verification when automatic verification is not possible, and records the operation steps of manual verification; after the verification is successful, the account login is completed;
[0061] At this time, the operating environment detection configuration module sends the information of successful account login to the component generation module. The component generation module obtains the user input text through the automatic login device, and describes the complete execution process of the login based on the web page information and operation information recorded by the operating environment detection configuration module; generates code based on this complete execution process and stores it in the code database of the component generation module;
[0062] The toolkit for creating graphical user interface applications obtains the corresponding code from the code database according to the login requirements and automatically generates a visual online banking login component.
[0063] In the present invention, Python programming language is used, and the toolkit for creating graphical user interface applications can be PyQt. PyQt is a toolkit for creating GUI applications. It is a successful fusion of Python programming language and Qt library, which is one of the most powerful libraries recognized by the industry.
[0064] However, in practice, toolkits such as Tkinter, PySide, PySimpleGUI or wxPython can also be used. In particular, PySide is the official binding of Qt for Python, similar to PyQt, but supported and maintained by Qt. It provides similar functions and APIs to PyQt and is suitable for projects that require official support and permission. However, in practice, the present invention is currently only implemented based on PyQt.
[0065] Through such a tool, the program code is tested and verified in the software-in-the-loop, and the controller is tested and verified in the Python running environment to obtain the created component. For code generation tasks including unit testing, the correctness of the code is checked by code execution, and the execution results are presented in the feedback information to provide richer information for debugging.
[0066] Compared with traditional code generation method projects, this application uses the model simulation debug process to evaluate whether the code generated by the model is correct. If all the result codes fail to be generated, the treasury industry data is combined to correct the error code through programming tools and modify the model at the same time.
[0067] Evaluate the probability of the correct answer of the model. For the same question (prompt), the model produces k results, and the quantitative evaluation indicator pass@k is: ; Where: n: For the same question, let the model generate n answers. k: From these n answers, randomly select k. In the model, k<=nc: Among the n answers generated by the model, there are c answers that pass the unit test. The probability that k answers are all wrong when selected from the n answers generated by the model.
[0068] pass@k: This indicator indicates the probability of getting the correct answer from the k answers randomly selected from the model. From the result code, find the first Python code segment with the correct execution result as the executable code segment.
[0069] The system fine-tunes the model based on the selected basic model of the accumulated training data set. Adjustment training is a machine learning technique used to adjust the parameters of the basic model to adapt it to a specific customized task or field of the financial process automation development process. This method is based on the training of a large model based on a model that has been pre-trained with a large-scale data set, and is used in the accumulation of parameters in the financial process automation development to better adapt it to personalized tasks or data in the field.
[0070] If the code test fails during the code test, the Python development tool is used to modify the test, mark the code segment location, and calculate the code deviation.
[0071] The large model generates code. For example, if you input: "Write a piece of Python code to automatically open the web page and automatically enter the customer number and password of a certain bank", the system automatically generates the following code, the key code segment: password_field.send_keys("your password").
[0072] “# Download and configure ChromeDriver path # Assume your ChromeDriver is located in "C:\path\to\chromedriver.exe"
[0073] driver =
[0074] webdriver.Chrome(executable_path=r"C:\path\to\chromedriver.exe")
[0075] # Visit the XXXXXXXX bank login page
[0076] driver.get("https: / / ebank.psbc.com / psbcweb / personalBanking / login.jsp")
[0077] # Find the username and password input boxes and enter information
[0078] username_field =
[0079] driver.find_element_by_id("your_username_input_id") # Replace with the actual ID
[0080] password_field =
[0081] driver.find_element_by_id("your_password_input_id") # Replace with the actual ID
[0082] Username_field.send_keys("your customer number") # Enter your customer number
[0083] password_field.send_keys("your password") # Enter your password"
[0084] From the analysis of the above code, although the code structure is complete, there are often many problems in the actual application process. For example, the webpage loads slowly during operation, resulting in slow page loading speed, and the program cannot find the element through find_element_by_id when searching for elements. An error will be reported during the program running, and the code program cannot be passed. On the other hand, the stability and scalability of the code are weak.
[0085] For security reasons, most of the password input boxes in the online banking login process in the existing technology use software disks, and the traditional send_keys method cannot effectively input passwords. It is necessary to write a keyboard driver through the underlying code. For example, in actual combat, we encapsulate the DD_STR method to simulate password input. However, these operations cannot be achieved with traditional code generation technology in the field of online banking login code. If you want to improve the accuracy of code generation, you need to fine-tune the model, input the industry's experience code into the model, and correct the model correctness. Use tools to correct the code and improve the model. First, calculate the average relative error of the code ME=1 / nΣ|X i -Y i |, where n is the number of lines of code, i is the line number subscript, X is the model output result, and Y represents the model after the final correction, and the accuracy of the code is calculated. We set a threshold, and when the code accuracy threshold is ≥80%, we judge that it is basically available. When it is less than 80%, manual intervention is carried out, and code tuning is performed through tools. The correct code is input into the model, and the code accuracy is improved through repeated training. For example, in the code generation type, multiple scenario logical judgments are performed, and first determine whether the page is opened normally. defopen_url_process(self): If it is not normal, increase the waiting time time.sleep(0.5); at the same time, the code finds the element through the find_elements_by_xpath method, locks the mouse focus through click(), and finally enters the password through DD_STR.
[0086] The specific code is: "Driver=
[0087] webdriver.Chrome(executable_path=r"C:\path\to\chromedriver.exe")
[0088] # Visit the XXXXXXXXXX bank login page
[0089] driver.get("https: / / .psbc.com / psbcweb / personalBanking / login.jsp")
[0090] # Whether the web page is opened normally and whether the specified elements are displayed
[0091] def open_url_process(self):
[0092] # Directly open the URL https: / / .psbc.com / # / login
[0093] browser = self.get_browser()
[0094] ele = wait_while_show(browser, " / / div[@id='tab-customLogin'] / div / div[2]", 5, 1)
[0095] #If the element exists, execute the next step
[0096] if ele:
[0097] time.sleep(0.5) browser.find_element_by_xpath(" / / div[@id='tab-customLogin'] / div / div[2]").click()
[0098] time.sleep(0.5)
[0099] ele_xpath = " / / div[@id='pane-customLogin'] / form / div[1] / div / div / input"
[0100] return self.page_ele_exists(ele_xpath, 1)
[0101] # Enter user login information (without verification code)
[0102] def input_login_info(self):
[0103] #Increase loading time
[0104] time.sleep(2)
[0105] # Find the username and password input boxes and enter the information, click to lock the focus
[0106] username_field = driver .find_elements_by_xpath(usernameXPATH).click()
[0107] username_field.DD_STR(username)
[0108] password_field =driver .find_elements_by_xpath(passwordXPATH).click()
[0109] password_field.DD_STR(password)
[0110] Username_field.send_keys("your customer number") # Enter your customer number
[0111] print("input_login_info111111")
[0112] browser = self.get_browser()
[0113] # Switch to English input method
[0114] change_lan(Lan.EN)
[0115] ele_xpath = " / / div[@id='pane-customLogin'] / form / div[1] / div / div / input"
[0116] ele = wait_while_show(browser, ele_xpath, 5, 1)
[0117] if ele is None:
[0118] return self.get_input_not_found(ele_xpath)
[0119] # Customer number, user name, password, key password
[0120] # Customer Number
[0121] ele_cd = browser.find_element_by_xpath(
[0122] " / / div[@id='pane-customLogin'] / form / div[1] / div / div / input")
[0123] # browser.execute_script('arguments[0].focus();', ele_cd)
[0124] # self.dd_str(self.get_user_code())
[0125] ele_cd.send_keys(self.get_user_code())
[0126] time.sleep(1)
[0127] # Username
[0128] ele_nm = browser.find_element_by_xpath(
[0129] " / / div[@id='pane-customLogin'] / form / div[2] / div / div / input")
[0130] # browser.execute_script('arguments[0].focus();', ele_nm)
[0131] # self.dd_str(self.get_user_name())
[0132] ele_nm.send_keys(self.get_user_name())
[0133] time.sleep(1)
[0134] # password
[0135] ele_pwd = browser.find_element_by_id("customLogin")
[0136] browser.execute_script('arguments[0].focus();', ele_pwd)
[0137] self.dd_str(self.get_password())
[0138] return None, None"
[0139] The model outputs the python code after the user inputs the text. The python code generates the relevant visual online banking login component through PyQt. The component pre-examination mechanism is used to check whether the generated code is complete and whether the component can run normally. The final test is displayed on the user's interactive interface. Users can choose to install the component with one click to realize the automatic embedding of the online banking login component. Component generation module, such as Figure 2As shown: PyQt obtains the corresponding python code from the code database according to the login requirements, and the specific steps of automatically generating the visual online banking login component are as follows:
[0140] S1: PyQt automatically imports necessary modules;
[0141] S2: Create an application instance and enable the corresponding API interface;
[0142] S3: The application sends a request protocol to the code database through the API interface. The code database recognizes that the service type is "automatic component generation" and provides the corresponding code according to subsequent requests.
[0143] S4: Create a window and main components of the visual online banking login component based on the acquired code;
[0144] S5: further create and add controls in the main component; set the signals of the relevant controls and connect the signals of the controls to the corresponding slot functions;
[0145] S6: Establishing a display window and an interactive interface;
[0146] S7: The visual online banking login component is generated.
[0147] The automatic login device is provided with an instruction receiving module, which has an RPA designer text instruction entry. The RPA designer text instruction entry directly obtains the online banking login instruction. After receiving the online banking login instruction, the instruction receiving module automatically analyzes the semantics; based on the constructed code database, the user instructions are matched for similarity, and several codes matching the user input instructions are found; and the target codes are sent to the component generation module in sequence and in an orderly manner through key prompts.
[0148] Technical personnel who need to log in to the online banking page frequently can directly load the visual online banking login component to reduce the operation of logging in to the online banking page. In this type of login for software testing, an additional protocol is established through the operating environment detection configuration module and the online banking login page to adjust the nature of the logged-in account. For example, the operating environment detection configuration module makes a statement to the online banking login page, indicating that this login is for an account login for software testing. The corresponding online banking page will no longer pop up a secondary verification page for this login. However, for the sake of security, the account's fund operations on the account after logging in are frozen. Or the online banking page opens a set of virtual interfaces for software testing for use in software testing.
[0149] In the actual application process in the later stage, the information of the secondary verification page still needs to be received after the secondary verification code is received, or it needs to be manually entered according to the information on the online banking page.
[0150] The present invention also relates to a device, comprising: a processor, and a memory connected to the processor; the memory is used to store a computer program, and the computer program is used to generate a visual online banking login component using the RPA login component automatic generation tool; the processor is used to call and execute the computer program in the memory.
[0151] Although the present invention is disclosed as above with preferred embodiments, it is not intended to limit the scope of the present invention. Any person of ordinary skill in the art can make some improvements without departing from the scope of the present invention, that is, all equivalent improvements made in accordance with the present invention should be covered by the scope of the present invention. In the description of this specification, the description of reference terms "an embodiment / method", "some embodiments / methods", "examples", "specific examples", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment / method or example are included in at least one embodiment / method or example of the present application. In this specification, the schematic representation of the above terms does not necessarily target the same embodiment / method or example. Moreover, the specific features, structures, materials or characteristics described can be combined in any one or more embodiments / methods or examples in a suitable manner. In addition, without contradicting each other, a person of ordinary skill in the art can combine and combine the different embodiments / methods or examples described in this specification and the features of different embodiments / methods or examples.
[0152] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of this application, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.
[0153] Those skilled in the art should understand that the above embodiments are only for the purpose of clearly illustrating the present disclosure, and are not intended to limit the scope of the present disclosure. For those skilled in the art, other changes or modifications may be made based on the above disclosure, and these changes or modifications are still within the scope of the present disclosure.
Claims
1. An RPA login component automatic generation tool, including an automatic login device with a communication module, characterized in that: The automatic login device is connected to an operating environment detection configuration module, an account information input module, a security verification module based on the operating environment detection result, and a component generation module; wherein: The automatic login device is used to receive user instructions to obtain the operation intention, and open the target web page based on the operation intention until the account login interface is opened; Running environment detection configuration module: detects the web page environment when opening a web page, verifies the connection security, identifies the account information input window in the account login interface, and keeps the account login interface continuously activated; The automatic login device obtains the account information requirement based on the webpage, obtains the specific content of the account information through the account information input module based on the user's intention, and fills it into the account information input window to confirm the input; The operating environment detection configuration module detects the security verification information that pops up after the webpage obtains the account information. The security verification module identifies the security verification information, attempts to perform automatic verification, requests manual verification when automatic verification is not possible, and records the operation steps of manual verification; after the verification is successful, the account login is completed; At this time, the operating environment detection configuration module sends the information of successful account login to the component generation module. The component generation module obtains the user input text through the automatic login device, and describes the complete execution process of the login based on the web page information and operation information recorded by the operating environment detection configuration module; generates code based on this complete execution process and stores it in the code database of the component generation module; The toolkit used to create graphical user interface applications obtains the corresponding code from the code database according to the login requirements and automatically generates a visual online banking login component; PyQt obtains the corresponding python code from the code database according to the login requirements and automatically generates a visual online banking login component. The specific steps are as follows: S1: PyQt automatically imports necessary modules; S2: Create an application instance and enable the corresponding API interface; S3: The application sends a request protocol to the code database through the API interface, and the code database recognizes that the service type is "component automatic generation" and provides the corresponding code according to the subsequent request; S4: Create a window and a main component of the visual online banking login component according to the acquired code; S5: further create and add controls in the main component; set signals of related controls, and connect the signals of the controls to corresponding slot functions; S6: Establishing a display window and an interactive interface; S7: The visual online banking login component is generated.
2. The RPA login component automatic generation tool according to claim 1, characterized in that: The method also includes a model building step, which includes pre-training and model fine-tuning. First, the account login step is repeated multiple times, and a personalized model is automatically developed in the retrained financial process. The debug process is simulated based on the model to evaluate whether the code generated by the model is correct. If all the result codes fail to be generated, the error code is corrected through programming tools in combination with the treasury industry data, and the model is corrected at the same time.
3. The RPA login component automatic generation tool according to claim 2, characterized in that: The specific process of evaluating the model includes calculating the probability of obtaining the correct answer for the same question. The trained model produces k results, and the quantitative evaluation index pass@k is: Where: n: for the same question, let the model generate n answers; k: randomly select k answers from these n answers; in the model, k <= nc: among the n answers generated by the model, there are c answers that pass the unit test; The probability that all k answers are wrong when selecting k answers from the n answers generated by the model; pass@k: In summary, this metric represents the probability of getting the correct answer from k randomly selected answers from the model. Finally, from the result code, find the first Python code segment with the correct execution result as the executable code segment and calculate the accuracy of the code.
4. The RPA login component automatic generation tool according to claim 1, characterized in that: It also includes a component pre-audit module, which automatically runs the visual online banking login component and repeatedly executes the login process through the visual online banking login component to confirm that the component can operate normally; the tested visual online banking login component is compressed into a separate execution package.
5. The RPA login component automatic generation tool according to claim 4, characterized in that: The component pre-review module is also provided with an auxiliary design module, which analyzes the Python code obtained from the code database, and the auxiliary design module marks the abnormal code segment position and calculates the code deviation.
6. The RPA login component automatic generation tool according to claim 5, characterized in that: A threshold is set in the component pre-review module. When the code accuracy threshold is ≥80%, the component is considered available. When the code accuracy threshold is <80%, manual intervention is performed and code tuning is performed through tools. The correct code is input into the model and code accuracy is improved through repeated training.
7. The RPA login component automatic generation tool according to claim 1 or 2, characterized in that: The code database of the component generation module is deployed in the public network, and the components generated by the component generation module are deployed in the local private cloud; sensitive data is encrypted and stored locally.
8. The RPA login component automatic generation tool according to claim 1, characterized in that: The automatic login device is provided with an instruction receiving module, which has an RPA designer text instruction entry. The RPA designer text instruction entry directly obtains the online banking login instruction. After receiving the online banking login instruction, the instruction receiving module automatically analyzes the semantics; based on the constructed code database, the user instructions are matched for similarity, and several codes matching the user input instructions are found; and the target codes are sent to the component generation module in sequence and in order through key prompts.
9. A device for executing an RPA login component automatic generation tool, characterized in that: include: A processor, and a memory connected to the processor; The memory is used to store a computer program, and the computer program is used to generate a visual online banking login component through an RPA login component automatic generation tool according to any one of claims 1 to 8; The processor is used to call and execute the computer program in the memory.
