Scope

edit
  • Compile Servo and ensure that it runs on tests/html/about-mozilla.html
  • To run a simple webdriver script using the python client against Servo.
  • Create amach command (test-webdriver) in python/servo/testing_commands.py that will import each python file in the directory and execute the test method contained within it by invoking the Servo process before running each test, and killing it after each test finishes.
  • Create a webdriver directory under tests where the forthcoming tests will reside.
  • Write an automated test for loading a particular URL, asserting that the resulting page is the expected url.

Design pattern

edit

Design patterns are not applicable as our task involved writing automated tests in python. However, the Implementation section below provides details of the steps the way it was implemented.

Testing

edit

Following are the steps to run the automated tests for WebDriver:

git clone https://github.com/krunal3103/servo

Note: Follow the steps listed in the Readme.md file of this link to clone and build servo on your local machine.

cd servo
./mach test-webdriver

You will see that all tests pass as expected.

Pull Request

edit

Here is our pull request. In the link you can see all code snippets and commits as well as integration test progression information.