cucumber-jvm

Cucumber Scenario Outline: Passing empty string “ ” as value in Examples table

自闭症网瘾萝莉.ら 提交于 2019-11-29 03:15:37
问题 I have a cucumber scenario outline in which Examples table I would like to pass an empty string (" ") and line breaks (\n \n \n) as value. I want to edit an textfield and I am deleting the string and want to pass in the empty string or the line breaks. I want to send this value and press enter. This would look like this .sendKeys(value + "\n"). In the Example table just leaving the value blank and pass \n\n\n doesnt work. Value in textfield gets not changed. This is how the Scenario outline

Is it possible to migrate from cucumber-jvm to QAF?

倖福魔咒の 提交于 2019-11-29 02:34:10
we already have automated testcases using cucumber-gherkin feature files with WebDriver. Right now we are able to execute feature files parallel, however we are not able to execute parallel at scenario/scenario outline level. By this way we want to minimize the execution time and utilize the cloud service at maximum level. I read this post , which claims one can run gherkin as QAF scenario so it will have features like run configuration, reporting, parallel execution, step listener . Before migrating, I want to know if anybody has tried or know any limitation as our test bed is very large. Yes

Running Cucumber tests directly from executable jar

荒凉一梦 提交于 2019-11-28 21:31:54
I have a project with cucumber and maven also I am using the JUnit. I am able to run and build my project successfully from Eclipse. Now I want to run the test from command line in another system which does(should) not have eclipse or cucumber installed. I have an idea that we can create a JAR from jar we can run the tests by java cli commands. Below are the combinations I am trying to run my tests from , also I am pasting the pom.xml and RunCukesTest.java file.. pom.xml <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation=

How do I set the path to my Cucumber features using cucumber-junit?

烈酒焚心 提交于 2019-11-28 21:20:34
I try to build my first executable specifications with Java and Maven. I created a simple project with this structure: specification |-src |-test |-java |-mypackage |-MyFeatureTest.java |-resources |-MyFeature.feature In the junit test MyFeatureTest.java I have this: import org.junit.runner.RunWith; import cucumber.junit.Cucumber; @RunWith(Cucumber.class) public class HomepageTest { } Now https://github.com/cucumber/cucumber-jvm/wiki/IDE-support says that I should add the following line: @Cucumber.Options(paths={"my/super.feature:34"}) I tried to modify that to @Cucumber.Options(paths={"src

continue running cucumber steps after a failure

情到浓时终转凉″ 提交于 2019-11-28 12:53:15
Is there any way to continue executing Cucumber Steps even when one of the steps fails. In my current setup when a step fails , cucumber skips remaining steps....I wonder if there is some way to twick cucumber runner setup.. I could comment out failing steps but its not practical when you dont know which step will fail...If i could continue with remaining step i would know complete set of failing Tests in one shot....rather than going in cycle over cycle... Environment: Cucumber JVM , R , Java , Ibatis , Spring Framework, Maven joshuanapoli It is not a good idea to continue executing steps

How to run cucumber file from command line

北城余情 提交于 2019-11-28 12:07:23
I have cucumber feature file located at below location on my local: C:\ProjectWork\Workspace\Cucumber\DIT_Cucumber\src\cucumber\featureOne.feature and Junit jar at below location: C:\DurgeshProjectWork\Workspace\JarFiles\junit-4.11.jar When I have tried several commands like below to execute the feature file from command prompt however all the time getting same error as Could not fine class Below are the commands which I used: Command 1: C:\>java -cp C:\ProjectWork\Workspace\JarFiles\junit-4.11.jar org.junit.runner.JUnitCore C:\DurgeshProjectWork\Workspace\Cucumbe r\DIT_Cucumber\bin\cucumber

Get @CucumberOptions tag property using System.getProperty()

萝らか妹 提交于 2019-11-28 10:54:38
I am running a maven project in Eclipse for my Cucumber tests. My test runner class looks like this: @RunWith(Cucumber.class) @CucumberOptions( tags = { "@Now" }, // tags = { "@Ready" }, // tags = { "@Draft" }, features = { "src/test/java/com/myCompany/FaultReporting/Features" }, glue = { "com.myCompany.myApp.StepDefinitions" } ) public class RunnerTest { } Instead of having to hard code the tags into the test runner, I am keen to pass them in using the .command file. (i.e. using System.getProperty("cucumber.tag") However, I get an error when I add the line of code to the above test runner:

Rerunning failed cucumber tests using cucumber-jvm

你离开我真会死。 提交于 2019-11-28 05:34:13
I have a Cucumber-JVM, JUnit, Selenium setup. I initiate the run by running RunSmokeTests.java using JUnit within Eclipse. I have also set up a maven profile to run the tests from command line, and possibly Jenkins in the future. When the tests are run then some of them may fail sometimes, mainly due to the application taking longer than expected. I would then have to re-run these scenarios. At the moment I run them by manually attaching @rerun tag to the ones that failed and then running RunReruns.java , which is similar to RunSmokeTest.java but with @rerun tag. With the increasing number of

Cucumber Exception: java.lang.ClassNotFoundException: cucumber.io.ResourceLoader

我的梦境 提交于 2019-11-28 05:08:13
问题 I am facing an error whenever I run the cucumber test by Junit. Here is the following Exception. Any help will be awesome NOTE: THERE IS NO ERROR IN THE PROJECT java.lang.NoClassDefFoundError: cucumber/io/ResourceLoader at java.lang.Class.getDeclaredConstructors0(Native Method) at java.lang.Class.privateGetDeclaredConstructors(Class.java:2398) at java.lang.Class.getConstructor0(Class.java:2708) at java.lang.Class.getConstructor(Class.java:1659) at cucumber.runtime.Reflections.hasConstructor

Cucumber-JVM 3 - io.cucumber.datatable.UndefinedDataTableTypeException

社会主义新天地 提交于 2019-11-28 04:52:02
问题 I updated from Cucumber-JVM 2.4.0 to 3.0.2 in my pom.xml and DataTables started throwing this exception: io.cucumber.datatable.UndefinedDataTableTypeException: Can't convert DataTable to List< jcucumberng.steps.pojos.Income >. Please register a DataTableType with a TableEntryTransformer or TableRowTransformer for class jcucumberng.steps.pojos.Income I changed all my imports to import io.cucumber.datatable.DataTable; I did an mvn clean install and compilation was successful but steps involving