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
-1 votes
2 answers
35 views

How to run the same scenario multiple times in Selenium Cucumber?

I have not used Example/Data Table to parameterized the test data, The ask is very straight forward run the same scenario multiple times sequentially.
user avatar
0 votes
1 answer
49 views

How can i store a value as global variable from an API response and pass it to another API as parameter in Cucumber feature file using REST assured

I am designing automation scripts on Cucumber BDD framework for REST APIs using Rest assured. I have one api which generates the "Token" and then there is an another api for order create ...
user avatar
  • 339
0 votes
0 answers
6 views

Display feature name as heading on Cucumber Reports

I am using Cucumber Ruby and publish to Cucumber reports. I want the report to display the feature name rather than the file name in the heading of each file in the output. example.feature Feature: ...
user avatar
0 votes
1 answer
43 views

Measurement of APIs load and performance within a Cucumber test case possible?

Baseline: Currently, within a Java environment and Maven integration, we use Cucumber for our API testing procedures inside Junit Test. This is also well implemented and accordingly everything works. ...
user avatar
  • 1,173
-1 votes
1 answer
145 views

can we prioritize test scenario in cucumber feature file during execution?

Login.feature Scenario: log in using valid credential Scenario: log in using invalid credential How can i execute second scenario first
user avatar
0 votes
1 answer
39 views

One Tests or Multiple Separate Test Automation BDD

How the system works (UI) Registration Form > Redirect to Another Page with Products (based on the submitted in the registration form) (backend) API will check the validity > Valid or not it ...
user avatar
  • 3
-1 votes
1 answer
325 views

I am not able to ctrl + click on feature file in Cucumber step definition, definition not found error

Help Me I have installed Cucumber and Natural but my feature file is not getting highlighted after clicking ctrl + click. Also, it has highlighted with yellow color While running Test Runner, it says ...
user avatar
0 votes
0 answers
18 views

How to run a Cucumber+Selenium project that is hosted on TFS directly with Jenkins?

I have made a Cucumber based BDD - Selenium, Java, Maven, TestNG Automation framework that has it's source code hosted on Azure DevOps (formally TFS). Now, I have a corporate Jenkins server and I want ...
user avatar
1 vote
1 answer
92 views

Why do we need to initialize Page Object class again in every Step of Cucumber scenario?

User user1; Given("Add a new User profile") public void addUser(){ PageFactory.initElements(driver, User.class); user1.enterName(...); } Then("Edit a existing User profile") ...
user avatar
0 votes
0 answers
570 views

Chrome Driver Maven Error "org.openqa.selenium.SessionNotCreatedException: Could not start a new session."

I am trying to run a selenium-based java test application on Intellij using maven. The problem is that if I run the test in IntelliJ the chrome driver starts and run successfully whereas if I Exeecute ...
user avatar
0 votes
1 answer
213 views

How can we create our own Custom HTML report for Cucumber based Selenium Project?

I have a Cucumber based Selenium framework written in Java. Now, for reporting i use some common plugins/libraries like Extent report. That is fine. However, i want to create my own custom HTML report,...
user avatar
  • 11
0 votes
0 answers
46 views

I have a list with Incident numbers. I want to run a test case for each of the incident. How to pass the values from list into Cucumber feature file?

I have a list with Incident numbers. I want to run a test case for each of the incident. I get the list from an excel file during execution. How to pass the values from list into Cucumber feature file?...
user avatar
  • 1
2 votes
2 answers
3k views

The plugin specification 'com.aventstack.extentreports.cucumber.adapter.ExtentCucumberAdapter:' has a problem:

I am getting this error while trying to generate the extent report for cucumber-java and Junit. I am using cucumber version 6.9.1 and grasshopper adapter6. This is my pom.xml file. <!-- ...
user avatar
1 vote
1 answer
151 views

Cucumber - Accessing injected context in After scenario hook

I'm attempting to refactor a test automation framework I have inherited (Java, Selenide, Cucumber) from one that uses static global state for test data, to context injected test data using ...
user avatar
  • 13
0 votes
1 answer
266 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?
user avatar
2 votes
1 answer
50 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, ...
user avatar
0 votes
0 answers
130 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 ...
user avatar
2 votes
4 answers
1k views

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

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 ...
user avatar
0 votes
2 answers
77 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,...
user avatar
0 votes
2 answers
374 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 ...
user avatar
0 votes
2 answers
75 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, ...
user avatar
0 votes
1 answer
45 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 ...
user avatar
0 votes
0 answers
107 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?
user avatar
1 vote
2 answers
167 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 ...
user avatar
  • 23
0 votes
3 answers
911 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 ...
user avatar
  • 9,660
-1 votes
1 answer
123 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 ...
user avatar
1 vote
3 answers
117 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 ...
user avatar
-1 votes
1 answer
248 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....
user avatar
  • 23
1 vote
1 answer
172 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 ...
user avatar
  • 23
0 votes
1 answer
122 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 &...
user avatar
  • 23
1 vote
1 answer
82 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 ...
user avatar
  • 23
0 votes
1 answer
133 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 ...
user avatar
  • 23
0 votes
1 answer
313 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()))+...
user avatar
  • 23
1 vote
1 answer
60 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 ...
user avatar
2 votes
2 answers
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 ...
user avatar
  • 31
1 vote
2 answers
474 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 ...
user avatar
  • 57
1 vote
1 answer
288 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 ...
user avatar
  • 31
0 votes
1 answer
6k 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 ...
user avatar
  • 373
1 vote
2 answers
529 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: ...
user avatar
  • 57
0 votes
1 answer
2k 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 ...
user avatar
0 votes
2 answers
9k 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 ...
user avatar
0 votes
1 answer
149 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. ...
user avatar
  • 1,173
0 votes
1 answer
3k 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....
user avatar
0 votes
1 answer
918 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....
user avatar
0 votes
1 answer
493 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 ...
user avatar
1 vote
2 answers
59 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 ...
user avatar
2 votes
1 answer
370 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 ...
user avatar
  • 1,173
1 vote
0 answers
81 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 ...
user avatar
  • 19
0 votes
0 answers
82 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 ...
user avatar
1 vote
4 answers
1k 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 ...
user avatar

1
2 3 4 5