2024-07-12
한어Русский языкEnglishFrançaisIndonesianSanskrit日本語DeutschPortuguêsΕλληνικάespañolItalianoSuomalainenLatina
python, versio3.9.5
pytest-playwright, version==0.5.1
allure-pytest, versio2.13.5
pytest, versio6.2.5
houkutteleva versio2.22.0
pytest-playwright
Seuraavia komentoriviparametreja tuetaan:
Playwright:
--browser={chromium,firefox,webkit}
Browser engine which should be used
--headed Run tests in headed mode.
--browser-channel=BROWSER_CHANNEL
Browser channel to be used.
--slowmo=SLOWMO Run tests with slow mo
--device=DEVICE Device to be emulated.
--output=OUTPUT Directory for artifacts produced by tests, defaults to test-results.
--tracing={on,off,retain-on-failure}
Whether to record a trace for each test.
--video={on,off,retain-on-failure}
Whether to record video for each test.
--screenshot={on,off,only-on-failure}
Whether to automatically capture a screenshot after each test.
--full-page-screenshot
Whether to take a full page screenshot
pytest-playwright
Näitä kolmea laajennuksen parametria käytetään kuvakaappauksiin, näytön tallentamiseen ja seurantaan:
--tracing
Kirjataanko jälki jokaisesta testistä.on
、off
tairetain-on-failure
(oletusarvo:off
)。--video
Tallennetaanko jokaista testiä varten video.on
、off
tairetain-on-failure
(oletusarvo:off
)。--