Class AllureThreadContext

java.lang.Object
io.qameta.allure.internal.AllureThreadContext

public class AllureThreadContext extends Object
Storage that stores information about not finished tests and steps.
  • Constructor Details

    • AllureThreadContext

      public AllureThreadContext()
  • Method Details

    • getCurrent

      public Optional<String> getCurrent()
      Returns last (most recent) uuid.
    • getRoot

      public Optional<String> getRoot()
      Returns first (oldest) uuid.
    • start

      public void start(String uuid)
      Adds new uuid.
    • stop

      public Optional<String> stop()
      Removes latest added uuid. Ignores empty context.
      Returns:
      removed uuid.
    • clear

      public void clear()
      Removes all the data stored for current thread.