System, method, and computer program for testing the accuracy of software that identifies user interface elements in a web page

A computer-based system automates the testing of autofill and cart scraper software by tagging UI elements and text markers, addressing inefficiencies in manual verification, and ensuring accurate and efficient software performance across web pages.

JP7573010B2Active Publication Date: 2024-10-24RAKUTEN GROUP INC

Patent Information

Application Number
JP2022200960
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2021-12-30
Filing Date
2022-12-16
Publication Date
2024-10-24
Estimated Expiration
2042-12-16

AI Technical Summary

Technical Problem

Existing software for identifying user interface elements in web pages lacks an efficient and automated method for continuous accuracy testing across multiple websites, necessitating manual verification that is inefficient and time-consuming.

Method used

A computer-based system and method for testing the accuracy of autofill and cart scraper software by allowing users to tag UI elements and text markers, creating normalization specifications, and comparing them with automatically generated specifications to provide diagnostic feedback.

Benefits of technology

Enables continuous, automated testing of autofill and cart scraper software accuracy, ensuring precise recognition and scraping of web page elements, and providing detailed performance diagnostics.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007573010000001
    Figure 0007573010000001
  • Figure 0007573010000002
    Figure 0007573010000002
  • Figure 0007573010000003
    Figure 0007573010000003
Patent Text Reader

Abstract

To provide a system, a method, and a computer program for testing the accuracy of software that identifies user interface (UI) elements on a webpage.SOLUTION: A method used for testing the accuracy of autofill software on a webform, and used for testing the accuracy of cart-scraper software on a checkout page, includes: creating a normalized specification for the webpage, the specification including a mapping of UI elements to normalized labels; using an auto-identifier software to identify UI elements on the webpage; evaluating the performance of the auto-identifier software with respect to the webpage using the specification; and displaying diagnostics related to the performance of the auto-identifier software.SELECTED DRAWING: Figure 1
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] This invention relates generally to program accuracy testing, and more particularly to a system and method for testing the accuracy of software that identifies user interface elements in a web page. [Background technology]

[0002] In the digital world in which we live, software permeates every aspect of our lives, whether it be productivity, health, security, education, recreation, or commerce. One essential function of software is the ability to recognize fields or text markers and identify which information corresponds to each. This is true in both auto-fill software (e.g., software that automatically fills common information, such as first name, last name, email address, etc., into web form fields) and cart scraper software (e.g., software that identifies checkout cart information that allows users to perform buy now / pay later transactions). To ensure the quality of such software, especially as it is applied to many new clients, it is necessary to be able to continuously evaluate and improve the accuracy of the software for all clients, including existing clients. A person can sit in front of a website and use the software continuously and verify the accuracy of the software on that website, but that is inefficient since there are thousands of websites. Therefore, a computer needs to be able to run the software independently and continuously and provide rapid feedback on all websites. By understanding the constraints of the software, the software designer can vet and make any necessary modifications, and release the new version of the software only when the software designer can guarantee its accuracy by comparing it to the current live version. Summary of the Invention

[0003] The present disclosure describes a system, method, and computer program for testing the accuracy of software that identifies user interface (UI) elements in a web page. The method is performed by a computer system that includes a server, a storage system, a network, an operating system, and a database.

[0004] The present invention is directed to an internal process for 1) testing the accuracy of autofill software in correctly recognizing fillable fields in web forms (i.e., recognizing fields that need to be recognized and ignoring fields that should be ignored for an autofill transaction to be successful) and 2) testing the accuracy of cart scraper software in correctly recognizing applicable text markers to extract checkout cart information. With respect to the autofill software, this is done by providing a software tool that allows a user to tag web form fields with labels (including tagging fields that should be ignored), creating a normalized specification that corresponds to each tagged web form, identifying inputs to be used in benchmark testing, running the autofill software tested against a set of web forms in a benchmark test environment, and displaying diagnostics. With respect to the cart scraper software, this is done by providing software tools that allow users to tag text markers in web forms (these markers relate to checkout cart fields), create specifications corresponding to each tagged web form, identify inputs to be used in benchmark tests, run the version of the cart scraper software being tested against the web forms, and display diagnostics.

[0005] In one embodiment, a method for testing the accuracy of software for identifying user interface elements in a web page comprises the following steps: enabling a user to tag UI elements in a web page with labels; creating a normalization specification for a web page, the normalization specification including a mapping of UI elements to normalization labels; identifying UI elements in a web page using automatic identification software; evaluating the performance of the automatic identification software on the web page using the specification; displaying diagnostics regarding the performance of the automatic identification software; Includes. [Brief description of the drawings]

[0006] [Figure 1] 1 is a flow chart illustrating a method for testing the accuracy of software for identifying user interface elements in a web page according to one embodiment. [Diagram 2] 1 is a flow chart illustrating a method for testing the accuracy of autofill software in web forms according to one embodiment. [Diagram 3] 1 is a flow chart illustrating a method for testing the accuracy of cart-scraper software at a checkout page according to one embodiment. [Figure 4] FIG. 1 is a block diagram illustrating an example system architecture according to one embodiment. [Figure 5A] 1 is a screenshot of an exemplary user interface according to one embodiment of a method for creating a normalization specification. [Figure 5B] 1 is a screenshot of an exemplary user interface according to one embodiment of a method for creating a normalization specification. [Figure 5C] 1 is a screenshot of an exemplary user interface according to one embodiment of a method for creating a normalization specification. [Figure 5D] 1 is a screenshot of an exemplary user interface according to one embodiment of a method for creating a normalization specification. [Figure 5E] 1 is a screenshot of an exemplary user interface according to one embodiment of a method for creating a normalization specification. [Figure 5F] 1 is a screenshot of an exemplary user interface according to one embodiment of a method for creating a normalization specification. [Figure 5G] 1 is a screenshot of an exemplary user interface according to one embodiment of a method for creating a normalization specification. [Figure 5H] 1 is a screenshot of an exemplary user interface according to one embodiment of a method for creating a normalization specification. [Figure 5I] 1 is a screenshot of an exemplary user interface according to one embodiment of a method for creating a normalization specification. [Figure 5J] 1 is a screenshot of an exemplary user interface according to one embodiment of a method for creating a normalization specification. [Figure 5K] 1 is a screenshot of an exemplary user interface according to one embodiment of a method for creating a normalization specification. [Figure 6A] 1 is a screenshot of an exemplary user interface according to one embodiment of a method for testing changes using a benchmarker. [Figure 6B] 1 is a screenshot of an exemplary user interface according to one embodiment of a method for testing changes using a benchmarker. [Figure 6C] 1 is a screenshot of an exemplary user interface according to one embodiment of a method for testing changes using a benchmarker. [Figure 6D] 1 is a screenshot of an exemplary user interface according to one embodiment of a method for testing changes using a benchmarker. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0007] This disclosure describes a system, method, and computer program for testing the accuracy of software that identifies user interface elements in a web page. The method is performed by a computer system ("the system") that includes a server, a storage system, a network, an operating system, and a database.

[0008] An exemplary embodiment of the above method is described in more detail with respect to Figures 1-6D.

[0009] 1. How to test the accuracy of software that identifies user interface elements on web pages FIG. 1 illustrates a method for testing the accuracy of software that identifies user interface (UI) elements in a web page (i.e., "auto-identifier software"). In some embodiments, the auto-identifier software can include both client and server software that work together. The system enables a user (e.g., an administrator, an employee, a contractor, etc.) to tag UI elements in the web page with labels (step 110). In some embodiments, the web page is a web page in a browser, and the labeling tool is implemented as a browser extension. In some embodiments, the web page in the browser corresponds to a web view in a mobile application. In other words, a website can be structured differently between the web page in the web browser and the web view in the mobile application. To test the accuracy of the web view in the mobile application, the web page in the browser repositions itself as if it were displaying the web view in the mobile application.

