TestNG Parameterization:Approach
1: feed inputparameters via TestNGand receive using@Parameters annotationat the target methodApproach
2: use Dataproviderwhen complex parameterslike data from database, xls,property file, arraylist etc
Azure, RPA, AI, Selenium, Angular, API
TestNG Parameterization:Approach
1: feed inputparameters via TestNGand receive using@Parameters annotationat the target methodApproach
2: use Dataproviderwhen complex parameterslike data from database, xls,property file, arraylist etc
Java access modifiers:default, public, privateand protected.
1. default access modifier:here variables and methodsare accessible with in samepakage and not in other pakages
2. public access modifier:variables and methods are acce-ssible in same & other pakages
3. private access modifier:does not allow accessoutside to class or file
4. protected access modifier:here same pakage accessis allowed and other pakageaccess is allowed throughsubclass by extending theclass having protectedvariables and methods
#shorts#javaaccessmodifiers#access#modifiers#default#public#private#protected
//Refresh Browser Page driver.navigate().refresh()
//Navigate forward in the browser History
driver.navigate().forward()
//Navigate backward in the browser History
driver.navigate().back()
‘response’
is a special
variable in Karate
Framework
After every
HTTP call
this special
variable is updated
with reponse body
i. e XML or JSON
//Build an image fromDockerfile and tag it docker
build -t appimage:1.1
//List all images
docker image ls
//Delete an image
docker image rm appimage:1.1
// to get rootprivilege use’sudo’ before above commands
e. g. sudo docker image ls
#shorts
For git commands git init, git log, git clone commands and syntax, please find youtube link below:
how to add your local git branch changes to remote branch
// follow 3 steps
1. git add .
2. git commit -m “my commit”
3. git push
stpe 1 add yourworking directoryfile to index area
step 2. saves yourchanges to local repo
step 3. pushesyour changes to remote branch
Most useful git commands are git init, git add ., git commit, git push, git pull, git feth
1. git init// to start local repo
2. git add .//to add local changesto staging area
3. git commit -m “change1″// to collect stagedchanges
4. git push// to push localcommittedchanges toremote branch
5. git fetch// will fetchremote branchchanges to yourlocal repo (notto workspcae)
6. git pull// it is git fetch + mergeto your workspace
7. git remote show origin// to find remote git url
8. git checkout baranch// checkout to local branchall commits will be recorded
9. git checkout -b branch// create new local branchand check out
What is Blue/Green Deployment and its Pros/Cons
t’s an Advanced
Deployment process
with following steps
1. While Blue environment
is active and supporting
production users,
Green environment
will be upgraded,
then smoke tested
2. After successful
smoke test, Load balancer
will direct user traffic
to Green environment
3. Now Blue
environment
will be upgraded
Pros:
Uninterrupted
availability of services
during deployment
Cons:
Expensive to maintain
duplicate
production environment
DevOps #2 What is Rolling Updates or Deployment | Incremental node updates on multi node environment
Rolling updates are
done for Multi node
environment. Here
each node will
be taken out, upgraded,
smoke tested and
then redeployed.
Process repeated until
all nodes are upgraded
individually
Pros:
Incremental,
zero downtime
incremental
deployement
Cons:Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â
unpredictable
behavior
may be noticed
due to each node
level updates