Patent ID: 9575873
Date: 2017-02-21
CPC Classifications: G06F

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 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.