What We Are Learn On This Post
Innovalus Technologies Interview Questions
If we have 5 days to test the entire application, then what is our Test Strategy, and we have to deliver the project completely?
Ans: The strategy starts with risk analysis first to determine the functions with the highest risk and plan your test activities as guided by this analysis strategy is to go for Risk-Based Testing. Identify the risks in the areas of User Experience, Financial factors, Business model, etc. And then pick up major features or scenarios from these as per the risk priority number.
You should analyze the application based on Risk-based strategy and follow the MSCO approach – Must, Should, Could, Other test cases need to be executed. First, you have to analyze whether 5 days is enough or not. 1. If not, you have to inform the client, due to some (dev, etc.) delay, I am going to implement risk-based testing.2. After that discussion only you have to start your risk-based testing
What is the difference between Data Driven Framework and Keyword Driven Framework?
Ans: In Data-Driven focus will be more on running script with multiple inputs suitable for data critical application like banking app and also suitable for app which need more data to be added to app like eCOM, whereas I Keyword Driven focus will be more on simplified way for writing script by just typing keywords instead of writing code, suitable.
when Automation team is focused more on business logic than writing code (less coding knowledge is required)but handling complex actions and iteration is very difficult in keyword driven framework and application should be very stable single keyword driven framework can be used to automate various websites.. with only updating the object repository. But in a data-driven framework whole test script needs to be rewritten along with object repository changes.
Can anyone explain to me what the difference between XPath and CSS selectors is?
Ans:
- CSS is faster than XPath.
- CSS is more consistent across all browsers and used for cross-browser testing than XPath.
- CSS is more readable than XPath.
- CSS can only traverse down the DOM(backward traverse not possible) while XPath can traverse backward(up and Down in DOM).
- CSS improves performance because it is faster.
- CSS is better for IE than XPath.
- CSS has deprecated contains method while XPath provides, which is very useful in locating dynamic web elements.
- CSS is complex and difficult to write compare to XPath.The order of locators is ID, Name, CSS, XPath.
We switch back to the main window or default content after switching to a new window or frame, but not in case of Alert even we are switching to it?
Ans: When we switch to a new window or frame, actually, we jump to another DOM. A new window is also a DOM, and a frame is also a DOM inside a DOM. This is the reason when we switch to them using selenium methods, and it returns a WebDriver. When work is done in a new DOM, we need to switch back to the parent window. In case of an alert ( JavaScript alert) is not a new DOM.
When we switch to an alert, it returns a reference of type “Alert.” You perform desire action and proceed further without switching back as it is not required.Note: driver.switchTo(). Window (“window handle”). It returns a WebDriver reference.
Leave a Reply