We have a host on which appium is running and has multiple executions. In every execution, we generate an executionId , however it is difficult to map the execution with the appium logs. Is it possible to pass the executionId to the appium capabilities so that we can map which appium logs are for which executionId? Or is there any other way to get the specific appium logs for an execution?
Each log line contains a prefix with first 8 chars of the actual session identifier enclosed in square brackets. Only log lines that were added before a session gets its id don’t have it.
In case you also need to gather all log lines from the session creation request then you may utilize the x-idempotency-key
request header to create session API. The value of it gest added do logs as well, but only in case json logging mode is enabled (--log-format=json
)
How do I get the session identifier in my tests?