Skip to main content

All Questions

Filter by
Sorted by
Tagged with
0 votes
2 answers
69 views

Loose coupling for utility/helper classes

What solutions do you use to avoid tight coupling between classes when using utility classes like waithelpers, data formatting, selenium utils etc? I am using these classes having static methods, ...
Thea's user avatar
  • 29
0 votes
0 answers
27 views

Unable to run feature files parallel with JUnit 4 and "mvn test" command?

I want to run my 5 Cucumber feature files with "Mvn test" Command parallely. Now, the "mvn test" or 'mvn build" runs fine and maven builds the project, but feature file dont ...
qatester972's user avatar
0 votes
0 answers
13 views

Parallel feature files execution in Cucumber with TestNG runner? [duplicate]

How to run multiple feature files parallely in cucumber with TestNG runner? <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>...
kunaltester2304's user avatar
0 votes
0 answers
60 views

How to run multiple Feature files parallelly in Cucumber with TestNG Runner?

I am facing one issue: I need to run 5 feature files that are totally independent of each other, Each feature files logs into a different site. I want 5 different ChromeDriver Browser sessions to open ...
kunaltester2304's user avatar
0 votes
0 answers
25 views

Design of shared Acceptance Tests steps for different test frameworks and languages

We have the following setup: Multiple client applications containing UI E2E tests written in different programming languages (java, c#, swift ...). All those client applications have basically same ...
trajgon123's user avatar
0 votes
1 answer
287 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. ...
Mornon's user avatar
  • 1,117
0 votes
1 answer
56 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 ...
wizaiz's user avatar
  • 3
1 vote
1 answer
545 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") ...
arvind92's user avatar
0 votes
1 answer
1k 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,...
raj49's user avatar
  • 11
1 vote
1 answer
719 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 ...
gerdyw's user avatar
  • 13
2 votes
1 answer
129 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, ...
user50752's user avatar
2 votes
4 answers
7k 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 ...
user50414's user avatar
1 vote
2 answers
170 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,...
user49933's user avatar
0 votes
2 answers
2k 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 ...
matt038's user avatar
  • 13
-1 votes
1 answer
914 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....
sandy's user avatar
  • 23
0 votes
2 answers
629 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 &...
sandy's user avatar
  • 23
0 votes
1 answer
632 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()))+...
sandy's user avatar
  • 23
2 votes
2 answers
3k 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 ...
Hima's user avatar
  • 31
1 vote
1 answer
572 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 ...
Hima's user avatar
  • 31
0 votes
1 answer
4k 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 ...
Hemant Varhekar's user avatar
0 votes
1 answer
280 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. ...
Mornon's user avatar
  • 1,117
2 votes
1 answer
720 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 ...
Mornon's user avatar
  • 1,117
