#include <test_recorder.h>
Definition at line 21 of file test_recorder.h.
◆ ActionType
Enumerator |
---|
kUnknown | |
kClick | |
kType | |
kWait | |
kAssert | |
kScreenshot | |
Definition at line 23 of file test_recorder.h.
◆ TestRecorder()
yaze::test::TestRecorder::TestRecorder |
( |
TestManager * |
test_manager | ) |
|
|
explicit |
◆ Start()
absl::StatusOr< std::string > yaze::test::TestRecorder::Start |
( |
const RecordingOptions & |
options | ) |
|
◆ Stop()
◆ RecordStep()
void yaze::test::TestRecorder::RecordStep |
( |
const RecordedStep & |
step | ) |
|
◆ IsRecording()
bool yaze::test::TestRecorder::IsRecording |
( |
| ) |
const |
◆ CurrentRecordingId()
std::string yaze::test::TestRecorder::CurrentRecordingId |
( |
| ) |
const |
◆ Suspend()
◆ StartLocked()
absl::StatusOr< std::string > yaze::test::TestRecorder::StartLocked |
( |
const RecordingOptions & |
options | ) |
|
|
private |
◆ StopLocked()
Definition at line 120 of file test_recorder.cc.
References yaze::test::TestScriptStep::action, ActionTypeToString(), yaze::test::TestScriptStep::clear_first, yaze::test::TestScriptStep::click_type, yaze::test::TestScriptStep::condition, yaze::test::TestScript::created_at, yaze::test::TestScript::description, yaze::test::TestRecorder::StopRecordingSummary::duration, yaze::test::TestScript::duration, yaze::test::TestScriptStep::expect_assertion_failures, yaze::test::TestScriptStep::expect_message, yaze::test::TestScriptStep::expect_metrics, yaze::test::TestScriptStep::expect_status, yaze::test::TestScriptStep::expect_success, yaze::test::TestScriptStep::format, yaze::test::TestScript::name, yaze::test::TestRecorder::StopRecordingSummary::output_path, PopulateFinalStatusLocked(), yaze::test::TestScript::recording_id, yaze::test::TestScriptStep::region, RETURN_IF_ERROR, yaze::test::TestRecorder::StopRecordingSummary::saved, yaze::test::TestRecorder::StopRecordingSummary::step_count, yaze::test::TestScript::steps, yaze::test::TestScriptStep::target, yaze::test::TestScriptStep::text, yaze::test::TestScriptStep::timeout_ms, and yaze::test::TestScriptParser::WriteToFile().
Referenced by Stop().
◆ RecordStepLocked()
void yaze::test::TestRecorder::RecordStepLocked |
( |
const RecordedStep & |
step | ) |
|
|
private |
◆ PopulateFinalStatusLocked()
absl::Status yaze::test::TestRecorder::PopulateFinalStatusLocked |
( |
| ) |
|
|
private |
◆ GenerateRecordingId()
std::string yaze::test::TestRecorder::GenerateRecordingId |
( |
| ) |
|
|
staticprivate |
◆ ActionTypeToString()
const char * yaze::test::TestRecorder::ActionTypeToString |
( |
ActionType |
type | ) |
|
|
staticprivate |
◆ ABSL_GUARDED_BY() [1/6]
bool recording_ yaze::test::TestRecorder::ABSL_GUARDED_BY |
( |
mu_ |
| ) |
|
|
private |
◆ ABSL_GUARDED_BY() [2/6]
bool suspended_ yaze::test::TestRecorder::ABSL_GUARDED_BY |
( |
mu_ |
| ) |
|
|
private |
◆ ABSL_GUARDED_BY() [3/6]
std::string recording_id_ yaze::test::TestRecorder::ABSL_GUARDED_BY |
( |
mu_ |
| ) |
|
|
private |
◆ ABSL_GUARDED_BY() [4/6]
◆ ABSL_GUARDED_BY() [5/6]
absl::Time started_at_ yaze::test::TestRecorder::ABSL_GUARDED_BY |
( |
mu_ |
| ) |
|
|
private |
◆ ABSL_GUARDED_BY() [6/6]
std::vector< RecordedStep > steps_ yaze::test::TestRecorder::ABSL_GUARDED_BY |
( |
mu_ |
| ) |
|
|
private |
◆ mu_
absl::Mutex yaze::test::TestRecorder::mu_ |
|
mutableprivate |
◆ test_manager_
TestManager* const yaze::test::TestRecorder::test_manager_ |
|
private |
The documentation for this class was generated from the following files: