forked from WebKit/WebKit
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[WebDriver] Add info about importing tests
https://bugs.webkit.org/show_bug.cgi?id=220786 Reviewed by Carlos Garcia Campos. Tools: * Scripts/import-webdriver-tests: Replace optparse with argparse and refer to the tests README.md (Importer.import_tests): WebDriverTests: * README.md: Added. Canonical link: https://commits.webkit.org/233246@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@271739 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
1 parent
3299187
commit 111f635
Showing
4 changed files
with
65 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,14 @@ | ||
2021-01-22 Lauro Moura <[email protected]> | ||
|
||
[WebDriver] Add info about importing tests | ||
https://bugs.webkit.org/show_bug.cgi?id=220786 | ||
|
||
Reviewed by Carlos Garcia Campos. | ||
|
||
* Scripts/import-webdriver-tests: Replace optparse with argparse and | ||
refer to the tests README.md | ||
(Importer.import_tests): | ||
|
||
2021-01-21 Aakash Jain <[email protected]> | ||
|
||
[ews] Use github instead of svn.webkit.org to fetch contributors.json | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,12 @@ | ||
2021-01-22 Lauro Moura <[email protected]> | ||
|
||
[WebDriver] Add info about importing tests | ||
https://bugs.webkit.org/show_bug.cgi?id=220786 | ||
|
||
Reviewed by Carlos Garcia Campos. | ||
|
||
* README.md: Added. | ||
|
||
2020-11-09 Lauro Moura <[email protected]> | ||
|
||
[WebDriver] Gardening some WPE failures | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# WebDriver tests | ||
|
||
## Importing tests | ||
|
||
There is the `import-webdriver-tests` script to automate most of the process of | ||
checking out the repository and copying the files. | ||
|
||
It reads the `importer.json` of the selected suite (selenium or w3c), which | ||
contains the desired commit alongside the list of paths to skip/import. | ||
|
||
The cloned repository sits in `WebKitBuild/` for easier inspection. For example, | ||
to manually check the new commit to be imported. | ||
|
||
Once chosen the new commit, update `importer.json` with its hash and | ||
eventual path changes (e.g., new folders to be copied or skipped) and run the | ||
import script to update the desired suite: | ||
|
||
``` | ||
./Tools/Scripts/import-webdriver-tests --selenium` | ||
./Tools/Scripts/import-webdriver-tests --w3c` | ||
``` | ||
|
||
After running the script, if you're using git, you can check which files | ||
were added with `git status WebDriverTests/` to add them to the new commit. | ||
One current limitation of the script is its inability to check for deleted | ||
files from the source repository, so this step is still manual. | ||
|
||
Beware that when importing Selenium tests, some manual intervention might be | ||
needed to remove unsupported code related to Firefox, Chrome, etc. For example: | ||
|
||
* Package imports in `WebDriverTests/imported/selenium/py/selenium/webdriver/__init__.py`. | ||
* `RemoteConnection` objects in `WebDriverTests/imported/selenium/py/selenium/webdriver/remote/webdriver.py`. | ||
|
||
|
||
To test the imported suite, run it: | ||
|
||
``` | ||
Tools/Scripts/run-webdriver-tests --verbose --wpe --release --display-server=xvfb | ||
``` |