All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ru.tinkoff.testops.droidherd.DroidherdClientMetricCollector Maven / Gradle / Ivy

Go to download

A library that parallelizes Android Test execution to all connected devices and emulators

There is a newer version: 1.0.0
Show newest version
package ru.tinkoff.testops.droidherd;

import ru.tinkoff.testops.droidherd.api.DroidherdClientMetric;

import java.util.ArrayList;
import java.util.List;

public class DroidherdClientMetricCollector {
    public enum Key {
        TotalTestCases("total_test_cases"),
        PassedTestCases("passed_test_cases"),
        FailedTestCases("failed_test_cases"),
        ErrorTestCases("error_test_cases"),
        PendingEmulatorsDurationMs("pending_emulators_duration_ms"),
        TestsRunDurationMs("tests_run_duration_ms"),
        TotalRunDurationMs("total_run_duration_ms")
        ;
        private final String alias;

        Key(String alias) {
            this.alias = alias;
        }
    }
    private final List metrics = new ArrayList<>();

    public void add(Key key, double value) {
        metrics.add(new DroidherdClientMetric(key.alias, value));
    }

    public List getAll() {
        return metrics;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy