cucumber

Cucumber Test acting in a strange way

こ雲淡風輕ζ 提交于 2019-12-12 06:24:44
问题 First its based on Rails 3 on Action so, i will type every thing i have tried and the errors I have got so anybody can help me and if there any important file i should added to my question please tell...also maybe the title of the question not good enough but i don't know what title should i give to cucumber questions. In the book the author was trying to hide edit and delete links so non-signed user and signed in user won't be able to see it except they are admins. for authentication he is

Protractor not installed now with npm

三世轮回 提交于 2019-12-12 05:39:17
问题 I tried to install the protractor globally with npm install -g protractor Here is the error message,I got it in every case. I installed globally the protractor before,and worked well. npm WARN errno: -4048, npm WARN code: 'EPERM', npm WARN syscall: 'lstat', npm WARN path: 'c:\\x\\y\npm\\node_modules\\protractor\\node_modules\\web driver-manager\\node_modules' } npm ERR! path c:\x\y\npm\node_modules\protractor\node_modules\.webdriver-man ager.DELETE\selenium\chromedriver_2.26.exe npm ERR! code

Cucumber cannot find StepDefinitions while running the code but manually using the option “Find Step” can find step definition

天大地大妈咪最大 提交于 2019-12-12 05:14:33
问题 In the project Structure defined like below, src/main/java -- Config (RunCukesTest.java) -- StepDefinitions src/test/resources -- features/login When I run from RunCukesTest.java using RunAs --> JUnit Test, Step Definitions cannot be found by runner When I click find Step, opens the right file. Couldn't understand where the issue is because the code was running few days back. File is downloaded from here https://drive.google.com/open?id=0B4SgyzyvwKhiVTRmRDZuNXNTSjA Runner class code package

Cucumber: Each feature passes individually, but not together

左心房为你撑大大i 提交于 2019-12-12 04:59:31
问题 I am writing a Rails 3.1 app, and I have a set of three cucumber feature files. When run individually, as with: cucumber features/quota.feature -- or -- cucumber features/quota.feature:67 # specifying the specific individual test ...each feature file runs fine. However, when all run together, as with: cucumber ...one of the tests fails. It's odd because only one test fails; all the other tests in the feature pass (and many of them do similar things). It doesn't seem to matter where in the

Correct maven pom configuration for Cucumber Tests and maven-cucumber-reporting

不羁的心 提交于 2019-12-12 04:49:45
问题 I had this working in a previous project but cannot find it now... I am using Maven to build a java app and I am running tests on the app during the build process. I am using maven-cucumber-reporting plugin v3.0.0 to put together a report of the outcome. I want to: Run the cucumber tests Generate a report (whether or not the cucumber tests fail) Fail a build after generating reports if failed How can I setup my pom with a combo of maven-surefire-plugin , maven-cucumber-reporting plugin, and

Capybara email resets the session

孤人 提交于 2019-12-12 04:47:30
问题 I need to test a specific flow of smart redirection after signing up in Capybara. Suppose I have several interesting_pages in my website, I want to redirect the user to the last visited interesting page after confirmation of registration Small scenario : When I visit the interesting page "42" And I visit a couple uninteresting pages # Note during the visit to other pages, session[:interesting_page] is correctly set to the url of page "42" When I sign up and I confirm via the link in the email

Usage: java cucumber.api.cli.Main [options] [ [FILE|DIR][:LINE[:LINE]*] ]+

本小妞迷上赌 提交于 2019-12-12 04:34:29
问题 I am getting this error while running my feature file Usage: java cucumber [options] [ [FILE|DIR][:LINE[:LINE]*] ]+ Options: -g, --glue PATH Where glue code (step definitions and hooks) is loaded from. -f, --format FORMAT[:PATH_OR_URL] How to format results. Goes to STDOUT unless PATH_OR_URL is specified. Built-in FORMAT types: junit, html, pretty, progress, json. FORMAT can also be a fully qualified class name. -t, --tags TAG_EXPRESSION Only run scenarios tagged with tags matching TAG

Serentiy Report with protracor and cucumber

寵の児 提交于 2019-12-12 04:34:09
问题 I have protractor cucumber example works fine, now I'm trying to create report by serenity.js protractor.conf.js file exports.config = { getPageTimeout: 600000, allScriptsTimeout: 700000, framework: 'custom', frameworkPath: require.resolve('serenity-js'), capabilities: { 'browserName': 'chrome' }, specs: [ '/home/git/adap_gateway/src/test/features/*.feature' ], baseURL: 'http://localhost:8099/', cucumberOpts: { require: '/home/git/adap_gateway/src/test/javascript/stepDefinitions.js', format:

Cucumber test scenarios running in parallel?

梦想与她 提交于 2019-12-12 04:29:39
问题 I've couple test features in my project and so far i'm running them in parallel using runner classes with thread count.. but the problem here is optimising execution time because on of these threads taking longer time to finish test scenarios Is there any better approach to execute test scenarios in parallel?? Any help.. much appreciated!! 回答1: Take a look at Courgette-JVM It has added capabilities to run cucumber tests in parallel on a feature level or on a scenario level. It also provides

Protractor + cucumber - if assertion fails test execution stops abruptly

蓝咒 提交于 2019-12-12 04:20:05
问题 Cucumber Test Scenario @login Scenario: Test signin link Given the user goes to "example.com" When the user clicks on login button Then the current page is the login page Hi, Whenever chai/'Chai as promise' assertion fails my test execution stops abruptly, instead of making the corresponding cucumber step fail. If a scenario has 5 cucumber DSL step and if assertion fails in 2nd step test execution I expect test result should be 1 scenario (1 failed) 5 steps (1 failed, 3 skipped, 1 passed) But