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

TestNG Questions et reponses d'entretien

Question 21. Explain the use of the 'priority' attribute in the @Test annotation.

The 'priority' attribute in the @Test annotation allows you to specify the order in which test methods should be executed. Test methods with lower priority values are executed first.

Est-ce utile ? Ajouter un commentaire Voir les commentaires
 

Question 22. What is the purpose of the @Listeners annotation in TestNG?

The @Listeners annotation in TestNG is used to specify one or more listener classes that will be notified during the test execution. This allows you to implement custom behavior at various stages of the test lifecycle.

Est-ce utile ? Ajouter un commentaire Voir les commentaires
 

Question 23. Explain the use of the 'dependsOnGroups' attribute in TestNG.

The 'dependsOnGroups' attribute in TestNG allows you to specify groups that must be executed before the current test method. It establishes a dependency relationship between groups.

Est-ce utile ? Ajouter un commentaire Voir les commentaires
 

Question 24. What is the purpose of the 'timeOut' attribute in the @Test annotation?

The 'timeOut' attribute in the @Test annotation allows you to specify the maximum time (in milliseconds) that a test method should take to complete its execution. If the time exceeds this limit, the method is marked as a failure.

Est-ce utile ? Ajouter un commentaire Voir les commentaires
 

Question 25. Explain the concept of testng-failed.xml in TestNG.

The testng-failed.xml file in TestNG is automatically generated when a test run has failures. It contains only the failed test methods and can be used to rerun only the failed tests.

Est-ce utile ? Ajouter un commentaire Voir les commentaires
 

Les plus utiles selon les utilisateurs :

Copyright © 2026, WithoutBook.