A system that enables the recommendation of XPATH for automated test automation using artificial intelligence.
Patent Information
- Authority / Receiving Office
- TR · TR
- Patent Type
- Applications
- Current Assignee / Owner
- TURKCELL TEKNOLOJI ARASTIRMA & GELISTIRME AS
- Filing Date
- 2024-03-12
- Publication Date
- 2026-06-22
Smart Images

Figure 00000012_0000
Abstract
Description
1 TARIFF XPATH FOR AUTOMATED TEST AUTOMATION WITH ARTIFICIAL INTELLIGENCE A SYSTEM THAT ENABLES PROPOSALS Technical Area 5 This invention is based on the history of XPaths, which are used when writing test automation code. Using the records to find the most successful ones and artificial intelligence using which one is better in which areas to analyze It is related to a system that provides. 10 Previous Technique Nowadays, when writing test automation code, we interact with the elements on the screen. XPaths are required to interact. Various tools are listed here 15 It helps in finding XPath. Automated test automation scenario. Applications developed by other developers also use these types of tools. Many different XPath tools are available. There are different methods for fetching, and not all of these methods always work on every screen. Therefore, we need to find a method that works. Currently, we need to do all of them one by one. Methods are being tested. Currently, an application called "Testroyer" is one of these 20 It offers a similar solution. However, the methods for finding XPath each time... They are all being tested one by one. Therefore, considering the studies and shortcomings in the current technique... When this is the case, 25 XPaths are used when writing test automation code. By utilizing past records, the most successful ones are identified and artificial using intelligence to analyze which areas each person excels in. thus a system that helps to speed up the process of finding a method that works. It is understood that it is needed. 2 Chinese patent CN112506600A, which is included in the known state of the art. The documentation explains how to create XPaths, register XPaths, and run automated tests. This refers to a system structured for computer testing. It includes the field of technology, and specifically user interface elements. positioning method and associated device, environment and electronic device 5 This application includes the positioning of user interface elements. The method includes the following: The screen of the user interface to be tested. capturing a screenshot of each element in the user interface to be tested obtaining the position in the image, each element to be tested by the user Based on its position in the screenshot of the interface, each element is 10 It captures the XPath and / or a screenshot. User interface product. When updated, the element positioning program needs to be redesigned or without needing to change the user interface elements of this application positioning method, user interface element positions, element Automatically adapts to changes such as changes in the number 15 This enables elements to be used during user interface automation testing. Location information can effectively reduce maintenance costs and determine element location. It can increase the efficiency of determination. Brief Description of the Invention 20 The purpose of this invention is to improve the Xpath functionality used when writing test automation code. By utilizing past records, the most successful ones are identified and artificial using intelligence to analyze which areas each person excels in. It is about implementing a system developed to provide this. 25 Detailed Description of the Invention The purpose of this invention is to achieve "Automated Testing with Artificial Intelligence". "A System that Enables the Recommendation of XPath for Automation" (attached as 30) as shown, in this form; 3 Figure 1 shows a schematic view of the system that is the subject of the invention. The parts shown in the figure are individually numbered, and these numbers correspond to... The corresponding answers are given below. 5 1. System 2. Electronic Devices 3. Interface 4. XPath Processor 10 Code 5. 6. Trigger Processor 7. Server User K. XPaths used during test automation are retrieved from historical records. by utilizing and identifying the most successful ones, and using artificial intelligence To enable analysis of which one is better in which areas. The system in question, developed for the purpose of invention (1); - exchanging data using any remote communication protocol 20 and at least one configured to run at least one application on it electronic device (2), - to be carried out on electronic device (2), test automation to be performed to ensure the placement of elements in web applications when writing test automation. 25 at least one interface structured to (3), - being in contact with the interface (3), clicking on the interface (3) It is a tool that generates the necessary XPaths for clicking on the ground, and on the interface (3) At least one XPath processor configured to find the clicked elements (4), - to be run on the interface (3), to record the tests performed, to assign elements 30 Storing all the XPaths belonging to each element, and knowing which element receives which XPath when triggered. 4 at least one method configured to record information about how the system was able to click. code (5), - communicate with the code (5) run on the interface (3), recorded test At least one trigger processor configured to start by re-triggering (6), - connection with electronic device (2) using any communication protocol 5 to establish, to conduct intermediary operations on the electronic device (2) through this established connection to access the interface (3) and communicate with the code (5) that is run on the interface (3), When it detects a similar code using the classification algorithm, it refers to the relevant code. Enabling the use of the XPath method by using the Classification algorithm. classify the dropdowns on the interface (3) and classify this class with a method 10 It includes at least one server (7) configured for matching. The electronic device (2) in the system (1) which is the subject of the invention, any remote communication to exchange data using the protocol and have at least one The application is configured to run. Electronic device (2), desktop 15 It is a device in the form of a computer and / or portable computer. Electronic device (2), It is configured to run the interface (3) on it. Electronic device (2), any remote communication protocol included in the known state of the art It is configured to connect to the server (7) using. The interface (3) in the system (1) which is the subject of the invention, on the electronic device (2) It is structured to be executed. The interface (3) allows users (K) to perform various tasks. Test automation by writing code (5) with the help of frameworks It is structured to enable them to perform. Interface (3), Users (K) can automate the test process using some tools (instruments) 25 It is structured to enable them to automate. Interface (3), Users (K) write test automation elements in web applications They use a method called "Xpath" to determine its location. It is structured to provide the interface (3), users (K) test Determining the position of elements in web applications when writing automation code 30 They use various tools to find the XPaths they use for this purpose It is structured to provide this. In the system that is the subject of the invention, the XPath processor (4) located in (1) communicates with the interface (3). It is configured to be in this state. The XPath processor (4) allows users (K) 5 The necessary XPaths for clicking where he wants to click on the interface (3) is the tool that produces the (K) interface (3) that users click on. It is structured to find elements. The code (5) in the system (1) of which the invention is based, is to be executed on the interface (3) and 10 The code is configured to communicate with the trigger processor (6). (5) to record the tests performed by users (K). The code (5) is structured to store all the XPaths of the elements. Code (5) is structured when triggered by the trigger processor (6). 15 to record information about which element could be clicked and by what method. It is being configured. Code (5) is the artificial intelligence that runs on the server (7). by communicating with its algorithms, it can determine which element can be clicked and by what method. It is structured to associate the information with the relevant code snippets. The trigger processor (6) in the system (1) of the invention has 20 on the interface (3). The code being executed is configured to communicate with (5). Trigger The processor (6) records the user's (K) tests and then tests another time. to restart the recorded test if desired It is being structured. The server (7) in the system in question (1) is located in the known state of the art. the field connects with electronic devices (2) using any communication protocol to establish, to conduct intermediary operations on the electronic device (2) through this established connection to access the interface (3) and communicate with the code (5) that is run on the interface (3) It is configured accordingly. The server (7) uses the XPath method to connect to the backend 30 matching the code and the Classification algorithm, which is an artificial intelligence algorithm. 6 When it detects similar code using the relevant XPath method It is configured to enable its use. The server (7) uses artificial intelligence. Using the Classification algorithm, which is the algorithm, the interface (3) classifying the dropdowns on it and associating that class with a method It is structured to interact with the server (7) and the interface (3). To retrieve the HTML code of the desired area and use the Classification algorithm. It is configured to classify. The server (7) retrieves the neighbors of the area, The way to do this is to follow this path, put this pattern into a class, and then apply that class with a certain number of clicks. It is configured to match using this method. Industrial application of the invention In the system in question (1) used when writing test automation codes (5) Finding the most successful XPaths by utilizing past records and Using artificial intelligence to analyze which areas perform better. 15 this will speed up the process of finding a method that works. is provided. Around these fundamental concepts, the subject of the invention is "Automated Testing with Artificial Intelligence". There are many 20 related to "A System that Enables the Proposal of XPath for Automation (1)". It is possible to develop various applications, and the invention described herein It cannot be limited to examples; it is essentially as stated in the requests.
Claims
7 REQUESTS 1. Historical records of XPaths used during test automation. By utilizing these methods, the most successful ones can be found and artificial intelligence can be used. Using this, an analysis can be made to determine which one is better in which areas. 5 developed to enable this; - exchanging data using any remote communication protocol to carry out and at least run an application on it containing at least one electronic device (2) that is configured; - to be carried out on electronic device (2), test automation 10 to ensure implementation, web while writing test automation "Xpath" is used to locate elements in applications. at least one configured to enable the use of a given method interface (3), - being in contact with the interface (3), clicking on the interface (3) 15 It is a tool that generates the necessary XPaths so that the desired location can be clicked, and it is the interface. (3) at least one configured to find the clicked elements XPath processor (4), - to be run on the interface (3), to record the tests performed, Storing all XPaths for the elements, determining which 20 elements will be triggered when it is activated. to record information about which method was used to click on the element at least one code structured (5), - communicate with the code (5) run on the interface (3), recorded at least one trigger configured to restart the test by re-triggering it processor (6), 25 - using any communication protocol with electronic devices (2) to establish a connection, electronic device through this established connection (2) to access the interface (3) and run on the interface (3) Communicating with code (5) using the Classification algorithm is similar When a code is detected, the relevant XPath method should be used. 30 to provide, the interface (3) using the Classification algorithm 8 to classify dropdowns and associate that class with a method a system characterized by having at least one server (7) configured (1).
2. Data exchange using any remote communication protocol. to carry out and at least run an application on it 5 configured and desktop computer and / or portable computer The claim is characterized by an electronic device (2) which is a device of this type. A system like the one in 1 (1).
3. Electronic device (2) configured to run the interface (3) on it 10 A system like the one in Claim 1 or 2 characterized by (1).
4. Connect to the server (7) using any remote communication protocol. characterized by an electronic device (2) configured to establish A system like the one in claim 3 (1). 15 5. Interface (3) configured to be run on electronic device (2) as in any of the above claims characterized by system (1).
6. Users (K) code with the help of various frameworks (Framework, structure) (5) to enable them to perform test automation by writing from the above requests characterized by the structured interface (3) a system like any other (1).
7. Users (K) automate test processes using certain tools. with the interface (3) configured to enable them to automate the process as in any of the above characterized claims system (1). 9 8. Users (K) test automation in web applications A method called "Xpath" is used to locate elements. characterized by the interface (3) which is structured to enable them to use it. a system like any of the above-mentioned requests (1).
9. Users (K) test automation in web applications when writing to find the XPaths they use to locate elements an interface configured to enable them to use various tools for (3) like any of the above-mentioned claims characterized by system (1). 10 10. XPath processor configured to communicate with interface (3) (4) like any of the above-mentioned claims characterized by system (1).
11. Where users (K) want to click on the interface (3) It is a tool that generates the necessary XPaths for users to be able to click, (K) to find the elements they clicked on the interface (3). The above is characterized by the configured XPath processor (4) a system like any of the requests (1). 20 12. To be run on the interface (3) and communicate with the trigger processor (6) characterized by the code (5) structured to be in this form a system like any of the above requests (1).
13. Configured to record tests performed by users (K). in any of the above requests characterized by code (5) such a system (1). Code configured to store all XPaths of the 14th element (5) as in any of the above claims characterized by system (1).
15. Which element is triggered by which 5 when triggered by the trigger processor (6) configured to record information about which method was clicked in any of the above requests characterized by code (5) such a system (1).
16. Communication with the artificial intelligence algorithms running on the server (7) 10 The code provides information on which element can be clicked and by what method. characterized by the code (5) structured to associate with the parts a system like any of the above-mentioned requests (1).
17. To communicate with the code (5) running on the interface (3) 15 the above is characterized by the configured trigger processor (6) a system like any of the requests (1).
18. After the user (K) records the tests, another time test If you want it to work, re-trigger the recorded test 20 characterized by the trigger processor (6) configured to initiate a system like any of the above requests (1).
19. Using any communication protocol with an electronic device (2) to establish a connection, electronic device through this established connection (2) 25 to access the interface (3) and run on the interface (3) The server (7) is characterized by being configured to communicate with code (5). a system like any of the above-mentioned requests (1). 11 20. Matching the underlying code with artificial intelligence using the XPath method. Using the Classification algorithm, which is an algorithm for detecting similar codes. to ensure that the relevant XPath method is used when it does so from the above requests characterized by the configured server (7) a system like any of them (1). 5 21. Classification algorithm, an artificial intelligence algorithm. classify the dropdowns on the interface (3) using and classify this class characterized by the server (7) configured to match with a method a system like any of the above requests (1). 10 22. HTML code of the area to be interacted with on the interface (3) to collect and classify using the Classification algorithm from the above requests characterized by the configured server (7) a system like any other (1). 15 23. Taking the neighbors of the area, following the path here, classifying this pattern configured to place and map this class using a specific click method any of the above requests characterized by the server (7) such a system (1). 20 30