Extracting Training Scenarios from Test Cases for User-Interface Component Recognition
First Claim
1. A method comprising, by one or more computing devices:
- accessing a set of use cases of a software application, wherein;
the software application comprises one or more user-interface components that enable a user of the software application to interact with the software application;
each use case from the set of use cases comprises one or more user actions that act upon specific ones of the user-interface components; and
each one of the user actions is associated with a first cost for performing the user action; and
selecting, from the set of use cases, a subset of use cases that has a goodness-to-cost ratio that satisfies a predetermined requirement, wherein computing the goodness-to-cost ratio for the subset of use cases comprises;
for each use case from the subset of use cases, computing a second cost as a sum of the first costs associated with the user actions of the use case;
computing a third cost as a sum of the second costs;
for each user-interface component that is acted upon by at least one of the user actions of at least one of the use cases from the subset of use cases, computing a first goodness measure that indicates a level of user-action coverage that the subset of use cases provides on the user-interface component;
computing a second goodness measure as a sum of the first goodness measures; and
computing the goodness-to-cost ratio as a ratio between the second goodness measure and the third cost.
1 Assignment
0 Petitions
Accused Products
Abstract
In one embodiment, a method includes accessing a set of use cases of a software application and selecting, from the set of use cases, a subset of use cases that has a goodness-to-cost ratio that satisfies a predetermined requirement. Computing the goodness-to-cost ratio for the subset of use cases includes: for each use case from the subset of use cases, computing a second cost as a sum of the first costs associated with the user actions of the use case; computing a third cost as a sum of the second costs; for each user-interface component that is acted upon by at least one of the user actions of at least one of the use cases from the subset of use cases, computing a first goodness measure that indicates a level of user-action coverage that the subset of use cases provides on the user-interface component; computing a second goodness measure as a sum of the first goodness measures; and computing the goodness-to-cost ratio as a ratio between the second goodness measure and the third cost.
13 Citations
22 Claims
-
1. A method comprising, by one or more computing devices:
-
accessing a set of use cases of a software application, wherein; the software application comprises one or more user-interface components that enable a user of the software application to interact with the software application; each use case from the set of use cases comprises one or more user actions that act upon specific ones of the user-interface components; and each one of the user actions is associated with a first cost for performing the user action; and selecting, from the set of use cases, a subset of use cases that has a goodness-to-cost ratio that satisfies a predetermined requirement, wherein computing the goodness-to-cost ratio for the subset of use cases comprises; for each use case from the subset of use cases, computing a second cost as a sum of the first costs associated with the user actions of the use case; computing a third cost as a sum of the second costs; for each user-interface component that is acted upon by at least one of the user actions of at least one of the use cases from the subset of use cases, computing a first goodness measure that indicates a level of user-action coverage that the subset of use cases provides on the user-interface component; computing a second goodness measure as a sum of the first goodness measures; and computing the goodness-to-cost ratio as a ratio between the second goodness measure and the third cost. - View Dependent Claims (2, 3, 4, 5, 6, 7)
-
-
8. A system comprising:
-
a memory comprising instructions executable by one or more processors; and one or more processors coupled to the memory and operable to execute the instructions, the one or more processors being operable when executing the instructions to; access a set of use cases of a software application, wherein; the software application comprises one or more user-interface components that enable a user of the software application to interact with the software application; each use case from the set of use cases comprises one or more user actions that act upon specific ones of the user-interface components; and each one of the user actions is associated with a first cost for performing the user action; and select, from the set of use cases, a subset of use cases that has a goodness-to-cost ratio that satisfies a predetermined requirement, wherein computing the goodness-to-cost ratio for the subset of use cases comprises; for each use case from the subset of use cases, compute a second cost as a sum of the first costs associated with the user actions of the use case; compute a third cost as a sum of the second costs; for each user-interface component that is acted upon by at least one of the user actions of at least one of the use cases from the subset of use cases, compute a first goodness measure that indicates a level of user-action coverage that the subset of use cases provides on the user-interface component; compute a second goodness measure as a sum of the first goodness measures; and compute the goodness-to-cost ratio as a ratio between the second goodness measure and the third cost. - View Dependent Claims (9, 10, 11, 12, 13, 14)
-
-
15. One or more computer-readable non-transitory storage media embodying software operable when executed by one or more computing devices to:
-
access a set of use cases of a software application, wherein; the software application comprises one or more user-interface components that enable a user of the software application to interact with the software application; each use case from the set of use cases comprises one or more user actions that act upon specific ones of the user-interface components; and each one of the user actions is associated with a first cost for performing the user action; and select, from the set of use cases, a subset of use cases that has a goodness-to-cost ratio that satisfies a predetermined requirement, wherein computing the goodness-to-cost ratio for the subset of use cases comprises; for each use case from the subset of use cases, compute a second cost as a sum of the first costs associated with the user actions of the use case; compute a third cost as a sum of the second costs; for each user-interface component that is acted upon by at least one of the user actions of at least one of the use cases from the subset of use cases, compute a first goodness measure that indicates a level of user-action coverage that the subset of use cases provides on the user-interface component; compute a second goodness measure as a sum of the first goodness measures; and compute the goodness-to-cost ratio as a ratio between the second goodness measure and the third cost. - View Dependent Claims (16, 17, 18, 19, 20, 21)
-
-
22. A system comprising:
-
means for accessing a set of use cases of a software application, wherein; the software application comprises one or more user-interface components that enable a user of the software application to interact with the software application; each use case from the set of use cases comprises one or more user actions that act upon specific ones of the user-interface components; and each one of the user actions is associated with a first cost for performing the user action; and means for selecting, from the set of use cases, a subset of use cases that has a goodness-to-cost ratio that satisfies a predetermined requirement, wherein computing the goodness-to-cost ratio for the subset of use cases comprises; for each use case from the subset of use cases, means for computing a second cost as a sum of the first costs associated with the user actions of the use case; means for computing a third cost as a sum of the second costs; for each user-interface component that is acted upon by at least one of the user actions of at least one of the use cases from the subset of use cases, means for computing a first goodness measure that indicates a level of user-action coverage that the subset of use cases provides on the user-interface component; means for computing a second goodness measure as a sum of the first goodness measures; and means for computing the goodness-to-cost ratio as a ratio between the second goodness measure and the third cost.
-
Specification