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:
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
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。