प्रौद्योगिकी साझेदारी

pytest-playwright इत्यस्य उपयोगेन स्क्रीनशॉट् कृत्वा विडियो रिकार्ड् कृत्वा Allure report इत्यत्र योजयन्तु

2024-07-12

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

1. पर्यावरणस्य आश्रयः

पायथन्, संस्करणम्3.9.5
pytest-playwright, version==0.5.1
allure-pytest, संस्करणम्
2.13.5
pytest, संस्करणम्6.2.5
आकर्षणम्, संस्करणम्
2.22.0

pytest-playwrightनिम्नलिखित आदेशपङ्क्तिमापदण्डाः समर्थिताः सन्ति ।

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. पैरामीटर् वर्णनम्

pytest-playwright प्लग-इन् इत्यस्य एते त्रयः मापदण्डाः स्क्रीनशॉट्, स्क्रीन रिकार्डिङ्ग्, ट्रैकिंग् च कृते उपयुज्यन्ते:

  • --tracing प्रत्येकस्य परीक्षणस्य कृते एकं लेशं लॉग् कर्तव्यम् वा।onoffवाretain-on-failure(पूर्वनिर्धारितं मूल्यम् : १.off)。
  • --video प्रत्येकं परीक्षणस्य कृते एकं विडियो रिकार्ड् कर्तव्यम् वा।onoffवाretain-on-failure(पूर्वनिर्धारितं मूल्यम् : १.off)。
  • --