Class PerfTestConfigurationExtension

java.lang.Object
org.operaton.bpm.qa.performance.engine.junit.PerfTestConfigurationExtension
All Implemented Interfaces:
org.junit.jupiter.api.extension.BeforeAllCallback, org.junit.jupiter.api.extension.Extension, org.junit.jupiter.api.extension.TestWatcher

public class PerfTestConfigurationExtension extends Object implements org.junit.jupiter.api.extension.BeforeAllCallback, org.junit.jupiter.api.extension.TestWatcher
JUnit 5 extension allowing to load the performance test configuration from a file. This extension loads the configuration once before all tests are executed.

Usage:

 @ExtendWith(PerfTestConfigurationExtension.class)
 public class YourTest {
   // your test methods
 }
 

The configuration file should be named "perf-test-config.properties" and should be located in the classpath.

Example configuration file:

 key1=value1
 key2=value2
 
Author:
Daniel Meyer
  • Constructor Details

    • PerfTestConfigurationExtension

      public PerfTestConfigurationExtension()
  • Method Details

    • beforeAll

      public void beforeAll(org.junit.jupiter.api.extension.ExtensionContext context)
      Specified by:
      beforeAll in interface org.junit.jupiter.api.extension.BeforeAllCallback
    • getPerformanceTestConfiguration

      public PerfTestConfiguration getPerformanceTestConfiguration()