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

The framework expects to have GlobalConfig.xml file in its relative path of the bin folder where the DLL’s of framework actually resides

Solution

We are going deprecate our existing GlobalConfig.xml file in favour of configuration manager, and hence our config will look something like this

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

Introducing ExecuteAutomation app for Android

Today I am very excited to announce that we are releasing our first ever ExecuteAutomation android application on Google play

The application is not really going to show you static web pages rendered within an web view of android, rather it’s going to be an all new application written natively for android from complete ground up to showcase all the videos released in YouTube so far (400+ videos)

About application

ExecuteAutomation android application UI is designed by keeping simplicity in mind, its much faster, lighter (< 2 Mb), interactive and easy to use.

Figure 1 Interactive UI

The above screenshot shows all the common features and functionalities one would ever need to use this application from their mobile phone, hence I am really not going to write to much about the application in this post.

About Developer behind application (the great mind)

Finally (Important)

Please go ahead and download the application and give your rating and comments on the playstore and don’t forget to report any issues that you are facing, since the application is still in beta J

Thanks,

Karthik KK

And the Code-a-thon Winners are …

Here are our winners list of code-a-thon 2017 event happened on April 22nd

Here are some words from Winners

I really liked the questions asked in contest which were really practical and day to day activity stuff of an Automation Engineer. Thanks for providing option for us to attend this code-a-thon remotely . Also I would like to share that one of the scenario mentioned in the contest(Publishing site in sitecore) which is related to iframes handling is one of the question which I ask frequently in the interviews which I take in my current organization.
I know ExecuteAutomation because of you. I follow you and ExecuteAutomation on LinkedIn, Udemy, YouTube and upcourse ExecuteAutomation site. Also In Udemy I have opted for one of your course “Cucumber with Selenium Java”  few months back and also I watched some of the Docker related videos in Youtube. Whenever I get free time, I would be going through the blogs and I can say that ExecuteAutomation is obviously one of them I refer .

As this is the first time i am joining such event, I am quite pleased with the overall setup of the competition.
The instructions of the competition are clear and the event committee treat all participant nicely.
The competition itself is a bit tricky as I never use protractor in my career and it did costed me a lot of time to figure out how things work in protractor
Protractor itself is not the main requirement but having that is indeed is a big plus with addition to cucumber and typescript

Other than that, the food are nice and the shirt is cool

I was happy to take part in this code-a-thon. The event was organized at the highest level. No any delays – all in time. Tasks were interesting and not so simple, especially second.


There were few moments which I’ve done before for work projects. Thanks a lot for Karthik KK and Sitecore for this cool event! And special thanks to Karthik because of his YouTube channel and courses on Udemy. Very helpful for work!

What’s next?

We have already contacted winners with their details to

  1. Get their availability to discuss with Sitecore
  2. Will also contact for bank account details to wire-transfer the bounty.

Thank you all the 55 global participants to make this event a great success!!!

Thanks,
Karthik KK

ExecuteCharity Campaign is back

Dear friends,

I am very happy to announce that we are all set for most important event of our lifetime as a human being, the #ExecuteCharity campaign for year 2017, one of my personal favorite event, which let me do something for the society where I am struck right now 🙂

Last year from our #ExecuteCharity campaign we collected money from across the globe and helped to serve food for 25 students for one full year, which is really a proud moment.

This year we are going to do the same thing in the continuation of the success from last year !

What should you do to donate ?

Here is the link to register yourself for donation http://www.bit.do/eacharity, once registered with valid email address, we will get back to you with bank details to transfer the amount you have mentioned the registration form.

When will be last date of donation ?

As of now, its going to be from May 1st to May 31st, so hurry up to start donating.

Last year ExecuteCharity Event

Here are some pictures and video of ExecuteCharity campaign happened last year

 

I am hoping to donate more than double of students from last year, hope you will help this happen.

Once again, thank you very much for your support !

Thanks,
Karthik KK

Code-a-thon Contest is Live now !

Agenda of Code-a-thon Event (April 22nd)

Registration of contestants                          –              9 AM

Breakfast                                                                 –              9 AM – 9:30 AM

Sitecore event address                                   –              9:35 AM – 10 AM

Code-a-thon morning session begins    –              10 AM – 12 Noon

Lunch break                                                          –              12 Noon – 1 PM

Code-a-thon afternoon session begins   –              1 PM to 4 PM

Snacks and Drinks                                                –              Up to 5 PM

 

Code-a-thon Terms and Condition

  1. All the participants will be sent email on the event date (April 22nd ) with following information
    1. Application (A) to be automated with its URL
    2. Application (B) to be automated with its URL
  2. Scenario for the specific part of application to be automated
Note

1.       Both (A) and (B) MUST need to be automated within the given time frame

2.       Application(s) MUST need to be automated using Selenium/Protractor/Cucumber combo

3.       Languages can be C#/Java/Typescript

4.       Once applications are automated, the code MUST need to be sent to karthik@techgeek.co.in and srivi.srini@gmail.com email address in ZIP format within 1 hour of event ends.

 

Scenario 1

Scenario 2

Winning criteria

Code written for Application (A) and (B) with

  1. Complete working scenarios
  2. Best coding practise
  3. Same automation framework used for both (A) and (B)
  4. Mentioned Language and tool used at its fullest

Are considered as Winners of the competition

 Winner announcement

  1. We will announce winner from exactly 1 week from the day of event via Email
  2. Winners will be getting cash awards in their bank account via wire-transfer (bank accounts will be asked in step 1)

The event will be live here

 

Thanks,

Karthik KK

Introduction and Installation of Typescript

In this post we will discuss an Introduction and Installation of Typescript

Typescript

Typescript is the typed superset of Javascript that compiles(transpiles) to Javascript.

  • Typescript as its name adds type(s) enforcement which JS wont
  • Typescript has much neat easy to maintain
  • Typescript has cross-platform support

Typescript vs Javascript

Typescript

Javascript

Where typescript is used in automation testing ?

  • Well, its everywhere now wherever JS based framework is used, somewhere like
  • 1. AngularJS
  • 2. Protractor (testing tool for AngularJS app)
  • 3. Jasmine
  • 4. WebdriverIO

Here is the complete video of above discussion

Here is the Installation of Typescript video tutorial in Visual Studio Code Read more