Tag: C#

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

Xamarin Test Recorder in MacOS for iOS/Android mobile automation

In this post we are going to discuss recording Xamarin.UITest Test for iOS mobile application running in MacOS via Xamarin Test Recorder.

Xamarin Test Recorder

The Xamarin Test Recorder reduces the effort and the time it takes to create automated UI tests that can be submitted to Xamarin Test Cloud as well as local testing running via Xamarin.UITest in Visual Studio for Mac 2017

Xamarin Test Recorder is the first ever tool in mobile automation testing space which gives automation testers to

  1. Record the test
  2. Export the test as clipboard 
  3. Run the test 
  4. Export the test on Xamarin Test cloud (with very minimal configurations)

Most of the above options are already discussed in lot more detailed in the course https://www.udemy.com/xamarin-uitest

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

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

Running C# code on Raspberry Pi 3 with .Net core 2.0

In our last video in YouTube channel of ExecuteAutomation we discussed how to install Windows 10 IoT on RaspberryPi 3 and access it via Powershell and device portal, in this post we will discuss how to run an simple C# console application on RaspberryPi 3 with .Net Core 2.0 framework.

Getting stage ready for .Net core 2.0 app

Before we start writing console application, first we need to have following pre-requisite environment setup

  1. Installing .Net Core 2.0 SDK in Windows 10 host machine, which you can see from here
  2. Should have at least VS code or VS 2017 community edition (to edit C# code)

Coding

Here is the simple code written to execute on RaspberryPi 3 running Windows 10 IoT

After Coding

Connect with Raspberry Pi 3 via power shell and enable FTP service to transfer file from host machine to Raspberry Pi 3

Running code on Raspberry Pi from Powershell

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