面试题与答案
Intermediate / 1 to 5 years experienced level questions & answers
Ques 1. Explain the key features of TestNG.
Key features of TestNG include annotations, grouping, parallel execution, data-driven testing, parameterization, and dependency management.
保存以便复习
保存以便复习
收藏此条目、标记为困难题,或将其加入复习集合。
Ques 2. Explain dependency testing in TestNG.
Dependency testing in TestNG allows you to specify the order of test method execution by defining dependencies between them using the 'dependsOnMethods' attribute.
保存以便复习
保存以便复习
收藏此条目、标记为困难题,或将其加入复习集合。
Ques 3. How can you achieve parallel execution of tests in TestNG?
Parallel execution in TestNG can be achieved by using the 'parallel' attribute in the suite or test tag in the testng.xml file or by using the parallel attribute in the @Test annotation.
保存以便复习
保存以便复习
收藏此条目、标记为困难题,或将其加入复习集合。
Ques 4. What is the purpose of the soft assert in TestNG?
The soft assert in TestNG allows you to collect multiple assertions during the execution of a test, even if one or more assertions fail. It doesn't stop the test execution immediately after the first assertion failure.
保存以便复习
保存以便复习
收藏此条目、标记为困难题,或将其加入复习集合。
Ques 5. Explain the use of groups in TestNG.
Groups in TestNG allow you to categorize test methods. You can then include or exclude specific groups while running tests, providing flexibility in test execution.
保存以便复习
保存以便复习
收藏此条目、标记为困难题,或将其加入复习集合。
Ques 6. Explain the concept of listeners in TestNG.
Listeners in TestNG allow you to customize and control the test execution process. Examples include TestListener, ITestListener, IAnnotationTransformer, and IInvokedMethodListener.
保存以便复习
保存以便复习
收藏此条目、标记为困难题,或将其加入复习集合。
Ques 7. How can you perform data-driven testing in TestNG?
Data-driven testing in TestNG can be achieved by using the @DataProvider annotation or the dataProvider attribute in the @Test annotation, allowing you to supply different sets of data to the test method.
保存以便复习
保存以便复习
收藏此条目、标记为困难题,或将其加入复习集合。
Ques 8. How can you perform cross-browser testing in TestNG?
Cross-browser testing in TestNG can be achieved by parameterizing the browser type and using the @Parameters annotation or the dataProvider attribute to supply different browsers to the test method.
保存以便复习
保存以便复习
收藏此条目、标记为困难题,或将其加入复习集合。
Ques 9. 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.
保存以便复习
保存以便复习
收藏此条目、标记为困难题,或将其加入复习集合。
Ques 10. 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.
保存以便复习
保存以便复习
收藏此条目、标记为困难题,或将其加入复习集合。
Ques 11. 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.
保存以便复习
保存以便复习
收藏此条目、标记为困难题,或将其加入复习集合。
Ques 12. How can you group tests using regular expressions in TestNG?
Tests can be grouped using regular expressions in TestNG by specifying the 'groups' attribute in the testng.xml file with a regular expression pattern that matches the desired test groups.
保存以便复习
保存以便复习
收藏此条目、标记为困难题,或将其加入复习集合。
Ques 13. What is the purpose of the 'preserveOrder' attribute in the @Test annotation?
The 'preserveOrder' attribute in the @Test annotation, when set to 'true', ensures that the order of test methods is preserved as defined in the testng.xml file, even when parallel execution is enabled.
保存以便复习
保存以便复习
收藏此条目、标记为困难题,或将其加入复习集合。
Ques 14. Explain the concept of parameterization in TestNG.
Parameterization in TestNG allows you to run the same test method with different sets of data. This can be achieved using the @Parameters annotation or data providers.
保存以便复习
保存以便复习
收藏此条目、标记为困难题,或将其加入复习集合。
Ques 15. Explain the use of the 'parallel' attribute in the tag in testng.xml.
The 'parallel' attribute in the
保存以便复习
保存以便复习
收藏此条目、标记为困难题,或将其加入复习集合。
Ques 16. Explain the use of the 'alwaysRun' attribute in the @DataProvider annotation.
The 'alwaysRun' attribute in the @DataProvider annotation ensures that the data provider method always runs, even if no test method depends on it. It helps in providing data dynamically.
保存以便复习
保存以便复习
收藏此条目、标记为困难题,或将其加入复习集合。
Ques 17. How can you skip a test method conditionally in TestNG?
Conditional skipping of a test method in TestNG can be achieved by using the 'enabled' attribute in the @Test annotation along with a condition that evaluates to true or false.
保存以便复习
保存以便复习
收藏此条目、标记为困难题,或将其加入复习集合。
Ques 18. Explain the purpose of the 'threadPoolSize' attribute in the @Test annotation.
The 'threadPoolSize' attribute in the @Test annotation specifies the number of threads in the thread pool for parallel execution. It determines how many parallel instances of the test method should run.
保存以便复习
保存以便复习
收藏此条目、标记为困难题,或将其加入复习集合。
Most helpful rated by users:
Related interview subjects
| ETL Testing 面试题与答案 - Total 20 questions |
| QTP 面试题与答案 - Total 44 questions |
| Cucumber 面试题与答案 - Total 30 questions |
| Postman 面试题与答案 - Total 30 questions |
| TestNG 面试题与答案 - Total 38 questions |
| SDET 面试题与答案 - Total 30 questions |
| Selenium 面试题与答案 - Total 40 questions |
| Kali Linux 面试题与答案 - Total 29 questions |
| Mobile Testing 面试题与答案 - Total 30 questions |
| UiPath 面试题与答案 - Total 38 questions |
| Quality Assurance 面试题与答案 - Total 56 questions |
| API Testing 面试题与答案 - Total 30 questions |
| Appium 面试题与答案 - Total 30 questions |
All interview subjects
| ASP 面试题与答案 - Total 82 questions |
| C# 面试题与答案 - Total 41 questions |
| LINQ 面试题与答案 - Total 20 questions |
| ASP .NET 面试题与答案 - Total 31 questions |
| Microsoft .NET 面试题与答案 - Total 60 questions |
| Hugging Face 面试题与答案 - Total 30 questions |
| TensorFlow 面试题与答案 - Total 30 questions |
| Gemini AI 面试题与答案 - Total 50 questions |
| Oracle AI Agents 面试题与答案 - Total 50 questions |
| Artificial Intelligence (AI) 面试题与答案 - Total 47 questions |
| Machine Learning 面试题与答案 - Total 30 questions |
| Google Cloud AI 面试题与答案 - Total 30 questions |
| IBM Watson 面试题与答案 - Total 30 questions |
| Perplexity AI 面试题与答案 - Total 40 questions |
| ChatGPT 面试题与答案 - Total 20 questions |
| NLP 面试题与答案 - Total 30 questions |
| AI Agents (Agentic AI) 面试题与答案 - Total 50 questions |
| OpenCV 面试题与答案 - Total 36 questions |
| Amazon SageMaker 面试题与答案 - Total 30 questions |
| C++ 面试题与答案 - Total 142 questions |
| VBA 面试题与答案 - Total 30 questions |
| COBOL 面试题与答案 - Total 50 questions |
| R Language 面试题与答案 - Total 30 questions |
| Python Coding 面试题与答案 - Total 20 questions |
| Scala 面试题与答案 - Total 48 questions |
| Swift 面试题与答案 - Total 49 questions |
| Golang 面试题与答案 - Total 30 questions |
| Embedded C 面试题与答案 - Total 30 questions |
| CCNA 面试题与答案 - Total 40 questions |
| ServiceNow 面试题与答案 - Total 30 questions |
| Snowflake 面试题与答案 - Total 30 questions |
| Oracle APEX 面试题与答案 - Total 23 questions |
| Oracle Cloud Infrastructure (OCI) 面试题与答案 - Total 100 questions |
| AWS 面试题与答案 - Total 87 questions |
| Microsoft Azure 面试题与答案 - Total 35 questions |
| Azure Data Factory 面试题与答案 - Total 30 questions |
| OpenStack 面试题与答案 - Total 30 questions |
| DPDP 面试题与答案 - Total 30 questions |
| PIPEDA 面试题与答案 - Total 20 questions |
| GDPR 面试题与答案 - Total 30 questions |
| CCPA 面试题与答案 - Total 20 questions |
| HITRUST 面试题与答案 - Total 20 questions |
| LGPD 面试题与答案 - Total 20 questions |
| PDPA 面试题与答案 - Total 20 questions |
| OSHA 面试题与答案 - Total 20 questions |
| HIPPA 面试题与答案 - Total 20 questions |
| PHIPA 面试题与答案 - Total 20 questions |
| FERPA 面试题与答案 - Total 20 questions |
| Operating System 面试题与答案 - Total 22 questions |
| MS Word 面试题与答案 - Total 50 questions |
| Tips and Tricks 面试题与答案 - Total 30 questions |
| PoowerPoint 面试题与答案 - Total 50 questions |
| Data Structures 面试题与答案 - Total 49 questions |
| Computer Networking 面试题与答案 - Total 65 questions |
| Microsoft Excel 面试题与答案 - Total 37 questions |
| Computer Basics 面试题与答案 - Total 62 questions |
| Computer Science 面试题与答案 - Total 50 questions |
| Python 面试题与答案 - Total 106 questions |
| Python Pandas 面试题与答案 - Total 48 questions |
| Python Matplotlib 面试题与答案 - Total 30 questions |
| Django 面试题与答案 - Total 50 questions |
| Pandas 面试题与答案 - Total 30 questions |
| Deep Learning 面试题与答案 - Total 29 questions |
| Flask 面试题与答案 - Total 40 questions |
| PySpark 面试题与答案 - Total 30 questions |
| PyTorch 面试题与答案 - Total 25 questions |
| Data Science 面试题与答案 - Total 23 questions |
| SciPy 面试题与答案 - Total 30 questions |
| Generative AI 面试题与答案 - Total 30 questions |
| NumPy 面试题与答案 - Total 30 questions |
| Elasticsearch 面试题与答案 - Total 61 questions |
| Data Mining 面试题与答案 - Total 30 questions |
| Oracle 面试题与答案 - Total 34 questions |
| MongoDB 面试题与答案 - Total 27 questions |
| AWS DynamoDB 面试题与答案 - Total 46 questions |
| Entity Framework 面试题与答案 - Total 46 questions |
| Redis Cache 面试题与答案 - Total 20 questions |
| MySQL 面试题与答案 - Total 108 questions |
| Data Modeling 面试题与答案 - Total 30 questions |
| MariaDB 面试题与答案 - Total 40 questions |
| DBMS 面试题与答案 - Total 73 questions |
| Apache Hive 面试题与答案 - Total 30 questions |
| PostgreSQL 面试题与答案 - Total 30 questions |
| SSIS 面试题与答案 - Total 30 questions |
| SQL Query 面试题与答案 - Total 70 questions |
| SQLite 面试题与答案 - Total 53 questions |
| Teradata 面试题与答案 - Total 20 questions |
| Cassandra 面试题与答案 - Total 25 questions |
| Neo4j 面试题与答案 - Total 44 questions |
| MSSQL 面试题与答案 - Total 50 questions |
| OrientDB 面试题与答案 - Total 46 questions |
| Data Warehouse 面试题与答案 - Total 20 questions |
| SQL 面试题与答案 - Total 152 questions |
| IBM DB2 面试题与答案 - Total 40 questions |
| Verilog 面试题与答案 - Total 30 questions |
| Software Engineering 面试题与答案 - Total 27 questions |
| MATLAB 面试题与答案 - Total 25 questions |
| Digital Electronics 面试题与答案 - Total 38 questions |
| VLSI 面试题与答案 - Total 30 questions |
| Civil Engineering 面试题与答案 - Total 30 questions |
| Electrical Machines 面试题与答案 - Total 29 questions |
| Data Engineer 面试题与答案 - Total 30 questions |
| Robotics 面试题与答案 - Total 28 questions |
| AutoCAD 面试题与答案 - Total 30 questions |
| Power System 面试题与答案 - Total 28 questions |
| Electrical Engineering 面试题与答案 - Total 30 questions |
| TIBCO 面试题与答案 - Total 30 questions |
| Informatica 面试题与答案 - Total 48 questions |
| Oracle CXUnity 面试题与答案 - Total 29 questions |
| Web Services 面试题与答案 - Total 10 questions |
| Salesforce Lightning 面试题与答案 - Total 30 questions |
| IBM Integration Bus 面试题与答案 - Total 30 questions |
| Power BI 面试题与答案 - Total 24 questions |
| OIC 面试题与答案 - Total 30 questions |
| Web API 面试题与答案 - Total 31 questions |
| Dell Boomi 面试题与答案 - Total 30 questions |
| IBM DataStage 面试题与答案 - Total 20 questions |
| Talend 面试题与答案 - Total 34 questions |
| Salesforce 面试题与答案 - Total 57 questions |
| Java 17 面试题与答案 - Total 20 questions |
| Servlets 面试题与答案 - Total 34 questions |
| Kotlin 面试题与答案 - Total 30 questions |
| EJB 面试题与答案 - Total 80 questions |
| Java Beans 面试题与答案 - Total 57 questions |
| Java Exception Handling 面试题与答案 - Total 30 questions |
| Spring Boot 面试题与答案 - Total 50 questions |
| Java 15 面试题与答案 - Total 16 questions |
| Core Java 面试题与答案 - Total 306 questions |
| Java Multithreading 面试题与答案 - Total 30 questions |
| Apache Wicket 面试题与答案 - Total 26 questions |
| JBoss 面试题与答案 - Total 14 questions |
| Log4j 面试题与答案 - Total 35 questions |
| Java Mail 面试题与答案 - Total 27 questions |
| Java Applet 面试题与答案 - Total 29 questions |
| Java 21 面试题与答案 - Total 21 questions |
| Google Gson 面试题与答案 - Total 8 questions |
| Struts 面试题与答案 - Total 84 questions |
| RMI 面试题与答案 - Total 31 questions |
| Java Support 面试题与答案 - Total 30 questions |
| Apache Camel 面试题与答案 - Total 20 questions |
| JAXB 面试题与答案 - Total 18 questions |
| JSP 面试题与答案 - Total 49 questions |
| Java Concurrency 面试题与答案 - Total 30 questions |
| J2EE 面试题与答案 - Total 25 questions |
| JUnit 面试题与答案 - Total 24 questions |
| Java OOPs 面试题与答案 - Total 30 questions |
| Apache Tapestry 面试题与答案 - Total 9 questions |
| Java 11 面试题与答案 - Total 24 questions |
| JDBC 面试题与答案 - Total 27 questions |
| Java Garbage Collection 面试题与答案 - Total 30 questions |
| Spring Framework 面试题与答案 - Total 53 questions |
| Java Swing 面试题与答案 - Total 27 questions |
| Java Design Patterns 面试题与答案 - Total 15 questions |
| JPA 面试题与答案 - Total 41 questions |
| Hibernate 面试题与答案 - Total 52 questions |
| JMS 面试题与答案 - Total 64 questions |
| JSF 面试题与答案 - Total 24 questions |
| Java 8 面试题与答案 - Total 30 questions |
| Tally 面试题与答案 - Total 30 questions |
| Pega 面试题与答案 - Total 30 questions |
| ITIL 面试题与答案 - Total 25 questions |
| Finance 面试题与答案 - Total 30 questions |
| SAP MM 面试题与答案 - Total 30 questions |
| JIRA 面试题与答案 - Total 30 questions |
| SAP ABAP 面试题与答案 - Total 24 questions |
| SCCM 面试题与答案 - Total 30 questions |
| Xamarin 面试题与答案 - Total 31 questions |
| iOS 面试题与答案 - Total 52 questions |
| Ionic 面试题与答案 - Total 32 questions |
| Android 面试题与答案 - Total 14 questions |
| Mobile Computing 面试题与答案 - Total 20 questions |
| Cryptography 面试题与答案 - Total 40 questions |
| RPA 面试题与答案 - Total 26 questions |
| Interview Tips 面试题与答案 - Total 30 questions |
| College Teachers 面试题与答案 - Total 30 questions |
| SDLC 面试题与答案 - Total 75 questions |
| Blue Prism 面试题与答案 - Total 20 questions |
| Memcached 面试题与答案 - Total 28 questions |
| GIT 面试题与答案 - Total 30 questions |
| Business Analyst 面试题与答案 - Total 40 questions |
| Splunk 面试题与答案 - Total 30 questions |
| DevOps 面试题与答案 - Total 45 questions |
| Accounting 面试题与答案 - Total 30 questions |
| SSB 面试题与答案 - Total 30 questions |
| Algorithm 面试题与答案 - Total 50 questions |
| OSPF 面试题与答案 - Total 30 questions |
| Sqoop 面试题与答案 - Total 30 questions |
| JSON 面试题与答案 - Total 16 questions |
| Computer Graphics 面试题与答案 - Total 25 questions |
| IoT 面试题与答案 - Total 30 questions |
| Insurance 面试题与答案 - Total 30 questions |
| Scrum Master 面试题与答案 - Total 30 questions |
| Accounts Payable 面试题与答案 - Total 30 questions |
| XML 面试题与答案 - Total 25 questions |
| GraphQL 面试题与答案 - Total 32 questions |
| Bitcoin 面试题与答案 - Total 30 questions |
| Active Directory 面试题与答案 - Total 30 questions |
| Laravel 面试题与答案 - Total 30 questions |
| Tableau 面试题与答案 - Total 20 questions |
| Adobe AEM 面试题与答案 - Total 50 questions |
| Kubernetes 面试题与答案 - Total 30 questions |
| Microservices 面试题与答案 - Total 30 questions |
| Apache Kafka 面试题与答案 - Total 38 questions |
| Fashion Designer 面试题与答案 - Total 20 questions |
| Desktop Support 面试题与答案 - Total 30 questions |
| IAS 面试题与答案 - Total 56 questions |
| PHP OOPs 面试题与答案 - Total 30 questions |
| OOPs 面试题与答案 - Total 30 questions |
| Linked List 面试题与答案 - Total 15 questions |
| Dynamic Programming 面试题与答案 - Total 30 questions |
| SharePoint 面试题与答案 - Total 28 questions |
| CICS 面试题与答案 - Total 30 questions |
| Yoga Teachers Training 面试题与答案 - Total 30 questions |
| Nursing 面试题与答案 - Total 40 questions |
| Language in C 面试题与答案 - Total 80 questions |
| Behavioral 面试题与答案 - Total 29 questions |
| School Teachers 面试题与答案 - Total 25 questions |
| Statistics 面试题与答案 - Total 30 questions |
| Digital Marketing 面试题与答案 - Total 40 questions |
| Apache Spark 面试题与答案 - Total 24 questions |
| Full-Stack Developer 面试题与答案 - Total 60 questions |
| IIS 面试题与答案 - Total 30 questions |
| System Design 面试题与答案 - Total 30 questions |
| VISA 面试题与答案 - Total 30 questions |
| SEO 面试题与答案 - Total 51 questions |
| Google Analytics 面试题与答案 - Total 30 questions |
| Cloud Computing 面试题与答案 - Total 42 questions |
| BPO 面试题与答案 - Total 48 questions |
| ANT 面试题与答案 - Total 10 questions |
| HR Questions 面试题与答案 - Total 49 questions |
| REST API 面试题与答案 - Total 52 questions |
| Content Writer 面试题与答案 - Total 30 questions |
| SAS 面试题与答案 - Total 24 questions |
| Control System 面试题与答案 - Total 28 questions |
| Agile Methodology 面试题与答案 - Total 30 questions |
| Hadoop 面试题与答案 - Total 40 questions |
| Banking 面试题与答案 - Total 20 questions |
| Checkpoint 面试题与答案 - Total 20 questions |
| Blockchain 面试题与答案 - Total 29 questions |
| Technical Support 面试题与答案 - Total 30 questions |
| Mainframe 面试题与答案 - Total 20 questions |
| Nature 面试题与答案 - Total 20 questions |
| Chemistry 面试题与答案 - Total 50 questions |
| Docker 面试题与答案 - Total 30 questions |
| Sales 面试题与答案 - Total 30 questions |
| Knockout JS 面试题与答案 - Total 25 questions |
| TypeScript 面试题与答案 - Total 38 questions |
| PowerShell 面试题与答案 - Total 27 questions |
| Terraform 面试题与答案 - Total 30 questions |
| JCL 面试题与答案 - Total 20 questions |
| JavaScript 面试题与答案 - Total 59 questions |
| Ajax 面试题与答案 - Total 58 questions |
| Express.js 面试题与答案 - Total 30 questions |
| Ansible 面试题与答案 - Total 30 questions |
| ES6 面试题与答案 - Total 30 questions |
| Electron.js 面试题与答案 - Total 24 questions |
| RxJS 面试题与答案 - Total 29 questions |
| NodeJS 面试题与答案 - Total 30 questions |
| jQuery 面试题与答案 - Total 22 questions |
| Vue.js 面试题与答案 - Total 30 questions |
| ExtJS 面试题与答案 - Total 50 questions |
| Svelte.js 面试题与答案 - Total 30 questions |
| Shell Scripting 面试题与答案 - Total 50 questions |
| Next.js 面试题与答案 - Total 30 questions |
| BGP 面试题与答案 - Total 30 questions |
| Ethical Hacking 面试题与答案 - Total 40 questions |
| Cyber Security 面试题与答案 - Total 50 questions |
| PII 面试题与答案 - Total 30 questions |
| Data Protection Act 面试题与答案 - Total 20 questions |
| Unix 面试题与答案 - Total 105 questions |
| Weblogic 面试题与答案 - Total 30 questions |
| Tomcat 面试题与答案 - Total 16 questions |
| Glassfish 面试题与答案 - Total 8 questions |
| Ubuntu 面试题与答案 - Total 30 questions |
| Linux 面试题与答案 - Total 43 questions |
| ETL Testing 面试题与答案 - Total 20 questions |
| QTP 面试题与答案 - Total 44 questions |
| Cucumber 面试题与答案 - Total 30 questions |
| Postman 面试题与答案 - Total 30 questions |
| TestNG 面试题与答案 - Total 38 questions |
| SDET 面试题与答案 - Total 30 questions |
| Selenium 面试题与答案 - Total 40 questions |
| Kali Linux 面试题与答案 - Total 29 questions |
| Mobile Testing 面试题与答案 - Total 30 questions |
| UiPath 面试题与答案 - Total 38 questions |
| Quality Assurance 面试题与答案 - Total 56 questions |
| API Testing 面试题与答案 - Total 30 questions |
| Appium 面试题与答案 - Total 30 questions |
| Symfony 面试题与答案 - Total 30 questions |
| GWT 面试题与答案 - Total 27 questions |
| CSS 面试题与答案 - Total 74 questions |
| Ruby On Rails 面试题与答案 - Total 74 questions |
| Yii 面试题与答案 - Total 30 questions |
| Angular 面试题与答案 - Total 50 questions |
| PHP 面试题与答案 - Total 27 questions |
| Oracle JET(OJET) 面试题与答案 - Total 54 questions |
| Frontend Developer 面试题与答案 - Total 30 questions |
| Zend Framework 面试题与答案 - Total 24 questions |
| RichFaces 面试题与答案 - Total 26 questions |
| HTML 面试题与答案 - Total 27 questions |
| Flutter 面试题与答案 - Total 25 questions |
| CakePHP 面试题与答案 - Total 30 questions |
| React 面试题与答案 - Total 40 questions |
| React Native 面试题与答案 - Total 26 questions |
| Web Developer 面试题与答案 - Total 50 questions |
| Angular 8 面试题与答案 - Total 32 questions |
| Angular JS 面试题与答案 - Total 21 questions |
| Dojo 面试题与答案 - Total 23 questions |