Saturday 30 April 2016

Behaviour Driven Development framework - Cucumber


Cucumber

Cucumber is tool based on Behaviour Driven Development framework which is used with selenium for perform acceptance testing.


It allows automation of functional validation in easily readable and understandable format (like plain English) to Business Analysts, Developers, Testers, etc.


@Test
public void should_do_something() {
    // given
    Something something = getSomething();

    // when
    something.doSomething();
    // then
    assertSomething();

    // when
    something.doSomethingElse();
    // then
    assertSomethingElse();
}



Behavior Driven Development is extension of Test Driven Development and it is used to test the system rather than testing the particular piece of code.

1 comment:

  1. Your positivity is a reminder that there's always a silver lining, and I'm thankful for your unwavering optimism. If you're into speed challenges and want to see just how fast you can click, Click Per Second Test website is the place to go!

    ReplyDelete