How to upload terminal logs on LT with Java-Cucumber?

What’s the way to upload terminal logs on LambdaTest with Java-Cucumber?

Hello Charity,

Any test/terminal report generated by the testing framework in JSON, XML, txt, or other common format can be uploaded. The uploaded file can then be viewed in the LOGS section of the automation dashboard page.

The file should not be larger than 2MB. You can use LambdaTest API to upload terminal logs. Here are the below steps to upload and view terminal logs -

  • Navigate to the LambdaTest API page and click Authorize button to enter your valid LambdaTest credentials to authenticate API requests.
  • Navigate to the Session section and select the terminal logs POST request.
  • Enter your session ID and choose the log file to upload (JSON, XML, .txt).