Posts

Showing posts from 2017

Jenkins CRON Job Scheduling

Image
Hello World,  In this article, you will learn the Jenkins CRON Job scheduling. Jenkins provides the scheduling to trigger your job automatically at/on the configured time schedule. Description of Values (5 stars) Jenkins scheduling supports 5 values, let's know about those (Most left) * * * * * (Most Right) or (in another way these stars can also be represented as) MINUTE HOURS DATES MONTHS DAYS I am starting from the most left. 1st *: This is for the Minutes. and it has the range of (0-59). It also supports the division and the outcome will be treated as modulo division.  For Example, if you have written H/3 at the 1st * place then every minute value, which is completely divisible by 3 your job will be triggered. 2nd *: This is the hours, and it has the range of (0-23). It also supports the division. 3rd *: This is the Dates(Month days), and it has the range of (1-31). 4th *: This is the Month, and it has the range of (1-12). 5th *: This is ...

How to Add Unpacked Chrome Extension

Image
Hello World, Here we will learn about adding an unpacked chrome extension. So let's know first, what is "Unpacked Chrome Extension" and "Packed Chrome Extension"? 1-Unpacked Chrome Extension: A source/codebase with the directory structure for chrome extension, is known as an Unpacked Chrome extension. 2-Packed Chrome Extension: A file having extension "crx" with it is known as a packed chrome extension. For Example:  MyChromeExtension.crx is a packed chrome extension, whereas all the codebase with directory structure is an unpacked chrome extension. Okay,  So why we do packing of extension ?. Well, its very simple, for easiness to its users. Just like as we do create "jar" file (container for the bunch of classes) which could be easily used. packing converts all codebase(which may include several files) into a single unit, and it makes it handy. So let's start with #HOW_TO_ADD_UNPACKED_CHROME_EXTENSION... You have to...

Frameworks

Hello World, In this article, we will understand the Automation framework and components related to it. This term 'Framework', what are the thoughts/Questions comes into your mind, What does this Framework means ? Why we need it ? What is the architecture of Framework ? Why we/anyone build the framework ? How can we build framework ?  Does it really helps ? Should we use Frameworks ? And might be many more other questions... So let me answer these question written above, one by one... # What is Framework ? Well, When we say "Framework", then it means that some structure with predefined modules and library that allow us to do things in better way or in a lot easier way without creating a wheel from scratch. because framework already have the core and essential things inside them, we just have to focus on our main problem solving, that's it. Like: Angular, Spring, Hibernate, JUnit, Etc. These all are frameworks. # Why Framework ? Because fr...

Feature file(s) Execution in Cucumber

Hello World, On this post, we will understand the Execution of the cucumber's feature file(s). Normally we just create the feature file according to the application's feature/main_functional_category and most of the time(basically depending on our automation framework) its just independent from other features. But, what if...if we want to execute our cucumber framework with a proper defined sequence of feature files ? Now this situation arise when we are having following case: the features(or the steps inside features) are inter-related. Or, we just want to execute them as we want to. So, basically cucumber has its own default way to pickup the feature file for execution, which is of-course Alphabetical order (it also applied to sub-folder names) . But we can also override this default method of feature file selection for execution. So below are the methods/ways to override the default way of cucumber feature files... #1: Specify in @ CucumberOptions (or...

Basic Web Server (On the fly Creation)

Image
Hello World, Many times specially during web development on core HTML 5[although its not just limited here only.], we need a web server to test the application and specially JavaScript and other features of html 5, which are only available on localhost,HTTP. Now, here you can go with traditional web servers like Tomcat Apache or any other server, but then you need to configure them accordingly and very carefully and that may took very dedicated time around 00:30 mins to 1 hour [i am talking here about very basic web server]. So, is there any techniques that can help us to creating a web server in just a simple one line command hit... Yes there is. actually there are many server framework that are just a few line setup away to have a basic web server. Here i gonna talk very simplest one, that will help us to create a very basic web server. And it is Python's module "SimpleHTTPServer". Dependency/Requirement: But there is a very small dependency to have you on y...