Questions et réponses d'entretien les plus demandées et tests en ligne
Plateforme d'apprentissage pour la preparation aux entretiens, les tests en ligne, les tutoriels et la pratique en direct

Developpez vos competences grace a des parcours cibles, des tests blancs et un contenu pret pour l'entretien.

WithoutBook rassemble des questions d'entretien par sujet, des tests pratiques en ligne, des tutoriels et des guides de comparaison dans un espace d'apprentissage reactif.

Preparation a l'entretien

Tests blancs

Definir comme page d'accueil

Ajouter cette page aux favoris

S'abonner avec une adresse e-mail

Cucumber Questions et reponses d'entretien

Question 11. What is the purpose of the 'Outline' keyword in Cucumber?

The 'Outline' keyword is used to create a template for a scenario with placeholders for input values, and it is often used with the 'Examples' keyword.

Example:

Est-ce utile ? Ajouter un commentaire Voir les commentaires
 

Question 12. How can you run specific scenarios in Cucumber?

Specific scenarios can be run by using the tag associated with those scenarios in the Cucumber test execution command.

Example:

cucumber --tags @smoke

Est-ce utile ? Ajouter un commentaire Voir les commentaires
 

Question 13. What is the purpose of the 'DataTable' in Cucumber?

DataTable is used to represent tabular data in Gherkin syntax, providing an easy way to pass data to steps in a scenario.

Example:

Scenario: Data-driven login
    Given the user is on the login page
    When the user enters the following credentials
      | Username | Password |
      | user1    | pass123  |
    Then the user should be logged in

Est-ce utile ? Ajouter un commentaire Voir les commentaires
 

Question 14. Explain the difference between 'Background' and 'Scenario Outline' in Cucumber.

Background is used to define a set of common steps for all scenarios in a feature, while Scenario Outline is used to run the same scenario with different sets of data.

Example:

Feature: Online Shopping
  Background:
    Given a user is logged in
  Scenario Outline: Add item to cart
    When the user adds  to the cart
    Then the cart should display the 
    Examples:
      | item     |
      | Laptop   |
      | Headphones|

Est-ce utile ? Ajouter un commentaire Voir les commentaires
 

Question 15. What is the purpose of the 'DocString' in Cucumber?

DocString is used to pass a large string as an argument to a step, providing a way to include multiline data in a step definition.

Example:

Scenario: Add product description
    Given the user is on the product page
    When the user adds the following description
      """
      This is a detailed description of the product.
      It includes features and specifications.
      """
    Then the description should be saved

Est-ce utile ? Ajouter un commentaire Voir les commentaires
 

Les plus utiles selon les utilisateurs :

Copyright © 2026, WithoutBook.