Questions tagged [easyb]

easyb is a behavior driven development framework for the Java platform. By using a specification based Domain Specific Language, easyb aims to enable executable, yet readable documentation.

easyb is a behavior driven development framework for the Java platform. By using a specification based Domain Specific Language, easyb aims to enable executable, yet readable documentation.

25 questions
8
votes
1 answer

spock versus easyb

I just had brief looks at easyb and spock , both seem to be similar, however spock seems to be more technically oriented, is there any best practice regarding when to use which ? For example which should one preferred for a new grails project…
Sudarshan
  • 8,574
  • 11
  • 52
  • 74
3
votes
2 answers

Do any of the BDD frameworks for grails (spock/geb/easyb/other) support regular expression parsing of the human readable descriptions?

I am trying to do this grails thing right, and I figure I should be using tests. My only experience with tests is during the 3 or so hours my buddy taught me cucumber on rails... In cucumber you separate the "descriptions" and "definitions" and use…
Mikey
  • 4,692
  • 10
  • 45
  • 73
3
votes
1 answer

Best Java BDD framework with Data Driven-Development?

I am looking for Java Behaviour-driven development test frameworks that integrates well with Data-driven development (parametrized values). I started using easyb, but it seems not really data-driven friendly. Looking at the documentation JBehave…
sebarmeli
  • 17,949
  • 7
  • 35
  • 40
3
votes
1 answer

What is the difference between an easyb story and specification?

I've been trying out the easyb BDD framework for about a day and a half and I'm not sure I understand the difference between a story and a specification(besides the syntax). A story uses the given, when, then syntax and a scenario uses the…
mmay
  • 205
  • 1
  • 9
3
votes
2 answers

Maven easyb plugin java heap space settings?

I attempted to change my heap size for maven easyb plugin http://www.easyb.org/maven-easyb-plugin/. In my easyb test I added standard code to print the heap size using the code Runtime.getFreeMemory() and Runtime.getTotalMemory(). I tried…
vinnu
  • 31
  • 1
2
votes
2 answers

How can I clear the database (domains) between easyb scenarios in Grails Integration Testing?

I am running an Integration Test for a Grails application. I am using the easyb plugin. The problem is that the database doesn't seem to get cleared out between Scenarios. My When I run standard Grails Integration Tests, the persistence context…
vicatcu
  • 5,407
  • 7
  • 41
  • 65
2
votes
1 answer

Where to put groovy code in project with java src and groovy tests in order to use them only in groovy tests?

I have src in Java, and tests in Groovy (easyb stories). I run my groovy/easyb stories via maven plugin. Now I want to write some helpers in groovy to use them in my groovy tests. Where should I put them in my project and what should I configure in…
yashaka
  • 826
  • 1
  • 9
  • 20
2
votes
1 answer

No syntax highlighting for .story file in IntelliJ IDEA

I'm using IntelliJ 10.5.4 with easyb-X plugin and Groovy 1.8.6 on one instance of the IDE where the syntax highlighting isn't working. I initially got it working on a different system where the syntax highlighting was working. When I disable the…
Kevin
  • 83
  • 8
1
vote
2 answers

Selenium server is not starting for easyb project

[FAILURE: Could not contact Selenium Server; have you started it on 'localhost:4444' ? Read more at http://seleniumhq.org/projects/remote-control/not-started.html Connection refused] Hi.. I am working on easyB and encounters the above problem how…
ravikant
  • 67
  • 1
  • 1
  • 11
1
vote
2 answers

Getting a permgen error while running easyb\selenium

I have 6 technologies in play easyB Selenium Gradle Ant Java Jenkins We use easyB to write scenarios Those scenarios in turn invoke Selenium Finally we use Gradle to kick start all stories. And since we do not have a gradle plugin for easyB, gradle…
RN.
  • 997
  • 4
  • 14
  • 31
1
vote
1 answer

EasyB stories invoked by TestNG?

just wondering if it's possible or if anyone has tried integrating Easyb (BDD) with TestNG in a Maven project. Basically I need to call the Easyb stories from the testng.xml or having something that makes call TestNG tests and Easyb stories…
sebarmeli
  • 17,949
  • 7
  • 35
  • 40
1
vote
1 answer

Using EasyB in Grails

It's probably going to be one of the lame and novice level questions but I'm struggling with it for some time and it's still not working. I have a HomeController: package example class HomeController { def index = { [ message: "Hello,…
Matthias Hryniszak
  • 3,099
  • 3
  • 36
  • 51
1
vote
0 answers

Use Intellij Idea to debug an Easyb .story file?

I am working on a large project which I need to add additional web tests to. Our testing framework is Easyb, which I gather is somewhat old (around 2010). My IDE of choice is Jetbrains Intellij IDEA for Java development, and I've gotten the…
user1071914
  • 3,295
  • 11
  • 50
  • 76
1
vote
2 answers

Is there an implicit alternative to dependsOnMethods TestNG functionality? (running tests in dependent order)

Let us have the following TestNG tests: @Test public void Test1() { } @Test (dependsOnMethods={"Test1"}) public void Test2() { } @Test (dependsOnMethods={"Test2"}) public void Test3() { } Tests serves as functional end to end webui tests…
yashaka
  • 826
  • 1
  • 9
  • 20
1
vote
1 answer

EasyB testing multiple input/ouput values

How do I test a functionality with multiple inputs/expected outputs? Here is a really simple example: scenario "Can add two numbers", { given "Two numbers", { num1 = 2 num2 = 3 } when "I trigger add.", { result =…
matcauthon
  • 2,261
  • 1
  • 24
  • 41
1
2