Testing appropriately in the cloud
Some people might just consider the cloud as a test aid to achieve support for more devices or browsers, then proceed to use it as they would use their current system. However, the cloud offers much more than that, and it is important to use it in an appropriate manner to get the best out of it.
In this section, we are going to have a general look into how to run your tests on a cloud test provider. Then, we will discuss how parallelizing tests and orchestrating tests can be achieved in the cloud.
There are two possible ways to execute a test in the cloud:
The first one is to upload the entire test project into the agent that executes the test.
The second one is to use some provider’s particular desired capabilities and a remote connection, such as in the following example:
General provider example
driver = webdriver.Remote(providerURL, providerCapabilities)
Here, the providerURL
parameter should include a username and...