Tag: dev

dockerSElenium

Introduction to Selenium grid with Docker

In our last few posts, we discussed how to working with docker, containers and working with multiple containers. In this post we will discuss how to work with Selenium grid using Docker.

What is Selenium grid?

SeleniumGrid allows you run your tests on different machines against different browsers in parallel. That is, running multiple tests at the same time against different machines running different browsers and operating systems. Essentially, SeleniumGrid support distributed test execution.

Selenium grid architecture with Docker

Getting things ready for selenium test

We need to have following installed in our machine before starting selenium grid test

  • 1. Docker for Windows
  • 2. Pulled the latest Selenium hub container
  • 3. Pulled the latest Selenium node for firefox/chrome
  • 4. Visual Studio 2015 (any edition)

Here is the complete video of the above discussion

Introduction

Initiating docker selenium grid container setup 

Thanks for reading the post and watching the video!!!

Please leave your comments and let me know if there is anything I should update in this post.

Thanks,
Karthik KK

C#

Working with methods in C#

In the last post we discussed how to work with different types in C#, in this post we will discuss how to

  • Work with methods
  • Methods with different parameters (method overloading)
  • Methods with return types

Here is the complete videos of the above topics

Methods with return types

Thanks for reading the post and watching the video!!!

Please leave your comments and let me know if there is anything I should update in this post.

Thanks,
Karthik KK

PicklesLogo

PicklesUI an easy option to generate Specflow documentation

In the last post we discussed how to generate Specflow scenario documentation using Pickles with Visual studio package manager console via command line interface.

In this post we will discuss how to generate Specflow documentation using PicklesUI, which has an easy to use GUI as opposed to command

picklesUI

Here is the complete video of the above discussion

Thanks for reading the post and watching the video!!!

Please leave your comments and let me know if there is anything I should update in this post.

Thanks,
Karthik KK

PicklesLogo

Pickles an living documentation for Specflow feature file

In this post we will discuss about Pickles, an opensource tool for generating documentation for Specflow feature files.

What is Pickles

Pickles is an open source living documentation generator that works on feature files written in the Gherkin language, popularized in tools like Cucumber and SpecFlow.

Pickles can be incorporated into your build process to produce living documentation in a format that is more accessible to your clients. Gherkin language files are written in plain text and stored in your source folder

Pickles supported output formats

Pickles can produce output in different formats:

ØStatic HTML: a set of HTML files with minimal JavaScript

ØDynamic HTML: a JavaScript-rich single page app with integrated search

ØWord: Microsoft Word

ØExcel: Microsoft Excel

ØJSON: a custom JSON format

Installing Pickles via Nuget

The command to install Pickles from Nuget of Visual studio IDE is this

pickles

 

 

 

Here is the complete video of the above discussion

Thanks for reading the post and watching the video!!!

Please leave your comments and let me know if there is anything I should update in this post.

Thanks,
Karthik KK

apitestinglogo

Database Testing of API with Mock Stored Procedure

In the last post we discussed how to test database using Stored procedure, in this post, we will discuss how to test database of API with Mock stored procedure.

Here is how the mock stored procedure looks like

storedproc

Here is the complete video of the above discussion

Thanks for reading the post and watching the video!!!

Please leave your comments and let me know if there is anything I should update in this post.

Thanks,
Karthik KK

specflow

Calling steps from step definition

There are situations where we might need to call a step or steps from within a step definition, so that

  • Number of steps within feature files can be reduced
  • Number of duplicate steps can be used

Hence the scenarios will look something like this, the second scenario step definition as you can see has a step (Given I login and enter user details) performs all the operation of scenario one by calling steps within step definition

Here is the complete video of the above discussion

Here is the complete code of the above video

Thanks for reading the post and watching the video!!!

Please leave your comments and let me know if there is anything I should update in this post.

Thanks,
Karthik KK

apitestinglogo

Database Testing for WCF API using SQL Stored Procedures

In the last post we discussed how to test database of an WCF API by executing query using DatabaseExtensionHelper, in this video, we will discuss how to execute a stored procedure to perform complex operations in database along with Specflow and C#.

Here is the complete video of the above discussion

Thanks for reading the post and watching the video!!!

Please leave your comments and let me know if there is anything I should update in this post.

Thanks,
Karthik KK