n this tutorial, We are going learn how to How to Handle Cookies, HTTP cookie contains an information about a User and its preferences in the client side. It can contain information like sessions, your add to cart product and much more.
In other words cookies are nothing but user’s identity and used to track where the user navigated throughout the pages of the website
During the time of Selenium Automation Test cases, we require Some sort of Automation Dashboard to give the gist what is going on to the Stakeholders or in our team. Reportportal.io is an awesome open source tool that provides the same. Let’s integrate into our Selenium Test cases.
Thanks for watching ! 🙂 If you enjoyed it, hit that heart button below. Would mean a lot to me and it helps other people see the story.
In this tutorial, We are going to cover what is Agile ? and What are its 12 Principles, Explaining agile to the newbies,
AGILE Consist of the four major rules : –
– Individuals and interactions over processes and tools:
– Customer collaboration over contract negotiation
– Responding to change over following a plan
– Working software over comprehensive documentation
Each one is discussed with example and explained how it important in software testing.
Objective: To be able to run more than 10 browsers and using multiple machines(Server1,2).
Docker Swarm requires few ports to be open for it to work. These are : –
-TCP port 2377. This port is used for communication between the nodes of a Docker Swarm or cluster. It only needs to be opened on manager nodes.
-TCP and UDP port 7946 for communication among nodes (container network discovery).
-UDP port 4789 for overlay network traffic (container ingress networking).
First install docker on all 2 machines.eg Server 1,2
Then add the ubuntu user to the docker group, so we don’t need to use sudo everytime we use the docker command
sudo usermod-aG docker ubuntu
On Server 1
docker swarm init--advertise-addr=82.66.x.x-Here82.66.x.xisthe public IP of the machine.
Now docker swarm is ready and nodes can connect to it, ssh into the Server 2 grid machine and run the following command On Server 2
docker swarm join--token SWMTKN-1-..........
Run the following command to deploy docker swarm — https://goo.gl/Fsq6fu : –
docker stack deploy--compose-filegrid.yamlfoobar
To view the status of the docker swarm : –
docker stack psfoobar
To shut down docker swarm
docker stack rmfoobar
To debug a specific container
To leave docker swarm, type the following command both on manager node and worker node
Why we choose this.
Normal Jasmine reporter is very simple and not much screenshot friendly. This plugin has following features which makes it more suitable for Reporting for Protractor / Angular based Projects.
Get attached Screenshots
Selenium & Browser’s Logs (only for Chrome)
Full Stack Trace (with suspected line highlight)
Screenshot only on failed spec.
Filters (can display only Passed/Failed/Pending/Has Browser Logs)
Details (Browser/Session ID/OS)
Duration time for test cases (only Jasmine2)
Note – If you are using the jasmine 2(Jasmine 1.x: No longer supported), It can be integrated very easily with two steps.