get device log file

Description

Capture the Android system log file associated with the Android logcat command, and save it as a file to the test controller.

Arguments

Valid contexts

This action may be used within the following project items: test modules and user-defined actions.

Applicable Systems/Platforms

Use of this action is supported on the following systems/platforms: Android.

Notes

Applicable Built-In Settings

The following settings are applicable to this action: remove double quotes from cells.

Example

Suppose that after launching a given AUT on the target device, you want your test to inspect something in the device’s Android system log file. In this procedure, you issue a get device log file action to write the log to the file device.log on the test controller. You then follow up by disconnecting from the device, which is necessary to allow you to access the file on the host controller. You check that the file exists, and if it does, write out its contents to a variable as a single string. You can then follow up by inspecting the variable’s string for whatever information your test requires..

Action Lines

Result

A typical device log file:


Copyright © 2024 LogiGear Corporation. All rights reserved. LogiGear is a registered trademark, and Action Based Testing and TestArchitect are trademarks of LogiGear Corporation. All other trademarks contained herein are the property of their respective owners.

LogiGear Corporation

1730 S. Amphlett Blvd. Suite 200, San Mateo, CA 94402

Tel: +1 (650) 572-1400