Questions tagged [cucumberjs]

The Cucumber project is a Behavior Driven Development (BDD) tool originally designed to work with Ruby. However, since its inception its popularity has grown and there have been implementations of Cucumber written for different languages including Java, .Net, Flex, and JavaScript.

Cucumber understands a language named Gherkin which allows features and specs to be written in a plain text format. It is a Business Readable, Domain Specific Language that lets you describe software’s behaviour without detailing how that behaviour is implemented.

Gherkin serves two purposes — documentation and automated tests. The third is a bonus feature — when it yells in red it’s talking to you, telling you what code you should write.

Gherkin’s grammar is defined in the Treetop grammar that is part of the Cucumber codebase. The grammar exists in different flavours for many spoken languages (37 at the time of writing), so that your team can use the keywords in your own language.

848 questions
0
votes
0 answers

Yeoman cucumberjs

Hi I am learning to use cucumberjs on ember. Using yeoman for it. when I try to run cucumberjs from command prompt I get below error $ grunt cucumberjs No "cucumberjs" targets found.Warning: Task "cucumberjs" failed. Use --force to…
Rigel
  • 882
  • 1
  • 11
  • 32
0
votes
1 answer

Cucumber.js testing without relying any web browsers(Headless or real web browsers)

I was a .net based windows application developer and being a web developer now. For the last couple of years, I tried to follow principles of Specification by example in a project. On the last project I was involved, our team used WPF with…
Bruce Yang
  • 67
  • 1
  • 7
-1
votes
1 answer

When I try to run protractor test with cucumber the following error message appears "E/launcher - Process exited with error code 1"

Can somebody help me? I cannot figure out what is the problem. Package.json { "devDependencies": { "@cucumber/cucumber": "^7.0.0", "@serenity-js/core": "^2.25.7", "@serenity-js/cucumber": "^2.25.7", "@serenity-js/protractor":…
-1
votes
1 answer

Can we automate a non English site using Protractor tool

In our project, we can set the language as English or French. So i am able to automate when the site is in English language. Can we automate the Application if it is in French language? if so how can i do it? Can anyone help me?
Devleena
  • 453
  • 9
  • 25
-1
votes
1 answer

Protractor Cucumber Typescript: Undefined. Implement with the following snippet:

enter code hereI am able to run the feature file if no parameters in the scenario. With parameter I been getting this ? Given User has successfully navigated to the Manufacturing "DEV" Application Undefined. Implement with the following snippet: …
monika
  • 13
  • 2
-1
votes
1 answer

Can I test events in protractorjs/cucumberjs

cucumberjs not java I have an angular component that uses a directive to change focus when x characters are entered into the input. I would like to verify in my cucumber tests. 1) does webElement.sendKeys trigger key events? I have tried…
ed4becky
  • 1,488
  • 1
  • 17
  • 54
-1
votes
1 answer

Protractor Cucumber Configuration file throwing undefined warning for my scenarios even though those are present

my Configuration file is not able to find the spec file even though it is present in the path that i provided in the cucumberOpts..i tried all the resolutions but none of them is worked. Config File const log4js = require('log4js'); var…
Satish Rongala
  • 209
  • 6
  • 19
-1
votes
1 answer

failed reason or exception is not getting displayed when working with Protractor Cucumber

i am trying to work with protractor-cucumber framework and when i executing the script.. even though the script is fine still script is failing and it is not giving the failure reason or exception Same thing is working fine with Jasmine but when it…
-1
votes
1 answer

CucumberJs - Protractor - TypeScript - Dynamic Tags/Variables on .feature file

I'm trying to resolve the problem in which I have different environments, and in all of them, or most, I have different features enabled. What I am trying to achieve, is to automate as much as possible in the CI/CD environment with the variables…
-1
votes
1 answer

Use cucumber to interact with sub cucumber tests

We have a situation where we have several products (frontend, app, api) and each of them is tested already using cucumber. Now we would like to test all the product together re-using the test already written, so basically we want to do an action on…
fege
  • 547
  • 3
  • 7
  • 19
-1
votes
1 answer

"when" is not a function nodejs error while using cucumber

var webdriver = require('selenium-webdriver'); var browser = new webdriver.Builder().withCapabilities(webdriver.Capabilities.chrome()).build(); const {Then, When} = require('cucumber'); const assert = require('assert'); When(/^I search Google…
user7309686
  • 69
  • 1
  • 2
  • 7
-1
votes
2 answers

How to automate the email validation feature in real time

How to automate the email validation part with automated scripts. Customer configured his mail as 'test@gmail.com', he/she login to application. Once after every successful login, customer gets a mail to his 'test@gmail' inbox. We created a test…
mmar
  • 1,840
  • 6
  • 28
  • 41
-1
votes
1 answer

Can we get data in AfterAll function to afterLaunch in protractor

I am using protractor-cucumber framework(protractor 5.2.2 and cucumber 3.2.0).I am running my protractor script as distributed test execution in multiple browsers.So after each browser execution, i will get an array in AfterAll function.I need to…
Devleena
  • 453
  • 9
  • 25
-1
votes
1 answer

Chai expect - expect(browser.getTitle()) errors with - browser.getTitle is not a function

I have the following code which uses Chai, but when executed fails and console returns "TypeError: browser.getTitle is not a function." My path to Globals.js is correct because if I do something like this, it works - expect('Test…
snikt
  • 581
  • 4
  • 11
  • 27
-1
votes
1 answer

How to verify table headers exist - Protractor, CucumberJS

I need to verify if the table headers exist. Any idea on how i can make my test select the headers. I do not have ID or css selector available. Xpath does not seem to work as well.
Automation89
  • 31
  • 1
  • 8
1 2 3
56
57