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.

881 total views, 6 views today

 

API Testing Tutorial with Frisby.js

In this tutorial, We are going to learn about how to Test REST API with a very fast, quick Javascript library, Frisby.js.

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

1,026 total views, 3 views today

 

Auto Scale Selenium Hub with Zalenium

Selenium-Hub Autoscale Issue —

  • – Selenium Grid is resource consuming & Not container based.
  • – Running multiple test creates issue with scaling or increased Test Cases.
  • – Can’t auto scale.
  • – Scaling with docker alone with cloud testing provider.

Zalenium : –
A flexible and scalable container based Selenium Grid with video recording, live preview, basic auth & dashboard.

1,873 total views, 3 views today

 

Learning NodeJS – Assert Module Explained for Unit Tests

In this tutorial, Number of times You want to write Unit Test Cases, You have to understand the Assert module in NodeJS.

This module has 11 methods that can be used to write test cases for the code that you have written and for Unit Test cases.

Slides :  https://docs.google.com/presentation/d/1Up1FfHODGQo8LaXoFjpL9i1oxjVaDVqQiaqg8D-hTnI/edit?usp=sharing

3,655 total views, no views today

 

Building Weather App in NodeJS in 17 Lines

In this tutorial, We are going to write NodeJS app with help of the Weather API from openweathermap.org which provides us daily temperature with the every rate fresh data.

We have used a request module and HTTP server concept in this tutorial.

3,183 total views, no views today

 

JQuery Basics : Part 1 – For Testers & Devs

JQuery is a fast, small, and feature-rich JavaScript library.

It makes things like HTML document traversal and manipulation, event handling, animation, and Ajax much simpler with an easy-to-use API that works across a multitude of browsers

The jQuery library makes it easy to manipulate a page of HTML after it’s displayed by the browser.

  • JQuery Basics.
  • CSS Selectors & Locators.
  • Explicit iteration.
  • ChainingTraversal & Filtering selections
  • Manipulation. Events and Event Delegation & Effects
  • AJAX & Deferreds

 

2,225 total views, no views today

 

HTTP Methods. Authentication & Cookie basics

In This tutorial, We will learn about the HTTP methods,
HTTP functions as a request–response protocol in the client–server computing model.

We learn about the GET, POST, PUT, PATCH, HEAD, TRACE request in Detail, We will learn about the Web Authentication, Cookies Basic.

 

Slide Link – https://docs.google.com/presentation/d/1Z8kQmeDrlU17KMpJeGDMsB37xdZE4_uSPwOm0MWR3Zo/edit?usp=sharing

2,488 total views, 3 views today

 

Learning Javascript : Object Creation Patterns

There are majorly Four patterns to create an Object in Javascript.

  • Constructor Pattern.
  • Factory Pattern
  • Prototype Pattern
  • Dynamic Prototype Pattern.
  • Use this keyword to attach
  • Don’t return anything.
  • Create Dummy Object
  • Return this object after 
Prototype Pattern
  • Put things in Shared space (Prototype).
  • Kind of assign default values.
Dynamic Prototype Pattern. – http://jsbin.com/tajiwof/edit?js,console
// Dynamic Prototype Pattern  – Object Creation

Lexical Scoping 
Inner Function Automatically has the Outside variables access.
// Lexical Scoping  – Inner Functions have access to OUTER Variables
Closure in Javascript

976 total views, 1 views today