diff options
author | Moonchild <moonchild@palemoon.org> | 2021-02-25 01:03:57 +0000 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2021-02-25 01:03:57 +0000 |
commit | ceadffab6b357723981a429e11222daf6cd6dcfb (patch) | |
tree | 5603053048d6a460f79b22bdf165fb74d32d39b0 /testing/web-platform/tests/old-tests/webdriver/README.md | |
parent | 14fb2f966e9b54598c451e3cb35b4aa0480dafed (diff) | |
parent | ad5a13bd501e379517da1a944c104a11d951a3f5 (diff) | |
download | UXP-RC_20210225.tar UXP-RC_20210225.tar.gz UXP-RC_20210225.tar.lz UXP-RC_20210225.tar.xz UXP-RC_20210225.zip |
Merge branch 'master' into releaseRC_20210225
Diffstat (limited to 'testing/web-platform/tests/old-tests/webdriver/README.md')
-rw-r--r-- | testing/web-platform/tests/old-tests/webdriver/README.md | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/testing/web-platform/tests/old-tests/webdriver/README.md b/testing/web-platform/tests/old-tests/webdriver/README.md deleted file mode 100644 index 7a89fb78a..000000000 --- a/testing/web-platform/tests/old-tests/webdriver/README.md +++ /dev/null @@ -1,38 +0,0 @@ -# W3C Browser Automation Specification Tests - -This repository defines a set of conformance tests for the W3C web -browser automation specification known as WebDriver. The purpose is -for the different driver implementations to be tested to determine -whether they meet the recognized standard. - -## How to run the tests - -1. Go to the WebDriver tests: `cd _WEBDRIVER_TEST_ROOT_` -2. Run the tests: `python runtests.py` -3. Run the test against a different config specified in webdriver.cfg: - `WD_BROWSER=chrome python runtests.py` - -To be run a specific test file you can just run `python test_file.py` - -Similarly you can specify a different browser to run against if in webdriver.cfg: - `WD_BROWSER=chrome python ecmascript/ecmascript_test.py` - -Note: that you will need likely need to start the driver's server before running. - -## Updating configuration - -The _webdriver.cfg_ file holds any configuration that the tests might -require. Change the value of browser to your needs. This will then -be picked up by WebDriverBaseTest when tests are run. - -Be sure not to commit your _webdriver.cfg_ changes when your create or modify tests. - -## How to write tests - -1. Create a test file per section from the specification. -2. For each test there needs to be one or more corresponding HTML - files that will be used for testing. HTML files are not to be - reused between tests. HTML files and other support files - should be stored in a folder named 'res'. -3. Test name should explain the intention of the test e.g. `def - test_navigate_and_return_title(self):` |