frohzinn's picture
download
raw
562 Bytes
"""Shared pytest fixtures for QDC on-device test runners."""
import os
import pytest
from appium import webdriver
from utils import options, write_qdc_log
@pytest.fixture(scope="session", autouse=True)
def driver():
return webdriver.Remote(command_executor="http://127.0.0.1:4723/wd/hub", options=options)
def pytest_sessionfinish(session, exitstatus):
xml_path = getattr(session.config.option, "xmlpath", None) or "results.xml"
if os.path.exists(xml_path):
with open(xml_path) as f:
write_qdc_log("results.xml", f.read())

Xet Storage Details

Size:
562 Bytes
·
Xet hash:
86791407d23618ea7fadc34d9b82646b520b8e7cf7a297baeb04770a1353557b

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.