Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upAutomated tests for WebDriver #10113
Conversation
highfive
commented
Mar 22, 2016
|
Thanks for the pull request, and welcome! The Servo team is excited to review your changes, and you should hear from @mbrubeck (or someone else) soon. |
|
Review status: 0 of 4 files reviewed at latest revision, 3 unresolved discussions. tests/webdriver/test.py, line 3 [r3] (raw file): tests/webdriver/test.py, line 18 [r3] (raw file): tests/webdriver/test.py, line 28 [r3] (raw file): Comments from the review on Reviewable.io |
|
Thanks for making this pull request! It's a good start, but I've proposed some changes that will make it easier to write more complicated tests going forwards, I think. In particular, I've made a pull request to your branch to add a standalone HTTP server, which will allow us to write tests that don't use real websites. I'd like to see what this PR looks like once we removed some of the code and test duplication; I think it will be easier to read at that point :) -S-awaiting-review +S-needs-code-changes Reviewed 4 of 5 files at r3, 3 of 3 files at r4. python/servo/testing_commands.py, line 106 [r3] (raw file): python/servo/testing_commands.py, line 294 [r3] (raw file): python/servo/testing_commands.py, line 298 [r3] (raw file): python/servo/testing_commands.py, line 378 [r3] (raw file): tests/dromaeo/dromaeo, line 1 [r3] (raw file): tests/webdriver/test.py, line 3 [r3] (raw file): tests/webdriver/test.py, line 19 [r3] (raw file): tests/webdriver/test.py, line 1 [r4] (raw file): tests/webdriver/test.py, line 22 [r4] (raw file): tests/webdriver/test.py, line 33 [r4] (raw file): tests/webdriver/test1.py, line 9 [r3] (raw file): tests/webdriver/test1.py, line 23 [r4] (raw file): Comments from the review on Reviewable.io |
|
|
|
-S-awaiting-review -S-needs-rebase +S-needs-code-changes Reviewed 2 of 2 files at r5, 3 of 3 files at r7. tests/webdriver/test.py, line 3 [r3] (raw file): Comments from the review on Reviewable.io |
|
@krunal3103 What's the plan here? I haven't seen any updates to address most of the review comments so far. |
|
It looks like you've created the test_url.py to address my comments about the other python files, but those files should now be removed. I still have serious concerns about the test harness that haven't been addressed:
-S-awaiting-review +S-needs-code-changes Reviewed 1 of 1 files at r8. tests/webdriver/test_url.py, line 19 [r8] (raw file): Comments from Reviewable |
|
-S-awaiting-review +S-needs-code-changes Reviewed 2 of 4 files at r9, 1 of 1 files at r10. python/servo/testing_commands.py, line 298 [r3] (raw file): tests/webdriver/test_url.py, line 12 [r9] (raw file): tests/webdriver/test_url.py, line 25 [r9] (raw file): tests/wpt/harness/wptrunner/executors/ServoProcess.py, line 1 [r10] (raw file): Comments from Reviewable |
|
We have pushed this new commit in which we have used the dummy HttpServer instead of actual URLs. We are trying to run the web driver tests using
|
|
Interesting. I just checked out your branch, ran
|
|
My debugging shows me that test_url.py is being executed, but the |
|
The previous test_url.py does not execute the test_get method when called using execfile. I`ve pushed a new version, you can try running it to see the error. |
|
For some reason the top-level imports aren't available when executing the testcases. If I add the |
|
It's not clear to me that the |
|
Referring the latest commit, we plan to move forward this way i.e. by adding the test files and raising the appropriate exceptions based on the test that is being run.
|
|
That sounds good to me. Don't forget to return 0 or 1 from the test runner depending on whether all tests passed or not! |
|
For the subsequent step to check response type, I do not see an already existing method in the webdriver.py that returns that. I found the text command under class Element that can be used to check the content. But how do we get the response type? Do I need to implement that method? |
|
That refers to the return value of |
|
Good improvements! Please be sure to run Reviewed 1 of 6 files at r11, 8 of 9 files at r15. python/servo/testing_commands.py, line 293 [r15] (raw file): tests/webdriver/test_content.py, line 16 [r15] (raw file): tests/webdriver/test_content.py, line 26 [r15] (raw file): tests/webdriver/test_emptyurl.py, line 23 [r15] (raw file): tests/webdriver/test_emptyurl.py, line 27 [r15] (raw file): tests/webdriver/harness/test_timeout.py, line 28 [r15] (raw file): tests/wpt/harness/wptrunner/executors/webdriver.py, line 423 [r15] (raw file): Comments from Reviewable |
|
Please ignore. Rebased the branch with |
highfive
commented
May 4, 2016
|
New code was committed to pull request. |
|
Due to the unaddressed review comments as well as the existence of webdriver tests in https://github.com/w3c/web-platform-tests/, giving us a shared set of tests with other browsers, I'm going to go ahead and close this. Thanks for doing this work! |
krunal3103 commentedMar 22, 2016
Created two test files in /tests/webdriver directory.
The command ./mach test-webdriver executes all the tests.py files in this directory.
This change is