You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
You would create a future task for each test. This future will in turn depend on two futures: a future for getting the screenshots and a future for comparing the screenshots.
All the above futures would be added to a queue.
The main thread will pickup the first future in the queue and then wait for its completion. After completion, it will update the status (progress bar, etc) and then pickup the next future.
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.
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:
The text was updated successfully, but these errors were encountered: