Script processing method and device, computer equipment and storage medium
By automatically judging and handling element interaction exceptions in the insurance service system, the problems of high maintenance costs and low efficiency of test scripts caused by interface element changes are solved, and an efficient and accurate test process is achieved, reducing maintenance costs.
Patent Information
- Application Number
- CN202411253100.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-09
- Publication Date
- 2025-01-07
AI Technical Summary
In insurance service systems, frequent changes in interface elements lead to high maintenance costs, low efficiency, and error-prone results, especially when the system is updated.
By judging element interaction exceptions when executing test scripts, stopping scripts, determining exception elements, obtaining context information, positioning and replacing elements based on preset bit strategies, and handling page white screen and pop-up frame exceptions to ensure the continuity and integrity of the test process .
It automatically handles element interaction exceptions, improves the efficiency and accuracy of the test script, reduces maintenance costs, avoids manual repairs, and ensures the continuity and integrity of the test process.
Smart Images

Figure CN119271544A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the fields of data processing technology and financial technology, and in particular to script processing methods, devices, computer equipment and storage media. Background Art
[0002] In the current software development and testing field, especially in applications such as insurance service systems that are highly dependent on user interaction and interface display, UI (user interface) automated testing plays a vital role as one of the important means to ensure software quality. Traditionally, UI automated testing relies on testers to manually write and execute test scripts to simulate user operations and verify the correctness of system functions. However, with the continuous expansion of insurance service system functions and the rapid iteration of versions, frequent changes in user interfaces have become a challenge that cannot be ignored.
[0003] The maintenance cost of test scripts rises sharply as the complexity of the system increases. In insurance service systems, due to the large number of functional modules and the complexity of interface elements, the number of test scripts often grows exponentially. Whenever the interface elements of the insurance service system change, testers need to spend a lot of time and energy to check and update the relevant scripts one by one to ensure that they can continue to execute correctly. This manual maintenance method is not only inefficient, but also prone to errors. Especially in the face of large-scale system updates, its maintenance cost is even more unbearable. Summary of the invention
[0004] The purpose of the embodiments of the present application is to propose a script processing method, apparatus, computer equipment and storage medium to solve the technical problem that when the interface elements of the existing insurance service system change, testers need to spend a lot of time and energy to check and update related scripts one by one. This manual maintenance method is not only inefficient, but also prone to errors and has high maintenance costs.
[0005] In order to solve the above technical problems, the present application embodiment provides a script processing method, which adopts the following technical solution:
[0006] During the execution of the test script corresponding to the target page, determine whether an element interaction exception is captured;
[0007] If so, stop executing the test script, and determine the specified element corresponding to the element interaction anomaly in the target page;
[0008] Obtaining context information corresponding to the specified element;
[0009] Performing element location processing on the context information based on a preset location strategy to obtain a target update element on the target page corresponding to the designated element;
[0010] Performing a replacement process on the designated element based on the target update element;
[0011] Determine whether other exceptions are captured;
[0012] If no other exceptions are caught, the test script continues to be executed.
[0013] Furthermore, the step of performing element location processing on the context information based on a preset location strategy to obtain a target update element on the target page corresponding to the designated element specifically includes:
[0014] Obtain preset attribute positioning strategy and image positioning strategy;
[0015] determining a first priority of the attribute positioning strategy, and determining a second priority of the image positioning strategy;
[0016] If the first priority is higher than the second priority, extracting the superior-subordinate relationship information of the specified element from the context information;
[0017] Performing element positioning processing based on a preset positioning technology and the superior-subordinate relationship information to obtain a corresponding first element positioning result;
[0018] If the first element locating result is a locating failure, parsing the page information of the target page, and determining whether a recognizable attribute corresponding to the designated element is detected;
[0019] If so, obtaining the identifiable attribute, and performing element positioning processing based on the identifiable attribute to obtain a corresponding second element positioning result;
[0020] If the second element positioning result is successful, a target element corresponding to the second element positioning result is obtained, and the target element is used as the target update element.
[0021] Further, after the step of performing element location processing based on the identifiable attribute to obtain a corresponding second element location result, the method further includes:
[0022] If the second element positioning result is positioning failure, obtaining screenshot information of the target page from the context information;
[0023] Processing the screenshot information based on a preset image processing library to extract designated image information corresponding to the designated element;
[0024] Call the preset button image library;
[0025] Filtering target button image information matching the specified image information from the button image library;
[0026] The target update element corresponding to the designated element on the target page is generated based on the target button image information.
[0027] Furthermore, after the step of determining whether other exceptions are captured, the method further includes:
[0028] If other exceptions are captured, determine whether the other exceptions are a white screen;
[0029] If the other exception is a white screen, obtain a response code of the network request corresponding to the target page, and determine whether the response code is a target response code;
[0030] If the response code is not the target response code, obtain the preset number of retries and retry interval;
[0031] Retrying the target page based on the retry count and the retry interval until the target page is loaded successfully;
[0032] After the target page is loaded successfully, continue to execute the test script.
[0033] Furthermore, after the step of determining whether other exceptions are captured, the method further includes:
[0034] If other exceptions are captured, determine whether the other exceptions are bullet boxes;
[0035] If the other exception is a pop-up window, obtain the pop-up window type corresponding to the pop-up window;
[0036] Obtain a target processing method corresponding to the pop-up box type;
[0037] Closing the pop-up window based on the target processing method;
[0038] After the pop-up window is successfully closed, continue to execute the test script.
[0039] Furthermore, after the step of continuing to execute the test script, the method further includes:
[0040] After the test script is executed, the corresponding script test result is obtained;
[0041] Performing verification processing on the script test result to obtain corresponding verification data;
[0042] Generate a test report corresponding to the test script based on the script test result and the verification data;
[0043] The test report is stored.
[0044] Furthermore, after the step of continuing to execute the test script, the method further includes:
[0045] Acquire the processing data generated by the test script during the test execution process based on a preset time period;
[0046] Performing data analysis on the processed data to obtain corresponding data analysis results;
[0047] Optimizing the test script based on the data analysis result to obtain an optimized target test script;
[0048] The test script is updated using the target test script.
[0049] In order to solve the above technical problems, the embodiment of the present application further provides a script processing device, which adopts the following technical solution:
[0050] A first judgment module is used to judge whether an element interaction anomaly is captured during the execution of a test script corresponding to a target page;
[0051] a determination module, configured to, if yes, stop executing the test script and determine, in the target page, a designated element corresponding to the element interaction anomaly;
[0052] A first acquisition module, used to acquire context information corresponding to the specified element;
[0053] A positioning module, used to perform element positioning processing on the context information based on a preset positioning strategy to obtain a target update element on the target page corresponding to the designated element;
[0054] A replacement module, used for performing a replacement process on the designated element based on the target update element;
[0055] The second judgment module is used to judge whether other exceptions are captured;
[0056] The first execution module is used to continue executing the test script if no other exceptions are caught.
[0057] In order to solve the above technical problems, the embodiment of the present application further provides a computer device, which adopts the following technical solution:
[0058] During the execution of the test script corresponding to the target page, determine whether an element interaction exception is captured;
[0059] If so, stop executing the test script, and determine the specified element corresponding to the element interaction anomaly in the target page;
[0060] Obtaining context information corresponding to the specified element;
[0061] Performing element location processing on the context information based on a preset location strategy to obtain a target update element on the target page corresponding to the designated element;
[0062] Performing a replacement process on the designated element based on the target update element;
[0063] Determine whether other exceptions are captured;
[0064] If no other exceptions are caught, the test script continues to be executed.
[0065] In order to solve the above technical problems, the embodiment of the present application further provides a computer-readable storage medium, which adopts the following technical solution:
[0066] During the execution of the test script corresponding to the target page, determine whether an element interaction exception is captured;
[0067] If so, stop executing the test script, and determine the specified element corresponding to the element interaction anomaly in the target page;
[0068] Obtaining context information corresponding to the specified element;
[0069] Performing element location processing on the context information based on a preset location strategy to obtain a target update element on the target page corresponding to the designated element;
[0070] Performing a replacement process on the designated element based on the target update element;
[0071] Determine whether other exceptions are captured;
[0072] If no other exceptions are caught, the test script continues to be executed.
[0073] Compared with the prior art, the embodiments of the present application have the following beneficial effects:
[0074] In the process of executing the test script corresponding to the target page, the present application determines whether an element interaction anomaly is captured; if so, stops executing the test script, and determines the specified element corresponding to the element interaction anomaly in the target page; then obtains the context information corresponding to the specified element; then performs element positioning processing on the context information based on a preset positioning strategy to obtain a target update element corresponding to the specified element on the target page; subsequently replaces the specified element based on the target update element; and determines whether other anomalies are captured; if no other anomalies are captured, continues to execute the test script. In the process of executing the test script corresponding to the target page, if an element interaction anomaly is captured, the present application stops executing the test script, and determines the specified element corresponding to the element interaction anomaly in the target page, then obtains the context information corresponding to the specified element, and performs element positioning processing on the context information based on a preset positioning strategy to obtain a target update element corresponding to the specified element on the target page, and then uses the target update element obtained by performing element positioning processing by the positioning strategy to perform corresponding replacement processing on the specified element, so as to automatically process the element interaction anomaly that appears on the target page, thereby effectively ensuring the continuity and integrity of the test process corresponding to the test script. There is no need for testers to manually repair exceptions, which effectively improves the test efficiency and accuracy of test scripts and reduces the maintenance cost of test scripts. BRIEF DESCRIPTION OF THE DRAWINGS
[0075] In order to more clearly illustrate the scheme in the present application, a brief introduction is given below to the drawings required for use in the description of the embodiments of the present application. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0076] Figure 1 is an exemplary system architecture diagram to which the present application may be applied;
[0077] Figure 2 A flowchart of an embodiment of a script processing method according to the present application;
[0078] Figure 3 is a structural schematic diagram of an embodiment of a script processing device according to the present application;
[0079] Figure 4 It is a structural diagram of an embodiment of a computer device according to the present application. DETAILED DESCRIPTION
[0080] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by technicians in the technical field of the present application; the terms used in the specification of the application herein are only for the purpose of describing specific embodiments and are not intended to limit the present application; the terms "including" and "having" and any variations thereof in the specification and claims of the present application and the above-mentioned drawings are intended to cover non-exclusive inclusions. The terms "first", "second", etc. in the specification and claims of the present application or the above-mentioned drawings are used to distinguish different objects, not to describe a specific order.
[0081] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0082] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the accompanying drawings.
[0083] like Figure 1 As shown, the system architecture 100 may include a terminal device 101, a network 102 and a server 103. The terminal device 101 may be a laptop 1011, a tablet computer 1012 or a mobile phone 1013. The network 102 is used to provide a medium for a communication link between the terminal device 101 and the server 103. The network 102 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.
[0084] The user can use the terminal device 101 to interact with the server 103 through the network 102 to receive or send messages, etc. Various communication client applications can be installed on the terminal device 101, such as web browser applications, shopping applications, search applications, instant messaging tools, email clients, social platform software, etc.
[0085] The terminal device 101 can be any electronic device with a display screen and supporting web browsing. In addition to the laptop computer 1011, tablet computer 1012 or mobile phone 1013, the terminal device 101 can also be an e-book reader, an MP3 player (Moving Picture Experts Group Audio Layer III), an MP4 (Moving Picture Experts Group Audio Layer IV), a laptop computer, a desktop computer, etc.
[0086] The server 103 may be a server that provides various services, such as a background server that provides support for a web page displayed on the terminal device 101 .
[0087] It should be noted that the script processing method provided in the embodiment of the present application is generally executed by a server / terminal device, and accordingly, the script processing device is generally set in the server / terminal device.
[0088] 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.
[0089] Continue to refer Figure 2 , showing a flowchart of an embodiment of the script processing method according to the present application. According to different requirements, the order of the steps in the flowchart can be changed, and some steps can be omitted. The script processing method provided in the embodiment of the present application can be applied to any scenario where script exception processing is required, and the script processing method can be applied to products in these scenarios, for example, exception processing of test scripts in the financial insurance field. The script processing method comprises the following steps:
[0090] Step S201, during the execution of the test script corresponding to the target page, it is determined whether an element interaction anomaly is captured.
[0091] In this embodiment, the electronic device (eg, Figure 1The server / terminal device shown in the figure) can obtain the element interaction anomaly that occurs during the execution of the test script corresponding to the target page through a wired connection or a wireless connection. It should be pointed out that the above-mentioned wireless connection method may include but is not limited to 3G / 4G / 5G connection, WiFi connection, Bluetooth connection, WiMAX connection, Zigbee connection, UWB (ultra wideband) connection, and other wireless connection methods that are currently known or will be developed in the future. The present application can be applied to the test scenario of exception handling during the script testing process of the insurance service system. The above-mentioned target page may be a page in the insurance service system, for example, it may include a transaction page, a payment page, a claim page, and the like.
[0092] Step S202: If yes, stop executing the test script, and determine the specified element corresponding to the element interaction exception in the target page.
[0093] In this embodiment, the above-mentioned element interaction exception refers to the exception caused by the change of page elements and the failure to maintain them in time. Specifically, in the process of executing the test script corresponding to the target page, any runtime exception can be captured by the exception handling mechanism of the integrated test framework (such as Selenium, Appium, etc.), and the above-mentioned element interaction exception refers to NoSuchElementException. It usually indicates that an error occurred when trying to interact with an element that does not exist on the page. The test framework triggers the exception handling logic, allowing the test script to capture and respond to such anomalies. When an element interaction exception is captured, the specific ID of the element attempted to be accessed in the test script can be recorded. The element attempted to be accessed in the above test script is the above-mentioned specified element.
[0094] Step S203: Acquire context information corresponding to the specified element.
[0095] In this embodiment, the context information may include at least the element ID of the specified element, the upper and lower level relationship information of the specified element, the screenshot information of the target page, and may also include the specific location where the exception occurs and the script execution steps.
[0096] Step S204: performing element location processing on the context information based on a preset location strategy to obtain a target update element on the target page corresponding to the designated element.
[0097] In this embodiment, the above-mentioned specific implementation process of performing element positioning processing on the context information based on a preset positioning strategy to obtain the target update element corresponding to the specified element on the target page will be further described in detail in the subsequent specific embodiments of this application and will not be elaborated here.
[0098] Step S205: Replace the designated element based on the target update element.
[0099] In this embodiment, after obtaining the target update element corresponding to the designated element on the target page, the designated element is updated by using the target update element, thereby completing the corresponding replacement process.
[0100] Step S206, determining whether other exceptions are captured.
[0101] In this embodiment, the other anomalies mentioned above may include a blank screen or a pop-up window.
[0102] Step S207: If no other exceptions are caught, continue to execute the test script.
[0103] In this embodiment, after the element interaction anomaly existing in the target page is resolved based on the operation of replacing the designated element with the target update element, the test script can continue to execute subsequent test steps without being blocked by the element interaction anomaly.
[0104] In addition, if the test script still fails after re-execution, the new failure information is recorded, including the reason for the failure, the failed test steps, and related context information. And according to the type and severity of the failure, the corresponding error handling process is triggered. This may include recording detailed error logs, sending alert notifications to relevant personnel (such as testers, developers), pausing or terminating test execution, etc. And, in some cases, if the system cannot automatically resolve the failure problem, manual intervention may be required for analysis and repair.
[0105] In the process of executing the test script corresponding to the target page, if an element interaction anomaly is captured, the application will stop executing the test script, determine the specified element corresponding to the element interaction anomaly in the target page, and then obtain the context information corresponding to the specified element, and perform element positioning processing on the context information based on the preset positioning strategy to obtain the target update element corresponding to the specified element on the target page, and then use the target update element obtained by element positioning processing through the positioning strategy to perform corresponding replacement processing on the specified element, so as to automatically process the element interaction anomaly appearing on the target page, thereby effectively ensuring the continuity and integrity of the test process corresponding to the test script. In addition, there is no need for testers to perform exception repair processing manually, which effectively improves the test efficiency and test accuracy of the test script and reduces the maintenance cost of the test script.
[0106] In some optional implementations, step S204 includes the following steps:
[0107] Get the preset attribute positioning strategy and image positioning strategy.
[0108] In this embodiment, the attribute positioning strategy is a preset strategy for positioning elements using the superior-subordinate relationship and identifiable attributes of abnormal elements. The image positioning strategy is a preset strategy for positioning elements using screenshot information of a page.
[0109] A first priority of the attribute location strategy is determined, and a second priority of the image location strategy is determined.
[0110] In this embodiment, a threshold is set in advance for each potential element location strategy (attribute location strategy and image location strategy). This threshold can be calculated based on multiple factors such as historical success rate, element stability, location time, etc. Then, each element location strategy is sorted from high to low according to the threshold, so as to obtain the priority ranking of each element location strategy.
[0111] If the first priority is higher than the second priority, extracting the superior-subordinate relationship information of the designated element from the context information.
[0112] In this embodiment, the above-mentioned context information may at least include the element ID of the specified element, the upper and lower relationship information of the specified element, the screenshot information of the target page, and the like, and may also include the specific location where the exception occurs and the script execution steps. Among them, starting from the element (specified element) where the attempt to locate failed, traversing the DOM tree upward to find its parent node, traversing downward to find its child node, and then obtaining the information of the parent node, child node or other related elements corresponding to the specified element. These node information will be recorded because they may contain clues that help relocate the element, and then help understand the positional relationship of the elements on the page. In addition, the tag name, attributes (such as class, style, etc.) and hierarchical relationship of each related node can also be recorded to form a clear element structure diagram.
[0113] Based on the preset positioning technology and the superior-subordinate relationship information, element positioning processing is performed to obtain a corresponding first element positioning result.
[0114] In this embodiment, by using positioning technologies such as XPath and CSS Selector, combined with the extracted superior-subordinate relationship information, the target element can be attempted to be positioned, and a first element positioning result corresponding to the element positioning process can be obtained. The content of the first element positioning result includes positioning success or positioning failure. If the content of the first element positioning result is positioning success, the above target element is directly used as the above target update element.
[0115] If the first element locating result is a locating failure, the target page is parsed for page information, and it is determined whether a recognizable attribute corresponding to the designated element is detected.
[0116] In this embodiment, the process of parsing the page information of the target page includes: Page parsing: Use a web page parsing library (such as the DOM operation function of Selenium WebDriver) to parse the HTML structure of the current page. Search element attributes: Traverse all elements on the page, especially focusing on attributes with unique identification, such as id, name, data-* custom attributes, etc. These attributes can often provide a more stable way to locate elements. Record identifiable attributes: For each valid identifiable attribute found, record its value and the relative position or hierarchical relationship with the failed element for subsequent use. Among them, the above-mentioned identifiable attributes may specifically include ID, Name or other identifiable attributes.
[0117] If so, the identifiable attribute is obtained, and element positioning processing is performed based on the identifiable attribute to obtain a corresponding second element positioning result.
[0118] In this embodiment, if there are identifiable attributes, these identifiable attributes are used to try to locate the element, and a corresponding second element location result is generated, wherein the second element location result includes location success or location failure.
[0119] If the second element positioning result is successful, a target element corresponding to the second element positioning result is obtained, and the target element is used as the target update element.
[0120] In this embodiment, if the second element positioning result is successful positioning, the target element that is attempted to be positioned based on the identifiable attribute is directly used as the above-mentioned target update element.
[0121] After capturing an element interaction anomaly during the execution of a test script corresponding to a target page, the present application will first determine the priorities of a preset attribute positioning strategy and an image positioning strategy, and when detecting that a first priority of the attribute positioning strategy is higher than a second priority of the image positioning strategy, the present application will intelligently perform element positioning processing on the context information based on the attribute positioning strategy, specifically by extracting the superior-subordinate relationship information of the specified element from the context information, and then performing element positioning processing based on a preset positioning technology and the superior-subordinate relationship information to obtain a corresponding first element positioning result, and if it is detected that the first element positioning result is a positioning failure, the page information of the target page is parsed, and a determination is made as to whether the detection is successful. To the identifiable attribute corresponding to the specified element, if yes, obtain the identifiable attribute, and perform element positioning processing based on the identifiable attribute to obtain the corresponding second element positioning result, if the second element positioning result is detected to be successfully positioned, then obtain the target element corresponding to the second element positioning result, and use the target element as the target update element, so as to automatically identify the changed element information in the target page, and subsequently use the target update element obtained by performing element positioning processing through the attribute positioning strategy to replace and update the specified element accordingly, so as to automatically handle the element interaction anomalies that appear on the target page, thereby effectively ensuring the continuity and integrity of the test process corresponding to the test script. And there is no need for testers to manually repair the anomalies, which effectively improves the test efficiency and test intelligence.
[0122] In some optional implementations of this embodiment, after the step of performing element positioning processing based on the identifiable attribute to obtain a corresponding second element positioning result, the electronic device may further perform the following steps:
[0123] If the second element positioning result is positioning failure, the screenshot information of the target page is obtained from the context information.
[0124] In this embodiment, the context information may include at least the element ID of the specified element, the upper and lower level relationship information of the specified element, the screenshot information of the target page, etc. When positioning fails, the screenshot information of the target page may be obtained by capturing a screenshot of the current screen.
[0125] The screenshot information is processed based on a preset image processing library to extract designated image information corresponding to the designated element.
[0126] In this embodiment, the image processing library may be OpenCV. The screenshot information is processed by using the image processing library, and the image area of the suspected button in the screenshot information is extracted as the designated image information corresponding to the designated element. Among them, edge detection, color filtering or template matching algorithms may be applied to extract the designated image information corresponding to the designated element.
[0127] Call the preset button image library.
[0128] In this embodiment, the button image library is a button image library containing page buttons that is predefined according to actual usage requirements.
[0129] Target button image information matching the designated image information is screened out from the button image library.
[0130] In this embodiment, the extracted designated image information is compared with a predefined button image library, and an image recognition algorithm can be used to filter out a button image that best matches the designated image information from the button image library to obtain the target button image information. The image recognition algorithm can use algorithms such as feature matching and machine learning models.
[0131] The target update element corresponding to the designated element on the target page is generated based on the target button image information.
[0132] In this embodiment, after the correct target button image is identified, the mouse click operation is simulated by using the image position information of the target button image, and if the response is successful, a target update element is generated according to the target button image.
[0133] If the present application detects that the positioning result of the second element is a positioning failure, the screenshot information of the target page is obtained from the context information; then the screenshot information is processed based on a preset image processing library to extract the specified image information corresponding to the specified element; then the preset button image library is called, and the target button image information matching the specified image information is filtered out from the button image library; and subsequently the target update element corresponding to the specified element on the target page is generated based on the target button image information. After the positioning method of the attribute positioning strategy fails, the present application will intelligently use the image positioning strategy to perform element positioning processing, obtain the screenshot information of the target page from the context information, extract the designated image information corresponding to the designated element from the screenshot information based on the use of the image processing library, and then screen out the target button image information matching the designated image information based on the use of the button image library, and then generate the target update element corresponding to the designated element on the target page based on the target button image information, so as to automatically identify the changed element information in the target page, and subsequently use the target update element obtained by the element positioning processing of the image positioning strategy to replace and update the designated element accordingly, so as to automatically process the element interaction anomalies appearing on the target page, thereby effectively ensuring the continuity and integrity of the test process corresponding to the test script. And there is no need for testers to manually repair the anomalies, which effectively improves the test efficiency and test intelligence.
[0134] In some optional implementations, after step S206, the electronic device may further perform the following steps:
[0135] If other exceptions are captured, it is determined whether the other exceptions are a blank screen.
[0136] In this embodiment, a reasonable timeout is set in advance for page loading. If the target page is not loaded completely within this time, it is considered a loading abnormality. The above-mentioned page white screen refers to the abnormality of the target page loading slowly resulting in a white screen.
[0137] If the other exception is a white screen, obtain a response code of the network request corresponding to the target page, and determine whether the response code is a target response code.
[0138] In this embodiment, the network request of the target page is monitored by using the browser's developer tools (such as Chrome DevTools) or programming methods (such as the Network API of Selenium WebDriver), and the response code of the network request is obtained. The response code 200 indicates success, and the response codes 4xx and 5xx indicate client and server errors, respectively.
[0139] If the response code is not the target response code, obtain the preset number of retries and retry interval.
[0140] In this embodiment, there is no specific limitation on the selection of the numerical value of the above-mentioned number of retries and the numerical value of the retry interval, which can be set according to actual business needs. For example, the number of retries can be set to 3, and the retry interval can be set to 5 seconds each time.
[0141] The target page is retried based on the retry count and the retry interval until the target page is loaded successfully.
[0142] In this embodiment, when the target page is detected to be loaded abnormally, a retry mechanism is started. Before each retry, a set interval is waited. And at each retry, the page loading check (including network request and DOM element check) is re-executed until the target page is loaded successfully.
[0143] After the target page is loaded successfully, continue to execute the test script.
[0144] In this embodiment, if the target page successfully loads within the set number of retries, the subsequent script or test steps will continue to be executed. In addition, if the page still fails to load successfully after reaching the maximum number of retries, an error will be recorded and some cleanup work (such as closing the browser window) may be performed.
[0145] If other exceptions are captured in this application, it is determined whether the other exceptions are page white screens; if the other exceptions are page white screens, the response code of the network request corresponding to the target page is obtained, and it is determined whether the response code is the target response code; if the response code is not the target response code, the preset number of retries and retry interval are obtained; then the target page is retried based on the number of retries and the retry interval until the target page is successfully loaded; after the target page is successfully loaded, the test script is continued to be executed. In the process of executing the test script corresponding to the target page, if the exception of the page white screen is also captured in this application, the response code of the network request corresponding to the target page will be automatically and intelligently obtained. If the response code is not the target response code, the preset number of retries and the retry interval will be obtained, and then the target page will be retried based on the number of retries and the retry interval until the target page is successfully loaded, so as to realize automatic processing of the loading exceptions appearing on the target page, thereby effectively ensuring the continuity and integrity of the test process corresponding to the test script. And there is no need for testers to handle it manually, which effectively improves the test efficiency and test intelligence.
[0146] In some optional implementations, after step S206, the electronic device may further perform the following steps:
[0147] If other exceptions are captured, it is determined whether the other exceptions are bullet boxes.
[0148] In this embodiment, in UI automated testing, when certain operations on the page (such as clicking a button, submitting a form, etc.) trigger JavaScript alert, confirm, or prompt pop-ups, these pop-ups will block the normal page interaction process until these pop-ups are closed. In order to automate the processing of these pop-ups, you first need to detect whether they exist. Specifically, you can use the API provided by automated testing tools such as Selenium to try to switch to the pop-up context. Selenium provides a switchTo() method that allows the test script to switch from the current page to a newly opened window, tab, or pop-up. Alternatively, you can call switchTo().alert() to try to switch to the current pop-up. If there is no pop-up on the page, this call will fail and throw an exception (such as NoAlertPresentException). By catching this exception, you can determine whether there is a pop-up on the page.
[0149] If the other exception is a bullet box, the bullet box type corresponding to the bullet box is obtained.
[0150] In this embodiment, the above-mentioned pop-up box types may include Alert, Confirm, Prompt and other types.
[0151] Get the target processing method corresponding to the pop-up box type.
[0152] In this embodiment, different processing methods for closing pop-up boxes are set accordingly for different types of pop-up boxes. Specifically, 1) For the Alert pop-up box: use driver.switchTo().alert() to switch to the pop-up box. Call the accept() method to simulate the user clicking the "OK" button, or use the dismiss() method to simulate the user clicking the "Cancel" button to close the pop-up box. 2) For the Confirm pop-up box: also use driver.switchTo().alert() to switch to the pop-up box. According to the test requirements, choose to call the accept() method to simulate clicking "OK", or call the dismiss() method to simulate clicking "Cancel". 3) For the Prompt pop-up box: use driver.switchTo().alert() to switch to the pop-up box. If you need to enter text, you can use the sendKeys() method to enter text into the pop-up box. Then, according to the test requirements, choose to call the accept() method to submit the input, or call the dismiss() method to cancel the input and close the pop-up box.
[0153] The pop-up window is closed based on the target processing method.
[0154] In this embodiment, the closing process of the pop-up window may be performed according to the processing steps of the above-mentioned target processing method.
[0155] After the pop-up window is successfully closed, continue to execute the test script.
[0156] In this embodiment, after the pop-up window is successfully closed, the test script can continue to execute subsequent test steps without being blocked by the pop-up window. Specifically, after closing the pop-up window, the test script will automatically return to the page context that was previously blocked by the pop-up window. The script continues to execute the subsequently defined test steps, such as clicking other buttons, entering text, verifying page elements, etc. If the pop-up window is triggered again in a subsequent test step, the test script will repeat the above pop-up window closing process until all test steps are executed.
[0157] If this application captures other exceptions, it determines whether the other exceptions are pop-up boxes; if the other exceptions are pop-up boxes, the pop-up box type corresponding to the pop-up box is obtained; then the target processing method corresponding to the pop-up box type is obtained; then the pop-up box is closed based on the target processing method; and after the pop-up box is successfully closed, the test script continues to be executed. In the process of executing the test script corresponding to the target page, if this application also captures a pop-up box exception, the pop-up box type corresponding to the pop-up box and the target processing method corresponding to the pop-up box type are automatically and intelligently obtained, and the pop-up box type is obtained. The target processing method is then used to close the pop-up box based on the target processing method, so as to automatically process the pop-up box that appears on the target page, thereby effectively ensuring the continuity and integrity of the test process corresponding to the test script. And there is no need for testers to handle it manually, which effectively improves the test efficiency and test intelligence.
[0158] In some optional implementations of this embodiment, after step S207, the electronic device may further perform the following steps:
[0159] After the test script is executed, the corresponding script test result is obtained.
[0160] In this embodiment, after the element interaction anomaly that occurs in the test script is resolved, the test script will be re-executed, and after the test script is executed, a corresponding script test result will be generated.
[0161] The script test result is verified to obtain corresponding verification data.
[0162] In this embodiment, after the above test script is executed, it is necessary to further verify whether the obtained script test results meet expectations. Specifically, it is achieved through assertions to check whether the element status, text content, attributes, etc. on the page are consistent with the expected values, and obtain verification data corresponding to the test execution of the test script. In addition, during the verification process, detailed log information can also be recorded at the same time, and page screenshots can be captured when necessary for analysis when verification fails.
[0163] A test report corresponding to the test script is generated based on the script test result and the verification data.
[0164] In this embodiment, the script test result and the verification data may be filled into a preset test report template to generate a corresponding test report, wherein the template content of the test report template may be written according to actual test analysis requirements.
[0165] The test report is stored.
[0166] In this embodiment, there is no specific limitation on the storage method of the test report, for example, local database storage, cloud server storage, blockchain storage, etc. Preferably, blockchain storage can be used. By using blockchain to store and manage the test report, the security and non-tamperability of the test report can be effectively guaranteed.
[0167] After the execution of the test script is completed, the application obtains the corresponding script test result; then verifies the script test result to obtain corresponding verification data; then generates a test report corresponding to the test script based on the script test result and the verification data; and subsequently stores the test report. After the execution of the test script is completed, the application automatically and intelligently verifies the script test result obtained by the test to obtain corresponding verification data, and then generates a test report corresponding to the test script based on the script test result and the verification data, so as to realize the automatic generation of the test report, thereby improving the generation efficiency and intelligence of the test report. In addition, the test report will be further stored, which can effectively ensure the data security and non-tamperability of the test report.
[0168] In some optional implementations of this embodiment, after step S207, the electronic device may further perform the following steps:
[0169] The processing data generated by the test script during the test execution process is obtained based on a preset time period.
[0170] In this embodiment, the selection of the above time period is not specifically limited and can be set according to actual usage requirements, for example, it can be set to 1 month, 1 week, etc. The above processing data may at least include test failure cases, self-healing success cases, script execution time, resource consumption and other data.
[0171] Perform data analysis on the processed data to obtain corresponding data analysis results.
[0172] In this embodiment, by analyzing the collected processing data, common failure modes and root causes of problems are identified, and the effectiveness and efficiency of the self-healing mechanism are evaluated, thereby obtaining corresponding data analysis results.
[0173] The test script is optimized based on the data analysis result to obtain an optimized target test script.
[0174] In this embodiment, the above-mentioned optimization processing may include: optimizing the test script according to the data analysis results, improving the element positioning strategy, adding error handling logic, optimizing the test data, etc., so as to obtain the optimized target test script. In addition, the self-healing mechanism can also be optimized according to the data analysis results. Specifically, by adjusting and optimizing the self-healing mechanism, such as improving the element update strategy, optimizing the pop-up processing logic, adding a retry mechanism, etc., the stability and efficiency of the automated test can be improved.
[0175] The test script is updated using the target test script.
[0176] In this embodiment, the test script may be replaced by the target test script, and the original test script may be deleted.
[0177] This application obtains the processing data generated by the test script during the test execution process based on a preset time period; then performs data analysis on the processing data to obtain corresponding data analysis results; then optimizes the test script based on the data analysis results to obtain an optimized target test script; and subsequently uses the target test script to update the test script. After the test script is executed, this application will intelligently obtain the processing data generated by the test script during the test execution process based on a preset time period, and perform data analysis on the processing data to obtain corresponding data analysis results, and then optimize the test script based on the data analysis results, and use the optimized target test script to update the test script, so that the optimized target test script can be used for automated testing later, which can effectively improve test efficiency and test quality.
[0178] It should be understood that the order of execution of the steps in the above embodiment does not necessarily mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present invention.
[0179] It should be emphasized that in order to further ensure the privacy and security of the above-mentioned target update elements, the above-mentioned target update elements can also be stored in a node of a blockchain.
[0180] The blockchain referred to in this application is a new application model of computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanism, encryption algorithm, etc. Blockchain is essentially a decentralized database, a string of data blocks generated by cryptographic methods. Each data block contains a batch of network transaction information, which is used to verify the validity of its information (anti-counterfeiting) and generate the next block. Blockchain can include the underlying blockchain platform, platform product service layer, and application service layer.
[0181] The embodiments of the present application can acquire and process relevant data based on artificial intelligence technology. Among them, artificial intelligence (AI) is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results.
[0182] AI basic technologies generally include sensors, dedicated AI chips, cloud computing, distributed storage, big data processing technology, operation / interaction systems, mechatronics, etc. AI software technologies mainly include computer vision technology, robotics technology, biometrics technology, speech processing technology, natural language processing technology, and machine learning / deep learning.
[0183] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through computer-readable instructions, and the computer-readable instructions can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, the aforementioned storage medium can be a non-volatile storage medium such as a disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).
[0184] It should be understood that, although the steps in the flowchart of the accompanying drawings are displayed in sequence as indicated by the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least a part of the steps in the flowchart of the accompanying drawings may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and their execution order is not necessarily sequential, but can be executed in turn or alternately with other steps or at least a part of the sub-steps or stages of other steps.
[0185] Further references Figure 3 , as a response to the above Figure 2 The present application provides an embodiment of a script processing device, and the device embodiment is similar to Figure 2 Corresponding to the method embodiment shown, the device can be specifically applied to various electronic devices.
[0186] like Figure 3 As shown, the script processing device 300 described in this embodiment includes: a first judgment module 301, a determination module 302, a first acquisition module 303, a positioning module 304, a replacement module 305, a second judgment module 306 and a first execution module 307. Among them:
[0187] The first judgment module 301 is used to judge whether an element interaction anomaly is captured during the execution of the test script corresponding to the target page;
[0188] The determination module 302 is used to stop executing the test script and determine the specified element corresponding to the element interaction anomaly in the target page if yes;
[0189] A first acquisition module 303, used to acquire context information corresponding to the specified element;
[0190] A positioning module 304 is used to perform element positioning processing on the context information based on a preset positioning strategy to obtain a target update element on the target page corresponding to the designated element;
[0191] A replacement module 305, configured to replace the designated element based on the target update element;
[0192] The second judgment module 306 is used to judge whether other abnormalities are captured;
[0193] The first execution module 307 is used to continue executing the test script if no other exception is captured.
[0194] In some optional implementations of this embodiment, the positioning module 304 includes:
[0195] A first acquisition submodule is used to acquire a preset attribute positioning strategy and an image positioning strategy;
[0196] A first determination submodule, used to determine a first priority of the attribute positioning strategy and a second priority of the image positioning strategy;
[0197] A first extraction submodule, configured to extract the superior-subordinate relationship information of the specified element from the context information if the first priority is higher than the second priority;
[0198] A first positioning submodule, used to perform element positioning processing based on a preset positioning technology and the upper-lower-lower relationship information to obtain a corresponding first element positioning result;
[0199] A parsing submodule, configured to parse page information of the target page and determine whether a recognizable attribute corresponding to the designated element is detected if the first element locating result is a locating failure;
[0200] A second positioning submodule is used to obtain the identifiable attribute and perform element positioning processing based on the identifiable attribute to obtain a corresponding second element positioning result;
[0201] The second determining submodule is used to obtain a target element corresponding to the second element positioning result if the second element positioning result is successful positioning, and use the target element as the target update element.
[0202] In some optional implementations of this embodiment, the positioning module 304 further includes:
[0203] A second acquisition submodule, configured to acquire screenshot information of the target page from the context information if the second element positioning result is positioning failure;
[0204] A second extraction submodule, configured to process the screenshot information based on a preset image processing library to extract designated image information corresponding to the designated element;
[0205] The calling submodule is used to call the preset button image library;
[0206] A screening submodule, used for screening out target button image information matching the specified image information from the button image library;
[0207] A generating submodule is used to generate the target update element corresponding to the designated element on the target page based on the target button image information.
[0208] In some optional implementations of this embodiment, the script processing device further includes:
[0209] A third judgment module is used to judge whether other exceptions are white screen pages if other exceptions are captured;
[0210] A fourth judgment module is used to obtain a response code of the network request corresponding to the target page if the other exception is a white screen of the page, and to judge whether the response code is a target response code;
[0211] A second acquisition module, used for acquiring a preset number of retries and a retry interval if the response code is not a target response code;
[0212] A retry module, used for retrying the target page based on the retry times and the retry interval until the target page is loaded successfully;
[0213] The second execution module is used to continue executing the test script after the target page is successfully loaded.
[0214] In some optional implementations of this embodiment, the script processing device further includes:
[0215] A fifth judgment module, used for judging whether other exceptions are pop-up boxes if other exceptions are captured;
[0216] A third acquisition module, configured to acquire a bullet box type corresponding to the bullet box if the other exception is a bullet box;
[0217] A fourth acquisition module, used to acquire a target processing method corresponding to the bullet box type;
[0218] A closing module, used for closing the pop-up window based on the target processing method;
[0219] The third execution module is used to continue executing the test script after the pop-up window is successfully closed.
[0220] In some optional implementations of this embodiment, the script processing device further includes:
[0221] A fifth acquisition module, used to obtain the corresponding script test result after the test script is executed;
[0222] A verification module, used to verify the script test results and obtain corresponding verification data;
[0223] A generating module, configured to generate a test report corresponding to the test script based on the script test result and the verification data;
[0224] The storage module is used to store the test report.
[0225] In some optional implementations of this embodiment, the script processing device further includes:
[0226] A sixth acquisition module, used to acquire, based on a preset time period, the processing data generated by the test script during the test execution process;
[0227] An analysis module, used to perform data analysis on the processed data to obtain corresponding data analysis results;
[0228] An optimization module, used for optimizing the test script based on the data analysis result to obtain an optimized target test script;
[0229] An update module is used to update the test script using the target test script.
[0230] To solve the above technical problems, the present application also provides a computer device. Figure 4 , Figure 4 This is a basic structural block diagram of the computer device in this embodiment.
[0231] The computer device 4 includes a memory 41, a processor 42, and a network interface 43 that are interconnected through a system bus. It should be noted that the figure only shows a computer device 4 with components 41-43, but it should be understood that it is not required to implement all the components shown, and more or fewer components can be implemented instead. Among them, those skilled in the art can understand that the computer device here is a device that can automatically perform numerical calculations and / or information processing according to pre-set or stored instructions, and its hardware includes but is not limited to microprocessors, application specific integrated circuits (Application Specific Integrated Circuit, ASIC), programmable gate arrays (Field-Programmable Gate Array, FPGA), digital processors (Digital Signal Processor, DSP), embedded devices, etc.
[0232] The computer device may be a computing device such as a desktop computer, a notebook, a PDA, a cloud server, etc. The computer device may interact with a user through a keyboard, a mouse, a remote controller, a touch pad, or a voice control device.
[0233] The memory 41 includes at least one type of readable storage medium, and the readable storage medium includes flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory, etc.), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, disk, optical disk, etc. In some embodiments, the memory 41 can be an internal storage unit of the computer device 4, such as a hard disk or memory of the computer device 4. In other embodiments, the memory 41 can also be an external storage device of the computer device 4, such as a plug-in hard disk, a smart memory card (SmartMediaCard, SMC), a secure digital (SecureDigital, SD) card, a flash card (FlashCard), etc. equipped on the computer device 4. Of course, the memory 41 can also include both the internal storage unit of the computer device 4 and its external storage device. In this embodiment, the memory 41 is generally used to store the operating system and various application software installed on the computer device 4, such as computer-readable instructions of the script processing method, etc. In addition, the memory 41 can also be used to temporarily store various types of data that have been output or are to be output.
[0234] The processor 42 may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor, or other data processing chips in some embodiments. The processor 42 is generally used to control the overall operation of the computer device 4. In this embodiment, the processor 42 is used to run computer-readable instructions stored in the memory 41 or process data, such as computer-readable instructions for running the script processing method.
[0235] The network interface 43 may include a wireless network interface or a wired network interface. The network interface 43 is generally used to establish a communication connection between the computer device 4 and other electronic devices.
[0236] The present application also provides another implementation, namely, providing a computer-readable storage medium, wherein the computer-readable storage medium stores computer-readable instructions, and the computer-readable instructions can be executed by at least one processor to enable the at least one processor to perform the steps of the script processing method as described above.
[0237] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in each embodiment of the present application.
[0238] Obviously, the embodiments described above are only some embodiments of the present application, rather than all embodiments. The preferred embodiments of the present application are given in the accompanying drawings, but they do not limit the patent scope of the present application. The present application can be implemented in many different forms. On the contrary, the purpose of providing these embodiments is to make the understanding of the disclosure of the present application more thorough and comprehensive. Although the present application is described in detail with reference to the aforementioned embodiments, for those skilled in the art, it is still possible to modify the technical solutions recorded in the aforementioned specific implementation methods, or to perform equivalent replacement of some of the technical features therein. Any equivalent structure made using the contents of the specification and drawings of this application, directly or indirectly used in other related technical fields, is similarly within the scope of patent protection of this application.
Claims
1. A script processing method, characterized in that: The steps include: During the execution of the test script corresponding to the target page, determine whether an element interaction exception is captured; If so, stop executing the test script, and determine the specified element corresponding to the element interaction anomaly in the target page; Obtaining context information corresponding to the specified element; Performing element location processing on the context information based on a preset location strategy to obtain a target update element on the target page corresponding to the designated element; Performing a replacement process on the designated element based on the target update element; Determine whether other exceptions are captured; If no other exceptions are caught, the test script continues to be executed.
2. The script processing method according to claim 1, characterized in that: The step of performing element location processing on the context information based on a preset location strategy to obtain a target update element on the target page corresponding to the designated element specifically includes: Obtain preset attribute positioning strategy and image positioning strategy; determining a first priority of the attribute positioning strategy, and determining a second priority of the image positioning strategy; If the first priority is higher than the second priority, extracting the superior-subordinate relationship information of the specified element from the context information; Performing element positioning processing based on a preset positioning technology and the superior-subordinate relationship information to obtain a corresponding first element positioning result; If the first element locating result is a locating failure, parsing the page information of the target page, and determining whether a recognizable attribute corresponding to the designated element is detected; If so, obtaining the identifiable attribute, and performing element positioning processing based on the identifiable attribute to obtain a corresponding second element positioning result; If the second element positioning result is successful, a target element corresponding to the second element positioning result is obtained, and the target element is used as the target update element.
3. The script processing method according to claim 2, characterized in that: After the step of performing element location processing based on the identifiable attribute to obtain a corresponding second element location result, the method further includes: If the second element positioning result is positioning failure, obtaining screenshot information of the target page from the context information; Processing the screenshot information based on a preset image processing library to extract designated image information corresponding to the designated element; Call the preset button image library; Filtering target button image information matching the specified image information from the button image library; The target update element corresponding to the designated element on the target page is generated based on the target button image information.
4. The script processing method according to claim 1, characterized in that: After the step of determining whether other exceptions are captured, the method further includes: If other exceptions are captured, determine whether the other exceptions are a white screen; If the other exception is a white screen, obtain a response code of the network request corresponding to the target page, and determine whether the response code is a target response code; If the response code is not the target response code, obtain the preset number of retries and retry interval; Retrying the target page based on the retry count and the retry interval until the target page is loaded successfully; After the target page is loaded successfully, continue to execute the test script.
5. The script processing method according to claim 1, characterized in that: After the step of determining whether other exceptions are captured, the method further includes: If other exceptions are captured, determine whether the other exceptions are bullet boxes; If the other exception is a pop-up window, obtain the pop-up window type corresponding to the pop-up window; Obtain a target processing method corresponding to the pop-up box type; Closing the pop-up window based on the target processing method; After the pop-up window is successfully closed, continue to execute the test script.
6. The script processing method according to claim 1, characterized in that: After the step of continuing to execute the test script, the method further includes: After the test script is executed, the corresponding script test result is obtained; Performing verification processing on the script test result to obtain corresponding verification data; Generate a test report corresponding to the test script based on the script test result and the verification data; The test report is stored.
7. The script processing method according to claim 1, characterized in that: After the step of continuing to execute the test script, the method further includes: Acquire the processing data generated by the test script during the test execution process based on a preset time period; Performing data analysis on the processed data to obtain corresponding data analysis results; Optimizing the test script based on the data analysis result to obtain an optimized target test script; The test script is updated using the target test script.
8. A script processing device, characterized in that: include: A first judgment module is used to judge whether an element interaction anomaly is captured during the execution of a test script corresponding to a target page; a determination module, configured to, if yes, stop executing the test script and determine, in the target page, a designated element corresponding to the element interaction anomaly; A first acquisition module, used to acquire context information corresponding to the specified element; A positioning module, used to perform element positioning processing on the context information based on a preset positioning strategy to obtain a target update element on the target page corresponding to the designated element; A replacement module, used for performing a replacement process on the designated element based on the target update element; The second judgment module is used to judge whether other exceptions are captured; The first execution module is used to continue executing the test script if no other exceptions are caught.
9. A computer device, characterized in that: The method comprises a memory and a processor, wherein the memory stores computer-readable instructions, and the processor implements the steps of the script processing method according to any one of claims 1 to 7 when executing the computer-readable instructions.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-readable instructions, and when the computer-readable instructions are executed by a processor, the steps of the script processing method according to any one of claims 1 to 7 are implemented.
Citation Information
Cited By
Interface element positioning method, device and system
CN120492358A
Intelligent element positioning method and system based on AI and dynamic feature library
CN120653577A
An intelligent element positioning method and system based on AI and dynamic feature library
CN120653577B
Cloud mobile phone cluster application task processing method and related equipment
CN121547354A