Is Cucumber automation killing your project?

Is Cucumber automation killing your project?

In a recent webinar, Nikolay Advolodkin, the software testing enthusiast, pointed out how using Cucumber without following the BDD process is unworthy. It may actually complicate what is basically hard.

1/ Automation is indeed pretty hard

Aucun texte alternatif pour cette image


At the beginning, he mentioned that testing automation is mainly a hard task because:

  • there is too much to learn (Selenium, Appium...)
  • we need to know how to apply the automation pyramid (Unit, API and E2E testing)
  • we need to learn how to use automation tools (Cucumber, Saucelabs, Mocha)

2/ So keep it simple Stupid (KISS)

By making wise decisions concerning:

  • making a UI test for a feature rather than a unit test (==> thousands of times slower and drastically inefficient due to maintenance cost)
  • the decision to recreate our page object model versus using an existent proven one
  • or picking a tool that has excellent reporting for the reporting mechanisms versus picking the right tool for the job

3/ But, what if we ask some questions regarding the use of Cucumber

  • Who writes the business specs along with the developer and the BA before starting development (32% Yes VS 68% No)
  • Who uses Cucumber? (54% Yes VS 46% No)
  • Conclusion: Cucumber is widely used even when not following BDD (Behavior Driven Development)
Aucun texte alternatif pour cette image

4/ Now, trying to compare writing code for a login test with Selenium then with Cucumber, he realized:

  • Test written with Selenium is readable and easy for anyone to understand
  • Running it against a collection of different browsers, browser versions, operating systems and platform is easy

Recreating the same test with Cucumber led to a big file with tons of dependencies. Nikolay spent more than 3h without figuring out how to add parallel test execution using Cucumber.

5/ So here are challenges to overcome with Cucumber

  • How to write correct gherkin (manual+automated) with more than 100 rules?
  • How to use Regex (manual+automated)?
  • How to manage step definition? "A user creates ans account" VS "A user makes an account" or "A user opens an account"
  • How to do cross platform parallelization?

Whereas, the only valid challenges should be limited to:

  • How to create proper page objects?
  • and How to use the automation framework?

6/ Conclusively, Cucumber without BDD is an Anti-pattern, as enunciated from the beginning by its creator

Aucun texte alternatif pour cette image


Benjamin Butel

Software Quality engineer | ParisTestConf organizer | ISTQB certified

5 年

I'm agreed that cucumber is more efficient in a BDD approach. But a team could practice BDD without using cucumber or even automation checking

要查看或添加评论,请登录

Rihab LOUKIL的更多文章

  • From a Customer Support Specialist to a CRM Consultant

    From a Customer Support Specialist to a CRM Consultant

    Transitioning from a customer support specialist to a CRM consultant can be a logical and rewarding career move. Here's…

  • What makes great hiring managers?

    What makes great hiring managers?

    Hiring managers are Owners, not Clients Who owns the recruitment process? Recruiters? While there is a lot of debate…

  • Job Hunt Manifesto

    Job Hunt Manifesto

    Even though I do believe every word of this title must be studied and explained, I'll make it short for pissed-off job…

  • Empowering women through career coaching

    Empowering women through career coaching

    In my day-to-day work as a career coach, I empower women, as well as men, to become better versions of themselves…

    40 条评论
  • In the speech therapist office

    In the speech therapist office

    My son, Farouk, doesn't speak. Not even a word.

    5 条评论
  • What an honorable mess to be in!

    What an honorable mess to be in!

    I prepared a small draft for James Bach, my teacher, to highlight some aspects of my research. It has been a long fight…

  • I don't operate by "knowing" ... I operate by "trusting"

    I don't operate by "knowing" ... I operate by "trusting"

    I'm a tester Recently, I've been cooperating with a colleague, Marius Francu, from the rapid software testing community…

    5 条评论
  • The "tacit"

    The "tacit"

    In the RST slack, I liked a photo posted by Adam white. Few questions came to my mind: How does this apply to software…

  • I am doing qualitative research on software testing: here how it looks like

    I am doing qualitative research on software testing: here how it looks like

    "Qualitative research addresses the question of “what?” Knowing what something is, entails a conceptualization of the…

  • "No" is what will create YOU out of you

    "No" is what will create YOU out of you

    By the age of two, a little kid starts saying "NO" ..

社区洞察

其他会员也浏览了