User:Krunal3103
Appearance
This user is a student editor in Wikipedia:Wiki_Ed/North_Carolina_State_University/Object-Oriented_Design_and_Development_(Spring_2016). Student assignments should always be carried out using a course page set up by the instructor. It is usually best to develop assignments in your sandbox. After evaluation, the additions may go on to become a Wikipedia article or be published in an existing article. |
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 a
mach
command (test-webdriver
) inpython/servo/testing_commands.py
that will import each python file in the directory and execute thetest
method contained within it by invoking the Servo process before running each test, and killing it after each test finishes. - Create a
webdriver
directory undertests
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.