Write Selenium and Appium tests in Python using the Page Object pattern. This Pythonic GUI and API test automation framework will help you get started with QA automation quickly. It comes with many useful integrations like - email, BrowserStack, Slack, TestRail, etc. This repository is developed and maintained by Qxf2 Services.
Added methods to extract the session_id from session_url and upload terminal logs to BrowserStack. Methods works fine for both Selenium and Appium tests. Updated conf file with api endpoint server url
Updated temp log naming as BrowserStack supports .log, .json and .txt file extensions only. It is not supporting .log-temp extension. So changed file name from (test_name).log-temp to temp_(test_name).log
Fixed incomplete consolidated log issue, issues was happening because pytest hooks pytest_sessionstart and pytest_sessionfinish get executes the code when tests run in parallel. Which was deleting all temp log files before generating the consolidated logs. Now updated pytest_sessionstart and pytest_sessionfinish hook code to execute during main_session only.
Sending Selenium and Appium test terminal logs to BrowserStack successfully.
(test_name).log-temp
totemp_(test_name).log