cucumber

How to get wdio running through IntelliJ run/debug configurations?

梦想与她 提交于 2019-12-11 02:56:02
问题 I can run the tests from the command line using > ./node_modules/.bin/wdio wdio.conf.js But if I try to run this from IntelliJ's run/debug configuration I get various different errors. Featurefile or directory: /path_to_my_feature_file/myfeature.feature Cucumber.js arguments: wdio.conf.js Executable path: /path_to_my_project/node_modules/.bin/wdio gives me more than one config file specified If I remove the Cucumber Arguments, it just runs indefinitely. If I stop it running I get the error

cucumber-testng 4.0 parallel execution defaults to 10 always

泄露秘密 提交于 2019-12-11 02:43:46
问题 Here is my cuke runner. I am trying to use inbuilt parallelism built in cucumber-jvm 4.0.0 by overriding dataprovider method. I see that my scenarios are invoked in parallel however the thread count defaults to 10 always. I tried executing with --threads options as state in GitHub but it doesnt work. mvn test -Dcucumber.options="--tags @test --threads 3" mvn test -Dcucumber.options="--threads 3" Tried both but still 10 threads are spawned by default. What am i missing here? I know there are

How to execute Cucumber Spring Boot Packaged Jar from command line?

自闭症网瘾萝莉.ら 提交于 2019-12-11 02:34:36
问题 I am fairly new to cucumber-jvm world. Trying to package cucumber spring boot app as Jar. app runs fine from Eclipse. But when I package as executable jar it fails with Exception : Exception in Main Thread, No backend Module found. Make sure that you have backend module on CLASSPATH. Kindly help. Thank you. 回答1: From: https://github.com/cucumber/cucumber-jvm/issues/1320 SpringBoot uses a nested jar structure that requires the use of ApplicationContext.getResources to access it transparently.

How to invoke the Cucumber runner class from a different main method

白昼怎懂夜的黑 提交于 2019-12-11 01:43:45
问题 I'm new to using Command Line Interface. So I just have a question on how to invoke the runner class of the cucumber using CLI technique. I have a Java program which contains a main method. When testers pass the argument which is test case, it will fetch the feature file. The java program invoke a custom made API which will fetch the correct feature file. Next I'll have to invoke the Cucumber runner class to execute the test case. I need to pass this particular feature file as the argument.

Having Tables in Example Table in SpecFlow

此生再无相见时 提交于 2019-12-11 01:21:17
问题 I am using SpecFlow with VisualStudio 2013 to test a particular web form which has the following layout ******************** Start: Form ****************** Name:________________ Age:_________________ Experience: Work place | Number of years | ___________ | _________________ | ___________ | _________________ | ___________ | _________________ | ___________ | _________________ | ******************** End: Form ****************** How do I write it so that I can feed from Example? Given ... When

BDD cycle - how to join backend with frontend

大城市里の小女人 提交于 2019-12-10 23:55:38
问题 I'd like to know how you connect frontend BDD (i.e. Jasmine) with backend BDD (rspec, cucumber). How these two relate and form one cohesive BDD cycle? What would be the correct steps of this cycle? 回答1: To create a cohesive BDD cycle you would use the "outside-in" development technique, and then take the approach of "faking it until you make it" i.e. using mock objects until you write concrete implementations. Lets say you have the following cucumber scenario: Given I am on the home screen

How to write step definition of Calabash Android

与世无争的帅哥 提交于 2019-12-10 23:16:48
问题 I am new to calabash android. I wrote testcases for 'Twitter' android app for learning purpose. But I feel starting trouble. Can any one help me? How do I write step definition? In the feature file I wrote: Feature: Login feature Scenario: As a valid user I can log into my app And I press "Sign In" Then I see 'Sign In' page Then I enter 'abc@domain.com' in username Then I enter 'abc.123' in password And I press 'Sign In' Then I should see my home page How can I write step definitions for the

How do I get cucumber and pickle working with mongo_mapper, machinist, and machinist_mongo?

爱⌒轻易说出口 提交于 2019-12-10 22:23:31
问题 I would like to get machinist, machinist_mongo, mongo_mapper, cucumber and pickle to play nice together. Currently I have machinist with all my blueprints configured and am using cucumber to do BDD. So far so good. My problem is I am having to write custom cucumber steps for all of my machinist blueprints. It is not really a problem per se, since it is not stopping me in my tracks, but as a .NET dev checking out rails, it feels really dirty to have to write a step for each blueprint whereas

VCR BadAlias error when used with Cucumber tag

梦想的初衷 提交于 2019-12-10 22:23:08
问题 I have to feature steps @vcr Given A @vcr Given B and its definitions: Given /^A$/ do a_method_that_makes_a_request end Given /^B$/ do a_method_that_makes_a_request end This fail with: Unknown alias: 70305756847740 (Psych::BadAlias) The number changes. But when I did this: # Feature step Given B # Step definition Given /^B$/ do VCR.use_cassette 'a_cassette' do a_method_that_makes_a_request end end It works. Can avoid this patch to use @vcr tag? This is my config: # features/support/vcr_setup

passing a name and List of object in feature file in cucumber

拈花ヽ惹草 提交于 2019-12-10 20:59:13
问题 I want to pass something like this in feature file in cucumber Feature: Testing different requests on the XLR CD API Scenario: Check if the student application can be accessed by users Scenario Outline: Create a new student & verify if the student is added When I create a new student by providing the information studentcollege <studentcollege> studentList <studentList> Then I verify that the student with <student> is created Examples: | studentcollege | studentList | | abcd | [{student_name":