[0010] The system creates a normalized specification for the web page that includes a mapping of UI elements to normalized labels (step 120). In some embodiments, the specification represents all possible UI elements in the web page plus associated metadata (i.e., does not include styling or behavioral metadata). For example, metadata can include field placeholders, class names, HTML IDs, etc. In some embodiments, one or more specifications are manually created by a user in a browser extension to be treated as a gold standard against which information generated by the auto-identification software will be compared. In some embodiments, the manually created specification is created in two steps: first, the browser extension automatically tags fields with labels, and second, the user corrects or adds one or more labels to their corresponding field(s) (e.g., using a "drag-and-drop" graphical user interface). The system uses the auto-identification software to identify UI elements in the web page (step 130). The system uses the specification to evaluate the performance of the auto-identification software for the web page (step 140). The system displays diagnostics regarding the performance of the auto-identification software (step 150). In some embodiments, the diagnostics displayed include the number of fields evaluated, the number of fields correctly or incorrectly identified (e.g., the specification shows seven fields marked 1-7, but the auto-identification software only identifies six fields 1-6), the number of fields correctly or incorrectly entered (e.g., the specification shows seven fields marked 1-7 and entered with a-g, and the auto-identification software identifies seven fields marked 1-7, but field 3 is entered with "m" instead of "c"), and the number of fields correctly or incorrectly ignored, etc.

[0011] In some embodiments, the UI elements are fields, and the auto-identification software is designed to automatically fill in the fields in a web form, as discussed in more detail in Section 2. In some embodiments, the web form is a checkout page. In some embodiments, the web form specification includes a mapping of fields to normalized field labels in the web form. In some embodiments, evaluating the performance of the auto-identification software includes determining whether the auto-identification software correctly identified and correctly filled in fields in web forms tasked with autofill, and whether the auto-identification software correctly ignored fields in web forms tasked with not autofill.

[0012] In some embodiments, the UI elements are text markers, and the auto-identification software is designed to automatically scrape the checkout cart data from the web page, as discussed in more detail in Section 3. In some embodiments, the specification includes a mapping of the cart data in the web page to normalized labels.

[0013] In some embodiments, displaying the diagnostics includes displaying statistics regarding the performance of the autofill software on a web form. In some embodiments, displaying the diagnostics includes displaying statistics regarding the performance of the software for selection UI elements across multiple web pages. For example, the displayed statistics may relate to the percentage of correctly and incorrectly identified fields in the web form, the percentage of correctly and incorrectly filled fields, and the percentage of correctly and incorrectly ignored fields.

[0014] In some embodiments, enabling a user to tag UI elements in a web page includes providing a browser extension for a web browser that enables a user to tag UI elements in a web page. In some embodiments, the browser extension includes code that first automatically tags a selected UI element with a label and then allows a user to edit the label and tag additional UI elements.

[0015] 2. How to test the accuracy of autofill software in web forms FIG. 2 illustrates a method for testing the accuracy of autofill software on a web form. The system allows a user to tag fields on the web form with labels (step 210). In some embodiments, the web form can be a checkout page. The system creates a canonicalization specification for the web form that includes a mapping of fields to canonicalization labels (step 220). In some embodiments, the specification represents all possible fillable elements on the web page with the appropriate metadata related to making those elements fillable, and excluding any metadata from the web page that is not related to making those elements fillable (including metadata related to styling or behavior). The system uses the autofill software to auto-complete fields on the web form (step 230). In the case of a checkout page, the fields can include user names, shipping addresses, billing addresses, payment information, etc. Dummy information can be used for testing purposes. Dummy information is any information created for testing purposes that does not correspond to an actual system user. The system uses the web form specification to evaluate the performance of the autofill software on the web form (step 240). This includes identifying necessary inputs in the evaluation, such as a set of web forms, corresponding specifications, and a version of the autofill software to test. The evaluation also includes determining whether the autofill software correctly recognized fields tasked with input and correctly ignored fields that were not tasked with input. The system displays a diagnostic regarding the performance of the autofill software (step 250). In some embodiments, the evaluation, and therefore the diagnostic, can be regarding the performance of the autofill software for an entire web form and / or for fields across multiple web forms.

