jbehave

What's causing this Maven/JBehave error?

本小妞迷上赌 提交于 2019-12-07 10:45:01
问题 I have a Maven project that produces a Mule Connector. It's basically a shell, so I started adding some BDD tests using JBehave. The first test I added does very little: public class FakeSteps extends Embedder { @Given("I have something") public void iHaveSomething() { System.out.println("Have something..."); } @When("I do something") public void iDoSomething() { System.out.println("Doing something..."); } @Then("we are ok") public void weAreOk() { Assert.assertTrue("FAILURE!!!!!", true);

Webdriver not finding elements in remote IE

假如想象 提交于 2019-12-07 08:34:17
问题 I'm having a strange issue with webdriver. I have a local environment and a remote environment to perform my tests; they work great in Firefox in both environment, but with Internet Explorer 8, they only work in local. Whenever I run the tests against the remote server it doesn't even find the textbox elements to make the login. I'm using a wait when finding elements, and I tried to increase the time until minutes, but nothing. I can see the element in IE browsing through the source code. I

Jbehave and expecting exceptions

試著忘記壹切 提交于 2019-12-07 07:38:47
问题 I have a "when" in JBehave which under certain circumstances should throw an exception. I cant find any documentation, however, on how to handle this. Here is my scenario: given a game with 6 existing bets and the game's max bets are 6 when a user places a bet there's no then, since I want an exception thrown when the user places the bet. Keep in mind, I don't always want the when to throw an exception. E.g. when the existing bets are less than max bets. In that case, I want to do some

Error producing to embedded kafka queue after upgrade from 0.7 to 0.8.1.1

北城余情 提交于 2019-12-06 12:06:25
I haven't been able to find anything that directly handled the problem I'm facing, so I'm posting here. I have JUnit/JBehave tests that spin up an embedded ZooKeeper server, embedded Kafka server, and kafka producers and consumers. After upgrading kafka from 0.7 to 0.8.1.1, I'm encountering the following types of errors: ERROR [kafka-request-handler-5] state.change.logger - Error on broker 1 while processing LeaderAndIsr request correlationId 7 received from controller 1 epoch 1 for partition [topicName,8] java.lang.NullPointerException: null at kafka.log.Log.<init>(Log.scala:60) ~[kafka_2.10

How to change the size of the browser window when running the FirefoxWebDriverProvider in JBehave Web

浪尽此生 提交于 2019-12-06 01:59:48
问题 We're using JBehave Web to drive our selenium test suite for a new project and really like the Etsy.com example available on JBehave, especially the Java/Spring maven archetype as this fits in with our architecture. The biggest problem so far has been documentation, which is why I'm posting here in the hopes that I can get some help from others in a similar situation. It looks like JBehave Web only provides a "FirefoxWebDriverProvider" class and no corresponding one for Chrome. Has anyone

Integration of jbehave with jenkins

北慕城南 提交于 2019-12-05 21:33:51
I have to integrate jbehave with jenkins. But I don't have idea how to do this. I saw that I have to create a task in Jenkins, but I don't know where I should wire jbehave with this task. Can somebody help me? Thanks, Sarang So I'm assuming you have JBehave integrated with Maven, correct? The simple build environment can be set up as follows: Go to Jenkins and add a new job of type "Build a maven2/3 project" Configure your project to check out your from whatever source repository you use. Configure the build phase of the project to run whatever Maven goal you need ("install" will probably work

What's causing this Maven/JBehave error?

人走茶凉 提交于 2019-12-05 14:08:15
I have a Maven project that produces a Mule Connector. It's basically a shell, so I started adding some BDD tests using JBehave. The first test I added does very little: public class FakeSteps extends Embedder { @Given("I have something") public void iHaveSomething() { System.out.println("Have something..."); } @When("I do something") public void iDoSomething() { System.out.println("Doing something..."); } @Then("we are ok") public void weAreOk() { Assert.assertTrue("FAILURE!!!!!", true); System.out.println("We are ok."); } } If I run the test in IntelliJ it passes. When I perform a "mvn clean

Jbehave and expecting exceptions

孤人 提交于 2019-12-05 13:33:19
I have a "when" in JBehave which under certain circumstances should throw an exception. I cant find any documentation, however, on how to handle this. Here is my scenario: given a game with 6 existing bets and the game's max bets are 6 when a user places a bet there's no then, since I want an exception thrown when the user places the bet. Keep in mind, I don't always want the when to throw an exception. E.g. when the existing bets are less than max bets. In that case, I want to do some ensuring in the "then". Implementation Details and "Computer-ese" Don't Belong in Scenarios My understanding

Webdriver not finding elements in remote IE

独自空忆成欢 提交于 2019-12-05 11:54:03
I'm having a strange issue with webdriver. I have a local environment and a remote environment to perform my tests; they work great in Firefox in both environment, but with Internet Explorer 8, they only work in local. Whenever I run the tests against the remote server it doesn't even find the textbox elements to make the login. I'm using a wait when finding elements, and I tried to increase the time until minutes, but nothing. I can see the element in IE browsing through the source code. I even compared the html generated from both of them and is the same. I'm using selenium through JBehave

How to change the size of the browser window when running the FirefoxWebDriverProvider in JBehave Web

白昼怎懂夜的黑 提交于 2019-12-04 06:08:36
We're using JBehave Web to drive our selenium test suite for a new project and really like the Etsy.com example available on JBehave, especially the Java/Spring maven archetype as this fits in with our architecture. The biggest problem so far has been documentation, which is why I'm posting here in the hopes that I can get some help from others in a similar situation. It looks like JBehave Web only provides a "FirefoxWebDriverProvider" class and no corresponding one for Chrome. Has anyone else run into this problem? Have you written your own ChromeDriverProvider? Also, we need to change the