pytest_f3ts.runner_client
Test Runner API Client.
class F3TSASCIIAPI
F3TS Backend Webservice API.
API Client for communicating with the FixturFab Test Runner Backend. This class is used to send test results and other information to the Backend.
TODO: Implement API Key Authentication
F3TSASCIIAPI.get_config(self, slot_id=None)
Return a configuration object.
F3TSASCIIAPI.send_banner_update(self, banner: pytest_f3ts.schemas.msg.StatusBanner)
Send set banner message to the Backend.
F3TSASCIIAPI.send_serial_number(self, serial_number)
Send serial number to the Backend.
F3TSASCIIAPI.send_test_result(self, result: pytest_f3ts.schemas.result.ResultCreate)
Send a pytest test case result to the Backend.
F3TSASCIIAPI.send_user_notif(self, notif: pytest_f3ts.schemas.msg.Notif)
Send one-way user dialog message to the Backend.
F3TSASCIIAPI.update_run_data(self, run: pytest_f3ts.schemas.run.RunUpdate)
Update run data with run specific information
Add information such as log filename, serial number, etc.
F3TSASCIIAPI.upload_logfile(self, attachment: pytest_f3ts.schemas.attachment.AttachmentCreate)
Upload logfile.
class F3TSBackendAPI
F3TS Backend Webservice API.
API Client for communicating with the FixturFab Test Runner Backend. This class is used to send test results and other information to the Backend.
TODO: Implement API Key Authentication
F3TSBackendAPI.get_config(self, slot_id=None)
Return a configuration object.
F3TSBackendAPI.get_operator_id(self)
Get operator id from run information stored in database
F3TSBackendAPI.save_logfile(self, attachment: pytest_f3ts.schemas.attachment.AttachmentCreate)
Save logfile from local shared directory.
F3TSBackendAPI.send_banner_update(self, banner: pytest_f3ts.schemas.msg.StatusBanner)
Send set banner message to the Backend.
F3TSBackendAPI.send_serial_number(self, serial_number)
Send serial number to the Backend.
F3TSBackendAPI.send_test_result(self, result: pytest_f3ts.schemas.result.ResultCreate)
Send a pytest test case result to the Backend.
F3TSBackendAPI.send_user_notif(self, notif: pytest_f3ts.schemas.msg.Notif)
Send one-way user dialog message to the Backend.
F3TSBackendAPI.send_websocket_msg(self, message: pytest_f3ts.schemas.msg.SocketMsg)
Send a pytest test case result to the Backend.
F3TSBackendAPI.update_run_data(self, run: pytest_f3ts.schemas.run.RunUpdate)
Update run data with run specific information
Add information such as log filename, serial number, etc.
F3TSBackendAPI.upload_logfile(self, attachment: pytest_f3ts.schemas.attachment.AttachmentCreate)
Upload logfile over request.