Skip to main content

Posts

Showing posts from January, 2024

Selenium Web Driver Hierarchy

  Extends WebDriver Extents Search Context Firefox Extends Remote WebDriver IE Driver Extends Remote WebDriver Safari Extends Remote WebDriver Chromium Extends Remote WebDriver Reason Common Interface – Certain browsers inherits the common behaviours from Remote WebDriver, these common interfaces allow the developers and tester to perform their operation such as commands and methods across different browsers. Code Reusability: - By leveraging the capabilities provided by Remote web Driver, the browser specific driver can reuse the common functionality for communication with selenium WebDriver and browser. Consistent Architecture -Helps this architecture to compatible with different browsers, consistency simplifies the design of the selenium WebDriver framework. Remote Execution - t allows users to run their tests on a remote machine (e.g., on a Selenium Grid) by providing a central hub for test execution. Edge and Chromium Extends Chromium Driver. Reason...

Static and Non-Static

  What is the purpose of the static keyword in Java? The static keyword is used to declare class-level variables and methods . They belong to the class rather than instances of the class and can be accessed using the class name. can we use the static keyword for package level access? In Java, the static keyword is not used for controlling access levels. The static keyword is primarily used to define class-level members, such as variables and methods, that are associated with the class itself rather than with instances of the class. The concept of access levels, on the other hand, is controlled by access modifiers. public class MyClass {     public static int publicStaticVariable = 10;     static int packagePrivateStaticVariable = 20; // package-private by default     private static int privateStaticVariable = 30; } To summarize, while static is used to define class-level members, access modifiers (public, protected,...

Had you designed test cases with a focus on the end user's perspective. How Tester shall ensure that test cases reflected user scenarios and expectations

Why User-Centric Test Cases are Important: User Satisfaction :There are no numbers will mark a count for user satisfaction and if we achieve it so and there are no words for expressing "We done a job " . thus, developing a product and testing that product in a same way will lead to the success path easier. Prioritizing the end user's perspective helps in creating a product that aligns with their needs and preferences, leading to higher user satisfaction. Reduced User Errors: User-focused test cases identify potential areas of confusion or frustration, reducing the likelihood of user errors in real-world scenarios. Market Competitiveness: In today's competitive market, user experience can be a key differentiator. Ensuring that your software meets or exceeds user expectations is crucial for success. User Persona Consideration   Make sure each User test case and user story will fulfil the persona co...

Had you to design test cases for a complex feature. What factors did Tester consider, and how did prioritize test scenarios?

  Take an instance as new application has integrated into existing applications(i,e., Running on real time )Customer want to integrate their application into third party vendors in order to let the customer order their needs through our created app itself. Factors Consisdered : Error Handling , Functional Requirements , Edge cases , Non-Functional Parameters . Transaction Flow Flow1: Customer Land on third party vendors app and start picking their items. Flow2 : Picked Items has to go Cart Page and can see number of items added by visually. Flow3: Once click to checkout , it will allow the user to input their card details and processing transaction. Flow4:Once Transactions done, newly created app show the details of the order and online tracking number . Prioritize scenerios based on the Business Emergency and needs ,well in briefly communicate to team members to identify the Critical paths and prioritize the that test suite first and Start  the execution based on what need to...

How to prepare Execution in TestNG using DependsOnMethod Attribute

  TestNG allows you to specify the order of test method execution using attributes like priority , dependsOnMethods , and dependsOnGroups . Ensure that your test methods are annotated correctly to define their execution order and dependencies. KeyPoints to remember! Do not forget to add depends on each method of working class , if you do not like to add on every method then go for TestNG Xml execution ,where you can perform same operation by Include and Exclude attribute. Here I have attached the Two video based demonstration by working two different URL , I have just worked DependsOnMethods attribute and will work rest of two attributes in sooner session.