1 vote
1 answer
422 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('...
Saloni Singhal's user avatar
1 vote
1 answer
3k 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 ...
Saloni Singhal's user avatar
1 vote
2 answers
11k 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....
marker234's user avatar
1 vote
1 answer
3k 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....
PDHide's user avatar
  • 11.1k
5 votes
2 answers
14k views

Code coverage for Selenium Tests

Is there any tool available to determine the code coverage for my selenium tests? My tests are written in Java having use of selenium WebDriver with BDD-Cucumber implementation in it.
Updesh Kumar's user avatar
2 votes
1 answer
147 views

Ignoring some test steps depending on variables

I'm using Cucumber + Java + Selenium to UI test an application. I'm using the same set of tests whether my application is deployed in qualification (for tests) or in production. However, when I'm ...
BelovedFool's user avatar
2 votes
2 answers
1k views

Check that an element does not exist *after* a button is clicked

With ruby, I'm doing some cucumber tests with capybara to test a Shiny application (shiny is a R package to do web applications). But I'm a newbie with ruby and cucumber (and this is my first post ...
Stéphane Laurent's user avatar
5 votes
2 answers
773 views

Actual Steps in Step Definition or Call Test Cases in Step Definition, What's the Best Practice?

I'm currently working on a Cucumber project using Katalon Studio, and I'm not sure if... I need to directly write the test items on Step Definition file OR Should I call the test cases in Step ...
agvera's user avatar
  • 131
1 vote
1 answer
235 views

Number of actors in E2E tests

We have roughly 30 Cucumber tests and a few actors that run these tests that have been created based on our service's personas. Exemplifying this: We have a C2C ecommerce platform and an user. Users ...
XCore's user avatar
  • 111
1 vote
5 answers
873 views

Any advantage to using particular language from Cucumber? BDD enquiry?

I'm curious, I'm only just beginning a journey into the BDD and wondering if there any advantages to the languages which Cucumber (Gherkin) can translate to? I note that some languages are not ...
Joshua Harris's user avatar
1 vote
2 answers
203 views

Cucumber sentence autocomplete

I have a difficulty with writing Cucumber tests. The re-usability of the Cucumber sentences is not consistent - I would like to avoid code duplication when creating sentences and methods glued to the ...
MMMM's user avatar
  • 361
-1 votes
1 answer
852 views

Getting Null pointer exception

I am new to Cucumber and I am trying a basic cucumber test. I am getting the below error while running the test. java.lang.NullPointerException at stepDefinitions.Test_steps....
User1208's user avatar
1 vote
1 answer
2k views

Can cucumber tag a single step?

The application that I'm testing receives input from an outside sensor, but sensor data is unavailable on the test environment. Therefore, I use mock data. The problem is, mock data requires some more ...
Mate Mrše's user avatar
  • 4,119
0 votes
0 answers
4k views

Getting NullPointerException for different step definition files with cucumber and selenium

Browser utility: package com.gmsr.utility; import java.util.concurrent.TimeUnit; import org.openqa.selenium.WebDriver; import org.openqa.selenium.chrome.ChromeDriver; public class BrowserUtility { ...
jay's user avatar
  • 13
1 vote
0 answers
54 views

Is it possible to write good Code (create a good code framework) AND use Cucumber (or another Gherkin tool)?

When I look at the code Cucumber outputs, it does not seem to follow best practices (or any moderately good practices) for writing a testing framework. Question: Is there a way to use Cucumber and ...
Fractal's user avatar
  • 149
2 votes
3 answers
335 views

Behavioural Gherkin Steps requiring complex Step Definitions when Automating

I'm currently part of a team that is trying to reinforce BDD in our tests and automation. Our tests up to this point were procedural and we want to move towards behavioural steps. An example of our ...
JordiLaForge's user avatar
1 vote
1 answer
820 views

Cucumber Protractor tests is returning 0 scenarios

I was trying to run a sample test in cucumber protractor javascript tests. But it is returning 0 scenarios.Could someone please look into my code pasted below. sample_scenario.feature Feature: To ...
RRR's user avatar
  • 113
2 votes
1 answer
469 views

Selenium exception is reported twice in logs

I am using Cucumber Page Object model to execute my tests. Here is my POM file:- <dependencies> <dependency> <groupId>info.cukes</groupId> <artifactId&...
Sjain's user avatar
  • 35
1 vote
2 answers
3k views

'to.include' is not working where 'to.eventually.equal' is working

I was trying to check whether a string is present in another string. I am using the below code: expect(actualTimeZone).to.include(employee.timeZone); But it is giving the below error: ...
RRR's user avatar
  • 113
0 votes
1 answer
4k views

Selenium is not performing Click Action on the Radio Button

Issue: I am trying to perform a click on a radio Button but it is not working it just bypass the step and perform the next step doesn't even give me any error message *Intention is to click on refund ...
shreya_bhatngr's user avatar
0 votes
1 answer
4k views

How can I create a dynamic feature file in Cucumber?

I have knowledge about static feature file and it is tough to handle for test case. I want to create dynamic feature file or dynamic content for test case in feature file.
Vivek Bhatt's user avatar
0 votes
1 answer
205 views

How to enter text into a text field nested in an iFrame?

I am using Ruby with Cucumber and attempting to build up a suite of automated tests against a dynamics 2013 system. We have a cart that is a nested into an iFrame and we are attempting to enter a ...
Matthew Mills's user avatar
1 vote
1 answer
640 views

Protractor - How can I bypass the mixed content error

I am getting the below error when I was trying to approve a document in a webpage Mixed Content: The page at \'https://example.com\' was loaded over HTTPS, but requested an insecure resource \'http://...
RRR's user avatar
  • 113
0 votes
2 answers
193 views

Cucumber > Saving State up to a Step

I am using Cucumber through IntelliJ and am working on fixing a broken test. I was wondering when debugging, is there a way to save the state of the system up to a certain step in the feature file, if ...
JordiLaForge's user avatar
2 votes
1 answer
1k views

How to keep a single browser window open during multiple search for a website in the code?

I want to search for different items in a website multiple times and add the item to cart after each search and proceed to checkout after last search. Cucumber opens the new browser for every row in ...
meerokh's user avatar
  • 21
1 vote
4 answers
1k views

Katalon or Java+Junit+Cucumber to automate tests?

We are starting to automate web tests, but we don't know what is the best way to do, what is the best option to start and why? And what is the best-easy to use for automate Mobile IOS and Android?
Zen's user avatar
  • 13
1 vote
0 answers
100 views

Runners for cucumber tests

I've reached the point now where we need to get my automated checks running as part of deployment scripts to act as regression tests. I've not done this before and I'm thinking the way I currently ...
Matt's user avatar
  • 163
4 votes
6 answers
4k views

Cucumber : Is it necessary to create multiple step defination class for single feature with multiple scenarios?

I have created one feature file which has 4 scenarios. Do I need to create 4 step definitions or only 1? If 1 then is it ok to have multiple @Given, @When and @Then in one step definition?
Ankita Macwan's user avatar