Details
-
Type:
New Feature
-
Status:
In Progress
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
-
Number of attachments :
Description
Currently, Geb caches the first driver created and reuses this for all tests.
For some scenarios ( i.e, testing mobile views alongside main views ), it would be helpful to have a mechanism that allows for more than one driver to be cached and provide a mechanism for tests to switch to a different cached driver.
For example, one might want to run all their tests in the default environment, but when testing mobile views, be able to switch to mobile via something like switchEnvironment( 'mobile' ) or switchEnvironment( 'android' ).
Issue Links
- is related to
-
GEB-186
Add support for switching/specifying the environment to run with
-
I'm going to scope this to just expanding the caching bits to handle caching a driver per environment