How to Handle Cookies in Selenium Webdriver?

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

Source Code — https://pastebin.com/raw/CmyNYT89

Demo Website — http://qa.scrolltest.com/
Main Website — http://scrolltest.com/

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.

 

How to Handle Frame and Windows in Selenium?

In this tutorial, We are going learn how to How to Handle Frame and Windows in Selenium in the Selenium Java.

Source Code — https://goo.gl/2o8ut8

Demo Website — http://qa.scrolltest.com/
Main Website — http://scrolltest.com/

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.

 

How to Handle Popup, Alert, Confirmation in Selenium?

In this tutorial, We are going learn how to Handle the Popup, Alerts and Confirmation box in the Selenium Java. The code is the same for another languages binding also.

Source Code — https://goo.gl/Fgi8NS

Demo Website — http://qa.scrolltest.com/
Main Website — http://qa.scrolltest.com/

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.

 

Integrating Test Automation Dashboard to Selenium Test cases

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.

 

Understanding Agile Testing

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.

2,145 total views, no views today

 

Deploying a Selenium grid on Docker Swarm

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).

Install Docker
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

On Server 1

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

Run the following command to deploy docker swarm — https://goo.gl/Fsq6fu : – 

To view the status of the docker swarm : –

To shut down docker swarm

To debug a specific container

To leave docker swarm, type the following command both on manager node and worker node

Slides – https://goo.gl/qjifHq
Instructions – https://goo.gl/gzhg1m
Grid Yaml – https://goo.gl/Fsq6fu
http://play-with-docker.com

 

1,686 total views, no views today

 

Integration of Protractor Beautiful Test Reports

Test Reporting in the Software testing is an essential part.  Finding a good reporting is an always very tedious task. In this tutorial, We will learn how we can integrate the ‘Protractor Beautiful Reporter’ – https://github.com/Evilweed/protractor-beautiful-reporter.

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.
  • Test Search
  • Filters (can display only Passed/Failed/Pending/Has Browser Logs)
  • Inline Screenshots
  • 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.

Installation  – 

In your protractor config file  e.g protractor-config.js

Please note that the screenshots are generated are in  /tmp/screenshot directory.

If you want to have screenshot in sub folder  –

Screenshots Subfolder (optional)

You can store all images in a subfolder by using screenshotsSubfolder option:

Reports –  

 

Normal Test Results of Passwd Testcases – 

Support of logs  : – 

Failed logs and screenshot results

Read more at – https://github.com/Evilweed/protractor-beautiful-reporter

We have used it for a while. It far better than “Jasmine2HtmlReporter“. which lags in UI and some features.

Note: Make sure you delete the previous build folder of Junit else. It will combine your builds in one report.

Thanks for reading ! 🙂 If you enjoyed it, hit that share button. Would mean a lot to me and it helps other people see the story.

3,698 total views, no views today

 

Web Automation with Machine Learning – mabl.com

In this tutorial, we are going to learn about tool mabl.com that is an only ML-driven test automation service that automatically maintains tests and identifies regressions for you.

In this tutorial, we are going to create an end to end test cases in mabl.com and make them run in mabl.com platform.

https://www.mabl.com/
https://help.mabl.com/

1,716 total views, no views today

 

Software Testing Lectures - Understanding Bug Cycle

In this tutorial, We are going to discuss the Software Testing Lecture and try to understand the Bug or Defect Cycle. As a manual Tester, we have to have this concept clear and well informed.

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.

3,288 total views, no views today