Install oracle free edition with IDE on Linux machine?

April 24, 2017

Problem:- How to install the latest free edition of oracle database with IDE?Solution:-A) First we’ll install oracle database and then install the sql developer ide. Steps:-Follow the below steps to install the 11g database(latest when this post was written)Download the latest oracle version for ubuntu Unzip using the command: unzip oracle-xe-11.2.0-1.0.x86_64.rpm.zip Install required packages using […]

Read More

Tips and Tricks for working with Robot Framework – Part-1

March 10, 2017

If you are still looking for that one person who will change your life, take a look in the mirror.Problem1:- How i can generate random test data in Robot framework?Solution:- Use FakerLibraryInstall :- pip install robotframework-fakerNote:- Include FakerLibrary in settings as “Library FakerLibary”Example:- To generate random number we can use code as below:- Problem2:- How to […]

Read More

How to use/configure Google Maps API in your application?

March 9, 2017

Requirement:- We need to implement google maps in our application, how we can configure that.Note:- We can use the below approach to generate API key(lat and lng values) and need to install dedependency for adding google api in Vue.js project. Github code Solution:-Step1:-Generate maps Key to use Google API a) Click the “GET A KEY” button b) […]

Read More

Creating Rest API using Sails framework?

March 5, 2017

What is Sails? Sails is framework built over Express framework of Nodejs which automatically generates structure of rest api. It have numerous other features like supports MVC, connets to any database, supports most of the front end frameworks and many more http://sailsjs.com/features GitHub link for working code Pre-reqiuistes:- 1. Install node.js  2. Install Sails  npm […]

Read More

Run given process from Terminal using Robot Framework

February 22, 2017

Problem:- How to execute external files (say test.py) as process using robot framework?Solution:-Approach 1 :- Using Run Process keyword, under “Process” libraryStep1:- Include “Process” library in settingsStep2:- Use “Run Process” keyword as below Comment Using Run Process Keyword${result} = Run Process python -c print ‘Hello, world!’Should Be Equal ${result.stdout} Hello, world!Comment Using Run Keyword${output} Run […]

Read More

Basic/Simple Selectors

February 15, 2017

Type /Element Selectors: The most common and easy to understand selectors are type selectors. Type selectors will select any HTML element on a page that matches the selector or node name regardless of their position in the document tree . Used alone, therefor selects all the elements for the given node name.Syntax Example: View in JSFIDDLE There […]

Read More

Group id vs Artifact id for a project

February 13, 2017

Problem:- When creating a new project in java IDE, what is the significane of group id and artifact id? Solution:-Lets understand what are these values and why we use them.What?Group ID :- Its an value which gives unique name to the project (like primary key in SQL tables).Artifact ID:- Name of the project (jar file will […]

Read More

CSS Selectors

February 10, 2017

What is CSS ? CSS (Cascading Style Sheets) is a language that controls the look and feel of html elements in browser. Layman example:- Going to beauty salon for hair cut is applying CSS on our face (which is equivalent to HTML).  What is the meaning of CSS selector? Selectors are used to apply CSS styles on html […]

Read More

Verify Regex in Robot Framework?

January 18, 2017

Problem:- How to verify given regular expression using Robot FrameworkSolution:- A pessimist sees the difficulty in every opportunity; an optimist sees the opportunity in every difficultyyyyy 1.Create a regular expression using online toolExample:- we want to verify 34.4% we will create a regular expression first  2.Use Should Match Regex keywordExample 1 :-We want to verify […]

Read More

Practical issues and solutions for working with JMeter – Part2

December 23, 2016

More Scenarios Scenario:- How to display results from Beanshell sampler to response?Solution :- Simple code example:- String display=”HelloWorld”;//Taking results and displaying in responseSampleResult.setResponseData( display);SampleResult.setDataType( org.apache.jmeter.samplers.SampleResult.TEXT );Scenario:- Not able to understand the error message thrown by jmeter in beanshell sampler or beanshell assertions? Solution :-  Use try-catch try{ int expectedMsgs = ${noOfMessages} * ${messageThreads}; int actualCount =Integer.parseInt(SampleResult.getResponseDataAsString()); //System.out.print(actualCount); if (expectedMsgs!=actualCount) […]

Read More