Articles Tagged ‘bdd’
Thursday, April 6th, 2017
There is a new testing framework out there called Karate that is build on top of the popular Cucumber framework.
Karate makes it easy to script interactions with out web-services under test and verify the results. In addition it offers us a lot of useful features like parallelization, script/feature re-use, data-tables, JsonPath and XPath support, gherkin syntax, switchable staging-configurations and many others.
In the following tutorial we’ll be writing different scenarios and features for a real-world RESTful web-service to demonstrate some of its features.
(more…)
Tags: attd, bdd, cucumber, feature, http, Java, javascript, json, junit, karate, rest, restful, scenario, soap, tdd, testing, xml
Posted in Java, Web Services, testing | 4 Comments »
Wednesday, January 7th, 2015
Having written about the basics of using Cucumber in a Java project in my last blog article, I now would like to demonstrate how to use a similar setup in a Java EE web project with Arquillian and the Cukespace library.
In the following tutorial, we’re going to write a full Java EE web application and add BDD-style tests to the project so that we’re able to test our business layer on the one hand and the user interface on the other hand using Arquillian Drone and Selenium.
(more…)
Tags: arquillian, atdd, bdd, cucumber, cukespace, drone, gherkin, Java, javaee, jsf, junit, sbe, tdd, testing
Posted in Enterprise, Java, testing | 4 Comments »
Sunday, December 28th, 2014
Whether behaviour-driven-development, specification by example or acceptance test driven development is the goal, the Cucumber framework eases our life when we need to establish a link between the non-technical, textual description for a new feature and the tests that prove that the application fulfils these requirements.
In the following short tutorial I’d like to demonstrate how to add Cucumber to a Java project and how to write feature descriptions and test-cases for each step of these descriptions. (more…)
Tags: attd, bdd, cucumber, gherkin, Java, jbehave, maven, sbe, tdd, test, testing
Posted in Java, testing | 23 Comments »
Sunday, May 4th, 2014
Sometimes in a project there is the need to run tests for your client-side code, written in JavaScript from a Maven build.
One reason might be that Maven manages a complex build life-cycle in your project and you need a close integration for your JavaScript tests, another one might be that you’re in an environment where it is complicated to install and manage additional software like an integration- or build-server.
(more…)
Tags: bdd, devop, ghostdriver, headless, javascript, js, maven, phantomjs, tdd, testing, webdriver, yasmine
Posted in Development, Javascript, Web | 7 Comments »
Sunday, January 13th, 2013
ScalaTest is an excellent framework to write concise, readable tests for your Scala or Java code with less effort.
In addition it integrates well with a variety of frameworks like JUnit, TestNG, Ant, Maven, sbt, ScalaCheck, JMock, EasyMock, Mockito, ScalaMock, Selenium, Eclipse, NetBeans, and IntelliJ.
In the following short tutorial we’re going to write some tests using ScalaTest exploring features like rich matchers, BDD syntax support or web tests using Selenium/Webdriver.
(more…)
Tags: acceptance testing, bdd, flatspec, it, matcher, scala, selenium, tdd, test, testing, unit test, webdriver
Posted in Scala, testing | 2 Comments »
Tuesday, May 31st, 2011
Behaviour Driven Development is the keyword when we’re talking about test scenarios written in an ubiquitous language, strong interaction with stakeholders, product owners or testers and well described, common understandable test scenarios.
The popular JBehave framework is our tool of choice here and allows us to decouple our test stories from the test classes, offers an integration for web tests using Selenium and finally there’s a helpful Maven plugin for JBehave, too.
After a short excursion into the principles of Behaviour Driven Development we’re going to write and implement test stories for simple acceptance tests and web tests using selenium.
(more…)
Tags: acceptance test, agile, bdd, behavior, ddd, jbehave, scenario, selenium, story, tdd, testing, tutorial, xp
Posted in Java | 19 Comments »
Sunday, March 27th, 2011
Today we’re going to take a look at the Mockito framework that not only does sound like my favourite summer cocktail but also offers nice testing, mocking/stubbing, test-spying features and mock injections.
After that we’re going to take a look on how to mock static or final classes by extending Mockito’s capabilities with PowerMock.
(more…)
Tags: bdd, easymock, hamcrest, jmock, junit, mock, mock injection, mocking, mockito, powermock, stub, stubbing, tdd, testing, unit test
Posted in Java | 2 Comments »