Software testing system and method
First Claim
1. A computer implemented method of testing code for implementation in web browsers, the method comprising:
- implementing test class code defining a plurality of test cases for testing operations on web applications implementable by a plurality of different web browser types; and
implementing handler class code defining strategies to be used by at least a portion of the plurality of test cases, wherein the handler class code comprises first code specific to a first web browser type of the plurality of different web browser types and second code specific to a second web browser type of the plurality of different web browser typesdetermining that a first test case of the plurality of test cases will use a browser-dependent strategy;
determining that a first web browser is of the first web browser type based at least in part on interaction with the first web browser via a first web browser driver;
obtaining a first instance of the handler class code for the first test case based at least in part on the first web browser type, and at least in part by reference to a strategy support interface defining strategies to be implemented dependent on web browser type; and
adapting, by the first instance of the handler class code, the first test case for execution within the first web browser type when the first test case is communicated to the first web browser via the first web browser driver.
2 Assignments
0 Petitions
Accused Products
Abstract
A computer implemented system and method for testing code for implementation in web browsers, implements test class code defining test cases for testing operations on web applications implementable by different web browser types, and implements handler class code comprising code specific to each web browser and defining strategies to be used by test cases. The handler class code implements a handler interface and the test class code uses the handler interface to identify the methods to be used for test cases. A non-transient storage medium stores code for a handler template supporting different web browser types for use in a test environment, the code comprising code to identify browser specific strategies for implementation in the test environment; code to implement a strategy support interface for use by a handler factory to select a handler instance; and code to implement a handler interface for use by a test case to identify methods for testing web browser functions.
33 Citations
13 Claims
-
1. A computer implemented method of testing code for implementation in web browsers, the method comprising:
-
implementing test class code defining a plurality of test cases for testing operations on web applications implementable by a plurality of different web browser types; and implementing handler class code defining strategies to be used by at least a portion of the plurality of test cases, wherein the handler class code comprises first code specific to a first web browser type of the plurality of different web browser types and second code specific to a second web browser type of the plurality of different web browser types determining that a first test case of the plurality of test cases will use a browser-dependent strategy; determining that a first web browser is of the first web browser type based at least in part on interaction with the first web browser via a first web browser driver; obtaining a first instance of the handler class code for the first test case based at least in part on the first web browser type, and at least in part by reference to a strategy support interface defining strategies to be implemented dependent on web browser type; and adapting, by the first instance of the handler class code, the first test case for execution within the first web browser type when the first test case is communicated to the first web browser via the first web browser driver. - View Dependent Claims (2, 3, 4, 5)
-
-
6. A software testing system for testing code for implementation in web browsers, the software testing system comprising:
-
code memory storing computer code; and a processor for reading the computer code in the code memory and executing the computer code; and wherein the computer code stored in the code memory comprises; test class code defining a plurality of test cases for testing operations on web applications implementable by a plurality of different web browser types; and handler class code defining strategies to be used by at least a portion of the plurality of test cases, wherein the handler class code comprises first code specific to a first web browser type of the plurality of different web browser types and second code specific to a second web browser type of the plurality of different web browser types; wherein the code memory comprises code that, when executed by the processor, causes the processor to perform operations comprising; executing a handler factory; determining, by the handler factory, that a first test case of the plurality of test cases will use a browser-dependent strategy; determining, by the handler factory, that a first web browser is of the first web browser type based at least in part on interaction with the first web browser via a first web browser driver; obtaining, by the handler factory, a first instance of the handler class code for the first test case based at least in part on the first web browser type, and at least in part by reference to a strategy support interface defining strategies to be implemented dependent on web browser type; and adapting, by the first instance of the handler class code, the first test case for execution within the first web browser type when the first test case is communicated to the first web browser via the first web browser driver. - View Dependent Claims (7, 8, 9, 10)
-
-
11. A non-transient storage medium storing computer code for a handler template supporting a plurality of different web browser types for use in a test environment, the computer code comprising:
-
test class code defining a plurality of test cases for testing operations on web applications implementable by a plurality of different web browser types; handler class code defining strategies to be used by at least a portion of the plurality of test cases, wherein the handler class code comprises first code specific to a first web browser type of the plurality of different web browser types and second code specific to a second web browser type of the plurality of different web browser types; computer code for executing a handler factory, wherein the handler factory is programmed to perform operations comprising; determining that a first strategy used by a first test case for implementation in the test environment is browser specific; determining that a first web browser is of the first web browser type based at least in part on interaction with the first web browser via a first web browser driver obtaining a first instance of the handler class code for the first test case based at least in part on the first web browser type, and at least in part by reference to a strategy support interface defining strategies to be implemented dependent on web browser type; and computer code for executing the first instance of the handler class code, wherein the first instance of the handler class code is programmed to perform operations comprising adapting the first test case for execution within the first web browser type when the first test case is communicated to the first web browser via the first web browser driver. - View Dependent Claims (12, 13)
-
Specification