[0016] 3. How to test the accuracy of cart scraper software on your checkout page FIG. 3 illustrates a method for testing the accuracy of cart scraper software on a checkout page. The system allows a user to tag text markers on the checkout page with labels (step 310). The labeled text markers relate to checkout cart data, such as markers related to product name, product URL, product image, quantity, item price, subtotal price, shipping cost, tax, and total amount. The system creates a canonicalization specification for the checkout page that includes a mapping of the text markers to the canonicalization labels (step 320). The system uses the cart scraper software to scrape the cart data from the checkout page (step 330). The cart data can include product name, product URL, product image, quantity, item price, subtotal price, shipping cost, tax, and total amount. The system uses the checkout page specification to evaluate the performance of the cart scraper software on the checkout page (step 340). This includes identifying inputs required for the evaluation, such as a set of web forms, corresponding specifications, and a version of the cart scraper software to test. The evaluation also includes determining whether the cart scraper software scraped the cart data that it was tasked to scrape and whether it ignored the data that it was tasked to ignore. The system displays diagnostics regarding the performance of the cart scraper software (step 350). In some embodiments, the evaluation, and therefore diagnostics, can be regarding the performance of the cart scraper software for an entire checkout page and / or for a particular text marker across multiple checkout pages.

[0017] 4. Example System Architecture 4 illustrates an example architecture of a system for performing the methods described herein, although the methods described herein may be implemented in other systems and are not limited to the system illustrated.

[0018] FIG. 4 shows two independent processes. The first process is to create one or more manual specifications. The second process is to use a benchmark test module (also called a "benchmark") to check the accuracy of the software by comparing it with the manually created specifications downloaded from the cloud storage. For the first process, a user manually creates one or more specifications based on UI elements in a web page using a browser extension / label tool 410 on a client application 420 at a client device. The one or more manually created specifications are initially stored on the client device and then uploaded to a cloud storage 430 (e.g., AMAZON WEB SERVICES). In this cloud storage, each of the manually created specifications is tagged with the name of the merchant. During the second process, the manually created specifications are downloaded from the cloud storage 430 and compared with the specifications generated from the automatic identification software.

[0019] The second process takes place in the server 440, which has a server API 450 that downloads the manually created specifications to the benchmark testing module 460. The benchmark testing module 460 also receives the specifications generated from the auto-identification software 470 stored in memory 480 in the server 440. The auto-identification software 470 attempts to mimic the way a web page operates and create a specification based on the web page. The benchmark testing module 460 compares the specifications generated from the auto-identification software with the manually created specifications that are considered gold standard specifications and provides diagnostic data via the diagnostic module 490. In some embodiments, this diagnostic data includes which specifications generated from the auto-identification software did not match the manually created specifications and which fields of the specifications that did not match were not correctly identified.

[0020] 5. Example screenshots of the user interface for creating a specification 5A-5K show screenshots of exemplary user interfaces of a method for creating a specification in accordance with the present invention. Those skilled in the art will appreciate that the present invention may be embodied in other user interfaces having more or less functionality within the scope of the present invention. Thus, FIGs. 5A-5K are intended to be illustrative and in no way limiting.

[0021] In Figure 5A, the system provides a user interface that allows the user to select the language of the website for which the user is creating the specification. In this example, the user selects English as the website language. In Figure 5B, the user drags and drops parameters into fields in the user interface. As seen in Figure 5C, the parameter "ContactDetails.Emails.Email.Address" has been dragged and dropped into the field "Email Address."

[0022] The next step is to add a label to the field. This can be done by highlighting the input field label and allowing the system to capture it, or by manually entering the label. As shown in Figures 5D and 5E, the user highlights the input field label (i.e., "Email Address") and confirms that the system should capture it. As shown in Figures 5F and 5G, the user instead selects the option to manually enter the label. As seen in Figure 5G, a pop-up alert block appears as an overlay on the user interface, requesting the user to enter the name of the label. The user then enters the name of the label and confirms the label. Once the system receives the input field label through any of the above methods, the user interface indicates that the field is a "spec field" by displaying the input field box in green with the parameter name and label, as shown in Figure 5H.

[0023] As seen in Figure 5I, the user then repeats the steps of dragging and dropping parameters and labeling fields for all fillable fields in the form until the entire form is complete and the form is considered a completed "spec" form. As seen in Figures 5J and 5K, once the form is a completed "spec" form, the user uploads this completed specification to cloud storage and receives confirmation that the upload was successful. The system also allows the user to make changes to the completed specification by uploading and overwriting a previous specification.

[0024] 6. Example screenshots of the user interface for how to use the benchmarker to test changes 6A-6D show screenshots of exemplary user interfaces of a method for testing changes using a benchmarker in accordance with the present invention. Those skilled in the art will appreciate that the present invention may be embodied in other user interfaces having more or less functionality within the scope of the present invention. Thus, FIGs. 6A-6D are intended to be illustrative and in no way limiting.

[0025] In FIG. 6A, the user is preparing a new run of the benchmarker. The benchmarker is a tool that performs a comparison between the "master" (i.e., the manually created specifications) and the "benchmarker-flow-example-branch" (i.e., the specifications generated from the auto-identification software) to determine if there are any differences in form. The user enters parameters for the benchmark run, which in this case requests all specifications in Japanese (i.e., "--lang ja"). As seen in FIG. 6B, the user specifies that the benchmark run will be done in two branches: the master branch and the benchmarker-flow-example branch. Here, the three fields, benchmark, middleware, and widgets, represent three different directories in the codebase where changes can be made.

[0026] As seen in Fig. 6C, after confirming that the benchmark run should start, the system runs the benchmark to calculate the accuracy of the Japanese specifications in the master branch and the benchmark flow example branch, and outputs the result. In this case, the accuracy of the benchmark flow example branch is lower than that of the master branch. As a result, the user may want to compare the two benchmark runs by clicking the compare option and make any necessary corrections.

[0027] FIG. 6D shows the difference between the two benchmark runs in terms of their mapping results. The master branch benchmark run is in the left column and the benchmark flow example branch benchmark run is in the right column. Each row represents a unique field and a comparison of the mapping between the two branches. For example, for the parameter "ContactDetails.Emails.Email.Address", the master branch benchmark run correctly mapped the field as shown in green, whereas the benchmark flow example branch benchmark run incorrectly mapped the field as shown in red. This comparison process allows the user to determine whether any changes to the autofill software will have a net positive or negative effect on the overall mapping accuracy.

[0028] 7. General The methods described with respect to Figures 1-6D may be embodied in software and performed by a computer system (comprising one or more computing devices) that executes the software. Those skilled in the art will appreciate that a computer system has one or more memory units, disks or other physical computer-readable storage media that store software instructions, and one or more processors that execute the software instructions.

[0029] Those skilled in the art will appreciate that the present invention can be embodied in other specific forms without departing from the spirit or essential characteristics thereof. Accordingly, the above disclosure is intended to be illustrative, but not limiting, of the scope of the invention, which is set forth in the following claims.

Claims

1. 1. A computer system implemented method for testing the accuracy of software that identifies UI elements in a web page ("auto-identification software"), comprising: Enabling a user to tag UI elements in a web page with labels; creating a normalization specification for the web page, the specification including a mapping of UI elements to normalization labels; Identifying UI elements in the web page using the automatic identification software; evaluating performance of the automatic identification software against the web page using the specification; displaying diagnostics regarding the performance of the automatic identification software; Including, the UI elements are fields, and the auto-identification software is designed to automatically populate fields in a web form; evaluating the performance of the automatic identification software includes determining whether the automatic identification software correctly identified and correctly filled in the fields in the web form tasked with autofill, and whether the automatic identification software correctly ignored the fields in the web form tasked with not autofill. method.

