Open hrj opened 8 years ago
This could be a very cool task to pickup @atiqsayyed (when you get free).
@atiqsayyed
Thinking more about this: you needn't use actors; it might be simpler to use Futures with an ExecutorService. The advantage of Future is that you can chain operations together easily and let the ExecutorService do the scheduling.
This is a very high level sketch of how this would work:
Hint: the webdriver object will need to be locked till both the screenshots are acquired. Alternatively, the future for getting screenshots should be scheduled on a single threaded executor-service.
@hrj this is cooooool. . . I'm picking it up!
Currently, the test runs sequentially:
If we used a simple actor system, we could do
#3
in separate actor.Down the line we could parallelize it even more: