1. A computer-implemented method for performing automated user-interface layout testing, the method comprising:
executing a pre-defined set of operations for a program;
storing a first representation of a user interface for the program subsequent to executing the operations;
automatically tagging the first representation with a unique tag, wherein the tag identifies an environment, workflow, and time frame in which the first representation is obtained, which allows identification of multiple images of the same workflow for comparison;
automatically selecting, based on the unique tag, one or more previously stored valid representations tagged with the same workflow for comparison with the first representation; and
comparing the first representation against each of the one or more validated representations to determine a difference between the representations, thereby facilitating detecting changes that affect the user interface, wherein said comparing involves:
receiving a specification that describes an acceptable level of change between the first representation and a validated representation;
and
determining whether the difference between the first representation and any of the one or more validated representations exceeds the acceptable level of change.
2. The computer-implemented method of claim 1, wherein the method involves determining whether the difference between the first representation and any of the one or more validated representations will be noticeable to a user.
3. The computer-implemented method of claim 1, wherein comparing the first representation against each of the one or more validated representations further involves:
receiving a specification for a region of interest in the first representation and the validated representation; and
comparing only the region of interest in the first representation with a corresponding region of interest in the validated representation.
4. The computer-implemented method of claim 3, wherein determining the difference involves performing a per-pixel comparison of the first representation and the validated representation to determine the difference between the representations.
5. The computer-implemented method of claim 1, wherein the method further involves notifying a quality assurance tester upon determining the difference between the representations.
6. The computer-implemented method of claim 5, wherein notifying the quality assurance tester involves one or more of the following:
providing the first representation and the one or more validated representations to the quality assurance tester;
highlighting pixels in the first representation that differ from pixels in any of the plurality of validated representations; and
receiving an indication from the quality assurance tester that indicates that the first representation is visually substantially similar to each of the one or more validated representations.
7. The computer-implemented method of claim 6, wherein the method further involves comparing multiple representations associated with different operations during program development and testing to ensure that the user interface presented to the user remains consistent across changes to the program and execution environment.
8. A non-transitory computer-readable storage medium storing instructions that when executed by a computer cause the computer to perform a method for performing automated user-interface layout testing, the method comprising:
executing a pre-defined set of operations for a program;
storing a first representation of a user interface for the program subsequent to executing the operations;
automatically tagging the first representation with a unique tag, wherein the tag identifies an environment, workflow, and time frame in which the first representation is obtained, which allows identification of multiple images of the same workflow for comparison;
automatically selecting, based on the unique tag, one or more previously stored valid representations tagged with the same workflow for comparison with the first representation; and
comparing the first representation against each of the one or more validated representations to determine a difference between the representations, thereby facilitating detecting changes that affect the user interface, wherein said comparing involves:
receiving a specification that describes an acceptable level of change between the first representation and a validated representation; and
determining whether the difference between the first representation and any of the one or more validated representations exceeds the acceptable level of change.
9. The non-transitory computer-readable storage medium of claim 8, wherein the method involves determining whether the difference between the first representation and any of the one or more validated representations will be noticeable to a user.
10. The non-transitory computer-readable storage medium of claim 8, wherein comparing the first representation against each of the one or more validated representations further involves:
receiving a specification for a region of interest in the first representation and the validated representation; and
comparing only the region of interest in the first representation with a corresponding region of interest in the validated representation.
11. The non-transitory computer-readable storage medium of claim 10, wherein determining the difference involves performing a per-pixel comparison of the first representation and the validated representation to determine the difference between the representations.
12. The non-transitory computer-readable storage medium of claim 8, wherein the method further involves notifying a quality assurance tester upon determining the difference between the representations.
13. The non-transitory computer-readable storage medium of claim 12, wherein notifying the quality assurance tester involves one or more of the following:
providing the first representation and the one or more validated representations to the quality assurance tester;
highlighting pixels in the first representation that differ from pixels in any of the one or more validated representations;
and
receiving an indication from the quality assurance tester that indicates that the first representation is visually substantially similar to each of the one or more validated representations.
14. The non-transitory computer-readable storage medium of claim 13, wherein the method further involves comparing multiple representations associated with different operations during program development and testing to ensure that the user interface presented to the user remains consistent across program changes.
15. An apparatus configured for performing automated user-interface layout testing, comprising:
a processor;
a memory;
an execution mechanism configured to execute a pre-defined set of operations for a program;
a storage mechanism configured to store a first representation of a user interface for the program subsequent to executing the operations;
an association mechanism configured to automatically tag the first representation with a unique tag, wherein the tag identifies the first representation with a unique tag, wherein the tag identifies an environment, workflow, and time frame in which the first representation is obtained, which allows identification of multiple images of the same workflow for comparison;
a selection mechanism configured to automatically select, based on the unique tag, one or more previously stored valid representations tagged with the same workflow for comparison with the first representation; and
a comparison mechanism configured to compare the first representation against each of the one or more validated representations to determine a difference between the representations, thereby facilitating detecting changes that affect the user interface, wherein said comparing involves:
receiving a specification that describes an acceptable level of change between the first representation and a validated representation; and
determining whether the difference between the first representation and any of the one or more validated representations exceeds the acceptable level of change.
16. The apparatus of claim 15, wherein the comparison mechanism is further configured to:
receive a specification for a region of interest in the first representation and the validated representation; and
compare only the region of interest in the first representation with a corresponding region of interest in the validated representation.
The claims below are in addition to those above.
All refrences to claim(s) which appear below refer to the numbering after this setence.
1. A method of trailer sway control, comprising: the steps of:
taking proximity sensor readings to sense proximity between a trailer and a towing vehicle that is towing the trailer;
sensing a turning of a steering wheel of the towing vehicle to provide steering wheel turn readings; and
braking to counter trailer sway in a manner that furthers stabilization by taking into account the proximity sensor readings and the steering wheel turn readings.
2. The method of claim 1, further comprising checking whether the towing vehicle has stability control sensors and, if so, verifying a presence of the trailer sway by making a comparison between a result of a calculation based on the proximity sensor readings and a measured yaw rate and lateral acceleration from the stability control sensors, the braking of the trailer to counter the trailer sway taking place provided there is agreement as a result of the comparison that indicates presence of the trailer sway.
3. The method of claim 1, further comprising calculating a trailer angle of sway in a manner that is independent of measured yaw rate, the calculating being based on the steering wheel turn readings and the proximity sensor readings.
4. The method of claim 3, further comprising determining whether the calculated trailer angle of sway is indicative of an amount of trailer sway that exceeds a range of tolerance for the trailer sway and, only if so, carrying out the braking in a manner that furthers stabilization.
5. The method of claim 1, wherein the braking to further the stabilization takes place under direction of a trailer sway control system, further comprising activating the trailer sway control system to direct the braking to further the stabilization in response to the trailer sway only if an analysis based on either the proximity sensor readings or trailer brake controller feedback readings reveals that the trailer is behind the towing vehicle.
6. The method of claim 1, further comprising operating at least two reverse proximity sensors to provide the proximity sensor readings each aimed at a respective one of two locations on a front of the trailer that faces the towing vehicle, one of the locations being behind a driver side of the towing vehicle and the other of the locations being behind a passenger side of the towing vehicle.
7. The method of claim 3, wherein the calculating includes computing the trailer angle of sway based on the relation sin\u22121((Y\u2212X)T) provided that Y is other than indeterminate or infinite, where X represents a distance between a front of the trailer and a rear of the towing vehicle along a driver side, Y represents a further distance between a front of the trailer and a rear of the towing vehicle along a passenger side, and T represents a distance between the two reverse proximity sensors.
8. The method of claim 3, wherein the calculating approximates the trailer angle of sway based on the relation of cos\u22121(XA) in the case where Y is sensed to be indeterminate or infinite, where A represents a distance along a centerline of the trailer from a trailer front to the proximity sensors at a rear of the towing vehicle, the distance between the trailer hitch and trailer front being based on data in any one of a trailer brake controller, stability control system and reverse backup module.
9. The method of claim 1, wherein the braking is at an equal force of application at each wheel of either the vehicle or trailer in a manner that furthers stability.
10. The method of claim 1, wherein the braking is applied at different forces of application at each wheel of either the vehicle or trailer in a manner that furthers stability.
11. The method of claim 9 or 10, wherein the braking is applied either to only wheels of the vehicle, to only wheels of the trailer, or to both the wheels of the vehicle and the trailer in a manner that furthers the stability.
12. The method of claim 1, wherein the proximity sensor readings are readings taken from proximity sensors selected from a group consisting of distance, angle, camera, laser, ultrasonic and radar.
13. The method of claim 1, further comprising calculating changes in distance with the proximity sensors, carrying out the braking based on the calculated changes in distance and the sensed turning of the steering wheel.
14. An apparatus suited for trailer sway control, comprising:
at least one proximity sensor configured and arranged to sense proximity between a trailer and a towing vehicle that tows the trailer so as to provide proximity sensor readings;
at least one detector arranged to sense a turning of a steering wheel of the towing vehicle to provide steering wheel turn readings; and
a trailer sway control system configured to direct braking to counter trailer sway in a manner that furthers stabilization by taking into account the proximity sensor readings and the steering wheel turn readings.
15. An apparatus of claim 14, wherein the trailer sway control system is configured to check whether the towing vehicle has stability control sensors and, if so, to verify a presence of the trailer sway by making a comparison between a result of a calculation based on the proximity sensor readings and a measured yaw rate and lateral acceleration based on readings from the stability control sensors, the trailer sway control system being configured to direct the braking to further the stabilization only if there is agreement as a result of the comparison that indicates the presence of the trailer sway.
16. The apparatus of claim 14, wherein the trailer sway control system is configured to calculate a trailer angle of sway in a manner that is independent of measured yaw rate yet based on the steering wheel turn readings and the proximity sensor readings, the trailer sway control system being configured to direct the braking based on the calculated trailer angle of sway.
17. The apparatus of claim 14, wherein the trailer sway control is activated to direct the braking to further the stabilization in response to the trailer sway only if an analysis of either the proximity sensor readings or trailer brake controller feedback readings reveals that the trailer is behind the towing vehicle.
18. The apparatus of claim 14, wherein the trailer sway control system is configured to determine whether the trailer angle of sway is indicative of an amount of trailer sway that exceeds a range of tolerance for the trailer sway and, only if so, to direct the braking to further the stabilization.
19. An apparatus of claim 14, wherein the proximity sensors include at least two reverse proximity sensors to provide the proximity sensor readings each aimed at a respective one of the side and the further side of the trailer.
20. An apparatus of claim 16, wherein the trailer sway control system is configured to calculate the trailer angle of sway based on the relation sin\u22121((Y\u2212X)T) provided that Y is other than indeterminate or infinite, where X represents a distance between a front of the trailer and a rear of the towing vehicle for the one side, Y represents a further distance between a front of the trailer and a rear of the towing vehicle for the further side, and T represents a distance between the two reverse proximity sensors.
21. An apparatus of claim 16, wherein the trailer sway control system is configured to approximate the trailer angle of sway based on the relation of cos\u22121(XA) in the case where Y is sensed to be indeterminate or infinite, where A represents a distance along a centerline of the trailer from a trailer front to a trailer hitch at a rear of the towing vehicle.
22. An apparatus of claim 14, wherein the trailer sway control system is configured to send instructions to apply the braking to each wheel of either the vehicle or the trailer at an equal force of brake application in a manner that furthers stability.
23. An apparatus of claim 14, wherein the trailer sway control system is configured to send instructions to apply the braking to each wheel of either the vehicle or the trailer at different forces of brake application in a manner that furthers stability.
24. An apparatus of claim 22 or 23, wherein the trailer sway controller system is configured to send instructions to apply the braking either to only wheels of the vehicle, to only wheels of the trailer, or to both the wheels of the vehicle and the trailer in a manner that furthers the stability.
25. An apparatus of claim 14, wherein the proximity sensor readings are readings taken from proximity sensors selected from a group consisting of distance, angle, camera, laser, ultrasonic and radar.
26. An apparatus of claim 14, wherein the trailer sway control system is configured to calculate changes in distance with the proximity sensors and to send instructions to carry out the braking based on the calculated changes in distance and the sensed turning of the steering wheel.