2. The method of claim 1 , wherein the web form is a checkout page.

3. The method of claim 1 , wherein the specification of the Web form includes a mapping of fields in the Web form to normalized field labels.

4. The method of claim 1 , wherein displaying the diagnostics comprises displaying statistics regarding the performance of the automatic identification software on the web page.

5. The method of claim 1 , wherein displaying the diagnostics comprises displaying statistics regarding the performance of the software for selected UI elements across multiple web pages.

6. The method of claim 1 , wherein enabling the user to tag UI elements in a web page comprises providing a browser extension for a web browser that enables the user to tag UI elements in a web page.

7. The method of claim 6 , wherein the browser extension includes code that first automatically tags a selected UI element with a label and then allows the user to edit the label and tag additional UI elements.

8. A non-transitory computer readable medium containing a computer program that, when executed by a computer system, enables the computer system to perform the following steps of testing the accuracy of software that identifies UI elements in a web page ("auto-identification software"), the steps comprising: Enabling a user to tag UI elements in a web page with labels; creating a normalization specification for the web page, the specification including a mapping of UI elements to normalization labels; Identifying UI elements in the web page using the automatic identification software; evaluating performance of the automatic identification software against the web page using the specification; displaying diagnostics regarding the performance of the automatic identification software; Including, the UI elements are fields, and the auto-identification software is designed to automatically populate fields in a web form; evaluating the performance of the automatic identification software includes determining whether the automatic identification software correctly identified and correctly filled in the fields in the web form tasked with autofill, and whether the automatic identification software correctly ignored the fields in the web form tasked with not autofill. Non-transitory computer-readable medium.

9. The non-transitory computer-readable medium of claim 8 , wherein displaying the diagnostics comprises displaying statistics regarding the performance of the auto-identification software on the web page.

10. The non-transitory computer-readable medium of claim 8 , wherein displaying the diagnostics includes displaying statistics regarding the performance of the software for selected UI elements across multiple web pages.

11. 1. A computer system for testing the accuracy of software that identifies UI elements in a web page ("auto-identification software"), comprising: one or more processors; one or more memory units coupled to the one or more processors; Equipped with The one or more memory units, when executed by the one or more processors, Enabling a user to tag UI elements in a web page with labels; creating a normalization specification for the web page, the specification including a mapping of UI elements to normalization labels; Identifying UI elements in the web page using the automatic identification software; evaluating performance of the automatic identification software against the web page using the specification; displaying diagnostics regarding the performance of the automatic identification software; storing instructions for causing the system to execute the the UI elements are fields, and the auto-identification software is designed to automatically populate fields in a web form; evaluating the performance of the automatic identification software includes determining whether the automatic identification software correctly identified and correctly filled in the fields in the web form tasked with autofill, and whether the automatic identification software correctly ignored the fields in the web form tasked with not autofill. system.

12. 12. The computer system of claim 11, wherein displaying the diagnostics comprises displaying statistics regarding the performance of the automatic identification software on the web page.

13. 12. The computer system of claim 11, wherein displaying the diagnostics comprises displaying statistics regarding the performance of the software for selected UI elements across multiple web pages.

Citation Information

Patent Citations

  • Web log management server, method thereof, and computer program

    JP2007140982A

  • Advertisement providing system and method for providing interface for integrated payment for products in integrated marketplace

    JP2013196686A

  • Web inspection program and web inspection apparatus

    JP2019191689A

  • Testing user interfaces using machine vision

    US20200159647A1

  • Methods, systems and computer program products for automated software testing

    US20200379891A1

Cited By

  • Apparatus and method for automatic testing of web page

    KR1020250056675A