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

com.saucelabs.visual.TestMetaInfo Maven / Gradle / Ivy

There is a newer version: 0.11.1
Show newest version
package com.saucelabs.visual;

import java.util.Optional;

public class TestMetaInfo {

  /**
   * Set this thread local object to pass the TestMetaInfo from your testing framework to the
   * VisualApi
   */
  public static final ThreadLocal> THREAD_LOCAL =
      ThreadLocal.withInitial(() -> Optional.empty());

  private final String testSuite;
  private final String testName;

  public TestMetaInfo(String testSuite, String testName) {
    this.testSuite = testSuite;
    this.testName = testName;
  }

  public String getTestSuite() {
    return testSuite;
  }

  public String getTestName() {
    return testName;
  }

  @Override
  public String toString() {
    return "TestMetaInfo{"
        + "testSuite='"
        + testSuite
        + '\''
        + ", testName='"
        + testName
        + '\''
        + '}';
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy