Tag: testing

Running Xamarin.UITest code in MacOS for Android/iOS Operating System

In our last post we discussed how to run Xamarin.UITest code using Xamarin Test Recorder in MacOS. In this post we will discuss how to work with Xamarin.UITest with our CrossPlatform framework that we created in our course “Mobile Automation testing with Xamarin.UITest” in Udemy.

Here is the complete video on how to run Xamarin.UITest code in MacOS for both Android and iOS application

Here is the code snippet of the above video to switch with different platform

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

 

Selenium PageFactory does not work in .NET Core 2.0

In this post we will discuss one of the recent burning issue with Selenium PageFactory which does not work in .NET Core 2.0 framework.

Selenium 3.6.0 and 3.7.0 are the first official package to natively support .Net Standard 2.0 as opposed to earlier version which even though works in .NET Core 2.0 framework, will still see warnings in references as shown below

 

But the problem now with Selenium 3.6.0 and Selenium 3.7.0 is its missing one of the most important Class PageFactory used for Page Object Model and Page Navigation, which we can literally see from the Object browser of visual studio in comparison with .NET framework 4.7

 

Here is the change log of Selenium 3.6.0

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

Java framework development course is tagged as Best Seller in Udemy

I am very excited to announce that the course Automation framework with Selenium Java (Advanced) is awarded as the Best Seller in Udemy Marketplace.


This is the third course of mine in Udemy marketplace to get Best seller hat next to Automation framework development with Selenium C# (Advanced) and Angular automation with Protractor + Typescript + Cucumber 

Thank you very much for making this happen !
Read more

Running ASP.Net MVC application on RaspberryPi 3 with .Net Core 2

In our last post we discussed running console application with .Net core 2. In this post we will extend the concept even further by running an ASP.Net MVC application on Raspberry Pi 3 with .Net Core 2

You can see we will run an full blow ASP.Net application on Windows 10 IoT core, which is really awesome !

Here is the complete video discussing the concept

Make sure you don’t forget to turn off <MvcRazorCompileOnPublish>false</MvcRazorCompileOnPublish> 

Here is the complete project in GitHub of ExecuteAutomation

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

Running Chrome in headless mode with Selenium C#

In this post we are going to discuss about running Chrome in headless mode with Selenium C#

Chrome headless

Headless Chrome is a way to run Chrome browser without the actual browser UI being spawned. Essentially its running Chrome without chrome! It brings all modern web platform features provided by Chromium and the Blink rendering engine to the command line and automation testing tool such as Selenium in our case

Where is it useful ?

  • A headless browser is a great tool for automated testing and server environments where you don’t need a visible UI shell.
  • And again its not a completely new technology, since there are other big players in this area such as
    • PhantomJS
    • HTMLUnitDriver

So when is Chrome Headless available ?

  • Chrome Headless is supported from Chrome 59.x and above.
  • The current stable version for Windows 10 is Chrome 60.x
  • ChromeDriver v2.30 and above supports headless mode

What changes should I make in my Existing Selenium test ?

Here is the complete video of the above discussion Read more

Working with Variables, Enums and Arrays with Typescript

In our last post we discussed an introduction and installation of Typescript, in this post we will discuss how to work with Variables, Enums and Arrays with Typescript.

Working with Variables

There are different types available in Typescript which are almost available in JS like

  1. Number
  2. String
  3. Boolean
  4. Any
  5. void
  6. Null

Variable Declaration

Declarations of variable can be done with following in Typescript

  1. let
  2. const
  3. var

Working with Arrays and Enums

Enums allow us to define a set of named numeric constants. An enum can be defined using the enum keyword.

Arrays

Inserting an value in to an array can be done something like this

Here is the complete source code of the above discussion in GitHub

Read more

Writing custom configuration for Selenium automation framework

In this post, I am going to discuss about one of the important extension added in my Udemy course Automation framework development with Selenium C# (Advanced) which is custom configuration for selenium automation framework

Problem Statement

Currently in our EAFramework discussed in the course we are using GlobalConfig.xml file to read information for our framework as one shown below

Well, the problem with the above configuration is, while working with EAFramework in remote machines to deploy the code via

  • Jenkins
  • TFS or
  • Running in remote machines on Azure

Read more