✅ Test cases for features/functionalities that are not stable yet
✅ Functionalities/features that change too frequently
✅ Functionalities/Features that would take more cost to automate than to be run
manually in the long run
✅ Exploratory tests + Ad hoc tests
✅ Usability tests that determine the user experience for an application
✅ Intermittent tests/Tests that don't have predictable results
candy lawsuit north license vast juice indoor age help old scale mutual
Use Case:
when we try to retrieve the more than one match of elements
when we handle multiple tabs/windows
When we retrieve option from the dropdown using getOptions() method
List - for findelements - List eles = driver.findElements(By.xpath("//someValue"));
Array - to store values
driver.get("https://chercher.tech");
String[] vals = driver.getTitle().split(" ");
for (String str : vals) {
System.out.println(str);
}
foreach
List eles = driver.findElements(By.xpath("//someValue"));
for (WebElement element : eles) {
System.out.println(element.getText());
}
Set- Java Set is a collection of objects that allows no duplicate elements to be
stored. Java Set is an interface that extends the Collection interface.
Set allGUID = driver.getWindowHandles();
Map - We can use Maps or hashMaps in selenium when we want to read key-pair values;
For example, when we read data from the properties files or JSON file, we would be
using HashMaps along with Selenium.
Some examples are:
A map of error codes and their descriptions.
A map of zip codes and cities.
A map of managers and employees. Each manager (key) is associated with a list of
employees (value) he manages.
A map of classes and students. Each class (key) is associated with a list of
students (value).
--------------------------------------------------
reverse of number, array, string - done
reverse the words - done
check palindrome & string, amstrong number - done
fibnacci, factorial, prime, even or odd - done
remove duplicate characters in string, num in array - done
Excel read & write and retrieve data from property file - done
handle Webtable - done
connect DB & retrieve data from DB
String - substring,
------------------------------------
Test Plan:
A test plan for software project can be defined as a document that defines the
scope, objective, approach and emphasis on a software testing effort
Components of Test plan include- Test plan id, features to be tested, test
techniques, testing tasks, features pass or fail criteria, test deliverables,
responsibilities, and schedule, etc.
Test plan is carried out by a testing manager or lead that describes how to test,
when to test, who will test and what to test
Test Strategy:
Test strategy is a set of guidelines that explains test design and determines how
testing needs to be done
Components of Test strategy includes- objectives and scope, documentation formats,
test processes, team reporting structure, client communication strategy, etc.
A test strategy is carried out by the project manager. It says what type of
technique to follow and which module to test
---------------------------------------
STLC
Requriement Analysis - testplanning- test case development- Test Env setup- Test
Execution - Test Closure
SDLC
Ideation - Requriement Analysis - Design - Development - Test - Deploy -
Maaintaince
Bug LC
New - assigned - open(rejected or deferred) - fixed - retest (open) - verify -
close
PTLC
Non Functiona Req - Test Strategy - Test Design - Test Execution - Test Results &
Analysis - Benchmarks & Recommendations