Questions tagged [cucumber]

Cucumber is a tool for running automated acceptance tests written in a BDD (behaviour-driven development) style.

Filter by
Sorted by
Tagged with
0
votes
0answers
14 views

How can I copy authorization code from Yopmail

I am automating my script in Selenium webdriver with Cucumber. Now I have to verify an activation code from Yopmail. How can I go to youmail and copy the code and came back to script and paste?
1
vote
1answer
31 views

Is Cucumber Scenario equivalent to a Java Class?

@Add User Scenario: Add a new User profile in the System Given user is on the Add User profile page Then Add a new user profile in the system Then verify that user has been added successfully Now, ...
0
votes
0answers
19 views

I am not able to open Extent report that was generated at a specific timestamp when the Test ends?

I am trying to run a Cucumber Selenium project which is written in Java and use Test NG to run the Suite. Now, in the @AfterSuite Method, im trying to popup the Extent Html and pdf report both ...
-1
votes
0answers
24 views

I have a table where i need to add 8 rows and select the dropdown value in the first field and enter input values in the second and third field

I have a table where I need to add 8 rows and select the dropdown value in the first field and enter input values in the second and third field Table: The table has 3 fields First field is a dropdown ...
1
vote
3answers
61 views

How to open outlook and click on the link that is there in the mail using seleniumn

In my application I need to send a confirmation after which an mail will arrive to my Outlook which I need to open and click on the link which is sent in the mail. Can someone please let me know if ...
0
votes
1answer
41 views

how to add "\n" to the method

