Technology sharing

Screenshot et record video usura pytest-ais et adde ad allicere fama

2024-07-12

한어Русский языкEnglishFrançaisIndonesianSanskrit日本語DeutschPortuguêsΕλληνικάespañolItalianoSuomalainenLatina

1. Dependentia in environment

python, version3.9.5
pytest-playwright, version==0.5.1
allicere-pytest, version
2.13.5
pytest, version6.2.5
allicere, versio
2.22.0

pytest-playwrightPraecipit lineae parametri sustentantur;

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

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18

2. Parameter descriptionem

pytest-playwright Tres hae parametri obturaculi in pro eenshotsscrae, tegumentum memoriae ac semitae adhibentur:

  • --tracing Utrum ad singulas probationes vestigium stipes.onoffor *retain-on-failure(Defectus pretii:off)。
  • --video Utrum pro singulis test.onoffor *retain-on-failure(Defectus pretii:off)。
  • --