lion7 / jmeter-dsl

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

JMeter DSL

Example usage

import com.github.lion7.jmeter.dsl.JMeterDsl.Companion.jMeter
import org.junit.jupiter.api.Test
import java.net.URI

internal class JMeterDslTest {

    @Test
    fun simpleTestPlan() {
        val testPlan = jMeter {
            testPlan {
                threadGroup {
                    mainController {
                        httpSampler("GET", URI("https://www.google.nl/"))
                    }

                    htmlReport {
                        filename = "jmeter-results.csv"
                        outputDirectory = "jmeter-report/"
                    }
                }
            }
        }
        testPlan.run()
    }
}

About


Languages

Language:JavaScript 51.7%Language:Kotlin 25.3%Language:CSS 14.0%Language:Less 9.0%