Skip to content

Latest commit

 

History

History
77 lines (58 loc) · 1.55 KB

slides.md

File metadata and controls

77 lines (58 loc) · 1.55 KB
theme background class layout lineNumbers monaco
seriph
text-center
cover
true
dev

76 - Getting Started with JMeter DSL

naveenkumar ~ qainsights.com


🤔 Domain Specific Language

  • A domain-specific language (DSL) is a computer language specialized in a particular application domain.
  • HTML, Regular Expressions, and more

📦 JMeter DSL

  • open source initiative from Abstracta
  • JMeter-as-Code
@Test
public void testHelloWorld() throws IOException {
    TestPlanStats helloWorld = testPlan(
            threadGroup(1,1,
                    httpSampler("https://example.com")
                            .children(
                                    responseAssertion().containsSubstrings("Example Domain")
                            )
            ),
            jtlWriter("HelloWorld" + Instant.now().toString().replace(":","-") + ".jtl")
    ).run();
}

🤔 But why?

  • JMeter used to be a developer's tool
  • After several enhancements and features, it became a tool for test engineers as well

👍 What problem is JMeter DSL solving?

  • making JMeter more Git friendly, developer friendly, and more productive
  • CI/CD friendly
  • extends JMeter's capabilities further

✅ Features

  • Advanced Thread Group configuration
  • Debugging
  • Reporting
  • Extractions
  • Logical Controllers
  • Converters e.g. DSL to JMX
  • Visualization

layout: center class: text-center

Demo ⌛