I have the below method: PUBLIC methodname(WebDriver driver,formEntryMap<String,String>,String Colkey) { String Xpath = This will have the xpath of the input text box inputfieldEntry(driver,...
0
votes
2answers
96 views

How can I run a login test for 100 users at the same time using Selenium, TestNG and Cucumber? [closed]

I am a newbie in Automation testing. I have a list of 100 users in a excel spreadsheet: User1: userid1/password1 User2: userid2/password2 ... and so on. I need to create a script and make all 100 ...
0
votes
0answers
69 views

How to import and configure cucumber reports into build.gradle

I am unable to import the ReportBuilder and Configuration classes from net.masterthought.cucumber within my build.gradle file; they show as follows in my build.gradle: Here is my build.gradle in full:...
0
votes
2answers
57 views

deserializing response body in java

I'm testing API with Rest Assured, I have all the necessary dependencies, all setup, the only question is, I have created all POJO classes for Request Body, I'm in the phase, where I have to verify, ...
0
votes
1answer
30 views

java.lang.NullPointerException,at ✽.Given product is set with the following fields(src/test/resources/features/wizard/wizardNewProduct.feature:

Pls, I need help, I'm getting a null pointer exception, When I send a request, I'm catching values in Cucumber through the List<Map<String, String>>. I'm testing API with Rest Assured and ...
0
votes
0answers
51 views

I am new with Ruby and Cucumber and I got this error undefined method `col_span' for class `Watir::TableCell' (NameError) what should I do?

I am new with Ruby and Cucumber and I got this error: undefined method 'col_span' for class 'Watir::TableCell' (NameError) What should I do?
1
vote
1answer
70 views

What is the difference between BDD automation framework and Keyword driven automation framework?

I am using the Cucumber BDD framework for test automation. I have read articles on keyword-driven which state that keywords such as sign_in are exposed to nonprogrammers and the implementation is ...
0
votes
3answers
298 views

How do I deal with duplicated testing steps in Cypress?

Writing test cases using Cypress and Cucumber. I have a few test cases written in Cucumber Syntax like following: @focus Scenario: All Accessibility tabs (Color scheme, Font size, Zoom) are visible ...
-1
votes
1answer
66 views

I am trying to implement Extent Report in Cucumber project with Cucumber Event Publisher class but getting exception

I am trying to create Extent Report in cucumber project with EventPublisher class. Basically took help from How to implement Extent report in Cucumber using EventListener and Where to find ...
1
vote
3answers
91 views

Tests that cannot be automatable in BDD model but can be automatable in TDD model

I have been to a interview. The interviewer said they were using BDD model in their project. He asked me this question. Define some Tests that cannot be automatable in BDD model but can be ...
-1
votes
1answer
63 views

Still Getting Element is not currently visible and so may not be interacted with Can some one pls give your inputs

I am getting the above error : Below is the xpath : String MeetingTypedropdown = "//*[@id='meetingDatesForm:meetingDatesTable_data']/tr["+(i+1)+"]/td[3]//div[3]/span"; PageUtil....
1
vote
1answer
33 views

Checkbox gets unchecked even though the Code is written to only select the checkbox..can someone pls help

Scenario: On the Screen once I navigate I have to click on the checkbox the first time only... Next time when I run the script the checkbox should not be unchecked.... but Issue: First Time if the ...
0
votes
1answer
32 views

In the screen how to navigate to the row which contains the text that needs to be Edited and then click on Edit button.Can some one pls guide.NeedHelp

In the screen how to navigate to the row which contains the text that needs to be Edited and then click on Edit button. Scenario: I have a screen where I need to find the row which has the value as &...
1
vote
1answer
45 views

Not able to click Search button and also select the option from the drop down Getting .ElementNotVisibleException

Not able to click Search button and also select the option from the drop down Getting: org.openqa.selenium.ElementNotVisibleException: Element is not currently visible and so may not be interacted ...
0
votes
1answer
55 views

How to check in the page if the name exists and then increment a unique name

I have a scenario where I need to add new username everytime is run the script. For instance, if the last time I had added a name as test1, then next time when I add another name I should not add ...
0
votes
1answer
94 views

Getting java.lang.NumberFormatException: For input string: "517838839328"

PageUtil.clickOnButton(driver, AppXPathsConstants.UserAdminAddNewuser); String id ="1517838839328"; String newid = "1517838839328" + (Integer.parseInt(id.substring(1,id.length()))+...
1
vote
1answer
42 views

Supported Automation Framework for an Outsystems developed application

In my company development team has started using tool called "Outsystems " which has less code and less managing issue while developing . So I wanted to know from QA side if anyone's company ...
2
votes
2answers
2k views

java.lang.UnsupportedClassVersionError -CucumberJvm4SMFormatter -Java runtime Version error

My testing framework is built with Cucumber, TestNG, Java 1.8 and Maven I recently updated my IntelliJ IDE Details: IDE : IntelliJ IDEA Ultimate 2020.3 - Runtime version : 11.0.9 Cucumber is ...
0
votes
0answers
9 views

In Eclipse only, Cucumber feature steps are not getting recognized with step definitions [duplicate]

This is my runner class: @RunWith(CucumberWithSerenity.class) @CucumberOptions(features = "src/test/resources/features/" ,glue={"stepdefs"} ,dryRun=false ,monochrome=...
1
vote
2answers
273 views

Which runner to use with Specflow Cucumber BDD: Specflow Runner, Nunit, Xunit

I have a Specflow Selenium BDD automation solution in C# using Visual Studio and want to start scheduling some automation runs based on tags and possibly features. I've only used Nunit as a test ...
1
vote
1answer
149 views

Automated testing of Google Pub/Sub

I'm new to test automation and Google Pub/Sub. I'm developing automation scripts for regression testing. My automation framework is built with Java, Maven, Cucumber and TestNG My application is a ...
0
votes
1answer
2k views

Why is my Feature File failing to find the Step Definition?

I have the following Feature File which is grayed out so I cannot run it from an IntelliJ Run configuration, nor from the right click context in the Feature File, though it runs fine from the Run.java ...
1
vote
2answers
313 views

Specflow Cucumber BDD - Only log in once on test run not on every scenario

We have a Cucumber BDD test project using C# Specflow. The application is browser based tested using Selenium WebDriver automation framework. There are a number of feature files with scenarios: ...
0
votes
1answer
582 views

Cucumber- Selenium Getting null pointer exception while openBrowser method

I am getting null pointer exception when selenium tries to launch the browser. I have already checked step Definition. Selenium OpenBrowser Method. Chrome browser version. ( I have driver 87.04 ...
0
votes
2answers
4k views

How to fix cucumber step does not have matching glue code?

The cucumber feature file has all steps highlighted in yellow and warning is shown as step does not have matching glue code, When I try to run the project as maven test, I am getting null pointer ...
0
votes
1answer
91 views

Cucumber + Junit + Extend Test Steps (use IDs in next step)

Details: We currently use Mockito/ Wiremock (in different teams), Junit and Cucumber in our test procedure. And test cases are functional, but we want to extend them with regard to post procedures. ...
0
votes
1answer
2k views

how to read the following data from excel using cucumber-java

Heading How to get the username and password from excel using cucumber package com.qa.excel; import java.io.File; import java.io.FileInputStream; import java.io.IOException; import org.apache.poi.ss....
0
votes
1answer
539 views

I'm using ExtentSparkReporter for generating extent reports in cucumber with testng ...how to add screenshot for failure scenarios

package cucumberhooks; import java.util.HashMap; import java.util.Map; import com.aventstack.extentreports.ExtentReports; import com.aventstack.extentreports.ExtentTest; import com.aventstack....
-1
votes
1answer
262 views

Cucumber with junit to automate java swing app

I need to automate java swing desktop application and want to run functional scenarios including click on buttons, opening of drop down lists etc using cucumber. Is there any junit package/class that ...
1
vote
2answers
44 views

Graphical front-end for jmeter

I use jmeter to test REST web services. For some customers, I'd like a graphical interface to show the flow of a script. I imagine tiles for each web service call and lines connecting those tiles to ...
2
votes
1answer
232 views

Hardening of test cases in test automation

Details: In a discussion about maintainability of automatic test cases in the area Cucumber + Junit / Unitest the topic "hardening of test cases" came up. You know this topic from your ...
1
vote
0answers
44 views

Is each Scenario in Cucumber BDD framework considered a separate .Java Class by JVM?

When I write Cucumber scenario's like:- User.java Feature File Scenario: Add a new user profile Given User is on the Add user profile page When user enters profile information and clicks ...
0
votes
0answers
50 views

How to execute test cases after ide crashed

Kindly suggest if I have 100 test cases after executing 40 Test Cases my IDE was crashed. So, on the next time when I am restarting my Test Cases again the execution should be start from 41 to 100. I ...
1
vote
4answers
678 views

How to initialise the PageObject Class using PageFactory only ONCE in a Step Definition Class in a Selenium Webdriver + Cucumber project?

I am making a Regression suite Automation project using Selenium Webdriver, Java, Cucumber, Maven etc. Now, the problem is that I have multiple Page Object classes that I initialise again and again ...
0
votes
1answer
60 views

Is it considered an anti-pattern for me to group Cypress test steps this way?

Writing end2end tests with Cypress and cucumber, on a high level the test cases are as following: Feature: Users can change color scheme @focus Scenario: The user changes color scheme from Black ...
0
votes
1answer
679 views

How to get WebDriver Instance(Object) from Hooks(@Before) for parallel executions of scenarios

I want to get WebDriver Instance(Object) from the Hooks Class in @Before Annotation setup() method. And I want to do it in such a way that I am able to run my scenarios in parallel. I know what are ...
0
votes
1answer
293 views

Can Robot Framework framework iterate over example data?

The BDD sample below is written using Katalon Studio Scenario Outline: Verify Price of <plan> Plan Given <accountType> account is currently logged in When User navigates to Publish ...
0
votes
2answers
78 views

In Gherkin files, should I repeat the steps in the previous scenario if my following scenario depends on it?

I have read about the Cardinal Rule of BDD from various places when writing Gherkin files. In many of these examples, they have the following scenarios in a feature file: Feature: Google Searching ...
1
vote
1answer
220 views

Hooks not getting executed in protractor cucumber

I new to protractor, and trying to implement hooks. But the hooks are not getting executed. Following is my code: Hook.js: const { Before } = require('cucumber'); const {AfterAll} = require('...
0
votes
1answer
73 views

Getting undefined when I define {string} parameter in the when section in the step definition in protractor cucumber

I am new to protractor with cucumber. I have to automate a flow wherein on entering first name, last name, and postcode, a new user is created. I am trying to add the data to be entered in the feature ...
0
votes
0answers
84 views

How to add the number of times a test needs to be run in webdriverio and javascript

I would like to repeat a test run multiple times. So I would like to add the count to the command we are passing to run the test. I tried adding the option to grunt file but is not working Command ...
0
votes
0answers
756 views

How can i run my Cucumber project as a Maven Test as the Build passed but it shows Tests run: 0?

I have created a Cucumber project, which has multiple feature files, Step definition classes and one TestRunner.java class. Now, that project has a Maven project structure and i want to run it as a "...
1
vote
2answers
2k views

WARNING: Passing multiple tags through @CucumberOptions is deprecated. Please use a single tag expressions?

I tried to run a Cucumber test with multiple tags. But got this error. I am using Cucumber version 5.7.0. How can i run multiple tags now? import org.junit.runner.RunWith; import io.cucumber....
3
votes
2answers
539 views

Is it good practice to skip the When clause in Gherkin/Cucumber/SpecFlow?

Is it a good practice to skip the When clause in Gherkin/Cucumber/SpecFlow? For instance: Scenario: user has to open a website Given User has access to website Then User should be able to validate ...
1
vote
1answer
1k views

How to implement Extent report in Cucumber using EventListener and Where to find documentation for this class

I was trying to implement a custom formatter using cucumber event listener but I was not able to get official documentation for this class. When I Googled i got the below link : https://www....

1
2 3 4 5