Automation Testing Practice Questions: Roadmap-Wise Sheets
One practice sheet for every step of the Automation Testing roadmap. Click a sheet card to open its topics, then practise the questions.
1Sheet 1: Testing Basics & Java
Weeks 1–3 · 4 topicsClick to open topics ▾
Sheet 1: Testing Basics & Java
Weeks 1–3 · 4 topics
Practise: SDLC & STLC · 11 questionsEasy
- ArrayList vs HashMap — how do you use them in a framework? Give a practical example from a hypothetical Amazon project involving an online marketplace, fulfilment operations, and cloud services, and explain which checks or trade-offs matter most.
Show answer
ArrayList stores an ordered list (e.g. all product names on a page). HashMap stores key–value pairs (e.g. test data or config properties). Example application: In a hypothetical Amazon project involving an online marketplace, fulfilment operations, and cloud services, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - What is the difference between == and equals() in Java? Give a practical example from a hypothetical Microsoft project involving developer tools, cloud services, and productivity applications, and explain which checks or trade-offs matter most.
Show answer
== compares references (or primitive values); equals() compares content when overridden, as in String. Example application: In a hypothetical Microsoft project involving developer tools, cloud services, and productivity applications, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - Reverse a string in Java. Give a practical example from a hypothetical Salesforce project involving CRM, sales operations, and customer data workflows, and explain which checks or trade-offs matter most.
Show answer
String r = new StringBuilder(s).reverse().toString(); // or loop from the last index and append each character Example application: In a hypothetical Salesforce project involving CRM, sales operations, and customer data workflows, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - Reverse a string in Java. Give a practical example from a hypothetical Razorpay project involving payment gateway, settlement, and merchant integrations, and explain which checks or trade-offs matter most.
Show answer
String r = new StringBuilder(s).reverse().toString(); // or loop from the last index and append each character Example application: In a hypothetical Razorpay project involving payment gateway, settlement, and merchant integrations, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - ArrayList vs HashMap — how do you use them in a framework?
Show answer
ArrayList stores an ordered list (e.g. all product names on a page). HashMap stores key–value pairs (e.g. test data or config properties). - What are wrapper classes in Java?
Show answer
Classes such as Integer and Double that wrap primitive types as objects, needed for collections and for parsing text from web elements. - Method overloading vs overriding?
Show answer
Overloading: same method name, different parameters, in the same class (compile time). Overriding: a subclass redefines a parent method with the same signature (runtime polymorphism). WebDriver driver = new ChromeDriver() is runtime polymorphism. - What is the difference between static and non-static members? Give a practical example from a hypothetical Adobe project involving creative software, document workflows, and subscriptions, and explain which checks or trade-offs matter most.
Show answer
Static members belong to the class and are shared by all instances; non-static members belong to each object. Example application: In a hypothetical Adobe project involving creative software, document workflows, and subscriptions, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - What is polymorphism and how does it show up in Selenium? Give a practical example from a hypothetical Morgan Stanley project involving wealth management, trading, and investment platforms, and explain which checks or trade-offs matter most.
Show answer
One interface, many forms. WebDriver driver = new ChromeDriver() lets the same test code run on any browser class that implements WebDriver. Example application: In a hypothetical Morgan Stanley project involving wealth management, trading, and investment platforms, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - What is the use of the this and super keywords?
Show answer
this refers to the current object; super refers to the parent class, used to call parent constructors and methods. - What are Java 8 streams and lambdas?
Show answer
Lambdas are short anonymous functions; streams process collections declaratively with filter, map and collect, for example filtering link text from a list of elements.
Practise: Core Java · 11 questionsEasy
- What are the main OOP concepts in Java? Give a practical example from a hypothetical PayPal project involving digital payments, merchant checkout, and transaction risk, and explain which checks or trade-offs matter most.
Show answer
Encapsulation, inheritance, polymorphism and abstraction. Testers use them to build reusable page classes, base tests and utility libraries. Example application: In a hypothetical PayPal project involving digital payments, merchant checkout, and transaction risk, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - What are wrapper classes in Java? Give a practical example from a hypothetical CRED project involving member rewards, credit-card payments, and financial products, and explain which checks or trade-offs matter most.
Show answer
Classes such as Integer and Double that wrap primitive types as objects, needed for collections and for parsing text from web elements. Example application: In a hypothetical CRED project involving member rewards, credit-card payments, and financial products, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - Reverse a string in Java. Give a practical example from a hypothetical Walmart project involving retail commerce, inventory, and supply-chain operations, and explain which checks or trade-offs matter most.
Show answer
String r = new StringBuilder(s).reverse().toString(); // or loop from the last index and append each character Example application: In a hypothetical Walmart project involving retail commerce, inventory, and supply-chain operations, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - What is the difference between == and equals() in Java? Give a practical example from a hypothetical Oracle project involving enterprise databases, cloud infrastructure, and business applications, and explain which checks or trade-offs matter most.
Show answer
== compares references (or primitive values); equals() compares content when overridden, as in String. Example application: In a hypothetical Oracle project involving enterprise databases, cloud infrastructure, and business applications, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - What are the main OOP concepts in Java?
Show answer
Encapsulation, inheritance, polymorphism and abstraction. Testers use them to build reusable page classes, base tests and utility libraries. - Reverse a string in Java.
Show answer
String r = new StringBuilder(s).reverse().toString(); // or loop from the last index and append each character - How do you read data from Excel or properties files in Java? Give a practical example from a hypothetical Capgemini project involving client delivery, data platforms, and enterprise transformation, and explain which checks or trade-offs matter most.
Show answer
Use Apache POI for Excel and the Properties class for config files, loaded in a utility class so tests read data instead of hard-coding it. Example application: In a hypothetical Capgemini project involving client delivery, data platforms, and enterprise transformation, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - What are Java 8 streams and lambdas? Give a practical example from a hypothetical Microsoft project involving developer tools, cloud services, and productivity applications, and explain which checks or trade-offs matter most.
Show answer
Lambdas are short anonymous functions; streams process collections declaratively with filter, map and collect, for example filtering link text from a list of elements. Example application: In a hypothetical Microsoft project involving developer tools, cloud services, and productivity applications, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - What are Java collections and which ones do testers use most? Give a practical example from a hypothetical Adobe project involving creative software, document workflows, and subscriptions, and explain which checks or trade-offs matter most.
Show answer
ArrayList and LinkedList for lists, HashSet for unique values, HashMap for key-value test data, and Iterator for traversing them, for example collecting web elements in a list. Example application: In a hypothetical Adobe project involving creative software, document workflows, and subscriptions, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - What are Java collections and which ones do testers use most? Give a practical example from a hypothetical Razorpay project involving payment gateway, settlement, and merchant integrations, and explain which checks or trade-offs matter most.
Show answer
ArrayList and LinkedList for lists, HashSet for unique values, HashMap for key-value test data, and Iterator for traversing them, for example collecting web elements in a list. Example application: In a hypothetical Razorpay project involving payment gateway, settlement, and merchant integrations, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - What are access modifiers in Java? Give a practical example from a hypothetical Zepto project involving quick commerce, inventory, and last-mile delivery, and explain which checks or trade-offs matter most.
Show answer
public (everywhere), protected (package and subclasses), default (package) and private (same class), used to control visibility of test utilities. Example application: In a hypothetical Zepto project involving quick commerce, inventory, and last-mile delivery, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable.
Practise: OOP concepts · 11 questionsMedium
- What are the main OOP concepts in Java? Give a practical example from a hypothetical Capgemini project involving client delivery, data platforms, and enterprise transformation, and explain which checks or trade-offs matter most.
Show answer
Encapsulation, inheritance, polymorphism and abstraction. Testers use them to build reusable page classes, base tests and utility libraries. Example application: In a hypothetical Capgemini project involving client delivery, data platforms, and enterprise transformation, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - What are the main OOP concepts in Java? Give a practical example from a hypothetical Razorpay project involving payment gateway, settlement, and merchant integrations, and explain which checks or trade-offs matter most.
Show answer
Encapsulation, inheritance, polymorphism and abstraction. Testers use them to build reusable page classes, base tests and utility libraries. Example application: In a hypothetical Razorpay project involving payment gateway, settlement, and merchant integrations, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - What are the main OOP concepts in Java?
Show answer
Encapsulation, inheritance, polymorphism and abstraction. Testers use them to build reusable page classes, base tests and utility libraries. - Where do you use OOP concepts in your framework? Give a practical example from a hypothetical Accenture project involving multi-client consulting, cloud transformation, and process automation, and explain which checks or trade-offs matter most.
Show answer
Encapsulation: private locators with public page methods. Inheritance: pages extend a BasePage. Polymorphism: the WebDriver interface for different browsers. Abstraction: utility layers hiding Selenium details. Example application: In a hypothetical Accenture project involving multi-client consulting, cloud transformation, and process automation, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - Where do you use OOP concepts in your framework? Give a practical example from a hypothetical Capgemini project involving client delivery, data platforms, and enterprise transformation, and explain which checks or trade-offs matter most.
Show answer
Encapsulation: private locators with public page methods. Inheritance: pages extend a BasePage. Polymorphism: the WebDriver interface for different browsers. Abstraction: utility layers hiding Selenium details. Example application: In a hypothetical Capgemini project involving client delivery, data platforms, and enterprise transformation, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - Where do you use OOP concepts in your framework? Give a practical example from a hypothetical Google project involving search, advertising, maps, and cloud products, and explain which checks or trade-offs matter most.
Show answer
Encapsulation: private locators with public page methods. Inheritance: pages extend a BasePage. Polymorphism: the WebDriver interface for different browsers. Abstraction: utility layers hiding Selenium details. Example application: In a hypothetical Google project involving search, advertising, maps, and cloud products, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - Where do you use OOP concepts in your framework? Give a practical example from a hypothetical Apple project involving consumer devices, App Store workflows, and subscription services, and explain which checks or trade-offs matter most.
Show answer
Encapsulation: private locators with public page methods. Inheritance: pages extend a BasePage. Polymorphism: the WebDriver interface for different browsers. Abstraction: utility layers hiding Selenium details. Example application: In a hypothetical Apple project involving consumer devices, App Store workflows, and subscription services, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - Where do you use OOP concepts in your framework? Give a practical example from a hypothetical ServiceNow project involving IT service management and enterprise workflow automation, and explain which checks or trade-offs matter most.
Show answer
Encapsulation: private locators with public page methods. Inheritance: pages extend a BasePage. Polymorphism: the WebDriver interface for different browsers. Abstraction: utility layers hiding Selenium details. Example application: In a hypothetical ServiceNow project involving IT service management and enterprise workflow automation, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - Where do you use OOP concepts in your framework? Give a practical example from a hypothetical Visa project involving card networks, authorization, and payment-risk systems, and explain which checks or trade-offs matter most.
Show answer
Encapsulation: private locators with public page methods. Inheritance: pages extend a BasePage. Polymorphism: the WebDriver interface for different browsers. Abstraction: utility layers hiding Selenium details. Example application: In a hypothetical Visa project involving card networks, authorization, and payment-risk systems, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - Where do you use OOP concepts in your framework?
Show answer
Encapsulation: private locators with public page methods. Inheritance: pages extend a BasePage. Polymorphism: the WebDriver interface for different browsers. Abstraction: utility layers hiding Selenium details. - Where do you use OOP concepts in your framework?
Show answer
Encapsulation: private locators with public page methods. Inheritance: pages extend a BasePage. Polymorphism: the WebDriver interface for different browsers. Abstraction: utility layers hiding Selenium details.
Practise: Collections · 11 questionsMedium
- What are Java collections and which ones do testers use most? Give a practical example from a hypothetical Uber project involving ride-hailing, driver operations, and real-time dispatch, and explain which checks or trade-offs matter most.
Show answer
ArrayList and LinkedList for lists, HashSet for unique values, HashMap for key-value test data, and Iterator for traversing them, for example collecting web elements in a list. Example application: In a hypothetical Uber project involving ride-hailing, driver operations, and real-time dispatch, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - What are Java collections and which ones do testers use most? Give a practical example from a hypothetical PayPal project involving digital payments, merchant checkout, and transaction risk, and explain which checks or trade-offs matter most.
Show answer
ArrayList and LinkedList for lists, HashSet for unique values, HashMap for key-value test data, and Iterator for traversing them, for example collecting web elements in a list. Example application: In a hypothetical PayPal project involving digital payments, merchant checkout, and transaction risk, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - What are Java collections and which ones do testers use most? Give a practical example from a hypothetical Flipkart project involving e-commerce marketplace, seller tools, and fulfilment, and explain which checks or trade-offs matter most.
Show answer
ArrayList and LinkedList for lists, HashSet for unique values, HashMap for key-value test data, and Iterator for traversing them, for example collecting web elements in a list. Example application: In a hypothetical Flipkart project involving e-commerce marketplace, seller tools, and fulfilment, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - What are Java collections and which ones do testers use most? Give a practical example from a hypothetical Meesho project involving social commerce, seller listings, and logistics, and explain which checks or trade-offs matter most.
Show answer
ArrayList and LinkedList for lists, HashSet for unique values, HashMap for key-value test data, and Iterator for traversing them, for example collecting web elements in a list. Example application: In a hypothetical Meesho project involving social commerce, seller listings, and logistics, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - What are Java collections and which ones do testers use most? Give a practical example from a hypothetical CRED project involving member rewards, credit-card payments, and financial products, and explain which checks or trade-offs matter most.
Show answer
ArrayList and LinkedList for lists, HashSet for unique values, HashMap for key-value test data, and Iterator for traversing them, for example collecting web elements in a list. Example application: In a hypothetical CRED project involving member rewards, credit-card payments, and financial products, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - What are Java collections and which ones do testers use most? Give a practical example from a hypothetical Morgan Stanley project involving wealth management, trading, and investment platforms, and explain which checks or trade-offs matter most.
Show answer
ArrayList and LinkedList for lists, HashSet for unique values, HashMap for key-value test data, and Iterator for traversing them, for example collecting web elements in a list. Example application: In a hypothetical Morgan Stanley project involving wealth management, trading, and investment platforms, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - What are Java collections and which ones do testers use most? Give a practical example from a hypothetical Oracle project involving enterprise databases, cloud infrastructure, and business applications, and explain which checks or trade-offs matter most.
Show answer
ArrayList and LinkedList for lists, HashSet for unique values, HashMap for key-value test data, and Iterator for traversing them, for example collecting web elements in a list. Example application: In a hypothetical Oracle project involving enterprise databases, cloud infrastructure, and business applications, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - What are Java collections and which ones do testers use most? Give a practical example from a hypothetical Mastercard project involving card payment networks and fraud prevention, and explain which checks or trade-offs matter most.
Show answer
ArrayList and LinkedList for lists, HashSet for unique values, HashMap for key-value test data, and Iterator for traversing them, for example collecting web elements in a list. Example application: In a hypothetical Mastercard project involving card payment networks and fraud prevention, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - What are Java collections and which ones do testers use most? Give a practical example from a hypothetical HCLTech project involving enterprise technology services and infrastructure, and explain which checks or trade-offs matter most.
Show answer
ArrayList and LinkedList for lists, HashSet for unique values, HashMap for key-value test data, and Iterator for traversing them, for example collecting web elements in a list. Example application: In a hypothetical HCLTech project involving enterprise technology services and infrastructure, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - What are Java collections and which ones do testers use most?
Show answer
ArrayList and LinkedList for lists, HashSet for unique values, HashMap for key-value test data, and Iterator for traversing them, for example collecting web elements in a list. - What are Java collections and which ones do testers use most?
Show answer
ArrayList and LinkedList for lists, HashSet for unique values, HashMap for key-value test data, and Iterator for traversing them, for example collecting web elements in a list.
2Sheet 2: Selenium WebDriver
Weeks 4–6 · 4 topicsClick to open topics ▾
Sheet 2: Selenium WebDriver
Weeks 4–6 · 4 topics
Practise: Locators & XPath · 12 questionsEasy
- What locators does Selenium support? Give a practical example from a hypothetical Wipro project involving managed IT services, cloud migration, and digital transformation, and explain which checks or trade-offs matter most.
Show answer
id, name, className, tagName, linkText, partialLinkText, CSS selector and XPath. Prefer stable ids or CSS, using XPath when needed. Example application: In a hypothetical Wipro project involving managed IT services, cloud migration, and digital transformation, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - What locators does Selenium support? Give a practical example from a hypothetical Cognizant project involving enterprise applications and healthcare or financial client systems, and explain which checks or trade-offs matter most.
Show answer
id, name, className, tagName, linkText, partialLinkText, CSS selector and XPath. Prefer stable ids or CSS, using XPath when needed. Example application: In a hypothetical Cognizant project involving enterprise applications and healthcare or financial client systems, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - What locators does Selenium support? Give a practical example from a hypothetical Google project involving search, advertising, maps, and cloud products, and explain which checks or trade-offs matter most.
Show answer
id, name, className, tagName, linkText, partialLinkText, CSS selector and XPath. Prefer stable ids or CSS, using XPath when needed. Example application: In a hypothetical Google project involving search, advertising, maps, and cloud products, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - What locators does Selenium support? Give a practical example from a hypothetical Meta project involving social platforms, messaging, and advertising systems, and explain which checks or trade-offs matter most.
Show answer
id, name, className, tagName, linkText, partialLinkText, CSS selector and XPath. Prefer stable ids or CSS, using XPath when needed. Example application: In a hypothetical Meta project involving social platforms, messaging, and advertising systems, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - What locators does Selenium support? Give a practical example from a hypothetical Bloomberg project involving financial terminals, market data, and news systems, and explain which checks or trade-offs matter most.
Show answer
id, name, className, tagName, linkText, partialLinkText, CSS selector and XPath. Prefer stable ids or CSS, using XPath when needed. Example application: In a hypothetical Bloomberg project involving financial terminals, market data, and news systems, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - What locators does Selenium support? Give a practical example from a hypothetical PayPal project involving digital payments, merchant checkout, and transaction risk, and explain which checks or trade-offs matter most.
Show answer
id, name, className, tagName, linkText, partialLinkText, CSS selector and XPath. Prefer stable ids or CSS, using XPath when needed. Example application: In a hypothetical PayPal project involving digital payments, merchant checkout, and transaction risk, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - What locators does Selenium support? Give a practical example from a hypothetical Goldman Sachs project involving investment banking, markets, and risk analytics, and explain which checks or trade-offs matter most.
Show answer
id, name, className, tagName, linkText, partialLinkText, CSS selector and XPath. Prefer stable ids or CSS, using XPath when needed. Example application: In a hypothetical Goldman Sachs project involving investment banking, markets, and risk analytics, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - What locators does Selenium support? Give a practical example from a hypothetical Cisco project involving networking, security, and collaboration infrastructure, and explain which checks or trade-offs matter most.
Show answer
id, name, className, tagName, linkText, partialLinkText, CSS selector and XPath. Prefer stable ids or CSS, using XPath when needed. Example application: In a hypothetical Cisco project involving networking, security, and collaboration infrastructure, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - What locators does Selenium support? Give a practical example from a hypothetical Tech Mahindra project involving telecom platforms, IT services, and digital transformation, and explain which checks or trade-offs matter most.
Show answer
id, name, className, tagName, linkText, partialLinkText, CSS selector and XPath. Prefer stable ids or CSS, using XPath when needed. Example application: In a hypothetical Tech Mahindra project involving telecom platforms, IT services, and digital transformation, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - What locators does Selenium support?
Show answer
id, name, className, tagName, linkText, partialLinkText, CSS selector and XPath. Prefer stable ids or CSS, using XPath when needed. - What locators does Selenium support?
Show answer
id, name, className, tagName, linkText, partialLinkText, CSS selector and XPath. Prefer stable ids or CSS, using XPath when needed. - What locators does Selenium support?
Show answer
id, name, className, tagName, linkText, partialLinkText, CSS selector and XPath. Prefer stable ids or CSS, using XPath when needed.
Practise: Waits · 12 questionsEasy
- Implicit vs explicit vs fluent wait? Give a practical example from a hypothetical D. E. Shaw project involving quantitative research and financial technology, and explain which checks or trade-offs matter most.
Show answer
Implicit wait applies globally to element lookups. Explicit wait waits for a specific condition (WebDriverWait + ExpectedConditions). Fluent wait is an explicit wait with custom polling and ignored exceptions. Example application: In a hypothetical D. E. Shaw project involving quantitative research and financial technology, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - Implicit vs explicit vs fluent wait? Give a practical example from a hypothetical Walmart project involving retail commerce, inventory, and supply-chain operations, and explain which checks or trade-offs matter most.
Show answer
Implicit wait applies globally to element lookups. Explicit wait waits for a specific condition (WebDriverWait + ExpectedConditions). Fluent wait is an explicit wait with custom polling and ignored exceptions. Example application: In a hypothetical Walmart project involving retail commerce, inventory, and supply-chain operations, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - Implicit vs explicit vs fluent wait? Give a practical example from a hypothetical Visa project involving card networks, authorization, and payment-risk systems, and explain which checks or trade-offs matter most.
Show answer
Implicit wait applies globally to element lookups. Explicit wait waits for a specific condition (WebDriverWait + ExpectedConditions). Fluent wait is an explicit wait with custom polling and ignored exceptions. Example application: In a hypothetical Visa project involving card networks, authorization, and payment-risk systems, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - Implicit vs explicit vs fluent wait?
Show answer
Implicit wait applies globally to element lookups. Explicit wait waits for a specific condition (WebDriverWait + ExpectedConditions). Fluent wait is an explicit wait with custom polling and ignored exceptions. - Implicit vs explicit vs fluent wait?
Show answer
Implicit wait applies globally to element lookups. Explicit wait waits for a specific condition (WebDriverWait + ExpectedConditions). Fluent wait is an explicit wait with custom polling and ignored exceptions. - Implicit vs explicit vs fluent wait?
Show answer
Implicit wait applies globally to element lookups. Explicit wait waits for a specific condition (WebDriverWait + ExpectedConditions). Fluent wait is an explicit wait with custom polling and ignored exceptions. - What are the different types of waits in Selenium? Give a practical example from a hypothetical Amazon project involving an online marketplace, fulfilment operations, and cloud services, and explain which checks or trade-offs matter most.
Show answer
Implicit, explicit (WebDriverWait with ExpectedConditions) and fluent waits; avoid mixing implicit and explicit waits and never rely on Thread.sleep. Example application: In a hypothetical Amazon project involving an online marketplace, fulfilment operations, and cloud services, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - What are the different types of waits in Selenium? Give a practical example from a hypothetical D. E. Shaw project involving quantitative research and financial technology, and explain which checks or trade-offs matter most.
Show answer
Implicit, explicit (WebDriverWait with ExpectedConditions) and fluent waits; avoid mixing implicit and explicit waits and never rely on Thread.sleep. Example application: In a hypothetical D. E. Shaw project involving quantitative research and financial technology, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - What are the different types of waits in Selenium? Give a practical example from a hypothetical Stripe project involving online payments, billing, and financial infrastructure, and explain which checks or trade-offs matter most.
Show answer
Implicit, explicit (WebDriverWait with ExpectedConditions) and fluent waits; avoid mixing implicit and explicit waits and never rely on Thread.sleep. Example application: In a hypothetical Stripe project involving online payments, billing, and financial infrastructure, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - What are the different types of waits in Selenium? Give a practical example from a hypothetical Adobe project involving creative software, document workflows, and subscriptions, and explain which checks or trade-offs matter most.
Show answer
Implicit, explicit (WebDriverWait with ExpectedConditions) and fluent waits; avoid mixing implicit and explicit waits and never rely on Thread.sleep. Example application: In a hypothetical Adobe project involving creative software, document workflows, and subscriptions, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - What are the different types of waits in Selenium? Give a practical example from a hypothetical Zomato project involving food ordering, restaurant discovery, and delivery, and explain which checks or trade-offs matter most.
Show answer
Implicit, explicit (WebDriverWait with ExpectedConditions) and fluent waits; avoid mixing implicit and explicit waits and never rely on Thread.sleep. Example application: In a hypothetical Zomato project involving food ordering, restaurant discovery, and delivery, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - What are the different types of waits in Selenium? Give a practical example from a hypothetical Oracle project involving enterprise databases, cloud infrastructure, and business applications, and explain which checks or trade-offs matter most.
Show answer
Implicit, explicit (WebDriverWait with ExpectedConditions) and fluent waits; avoid mixing implicit and explicit waits and never rely on Thread.sleep. Example application: In a hypothetical Oracle project involving enterprise databases, cloud infrastructure, and business applications, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable.
Practise: Frames & alerts · 12 questionsMedium
- How do you handle iframes? Give a practical example from a hypothetical Infosys project involving enterprise consulting, digital platforms, and client transformation, and explain which checks or trade-offs matter most.
Show answer
switchTo().frame(index, name or element) enters the frame, and switchTo().defaultContent() returns to the main page. Example application: In a hypothetical Infosys project involving enterprise consulting, digital platforms, and client transformation, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - How do you handle iframes? Give a practical example from a hypothetical Capgemini project involving client delivery, data platforms, and enterprise transformation, and explain which checks or trade-offs matter most.
Show answer
switchTo().frame(index, name or element) enters the frame, and switchTo().defaultContent() returns to the main page. Example application: In a hypothetical Capgemini project involving client delivery, data platforms, and enterprise transformation, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - How do you handle iframes? Give a practical example from a hypothetical Amazon project involving an online marketplace, fulfilment operations, and cloud services, and explain which checks or trade-offs matter most.
Show answer
switchTo().frame(index, name or element) enters the frame, and switchTo().defaultContent() returns to the main page. Example application: In a hypothetical Amazon project involving an online marketplace, fulfilment operations, and cloud services, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - How do you handle iframes? Give a practical example from a hypothetical Atlassian project involving team collaboration and developer workflow products, and explain which checks or trade-offs matter most.
Show answer
switchTo().frame(index, name or element) enters the frame, and switchTo().defaultContent() returns to the main page. Example application: In a hypothetical Atlassian project involving team collaboration and developer workflow products, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - How do you handle alerts and pop-ups? Give a practical example from a hypothetical D. E. Shaw project involving quantitative research and financial technology, and explain which checks or trade-offs matter most.
Show answer
driver.switchTo().alert() lets you accept, dismiss, read text or send keys. Browser windows are handled with window handles. Example application: In a hypothetical D. E. Shaw project involving quantitative research and financial technology, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - How do you handle iframes? Give a practical example from a hypothetical Tower Research Capital project involving low-latency trading and market data systems, and explain which checks or trade-offs matter most.
Show answer
switchTo().frame(index, name or element) enters the frame, and switchTo().defaultContent() returns to the main page. Example application: In a hypothetical Tower Research Capital project involving low-latency trading and market data systems, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - How do you handle alerts and pop-ups? Give a practical example from a hypothetical Adobe project involving creative software, document workflows, and subscriptions, and explain which checks or trade-offs matter most.
Show answer
driver.switchTo().alert() lets you accept, dismiss, read text or send keys. Browser windows are handled with window handles. Example application: In a hypothetical Adobe project involving creative software, document workflows, and subscriptions, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - How do you handle iframes? Give a practical example from a hypothetical JP Morgan Chase project involving banking, payments, and financial risk systems, and explain which checks or trade-offs matter most.
Show answer
switchTo().frame(index, name or element) enters the frame, and switchTo().defaultContent() returns to the main page. Example application: In a hypothetical JP Morgan Chase project involving banking, payments, and financial risk systems, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - How do you handle iframes? Give a practical example from a hypothetical Visa project involving card networks, authorization, and payment-risk systems, and explain which checks or trade-offs matter most.
Show answer
switchTo().frame(index, name or element) enters the frame, and switchTo().defaultContent() returns to the main page. Example application: In a hypothetical Visa project involving card networks, authorization, and payment-risk systems, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - How do you handle alerts and pop-ups? Give a practical example from a hypothetical Visa project involving card networks, authorization, and payment-risk systems, and explain which checks or trade-offs matter most.
Show answer
driver.switchTo().alert() lets you accept, dismiss, read text or send keys. Browser windows are handled with window handles. Example application: In a hypothetical Visa project involving card networks, authorization, and payment-risk systems, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - How do you handle alerts and pop-ups? Give a practical example from a hypothetical HCLTech project involving enterprise technology services and infrastructure, and explain which checks or trade-offs matter most.
Show answer
driver.switchTo().alert() lets you accept, dismiss, read text or send keys. Browser windows are handled with window handles. Example application: In a hypothetical HCLTech project involving enterprise technology services and infrastructure, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - How do you handle iframes? Give a practical example from a hypothetical Tech Mahindra project involving telecom platforms, IT services, and digital transformation, and explain which checks or trade-offs matter most.
Show answer
switchTo().frame(index, name or element) enters the frame, and switchTo().defaultContent() returns to the main page. Example application: In a hypothetical Tech Mahindra project involving telecom platforms, IT services, and digital transformation, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable.
Practise: Actions class · 12 questionsMedium
- What are the Actions class use cases? Give a practical example from a hypothetical Accenture project involving multi-client consulting, cloud transformation, and process automation, and explain which checks or trade-offs matter most.
Show answer
Mouse and keyboard actions such as hover, drag and drop, double click, right click and key combinations, built with moveToElement(...).perform(). Example application: In a hypothetical Accenture project involving multi-client consulting, cloud transformation, and process automation, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - What are the Actions class use cases? Give a practical example from a hypothetical Cognizant project involving enterprise applications and healthcare or financial client systems, and explain which checks or trade-offs matter most.
Show answer
Mouse and keyboard actions such as hover, drag and drop, double click, right click and key combinations, built with moveToElement(...).perform(). Example application: In a hypothetical Cognizant project involving enterprise applications and healthcare or financial client systems, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - What are the Actions class use cases? Give a practical example from a hypothetical Apple project involving consumer devices, App Store workflows, and subscription services, and explain which checks or trade-offs matter most.
Show answer
Mouse and keyboard actions such as hover, drag and drop, double click, right click and key combinations, built with moveToElement(...).perform(). Example application: In a hypothetical Apple project involving consumer devices, App Store workflows, and subscription services, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - What are the Actions class use cases? Give a practical example from a hypothetical Salesforce project involving CRM, sales operations, and customer data workflows, and explain which checks or trade-offs matter most.
Show answer
Mouse and keyboard actions such as hover, drag and drop, double click, right click and key combinations, built with moveToElement(...).perform(). Example application: In a hypothetical Salesforce project involving CRM, sales operations, and customer data workflows, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - What are the Actions class use cases? Give a practical example from a hypothetical Meesho project involving social commerce, seller listings, and logistics, and explain which checks or trade-offs matter most.
Show answer
Mouse and keyboard actions such as hover, drag and drop, double click, right click and key combinations, built with moveToElement(...).perform(). Example application: In a hypothetical Meesho project involving social commerce, seller listings, and logistics, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - What are the Actions class use cases? Give a practical example from a hypothetical Zepto project involving quick commerce, inventory, and last-mile delivery, and explain which checks or trade-offs matter most.
Show answer
Mouse and keyboard actions such as hover, drag and drop, double click, right click and key combinations, built with moveToElement(...).perform(). Example application: In a hypothetical Zepto project involving quick commerce, inventory, and last-mile delivery, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - What are the Actions class use cases? Give a practical example from a hypothetical Intuit project involving financial software, tax preparation, and small-business tools, and explain which checks or trade-offs matter most.
Show answer
Mouse and keyboard actions such as hover, drag and drop, double click, right click and key combinations, built with moveToElement(...).perform(). Example application: In a hypothetical Intuit project involving financial software, tax preparation, and small-business tools, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - What are the Actions class use cases? Give a practical example from a hypothetical Goldman Sachs project involving investment banking, markets, and risk analytics, and explain which checks or trade-offs matter most.
Show answer
Mouse and keyboard actions such as hover, drag and drop, double click, right click and key combinations, built with moveToElement(...).perform(). Example application: In a hypothetical Goldman Sachs project involving investment banking, markets, and risk analytics, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - What are the Actions class use cases? Give a practical example from a hypothetical Oracle project involving enterprise databases, cloud infrastructure, and business applications, and explain which checks or trade-offs matter most.
Show answer
Mouse and keyboard actions such as hover, drag and drop, double click, right click and key combinations, built with moveToElement(...).perform(). Example application: In a hypothetical Oracle project involving enterprise databases, cloud infrastructure, and business applications, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - What are the Actions class use cases?
Show answer
Mouse and keyboard actions such as hover, drag and drop, double click, right click and key combinations, built with moveToElement(...).perform(). - What are the Actions class use cases?
Show answer
Mouse and keyboard actions such as hover, drag and drop, double click, right click and key combinations, built with moveToElement(...).perform(). - What are the Actions class use cases?
Show answer
Mouse and keyboard actions such as hover, drag and drop, double click, right click and key combinations, built with moveToElement(...).perform().
3Sheet 3: Frameworks
Weeks 7–8 · 4 topicsClick to open topics ▾
Sheet 3: Frameworks
Weeks 7–8 · 4 topics
Practise: TestNG · 14 questionsEasy
- List common TestNG annotations and their order. Give a practical example from a hypothetical HCLTech project involving enterprise technology services and infrastructure, and explain which checks or trade-offs matter most.
Show answer
BeforeSuite, BeforeTest, BeforeClass, BeforeMethod, Test, AfterMethod, AfterClass, AfterTest and AfterSuite. Example application: In a hypothetical HCLTech project involving enterprise technology services and infrastructure, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - What is the execution order of TestNG annotations?
Show answer
@BeforeSuite → @BeforeTest → @BeforeClass → @BeforeMethod → @Test → @AfterMethod → @AfterClass → @AfterTest → @AfterSuite. - List common TestNG annotations and their order.
Show answer
BeforeSuite, BeforeTest, BeforeClass, BeforeMethod, Test, AfterMethod, AfterClass, AfterTest and AfterSuite. - List common TestNG annotations and their order.
Show answer
BeforeSuite, BeforeTest, BeforeClass, BeforeMethod, Test, AfterMethod, AfterClass, AfterTest and AfterSuite. - How do you manage test data in a framework? Give a practical example from a hypothetical TCS project involving enterprise IT services, integration, and client delivery, and explain which checks or trade-offs matter most.
Show answer
Use external files or APIs and database setup scripts, generate unique data per run, and clean up afterwards so tests stay independent. Example application: In a hypothetical TCS project involving enterprise IT services, integration, and client delivery, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - How do you pass parameters from testng.xml? Give a practical example from a hypothetical Atlassian project involving team collaboration and developer workflow products, and explain which checks or trade-offs matter most.
Show answer
Define parameter name and value in the XML and read them with @Parameters in the test or configuration method. Example application: In a hypothetical Atlassian project involving team collaboration and developer workflow products, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - How do you group tests? Give a practical example from a hypothetical Bloomberg project involving financial terminals, market data, and news systems, and explain which checks or trade-offs matter most.
Show answer
Tag tests with groups = {"smoke","regression"} and include or exclude them in testng.xml to run chosen sets. Example application: In a hypothetical Bloomberg project involving financial terminals, market data, and news systems, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - What is the difference between @BeforeTest and @BeforeMethod? Give a practical example from a hypothetical Tower Research Capital project involving low-latency trading and market data systems, and explain which checks or trade-offs matter most.
Show answer
@BeforeTest runs once before all methods in a test tag of testng.xml; @BeforeMethod runs before every test method. Example application: In a hypothetical Tower Research Capital project involving low-latency trading and market data systems, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - How do you run tests in parallel? Give a practical example from a hypothetical PayPal project involving digital payments, merchant checkout, and transaction risk, and explain which checks or trade-offs matter most.
Show answer
Use TestNG parallel="methods | classes | tests" with thread-count, keep WebDriver in a ThreadLocal, and use Selenium Grid or a cloud grid for multiple browsers. Example application: In a hypothetical PayPal project involving digital payments, merchant checkout, and transaction risk, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - What are listeners in TestNG? Give a practical example from a hypothetical Razorpay project involving payment gateway, settlement, and merchant integrations, and explain which checks or trade-offs matter most.
Show answer
Classes like ITestListener that react to events such as test start, success or failure, commonly used for screenshots and reporting. Example application: In a hypothetical Razorpay project involving payment gateway, settlement, and merchant integrations, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - How do you group tests? Give a practical example from a hypothetical Zepto project involving quick commerce, inventory, and last-mile delivery, and explain which checks or trade-offs matter most.
Show answer
Tag tests with groups = {"smoke","regression"} and include or exclude them in testng.xml to run chosen sets. Example application: In a hypothetical Zepto project involving quick commerce, inventory, and last-mile delivery, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - How do you group tests? Give a practical example from a hypothetical Intuit project involving financial software, tax preparation, and small-business tools, and explain which checks or trade-offs matter most.
Show answer
Tag tests with groups = {"smoke","regression"} and include or exclude them in testng.xml to run chosen sets. Example application: In a hypothetical Intuit project involving financial software, tax preparation, and small-business tools, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - How do you retry failed tests in TestNG? Give a practical example from a hypothetical Barclays project involving retail banking, trading, and financial compliance, and explain which checks or trade-offs matter most.
Show answer
Implement IRetryAnalyzer with a retry count and attach it through the test annotation or a listener to rerun flaky tests. Example application: In a hypothetical Barclays project involving retail banking, trading, and financial compliance, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - How do you retry failed tests in TestNG?
Show answer
Implement IRetryAnalyzer with a retry count and attach it through the test annotation or a listener to rerun flaky tests.
Practise: Page Object Model · 14 questionsEasy
- What is the Page Object Model? Give a practical example from a hypothetical TCS project involving enterprise IT services, integration, and client delivery, and explain which checks or trade-offs matter most.
Show answer
A design pattern where each page is a class holding its locators and actions, so tests stay readable and a locator change is fixed in one place. Example application: In a hypothetical TCS project involving enterprise IT services, integration, and client delivery, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - What is the Page Object Model? Give a practical example from a hypothetical Infosys project involving enterprise consulting, digital platforms, and client transformation, and explain which checks or trade-offs matter most.
Show answer
A design pattern where each page is a class holding its locators and actions, so tests stay readable and a locator change is fixed in one place. Example application: In a hypothetical Infosys project involving enterprise consulting, digital platforms, and client transformation, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - What is the Page Object Model? Give a practical example from a hypothetical D. E. Shaw project involving quantitative research and financial technology, and explain which checks or trade-offs matter most.
Show answer
A design pattern where each page is a class holding its locators and actions, so tests stay readable and a locator change is fixed in one place. Example application: In a hypothetical D. E. Shaw project involving quantitative research and financial technology, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - What is the Page Object Model? Give a practical example from a hypothetical Salesforce project involving CRM, sales operations, and customer data workflows, and explain which checks or trade-offs matter most.
Show answer
A design pattern where each page is a class holding its locators and actions, so tests stay readable and a locator change is fixed in one place. Example application: In a hypothetical Salesforce project involving CRM, sales operations, and customer data workflows, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - What is the Page Object Model? Give a practical example from a hypothetical Razorpay project involving payment gateway, settlement, and merchant integrations, and explain which checks or trade-offs matter most.
Show answer
A design pattern where each page is a class holding its locators and actions, so tests stay readable and a locator change is fixed in one place. Example application: In a hypothetical Razorpay project involving payment gateway, settlement, and merchant integrations, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - What is the Page Object Model? Give a practical example from a hypothetical Swiggy project involving food delivery, logistics, and quick commerce, and explain which checks or trade-offs matter most.
Show answer
A design pattern where each page is a class holding its locators and actions, so tests stay readable and a locator change is fixed in one place. Example application: In a hypothetical Swiggy project involving food delivery, logistics, and quick commerce, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - What is the Page Object Model? Give a practical example from a hypothetical Goldman Sachs project involving investment banking, markets, and risk analytics, and explain which checks or trade-offs matter most.
Show answer
A design pattern where each page is a class holding its locators and actions, so tests stay readable and a locator change is fixed in one place. Example application: In a hypothetical Goldman Sachs project involving investment banking, markets, and risk analytics, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - What is the Page Object Model? Give a practical example from a hypothetical Oracle project involving enterprise databases, cloud infrastructure, and business applications, and explain which checks or trade-offs matter most.
Show answer
A design pattern where each page is a class holding its locators and actions, so tests stay readable and a locator change is fixed in one place. Example application: In a hypothetical Oracle project involving enterprise databases, cloud infrastructure, and business applications, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - What is the Page Object Model? Give a practical example from a hypothetical Visa project involving card networks, authorization, and payment-risk systems, and explain which checks or trade-offs matter most.
Show answer
A design pattern where each page is a class holding its locators and actions, so tests stay readable and a locator change is fixed in one place. Example application: In a hypothetical Visa project involving card networks, authorization, and payment-risk systems, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - What is the Page Object Model? Give a practical example from a hypothetical Barclays project involving retail banking, trading, and financial compliance, and explain which checks or trade-offs matter most.
Show answer
A design pattern where each page is a class holding its locators and actions, so tests stay readable and a locator change is fixed in one place. Example application: In a hypothetical Barclays project involving retail banking, trading, and financial compliance, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - What is the Page Object Model?
Show answer
A design pattern where each page is a class holding its locators and actions, so tests stay readable and a locator change is fixed in one place. - What is the Page Object Model?
Show answer
A design pattern where each page is a class holding its locators and actions, so tests stay readable and a locator change is fixed in one place. - What is the Page Object Model?
Show answer
A design pattern where each page is a class holding its locators and actions, so tests stay readable and a locator change is fixed in one place. - What is the Page Object Model?
Show answer
A design pattern where each page is a class holding its locators and actions, so tests stay readable and a locator change is fixed in one place.
Practise: Data-driven testing · 14 questionsMedium
- What is data-driven testing? Give a practical example from a hypothetical TCS project involving enterprise IT services, integration, and client delivery, and explain which checks or trade-offs matter most.
Show answer
Running the same test logic with multiple data sets from Excel, CSV, JSON or a database, so coverage increases without duplicating code. Example application: In a hypothetical TCS project involving enterprise IT services, integration, and client delivery, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - What is data-driven testing? Give a practical example from a hypothetical Cognizant project involving enterprise applications and healthcare or financial client systems, and explain which checks or trade-offs matter most.
Show answer
Running the same test logic with multiple data sets from Excel, CSV, JSON or a database, so coverage increases without duplicating code. Example application: In a hypothetical Cognizant project involving enterprise applications and healthcare or financial client systems, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - What is data-driven testing? Give a practical example from a hypothetical Apple project involving consumer devices, App Store workflows, and subscription services, and explain which checks or trade-offs matter most.
Show answer
Running the same test logic with multiple data sets from Excel, CSV, JSON or a database, so coverage increases without duplicating code. Example application: In a hypothetical Apple project involving consumer devices, App Store workflows, and subscription services, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - What is data-driven testing? Give a practical example from a hypothetical Atlassian project involving team collaboration and developer workflow products, and explain which checks or trade-offs matter most.
Show answer
Running the same test logic with multiple data sets from Excel, CSV, JSON or a database, so coverage increases without duplicating code. Example application: In a hypothetical Atlassian project involving team collaboration and developer workflow products, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - What is data-driven testing? Give a practical example from a hypothetical D. E. Shaw project involving quantitative research and financial technology, and explain which checks or trade-offs matter most.
Show answer
Running the same test logic with multiple data sets from Excel, CSV, JSON or a database, so coverage increases without duplicating code. Example application: In a hypothetical D. E. Shaw project involving quantitative research and financial technology, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - What is data-driven testing? Give a practical example from a hypothetical Bloomberg project involving financial terminals, market data, and news systems, and explain which checks or trade-offs matter most.
Show answer
Running the same test logic with multiple data sets from Excel, CSV, JSON or a database, so coverage increases without duplicating code. Example application: In a hypothetical Bloomberg project involving financial terminals, market data, and news systems, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - What is data-driven testing? Give a practical example from a hypothetical Tower Research Capital project involving low-latency trading and market data systems, and explain which checks or trade-offs matter most.
Show answer
Running the same test logic with multiple data sets from Excel, CSV, JSON or a database, so coverage increases without duplicating code. Example application: In a hypothetical Tower Research Capital project involving low-latency trading and market data systems, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - What is data-driven testing? Give a practical example from a hypothetical Stripe project involving online payments, billing, and financial infrastructure, and explain which checks or trade-offs matter most.
Show answer
Running the same test logic with multiple data sets from Excel, CSV, JSON or a database, so coverage increases without duplicating code. Example application: In a hypothetical Stripe project involving online payments, billing, and financial infrastructure, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - What is data-driven testing? Give a practical example from a hypothetical Zepto project involving quick commerce, inventory, and last-mile delivery, and explain which checks or trade-offs matter most.
Show answer
Running the same test logic with multiple data sets from Excel, CSV, JSON or a database, so coverage increases without duplicating code. Example application: In a hypothetical Zepto project involving quick commerce, inventory, and last-mile delivery, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - What is data-driven testing? Give a practical example from a hypothetical Walmart project involving retail commerce, inventory, and supply-chain operations, and explain which checks or trade-offs matter most.
Show answer
Running the same test logic with multiple data sets from Excel, CSV, JSON or a database, so coverage increases without duplicating code. Example application: In a hypothetical Walmart project involving retail commerce, inventory, and supply-chain operations, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - What is data-driven testing? Give a practical example from a hypothetical Visa project involving card networks, authorization, and payment-risk systems, and explain which checks or trade-offs matter most.
Show answer
Running the same test logic with multiple data sets from Excel, CSV, JSON or a database, so coverage increases without duplicating code. Example application: In a hypothetical Visa project involving card networks, authorization, and payment-risk systems, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - What is data-driven testing?
Show answer
Running the same test logic with multiple data sets from Excel, CSV, JSON or a database, so coverage increases without duplicating code. - What is data-driven testing?
Show answer
Running the same test logic with multiple data sets from Excel, CSV, JSON or a database, so coverage increases without duplicating code. - What is data-driven testing?
Show answer
Running the same test logic with multiple data sets from Excel, CSV, JSON or a database, so coverage increases without duplicating code.
Practise: Maven · 14 questionsMedium
- What is the use of Maven in automation projects? Give a practical example from a hypothetical TCS project involving enterprise IT services, integration, and client delivery, and explain which checks or trade-offs matter most.
Show answer
It manages dependencies through pom.xml, builds the project, runs tests with Surefire and standardises structure across teams. Example application: In a hypothetical TCS project involving enterprise IT services, integration, and client delivery, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - What is the use of Maven in automation projects? Give a practical example from a hypothetical Meta project involving social platforms, messaging, and advertising systems, and explain which checks or trade-offs matter most.
Show answer
It manages dependencies through pom.xml, builds the project, runs tests with Surefire and standardises structure across teams. Example application: In a hypothetical Meta project involving social platforms, messaging, and advertising systems, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - What is the use of Maven in automation projects? Give a practical example from a hypothetical Flipkart project involving e-commerce marketplace, seller tools, and fulfilment, and explain which checks or trade-offs matter most.
Show answer
It manages dependencies through pom.xml, builds the project, runs tests with Surefire and standardises structure across teams. Example application: In a hypothetical Flipkart project involving e-commerce marketplace, seller tools, and fulfilment, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - What is the use of Maven in automation projects? Give a practical example from a hypothetical CRED project involving member rewards, credit-card payments, and financial products, and explain which checks or trade-offs matter most.
Show answer
It manages dependencies through pom.xml, builds the project, runs tests with Surefire and standardises structure across teams. Example application: In a hypothetical CRED project involving member rewards, credit-card payments, and financial products, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - What is the use of Maven in automation projects? Give a practical example from a hypothetical Razorpay project involving payment gateway, settlement, and merchant integrations, and explain which checks or trade-offs matter most.
Show answer
It manages dependencies through pom.xml, builds the project, runs tests with Surefire and standardises structure across teams. Example application: In a hypothetical Razorpay project involving payment gateway, settlement, and merchant integrations, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - What is the use of Maven in automation projects? Give a practical example from a hypothetical ServiceNow project involving IT service management and enterprise workflow automation, and explain which checks or trade-offs matter most.
Show answer
It manages dependencies through pom.xml, builds the project, runs tests with Surefire and standardises structure across teams. Example application: In a hypothetical ServiceNow project involving IT service management and enterprise workflow automation, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - What is the use of Maven in automation projects? Give a practical example from a hypothetical Walmart project involving retail commerce, inventory, and supply-chain operations, and explain which checks or trade-offs matter most.
Show answer
It manages dependencies through pom.xml, builds the project, runs tests with Surefire and standardises structure across teams. Example application: In a hypothetical Walmart project involving retail commerce, inventory, and supply-chain operations, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - What is the use of Maven in automation projects? Give a practical example from a hypothetical Oracle project involving enterprise databases, cloud infrastructure, and business applications, and explain which checks or trade-offs matter most.
Show answer
It manages dependencies through pom.xml, builds the project, runs tests with Surefire and standardises structure across teams. Example application: In a hypothetical Oracle project involving enterprise databases, cloud infrastructure, and business applications, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - What is the use of Maven in automation projects? Give a practical example from a hypothetical HCLTech project involving enterprise technology services and infrastructure, and explain which checks or trade-offs matter most.
Show answer
It manages dependencies through pom.xml, builds the project, runs tests with Surefire and standardises structure across teams. Example application: In a hypothetical HCLTech project involving enterprise technology services and infrastructure, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - What is the use of Maven in automation projects? Give a practical example from a hypothetical Tech Mahindra project involving telecom platforms, IT services, and digital transformation, and explain which checks or trade-offs matter most.
Show answer
It manages dependencies through pom.xml, builds the project, runs tests with Surefire and standardises structure across teams. Example application: In a hypothetical Tech Mahindra project involving telecom platforms, IT services, and digital transformation, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - What is the use of Maven in automation projects?
Show answer
It manages dependencies through pom.xml, builds the project, runs tests with Surefire and standardises structure across teams. - What is the use of Maven in automation projects?
Show answer
It manages dependencies through pom.xml, builds the project, runs tests with Surefire and standardises structure across teams. - What is the use of Maven in automation projects?
Show answer
It manages dependencies through pom.xml, builds the project, runs tests with Surefire and standardises structure across teams. - What is the use of Maven in automation projects?
Show answer
It manages dependencies through pom.xml, builds the project, runs tests with Surefire and standardises structure across teams.
4Sheet 4: BDD & API
Weeks 9–10 · 4 topicsClick to open topics ▾
Sheet 4: BDD & API
Weeks 9–10 · 4 topics
Practise: Cucumber · 13 questionsEasy
- What is BDD and how does Cucumber work? Give a practical example from a hypothetical Capgemini project involving client delivery, data platforms, and enterprise transformation, and explain which checks or trade-offs matter most.
Show answer
Behaviour-driven development writes scenarios in Given-When-Then Gherkin that map to step definitions in code, so business and QA share one language. Example application: In a hypothetical Capgemini project involving client delivery, data platforms, and enterprise transformation, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - What is BDD and how does Cucumber work? Give a practical example from a hypothetical Google project involving search, advertising, maps, and cloud products, and explain which checks or trade-offs matter most.
Show answer
Behaviour-driven development writes scenarios in Given-When-Then Gherkin that map to step definitions in code, so business and QA share one language. Example application: In a hypothetical Google project involving search, advertising, maps, and cloud products, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - What is BDD and how does Cucumber work? Give a practical example from a hypothetical Bloomberg project involving financial terminals, market data, and news systems, and explain which checks or trade-offs matter most.
Show answer
Behaviour-driven development writes scenarios in Given-When-Then Gherkin that map to step definitions in code, so business and QA share one language. Example application: In a hypothetical Bloomberg project involving financial terminals, market data, and news systems, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - What is BDD and how does Cucumber work? Give a practical example from a hypothetical Stripe project involving online payments, billing, and financial infrastructure, and explain which checks or trade-offs matter most.
Show answer
Behaviour-driven development writes scenarios in Given-When-Then Gherkin that map to step definitions in code, so business and QA share one language. Example application: In a hypothetical Stripe project involving online payments, billing, and financial infrastructure, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - What is BDD and how does Cucumber work? Give a practical example from a hypothetical Adobe project involving creative software, document workflows, and subscriptions, and explain which checks or trade-offs matter most.
Show answer
Behaviour-driven development writes scenarios in Given-When-Then Gherkin that map to step definitions in code, so business and QA share one language. Example application: In a hypothetical Adobe project involving creative software, document workflows, and subscriptions, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - What is BDD and how does Cucumber work? Give a practical example from a hypothetical Zomato project involving food ordering, restaurant discovery, and delivery, and explain which checks or trade-offs matter most.
Show answer
Behaviour-driven development writes scenarios in Given-When-Then Gherkin that map to step definitions in code, so business and QA share one language. Example application: In a hypothetical Zomato project involving food ordering, restaurant discovery, and delivery, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - What is BDD and how does Cucumber work? Give a practical example from a hypothetical ServiceNow project involving IT service management and enterprise workflow automation, and explain which checks or trade-offs matter most.
Show answer
Behaviour-driven development writes scenarios in Given-When-Then Gherkin that map to step definitions in code, so business and QA share one language. Example application: In a hypothetical ServiceNow project involving IT service management and enterprise workflow automation, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - What is BDD and how does Cucumber work? Give a practical example from a hypothetical Walmart project involving retail commerce, inventory, and supply-chain operations, and explain which checks or trade-offs matter most.
Show answer
Behaviour-driven development writes scenarios in Given-When-Then Gherkin that map to step definitions in code, so business and QA share one language. Example application: In a hypothetical Walmart project involving retail commerce, inventory, and supply-chain operations, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - What is BDD and how does Cucumber work? Give a practical example from a hypothetical Oracle project involving enterprise databases, cloud infrastructure, and business applications, and explain which checks or trade-offs matter most.
Show answer
Behaviour-driven development writes scenarios in Given-When-Then Gherkin that map to step definitions in code, so business and QA share one language. Example application: In a hypothetical Oracle project involving enterprise databases, cloud infrastructure, and business applications, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - What is BDD and how does Cucumber work? Give a practical example from a hypothetical Mastercard project involving card payment networks and fraud prevention, and explain which checks or trade-offs matter most.
Show answer
Behaviour-driven development writes scenarios in Given-When-Then Gherkin that map to step definitions in code, so business and QA share one language. Example application: In a hypothetical Mastercard project involving card payment networks and fraud prevention, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - What is BDD and how does Cucumber work?
Show answer
Behaviour-driven development writes scenarios in Given-When-Then Gherkin that map to step definitions in code, so business and QA share one language. - What is BDD and how does Cucumber work?
Show answer
Behaviour-driven development writes scenarios in Given-When-Then Gherkin that map to step definitions in code, so business and QA share one language. - What is BDD and how does Cucumber work?
Show answer
Behaviour-driven development writes scenarios in Given-When-Then Gherkin that map to step definitions in code, so business and QA share one language.
Practise: Gherkin · 13 questionsEasy
- What is BDD and how does Cucumber work? Give a practical example from a hypothetical TCS project involving enterprise IT services, integration, and client delivery, and explain which checks or trade-offs matter most.
Show answer
Behaviour-driven development writes scenarios in Given-When-Then Gherkin that map to step definitions in code, so business and QA share one language. Example application: In a hypothetical TCS project involving enterprise IT services, integration, and client delivery, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - What is BDD and how does Cucumber work? Give a practical example from a hypothetical Wipro project involving managed IT services, cloud migration, and digital transformation, and explain which checks or trade-offs matter most.
Show answer
Behaviour-driven development writes scenarios in Given-When-Then Gherkin that map to step definitions in code, so business and QA share one language. Example application: In a hypothetical Wipro project involving managed IT services, cloud migration, and digital transformation, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - What is BDD and how does Cucumber work? Give a practical example from a hypothetical Cognizant project involving enterprise applications and healthcare or financial client systems, and explain which checks or trade-offs matter most.
Show answer
Behaviour-driven development writes scenarios in Given-When-Then Gherkin that map to step definitions in code, so business and QA share one language. Example application: In a hypothetical Cognizant project involving enterprise applications and healthcare or financial client systems, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - What is BDD and how does Cucumber work? Give a practical example from a hypothetical Meta project involving social platforms, messaging, and advertising systems, and explain which checks or trade-offs matter most.
Show answer
Behaviour-driven development writes scenarios in Given-When-Then Gherkin that map to step definitions in code, so business and QA share one language. Example application: In a hypothetical Meta project involving social platforms, messaging, and advertising systems, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - What is BDD and how does Cucumber work? Give a practical example from a hypothetical LinkedIn project involving professional networking, job discovery, and recruiting products, and explain which checks or trade-offs matter most.
Show answer
Behaviour-driven development writes scenarios in Given-When-Then Gherkin that map to step definitions in code, so business and QA share one language. Example application: In a hypothetical LinkedIn project involving professional networking, job discovery, and recruiting products, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - What is BDD and how does Cucumber work? Give a practical example from a hypothetical Tower Research Capital project involving low-latency trading and market data systems, and explain which checks or trade-offs matter most.
Show answer
Behaviour-driven development writes scenarios in Given-When-Then Gherkin that map to step definitions in code, so business and QA share one language. Example application: In a hypothetical Tower Research Capital project involving low-latency trading and market data systems, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - What is BDD and how does Cucumber work? Give a practical example from a hypothetical Razorpay project involving payment gateway, settlement, and merchant integrations, and explain which checks or trade-offs matter most.
Show answer
Behaviour-driven development writes scenarios in Given-When-Then Gherkin that map to step definitions in code, so business and QA share one language. Example application: In a hypothetical Razorpay project involving payment gateway, settlement, and merchant integrations, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - What is BDD and how does Cucumber work? Give a practical example from a hypothetical Zepto project involving quick commerce, inventory, and last-mile delivery, and explain which checks or trade-offs matter most.
Show answer
Behaviour-driven development writes scenarios in Given-When-Then Gherkin that map to step definitions in code, so business and QA share one language. Example application: In a hypothetical Zepto project involving quick commerce, inventory, and last-mile delivery, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - What is BDD and how does Cucumber work? Give a practical example from a hypothetical Paytm project involving payments, merchant services, and financial products, and explain which checks or trade-offs matter most.
Show answer
Behaviour-driven development writes scenarios in Given-When-Then Gherkin that map to step definitions in code, so business and QA share one language. Example application: In a hypothetical Paytm project involving payments, merchant services, and financial products, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - What is BDD and how does Cucumber work? Give a practical example from a hypothetical Morgan Stanley project involving wealth management, trading, and investment platforms, and explain which checks or trade-offs matter most.
Show answer
Behaviour-driven development writes scenarios in Given-When-Then Gherkin that map to step definitions in code, so business and QA share one language. Example application: In a hypothetical Morgan Stanley project involving wealth management, trading, and investment platforms, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - What is BDD and how does Cucumber work? Give a practical example from a hypothetical Cisco project involving networking, security, and collaboration infrastructure, and explain which checks or trade-offs matter most.
Show answer
Behaviour-driven development writes scenarios in Given-When-Then Gherkin that map to step definitions in code, so business and QA share one language. Example application: In a hypothetical Cisco project involving networking, security, and collaboration infrastructure, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - What is BDD and how does Cucumber work? Give a practical example from a hypothetical Barclays project involving retail banking, trading, and financial compliance, and explain which checks or trade-offs matter most.
Show answer
Behaviour-driven development writes scenarios in Given-When-Then Gherkin that map to step definitions in code, so business and QA share one language. Example application: In a hypothetical Barclays project involving retail banking, trading, and financial compliance, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - What is BDD and how does Cucumber work?
Show answer
Behaviour-driven development writes scenarios in Given-When-Then Gherkin that map to step definitions in code, so business and QA share one language.
Practise: REST Assured · 13 questionsMedium
- How do you verify response time and headers in REST Assured? Give a practical example from a hypothetical TCS project involving enterprise IT services, integration, and client delivery, and explain which checks or trade-offs matter most.
Show answer
Use then().time(lessThan(2000L)) and then().header("Content-Type", containsString("json")) along with body assertions. Example application: In a hypothetical TCS project involving enterprise IT services, integration, and client delivery, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - What is REST Assured? Give a practical example from a hypothetical Google project involving search, advertising, maps, and cloud products, and explain which checks or trade-offs matter most.
Show answer
A Java library that makes API tests readable using given-when-then, with easy request building, response validation and JSON path support. Example application: In a hypothetical Google project involving search, advertising, maps, and cloud products, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - How do you validate a JSON response in REST Assured? Give a practical example from a hypothetical Apple project involving consumer devices, App Store workflows, and subscription services, and explain which checks or trade-offs matter most.
Show answer
Use then().statusCode(200).body("data.id", equalTo(5)), or extract() the response and assert fields with JsonPath. Example application: In a hypothetical Apple project involving consumer devices, App Store workflows, and subscription services, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - Write a GET test in REST Assured. Give a practical example from a hypothetical Tower Research Capital project involving low-latency trading and market data systems, and explain which checks or trade-offs matter most.
Show answer
given().baseUri(url) .when().get("/users/1") .then().statusCode(200).body("id", equalTo(1)); Example application: In a hypothetical Tower Research Capital project involving low-latency trading and market data systems, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - How do you verify response time and headers in REST Assured? Give a practical example from a hypothetical Tower Research Capital project involving low-latency trading and market data systems, and explain which checks or trade-offs matter most.
Show answer
Use then().time(lessThan(2000L)) and then().header("Content-Type", containsString("json")) along with body assertions. Example application: In a hypothetical Tower Research Capital project involving low-latency trading and market data systems, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - What is REST Assured? Give a practical example from a hypothetical Razorpay project involving payment gateway, settlement, and merchant integrations, and explain which checks or trade-offs matter most.
Show answer
A Java library that makes API tests readable using given-when-then, with easy request building, response validation and JSON path support. Example application: In a hypothetical Razorpay project involving payment gateway, settlement, and merchant integrations, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - How do you verify response time and headers in REST Assured? Give a practical example from a hypothetical Swiggy project involving food delivery, logistics, and quick commerce, and explain which checks or trade-offs matter most.
Show answer
Use then().time(lessThan(2000L)) and then().header("Content-Type", containsString("json")) along with body assertions. Example application: In a hypothetical Swiggy project involving food delivery, logistics, and quick commerce, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - What is REST Assured? Give a practical example from a hypothetical Zepto project involving quick commerce, inventory, and last-mile delivery, and explain which checks or trade-offs matter most.
Show answer
A Java library that makes API tests readable using given-when-then, with easy request building, response validation and JSON path support. Example application: In a hypothetical Zepto project involving quick commerce, inventory, and last-mile delivery, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - How do you validate a JSON response in REST Assured? Give a practical example from a hypothetical Intuit project involving financial software, tax preparation, and small-business tools, and explain which checks or trade-offs matter most.
Show answer
Use then().statusCode(200).body("data.id", equalTo(5)), or extract() the response and assert fields with JsonPath. Example application: In a hypothetical Intuit project involving financial software, tax preparation, and small-business tools, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - How do you validate a JSON response in REST Assured? Give a practical example from a hypothetical Oracle project involving enterprise databases, cloud infrastructure, and business applications, and explain which checks or trade-offs matter most.
Show answer
Use then().statusCode(200).body("data.id", equalTo(5)), or extract() the response and assert fields with JsonPath. Example application: In a hypothetical Oracle project involving enterprise databases, cloud infrastructure, and business applications, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - How do you validate a JSON response in REST Assured? Give a practical example from a hypothetical HSBC project involving international banking, risk, and cross-border payments, and explain which checks or trade-offs matter most.
Show answer
Use then().statusCode(200).body("data.id", equalTo(5)), or extract() the response and assert fields with JsonPath. Example application: In a hypothetical HSBC project involving international banking, risk, and cross-border payments, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - Write a GET test in REST Assured.
Show answer
given().baseUri(url) .when().get("/users/1") .then().statusCode(200).body("id", equalTo(1)); - Write a GET test in REST Assured.
Show answer
given().baseUri(url) .when().get("/users/1") .then().statusCode(200).body("id", equalTo(1));
Practise: Postman · 13 questionsMedium
- What is Postman and how do you automate with it? Give a practical example from a hypothetical Infosys project involving enterprise consulting, digital platforms, and client transformation, and explain which checks or trade-offs matter most.
Show answer
An API client. Add tests in JavaScript, use environments and collections, and run them with Newman in a CI pipeline. Example application: In a hypothetical Infosys project involving enterprise consulting, digital platforms, and client transformation, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - What is Postman and how do you automate with it? Give a practical example from a hypothetical Wipro project involving managed IT services, cloud migration, and digital transformation, and explain which checks or trade-offs matter most.
Show answer
An API client. Add tests in JavaScript, use environments and collections, and run them with Newman in a CI pipeline. Example application: In a hypothetical Wipro project involving managed IT services, cloud migration, and digital transformation, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - What is Postman and how do you automate with it? Give a practical example from a hypothetical Cognizant project involving enterprise applications and healthcare or financial client systems, and explain which checks or trade-offs matter most.
Show answer
An API client. Add tests in JavaScript, use environments and collections, and run them with Newman in a CI pipeline. Example application: In a hypothetical Cognizant project involving enterprise applications and healthcare or financial client systems, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - What is Postman and how do you automate with it? Give a practical example from a hypothetical Amazon project involving an online marketplace, fulfilment operations, and cloud services, and explain which checks or trade-offs matter most.
Show answer
An API client. Add tests in JavaScript, use environments and collections, and run them with Newman in a CI pipeline. Example application: In a hypothetical Amazon project involving an online marketplace, fulfilment operations, and cloud services, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - What is Postman and how do you automate with it? Give a practical example from a hypothetical Apple project involving consumer devices, App Store workflows, and subscription services, and explain which checks or trade-offs matter most.
Show answer
An API client. Add tests in JavaScript, use environments and collections, and run them with Newman in a CI pipeline. Example application: In a hypothetical Apple project involving consumer devices, App Store workflows, and subscription services, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - What is Postman and how do you automate with it? Give a practical example from a hypothetical Tower Research Capital project involving low-latency trading and market data systems, and explain which checks or trade-offs matter most.
Show answer
An API client. Add tests in JavaScript, use environments and collections, and run them with Newman in a CI pipeline. Example application: In a hypothetical Tower Research Capital project involving low-latency trading and market data systems, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - What is Postman and how do you automate with it? Give a practical example from a hypothetical Flipkart project involving e-commerce marketplace, seller tools, and fulfilment, and explain which checks or trade-offs matter most.
Show answer
An API client. Add tests in JavaScript, use environments and collections, and run them with Newman in a CI pipeline. Example application: In a hypothetical Flipkart project involving e-commerce marketplace, seller tools, and fulfilment, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - What is Postman and how do you automate with it? Give a practical example from a hypothetical PhonePe project involving UPI payments, merchant transactions, and financial services, and explain which checks or trade-offs matter most.
Show answer
An API client. Add tests in JavaScript, use environments and collections, and run them with Newman in a CI pipeline. Example application: In a hypothetical PhonePe project involving UPI payments, merchant transactions, and financial services, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - What is Postman and how do you automate with it? Give a practical example from a hypothetical Zepto project involving quick commerce, inventory, and last-mile delivery, and explain which checks or trade-offs matter most.
Show answer
An API client. Add tests in JavaScript, use environments and collections, and run them with Newman in a CI pipeline. Example application: In a hypothetical Zepto project involving quick commerce, inventory, and last-mile delivery, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - What is Postman and how do you automate with it? Give a practical example from a hypothetical Intuit project involving financial software, tax preparation, and small-business tools, and explain which checks or trade-offs matter most.
Show answer
An API client. Add tests in JavaScript, use environments and collections, and run them with Newman in a CI pipeline. Example application: In a hypothetical Intuit project involving financial software, tax preparation, and small-business tools, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - What is Postman and how do you automate with it? Give a practical example from a hypothetical Mastercard project involving card payment networks and fraud prevention, and explain which checks or trade-offs matter most.
Show answer
An API client. Add tests in JavaScript, use environments and collections, and run them with Newman in a CI pipeline. Example application: In a hypothetical Mastercard project involving card payment networks and fraud prevention, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - What is Postman and how do you automate with it? Give a practical example from a hypothetical HSBC project involving international banking, risk, and cross-border payments, and explain which checks or trade-offs matter most.
Show answer
An API client. Add tests in JavaScript, use environments and collections, and run them with Newman in a CI pipeline. Example application: In a hypothetical HSBC project involving international banking, risk, and cross-border payments, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - What is Postman and how do you automate with it?
Show answer
An API client. Add tests in JavaScript, use environments and collections, and run them with Newman in a CI pipeline.
5Sheet 5: CI/CD & Reporting
Week 11 · 4 topicsClick to open topics ▾
Sheet 5: CI/CD & Reporting
Week 11 · 4 topics
Practise: Git · 12 questionsEasy
- What is the purpose of testng.xml? Give a practical example from a hypothetical Infosys project involving enterprise consulting, digital platforms, and client transformation, and explain which checks or trade-offs matter most.
Show answer
A configuration file to define suites, tests, classes, groups, parameters and parallel execution settings. Example application: In a hypothetical Infosys project involving enterprise consulting, digital platforms, and client transformation, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - What do HTTP status codes 200, 201, 400, 401, 403, 404 and 500 mean? Give a practical example from a hypothetical Wipro project involving managed IT services, cloud migration, and digital transformation, and explain which checks or trade-offs matter most.
Show answer
200 OK, 201 Created, 400 bad request, 401 unauthenticated, 403 forbidden, 404 not found and 500 server error. Example application: In a hypothetical Wipro project involving managed IT services, cloud migration, and digital transformation, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - What is the purpose of testng.xml? Give a practical example from a hypothetical Wipro project involving managed IT services, cloud migration, and digital transformation, and explain which checks or trade-offs matter most.
Show answer
A configuration file to define suites, tests, classes, groups, parameters and parallel execution settings. Example application: In a hypothetical Wipro project involving managed IT services, cloud migration, and digital transformation, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - POST vs PUT vs PATCH? Give a practical example from a hypothetical Infosys project involving enterprise consulting, digital platforms, and client transformation
Show answer
POST creates a resource, PUT replaces the whole resource (idempotent) and PATCH updates part of it. - What are the advantages of version control for test code? Give a practical example from a hypothetical Infosys project involving enterprise consulting, digital platforms, and client transformation, and explain which checks or trade-offs matter most.
Show answer
Git tracks changes, enables code review, branching and rollback and lets teams collaborate on the framework safely. Example application: In a hypothetical Infosys project involving enterprise consulting, digital platforms, and client transformation, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - What is the difference between hard and soft assertions? Give a practical example from a hypothetical Wipro project involving managed IT services, cloud migration, and digital transformation, and explain which checks or trade-offs matter most.
Show answer
Hard assert stops the test at the first failure; SoftAssert collects failures and reports them together when assertAll() is called. Example application: In a hypothetical Wipro project involving managed IT services, cloud migration, and digital transformation, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - What is OAuth 2.0 in API testing? Give a practical example from a hypothetical Wipro project involving managed IT services, cloud migration, and digital transformation, and explain which checks or trade-offs matter most.
Show answer
An authorisation framework where a client obtains an access token from an auth server and sends it as a Bearer token; tests fetch and reuse the token in setup. Example application: In a hypothetical Wipro project involving managed IT services, cloud migration, and digital transformation, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - What is data-driven testing? Give a practical example from a hypothetical PayPal project involving digital payments, merchant checkout, and transaction risk, and explain which checks or trade-offs matter most.
Show answer
Running the same test logic with multiple data sets from Excel, CSV, JSON or a database, so coverage increases without duplicating code. Example application: In a hypothetical PayPal project involving digital payments, merchant checkout, and transaction risk, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - How do you retry failed tests in TestNG? Give a practical example from a hypothetical PayPal project involving digital payments, merchant checkout, and transaction risk, and explain which checks or trade-offs matter most.
Show answer
Implement IRetryAnalyzer with a retry count and attach it through the test annotation or a listener to rerun flaky tests. Example application: In a hypothetical PayPal project involving digital payments, merchant checkout, and transaction risk, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - What are listeners in TestNG? Give a practical example from a hypothetical PayPal project involving digital payments, merchant checkout, and transaction risk, and explain which checks or trade-offs matter most.
Show answer
Classes like ITestListener that react to events such as test start, success or failure, commonly used for screenshots and reporting. Example application: In a hypothetical PayPal project involving digital payments, merchant checkout, and transaction risk, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - What is CI/CD and why does automation need it? Give a practical example from a hypothetical Tech Mahindra project involving telecom platforms, IT services, and digital transformation, and explain which checks or trade-offs matter most.
Show answer
Continuous Integration builds and tests every commit, and Continuous Delivery ships automatically. Automated tests give fast feedback and gate releases. Example application: In a hypothetical Tech Mahindra project involving telecom platforms, IT services, and digital transformation, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - How do you take a screenshot on failure in TestNG? Give a practical example from a hypothetical Tech Mahindra project involving telecom platforms, IT services, and digital transformation, and explain which checks or trade-offs matter most.
Show answer
Implement ITestListener.onTestFailure(): File src = ((TakesScreenshot) driver).getScreenshotAs(OutputType.FILE); then copy it into the reports folder. Example application: In a hypothetical Tech Mahindra project involving telecom platforms, IT services, and digital transformation, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable.
Practise: Jenkins · 12 questionsEasy
- What is a Jenkins pipeline? Give a practical example from a hypothetical TCS project involving enterprise IT services, integration, and client delivery, and explain which checks or trade-offs matter most.
Show answer
A scripted or declarative Jenkinsfile that defines stages such as build, test and deploy as code stored with the project. Example application: In a hypothetical TCS project involving enterprise IT services, integration, and client delivery, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - What is a Jenkins pipeline? Give a practical example from a hypothetical Amazon project involving an online marketplace, fulfilment operations, and cloud services, and explain which checks or trade-offs matter most.
Show answer
A scripted or declarative Jenkinsfile that defines stages such as build, test and deploy as code stored with the project. Example application: In a hypothetical Amazon project involving an online marketplace, fulfilment operations, and cloud services, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - What is a Jenkins pipeline? Give a practical example from a hypothetical Google project involving search, advertising, maps, and cloud products, and explain which checks or trade-offs matter most.
Show answer
A scripted or declarative Jenkinsfile that defines stages such as build, test and deploy as code stored with the project. Example application: In a hypothetical Google project involving search, advertising, maps, and cloud products, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - What is a Jenkins pipeline? Give a practical example from a hypothetical Bloomberg project involving financial terminals, market data, and news systems, and explain which checks or trade-offs matter most.
Show answer
A scripted or declarative Jenkinsfile that defines stages such as build, test and deploy as code stored with the project. Example application: In a hypothetical Bloomberg project involving financial terminals, market data, and news systems, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - How do you integrate Selenium tests with Jenkins? Give a practical example from a hypothetical Flipkart project involving e-commerce marketplace, seller tools, and fulfilment, and explain which checks or trade-offs matter most.
Show answer
Create a job or pipeline that checks out code, runs mvn test, publishes reports and triggers on commits or schedules. Example application: In a hypothetical Flipkart project involving e-commerce marketplace, seller tools, and fulfilment, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - What is a Jenkins pipeline? Give a practical example from a hypothetical Oracle project involving enterprise databases, cloud infrastructure, and business applications, and explain which checks or trade-offs matter most.
Show answer
A scripted or declarative Jenkinsfile that defines stages such as build, test and deploy as code stored with the project. Example application: In a hypothetical Oracle project involving enterprise databases, cloud infrastructure, and business applications, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - Tests pass locally but fail on Jenkins. Why? Give a practical example from a hypothetical Infosys project involving enterprise consulting, digital platforms, and client transformation, and explain which checks or trade-offs matter most.
Show answer
Headless mode or screen resolution, timing issues, environment data, missing dependencies, browser–driver version mismatch or parallel conflicts. Check logs and failure screenshots and make waits robust. Example application: In a hypothetical Infosys project involving enterprise consulting, digital platforms, and client transformation, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - Tests pass locally but fail on Jenkins. Why? Give a practical example from a hypothetical Uber project involving ride-hailing, driver operations, and real-time dispatch, and explain which checks or trade-offs matter most.
Show answer
Headless mode or screen resolution, timing issues, environment data, missing dependencies, browser–driver version mismatch or parallel conflicts. Check logs and failure screenshots and make waits robust. Example application: In a hypothetical Uber project involving ride-hailing, driver operations, and real-time dispatch, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - Tests pass locally but fail on Jenkins. Why? Give a practical example from a hypothetical Paytm project involving payments, merchant services, and financial products, and explain which checks or trade-offs matter most.
Show answer
Headless mode or screen resolution, timing issues, environment data, missing dependencies, browser–driver version mismatch or parallel conflicts. Check logs and failure screenshots and make waits robust. Example application: In a hypothetical Paytm project involving payments, merchant services, and financial products, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - Tests pass locally but fail on Jenkins. Why? Give a practical example from a hypothetical Oracle project involving enterprise databases, cloud infrastructure, and business applications, and explain which checks or trade-offs matter most.
Show answer
Headless mode or screen resolution, timing issues, environment data, missing dependencies, browser–driver version mismatch or parallel conflicts. Check logs and failure screenshots and make waits robust. Example application: In a hypothetical Oracle project involving enterprise databases, cloud infrastructure, and business applications, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - Tests pass locally but fail on Jenkins. Why? Give a practical example from a hypothetical Cisco project involving networking, security, and collaboration infrastructure, and explain which checks or trade-offs matter most.
Show answer
Headless mode or screen resolution, timing issues, environment data, missing dependencies, browser–driver version mismatch or parallel conflicts. Check logs and failure screenshots and make waits robust. Example application: In a hypothetical Cisco project involving networking, security, and collaboration infrastructure, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - Tests pass locally but fail on Jenkins. Why? Give a practical example from a hypothetical Visa project involving card networks, authorization, and payment-risk systems, and explain which checks or trade-offs matter most.
Show answer
Headless mode or screen resolution, timing issues, environment data, missing dependencies, browser–driver version mismatch or parallel conflicts. Check logs and failure screenshots and make waits robust. Example application: In a hypothetical Visa project involving card networks, authorization, and payment-risk systems, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable.
Practise: Extent reports · 12 questionsMedium
- Which reporting tools do you use? Give a practical example from a hypothetical Amazon project involving an online marketplace, fulfilment operations, and cloud services, and explain which checks or trade-offs matter most.
Show answer
TestNG reports, ExtentReports and Allure give charts, screenshots and logs that are easy to share with the team. Example application: In a hypothetical Amazon project involving an online marketplace, fulfilment operations, and cloud services, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - Which reporting tools do you use? Give a practical example from a hypothetical Meta project involving social platforms, messaging, and advertising systems, and explain which checks or trade-offs matter most.
Show answer
TestNG reports, ExtentReports and Allure give charts, screenshots and logs that are easy to share with the team. Example application: In a hypothetical Meta project involving social platforms, messaging, and advertising systems, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - Which reporting tools do you use? Give a practical example from a hypothetical Uber project involving ride-hailing, driver operations, and real-time dispatch, and explain which checks or trade-offs matter most.
Show answer
TestNG reports, ExtentReports and Allure give charts, screenshots and logs that are easy to share with the team. Example application: In a hypothetical Uber project involving ride-hailing, driver operations, and real-time dispatch, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - Which reporting tools do you use? Give a practical example from a hypothetical Bloomberg project involving financial terminals, market data, and news systems, and explain which checks or trade-offs matter most.
Show answer
TestNG reports, ExtentReports and Allure give charts, screenshots and logs that are easy to share with the team. Example application: In a hypothetical Bloomberg project involving financial terminals, market data, and news systems, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - Which reporting tools do you use? Give a practical example from a hypothetical Tower Research Capital project involving low-latency trading and market data systems, and explain which checks or trade-offs matter most.
Show answer
TestNG reports, ExtentReports and Allure give charts, screenshots and logs that are easy to share with the team. Example application: In a hypothetical Tower Research Capital project involving low-latency trading and market data systems, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - Which reporting tools do you use? Give a practical example from a hypothetical Flipkart project involving e-commerce marketplace, seller tools, and fulfilment, and explain which checks or trade-offs matter most.
Show answer
TestNG reports, ExtentReports and Allure give charts, screenshots and logs that are easy to share with the team. Example application: In a hypothetical Flipkart project involving e-commerce marketplace, seller tools, and fulfilment, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - Which reporting tools do you use? Give a practical example from a hypothetical PhonePe project involving UPI payments, merchant transactions, and financial services, and explain which checks or trade-offs matter most.
Show answer
TestNG reports, ExtentReports and Allure give charts, screenshots and logs that are easy to share with the team. Example application: In a hypothetical PhonePe project involving UPI payments, merchant transactions, and financial services, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - Which reporting tools do you use? Give a practical example from a hypothetical Zomato project involving food ordering, restaurant discovery, and delivery, and explain which checks or trade-offs matter most.
Show answer
TestNG reports, ExtentReports and Allure give charts, screenshots and logs that are easy to share with the team. Example application: In a hypothetical Zomato project involving food ordering, restaurant discovery, and delivery, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - Which reporting tools do you use? Give a practical example from a hypothetical ServiceNow project involving IT service management and enterprise workflow automation, and explain which checks or trade-offs matter most.
Show answer
TestNG reports, ExtentReports and Allure give charts, screenshots and logs that are easy to share with the team. Example application: In a hypothetical ServiceNow project involving IT service management and enterprise workflow automation, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - Which reporting tools do you use? Give a practical example from a hypothetical Barclays project involving retail banking, trading, and financial compliance, and explain which checks or trade-offs matter most.
Show answer
TestNG reports, ExtentReports and Allure give charts, screenshots and logs that are easy to share with the team. Example application: In a hypothetical Barclays project involving retail banking, trading, and financial compliance, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - Which reporting tools do you use?
Show answer
TestNG reports, ExtentReports and Allure give charts, screenshots and logs that are easy to share with the team. - Which reporting tools do you use?
Show answer
TestNG reports, ExtentReports and Allure give charts, screenshots and logs that are easy to share with the team.
Practise: Selenium Grid · 12 questionsMedium
- What is Selenium Grid and why use it? Give a practical example from a hypothetical TCS project involving enterprise IT services, integration, and client delivery, and explain which checks or trade-offs matter most.
Show answer
It runs tests in parallel across multiple machines and browsers using a hub and nodes, cutting execution time and increasing browser coverage. Example application: In a hypothetical TCS project involving enterprise IT services, integration, and client delivery, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - What is Selenium Grid and why use it? Give a practical example from a hypothetical Infosys project involving enterprise consulting, digital platforms, and client transformation, and explain which checks or trade-offs matter most.
Show answer
It runs tests in parallel across multiple machines and browsers using a hub and nodes, cutting execution time and increasing browser coverage. Example application: In a hypothetical Infosys project involving enterprise consulting, digital platforms, and client transformation, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - What is Selenium Grid and why use it? Give a practical example from a hypothetical Accenture project involving multi-client consulting, cloud transformation, and process automation, and explain which checks or trade-offs matter most.
Show answer
It runs tests in parallel across multiple machines and browsers using a hub and nodes, cutting execution time and increasing browser coverage. Example application: In a hypothetical Accenture project involving multi-client consulting, cloud transformation, and process automation, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - What is Selenium Grid and why use it? Give a practical example from a hypothetical LinkedIn project involving professional networking, job discovery, and recruiting products, and explain which checks or trade-offs matter most.
Show answer
It runs tests in parallel across multiple machines and browsers using a hub and nodes, cutting execution time and increasing browser coverage. Example application: In a hypothetical LinkedIn project involving professional networking, job discovery, and recruiting products, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - What is Selenium Grid and why use it? Give a practical example from a hypothetical D. E. Shaw project involving quantitative research and financial technology, and explain which checks or trade-offs matter most.
Show answer
It runs tests in parallel across multiple machines and browsers using a hub and nodes, cutting execution time and increasing browser coverage. Example application: In a hypothetical D. E. Shaw project involving quantitative research and financial technology, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - What is Selenium Grid and why use it? Give a practical example from a hypothetical PayPal project involving digital payments, merchant checkout, and transaction risk, and explain which checks or trade-offs matter most.
Show answer
It runs tests in parallel across multiple machines and browsers using a hub and nodes, cutting execution time and increasing browser coverage. Example application: In a hypothetical PayPal project involving digital payments, merchant checkout, and transaction risk, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - What is Selenium Grid and why use it? Give a practical example from a hypothetical CRED project involving member rewards, credit-card payments, and financial products, and explain which checks or trade-offs matter most.
Show answer
It runs tests in parallel across multiple machines and browsers using a hub and nodes, cutting execution time and increasing browser coverage. Example application: In a hypothetical CRED project involving member rewards, credit-card payments, and financial products, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - What is Selenium Grid and why use it? Give a practical example from a hypothetical Intuit project involving financial software, tax preparation, and small-business tools, and explain which checks or trade-offs matter most.
Show answer
It runs tests in parallel across multiple machines and browsers using a hub and nodes, cutting execution time and increasing browser coverage. Example application: In a hypothetical Intuit project involving financial software, tax preparation, and small-business tools, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - What is Selenium Grid and why use it? Give a practical example from a hypothetical Cisco project involving networking, security, and collaboration infrastructure, and explain which checks or trade-offs matter most.
Show answer
It runs tests in parallel across multiple machines and browsers using a hub and nodes, cutting execution time and increasing browser coverage. Example application: In a hypothetical Cisco project involving networking, security, and collaboration infrastructure, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - What is Selenium Grid and why use it?
Show answer
It runs tests in parallel across multiple machines and browsers using a hub and nodes, cutting execution time and increasing browser coverage. - What is Selenium Grid and why use it?
Show answer
It runs tests in parallel across multiple machines and browsers using a hub and nodes, cutting execution time and increasing browser coverage. - What is Selenium Grid and why use it?
Show answer
It runs tests in parallel across multiple machines and browsers using a hub and nodes, cutting execution time and increasing browser coverage.
6Sheet 6: Capstone
Week 12 · 2 topicsClick to open topics ▾
Sheet 6: Capstone
Week 12 · 2 topics
Practise: E-commerce framework · 15 questionsEasy
- What is TestNG and why is it used with Selenium? Give a practical example from a hypothetical Flipkart project involving e-commerce marketplace, seller tools, and fulfilment, and explain which checks or trade-offs matter most.
Show answer
A test framework offering annotations, grouping, prioritisation, parallel runs, data providers and reports, which structure and scale Selenium tests. Example application: In a hypothetical Flipkart project involving e-commerce marketplace, seller tools, and fulfilment, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - What is TestNG and why is it used with Selenium? Give a practical example from a hypothetical Meesho project involving social commerce, seller listings, and logistics, and explain which checks or trade-offs matter most.
Show answer
A test framework offering annotations, grouping, prioritisation, parallel runs, data providers and reports, which structure and scale Selenium tests. Example application: In a hypothetical Meesho project involving social commerce, seller listings, and logistics, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - What is TestNG and why is it used with Selenium? Give a practical example from a hypothetical Walmart project involving retail commerce, inventory, and supply-chain operations, and explain which checks or trade-offs matter most.
Show answer
A test framework offering annotations, grouping, prioritisation, parallel runs, data providers and reports, which structure and scale Selenium tests. Example application: In a hypothetical Walmart project involving retail commerce, inventory, and supply-chain operations, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - What is the Hybrid framework? Give a practical example from a hypothetical Flipkart project involving e-commerce marketplace, seller tools, and fulfilment, and explain which checks or trade-offs matter most.
Show answer
A framework combining data-driven, keyword-driven and POM approaches with reporting and utilities, giving flexibility and reuse. Example application: In a hypothetical Flipkart project involving e-commerce marketplace, seller tools, and fulfilment, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - How do you manage test data in a framework? Give a practical example from a hypothetical Flipkart project involving e-commerce marketplace, seller tools, and fulfilment, and explain which checks or trade-offs matter most.
Show answer
Use external files or APIs and database setup scripts, generate unique data per run, and clean up afterwards so tests stay independent. Example application: In a hypothetical Flipkart project involving e-commerce marketplace, seller tools, and fulfilment, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - What is the Hybrid framework? Give a practical example from a hypothetical Meesho project involving social commerce, seller listings, and logistics, and explain which checks or trade-offs matter most.
Show answer
A framework combining data-driven, keyword-driven and POM approaches with reporting and utilities, giving flexibility and reuse. Example application: In a hypothetical Meesho project involving social commerce, seller listings, and logistics, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - Where do you use OOP concepts in your framework? Give a practical example from a hypothetical Swiggy project involving food delivery, logistics, and quick commerce, and explain which checks or trade-offs matter most.
Show answer
Encapsulation: private locators with public page methods. Inheritance: pages extend a BasePage. Polymorphism: the WebDriver interface for different browsers. Abstraction: utility layers hiding Selenium details. Example application: In a hypothetical Swiggy project involving food delivery, logistics, and quick commerce, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - How do you manage test data in a framework? Give a practical example from a hypothetical Swiggy project involving food delivery, logistics, and quick commerce, and explain which checks or trade-offs matter most.
Show answer
Use external files or APIs and database setup scripts, generate unique data per run, and clean up afterwards so tests stay independent. Example application: In a hypothetical Swiggy project involving food delivery, logistics, and quick commerce, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - What is the Hybrid framework? Give a practical example from a hypothetical Zepto project involving quick commerce, inventory, and last-mile delivery, and explain which checks or trade-offs matter most.
Show answer
A framework combining data-driven, keyword-driven and POM approaches with reporting and utilities, giving flexibility and reuse. Example application: In a hypothetical Zepto project involving quick commerce, inventory, and last-mile delivery, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - How do you manage test data in a framework? Give a practical example from a hypothetical Zepto project involving quick commerce, inventory, and last-mile delivery, and explain which checks or trade-offs matter most.
Show answer
Use external files or APIs and database setup scripts, generate unique data per run, and clean up afterwards so tests stay independent. Example application: In a hypothetical Zepto project involving quick commerce, inventory, and last-mile delivery, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - What is the Hybrid framework? Give a practical example from a hypothetical Walmart project involving retail commerce, inventory, and supply-chain operations, and explain which checks or trade-offs matter most.
Show answer
A framework combining data-driven, keyword-driven and POM approaches with reporting and utilities, giving flexibility and reuse. Example application: In a hypothetical Walmart project involving retail commerce, inventory, and supply-chain operations, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - How would you design an automation framework from scratch? Give a practical example from a hypothetical Flipkart project involving e-commerce marketplace, seller tools, and fulfilment, and explain which checks or trade-offs matter most.
Show answer
Maven project → POM with a BasePage → driver factory with ThreadLocal → config files → data-driven utilities (Excel/JSON) → TestNG or Cucumber runner → logging → Extent reports with screenshots on failure → Jenkins pipeline. Example application: In a hypothetical Flipkart project involving e-commerce marketplace, seller tools, and fulfilment, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - How would you design an automation framework from scratch? Give a practical example from a hypothetical Meesho project involving social commerce, seller listings, and logistics, and explain which checks or trade-offs matter most.
Show answer
Maven project → POM with a BasePage → driver factory with ThreadLocal → config files → data-driven utilities (Excel/JSON) → TestNG or Cucumber runner → logging → Extent reports with screenshots on failure → Jenkins pipeline. Example application: In a hypothetical Meesho project involving social commerce, seller listings, and logistics, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - How would you design an automation framework from scratch? Give a practical example from a hypothetical Zepto project involving quick commerce, inventory, and last-mile delivery, and explain which checks or trade-offs matter most.
Show answer
Maven project → POM with a BasePage → driver factory with ThreadLocal → config files → data-driven utilities (Excel/JSON) → TestNG or Cucumber runner → logging → Extent reports with screenshots on failure → Jenkins pipeline. Example application: In a hypothetical Zepto project involving quick commerce, inventory, and last-mile delivery, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - How would you design an automation framework from scratch? Give a practical example from a hypothetical Walmart project involving retail commerce, inventory, and supply-chain operations, and explain which checks or trade-offs matter most.
Show answer
Maven project → POM with a BasePage → driver factory with ThreadLocal → config files → data-driven utilities (Excel/JSON) → TestNG or Cucumber runner → logging → Extent reports with screenshots on failure → Jenkins pipeline. Example application: In a hypothetical Walmart project involving retail commerce, inventory, and supply-chain operations, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable.
Practise: Interview preparation · 15 questionsEasy
- What locators does Selenium support? Give a practical example from a hypothetical Intuit project involving financial software, tax preparation, and small-business tools, and explain which checks or trade-offs matter most.
Show answer
id, name, className, tagName, linkText, partialLinkText, CSS selector and XPath. Prefer stable ids or CSS, using XPath when needed. Example application: In a hypothetical Intuit project involving financial software, tax preparation, and small-business tools, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - What is the Page Object Model? Give a practical example from a hypothetical Intuit project involving financial software, tax preparation, and small-business tools, and explain which checks or trade-offs matter most.
Show answer
A design pattern where each page is a class holding its locators and actions, so tests stay readable and a locator change is fixed in one place. Example application: In a hypothetical Intuit project involving financial software, tax preparation, and small-business tools, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - What is the execution order of TestNG annotations? Give a practical example from a hypothetical Intuit project involving financial software, tax preparation, and small-business tools, and explain which checks or trade-offs matter most.
Show answer
@BeforeSuite → @BeforeTest → @BeforeClass → @BeforeMethod → @Test → @AfterMethod → @AfterClass → @AfterTest → @AfterSuite. Example application: In a hypothetical Intuit project involving financial software, tax preparation, and small-business tools, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - What is the purpose of testng.xml? Give a practical example from a hypothetical Intuit project involving financial software, tax preparation, and small-business tools, and explain which checks or trade-offs matter most.
Show answer
A configuration file to define suites, tests, classes, groups, parameters and parallel execution settings. Example application: In a hypothetical Intuit project involving financial software, tax preparation, and small-business tools, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - Write an XPath for a button with the text "Login". Give a practical example from a hypothetical Intuit project involving financial software, tax preparation, and small-business tools, and explain which checks or trade-offs matter most.
Show answer
//button[normalize-space()='Login'] //button[contains(text(),'Login')] Example application: In a hypothetical Intuit project involving financial software, tax preparation, and small-business tools, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - What is TestNG and why is it used with Selenium? Give a practical example from a hypothetical Intuit project involving financial software, tax preparation, and small-business tools, and explain which checks or trade-offs matter most.
Show answer
A test framework offering annotations, grouping, prioritisation, parallel runs, data providers and reports, which structure and scale Selenium tests. Example application: In a hypothetical Intuit project involving financial software, tax preparation, and small-business tools, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - What are relative locators in Selenium 4? Give a practical example from a hypothetical Intuit project involving financial software, tax preparation, and small-business tools, and explain which checks or trade-offs matter most.
Show answer
Locators such as above, below, toLeftOf and near that find elements by their position relative to another element. Example application: In a hypothetical Intuit project involving financial software, tax preparation, and small-business tools, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - How do you switch between windows and tabs? Give a practical example from a hypothetical Intuit project involving financial software, tax preparation, and small-business tools, and explain which checks or trade-offs matter most.
Show answer
Get getWindowHandles(), loop to find the target, and call driver.switchTo().window(handle); switch back using the stored parent handle. Example application: In a hypothetical Intuit project involving financial software, tax preparation, and small-business tools, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - What are the different types of waits in Selenium? Give a practical example from a hypothetical Intuit project involving financial software, tax preparation, and small-business tools, and explain which checks or trade-offs matter most.
Show answer
Implicit, explicit (WebDriverWait with ExpectedConditions) and fluent waits; avoid mixing implicit and explicit waits and never rely on Thread.sleep. Example application: In a hypothetical Intuit project involving financial software, tax preparation, and small-business tools, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - How do you make WebDriver thread-safe for parallel runs? Give a practical example from a hypothetical Intuit project involving financial software, tax preparation, and small-business tools, and explain which checks or trade-offs matter most.
Show answer
Store each driver in a ThreadLocal so every thread gets its own instance and tests do not interfere. Example application: In a hypothetical Intuit project involving financial software, tax preparation, and small-business tools, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - How do you handle a test that is flaky only in headless mode? Give a practical example from a hypothetical Intuit project involving financial software, tax preparation, and small-business tools, and explain which checks or trade-offs matter most.
Show answer
Set window size explicitly, use proper waits, check animations and viewport differences, and capture screenshots and logs to find timing issues. Example application: In a hypothetical Intuit project involving financial software, tax preparation, and small-business tools, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - How do you run JavaScript in Selenium? Give a practical example from a hypothetical Intuit project involving financial software, tax preparation, and small-business tools, and explain which checks or trade-offs matter most.
Show answer
Cast the driver to JavascriptExecutor and use executeScript, for example to scroll into view or click hidden elements. Example application: In a hypothetical Intuit project involving financial software, tax preparation, and small-business tools, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - What is data-driven testing? Give a practical example from a hypothetical Intuit project involving financial software, tax preparation, and small-business tools, and explain which checks or trade-offs matter most.
Show answer
Running the same test logic with multiple data sets from Excel, CSV, JSON or a database, so coverage increases without duplicating code. Example application: In a hypothetical Intuit project involving financial software, tax preparation, and small-business tools, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - What is the difference between getText() and getAttribute()? Give a practical example from a hypothetical Intuit project involving financial software, tax preparation, and small-business tools, and explain which checks or trade-offs matter most.
Show answer
getText returns visible inner text; getAttribute returns an HTML attribute or property such as value, href or class. Example application: In a hypothetical Intuit project involving financial software, tax preparation, and small-business tools, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable. - What are listeners in TestNG? Give a practical example from a hypothetical Intuit project involving financial software, tax preparation, and small-business tools, and explain which checks or trade-offs matter most.
Show answer
Classes like ITestListener that react to events such as test start, success or failure, commonly used for screenshots and reporting. Example application: In a hypothetical Intuit project involving financial software, tax preparation, and small-business tools, automate stable high-value flows, isolate test data, avoid brittle waits, capture actionable evidence, and keep the suite maintainable.