as

Sunday, 29 December 2013

How to search mail from the sender in gmail?

Well - There are many times when you need to filter only those mails that have come from particular sender. Gmail provides search feature where you can filter only those messages that have come from specific name or mail address.



As you can see in above image, we have entered from:magicbricks in gmail search box. When you click on the search button, the mails that have come from only magicbricks will be shown in the inbox.

You can also search by email address.

Example -

from:sagar.salunke@gmail.com




What do you think on this topic? Please express your opinion through comment below

Friday, 6 December 2013

How to Save income tax for salaried person in india?

You can save tax in India by below ways.
  1. Rent  - (from 20k - 2lac)
  2. Housing Loan Interest - upto 1.5 lac
  3. Chapter VIA - (Section 80C/80CCC/80CCD(1)  - upto 1.2 lac
Popular options to save tax are 
  1. Rent (If you are staying on rent) - Total amount of rent paid during financial year.
  2. Housing Loan Interest - Interest paid during the financial year.
  3. Chapter VIA  - This includes life insurance policies, Home Loan Principal, Stamp duty and registration.
Example -
Suppose your annual salary is 10 lacs. Let us calculate your tax liability.

Tax Exempted Income under section 10 and 17.
Some part of your income is exempted from tax like House Rent Allowance, Conveyance Allowance, Medical Allowance. So let us assume that 80k is tax exempted income.
So your taxable income is 9.2 lacs.

Suppose you did not utilise the tax saving options at all, your total tax will be 1.09 lacs.
25k(10% slab) + 84k(20% slab) = 1.09 lacs

Now let us try to save this tax using below options.

  1. Suppose you claim for the Rent amounting to Rs. 96k.(If you are not staying on rent and have a housing loan, you can claim tax benefit on interest amount upto 1.5 lacs)
  2. Suppose you saved 1.5 lacs using Chapter VIA.
Total taxable income will be 9.2 - (.96 + 1.5) = 6.74 lacs
Your tax liability will be 25k(10% slab)+34.8k(20% slab) = 59.8k
So in this case, we saved almost Rs. 50k by utilising the proper tax saving options.

What do you think on this topic? Please express your opinion through comment below

Monday, 11 November 2013

New Residential Projects in Ravet

Welcome to Ravet Property - fastest growing residential area in Pimpri Chinchwad.
Ravet is situated just close to the pune-mumbai expressway.

Current property rate in ravet is  4000 per square feet on avarage.

Below is the list of new residential projects in Ravet.
  1. Bhalchandra Nagari by diamond associates
  2. Divine Homes
  3. Shantai Classic
  4. Aditya Gold City
  5. Celestial City




What do you think on this topic? Please express your opinion through comment below

Friday, 27 September 2013

List of popular Windows Commands

Many times you need to open windows applications. But opening them requires you to go through a sequence of clicks. To avoid those extra clicks, I have given here the list of popular windows commands (window7/8/XP) you can use in run box. Enjoy reading and using.

No
Command
What it does
1
appwiz.cpl
opens the add/remove programms window
2
calc
opens calculator
3
cmd
Opens the command prompt
4
control
Opens control panel
5
charmap
Opens character map
6
devmgmt.msc
Opens device manager
7
desk.cpl
Opens Computer display properties
8
eventvwr.msc
Open event viewer
9
gpedit.msc
Group Policy Editor (XP Prof)
10
inetcpl.cpl
Open internet properties
11
ipconfig
ip address
12
logoff
logs off from the system
13
msaccess
Opens microsoft access database
14
excel
Opens excel app
15
mrt
Remove malware
16
mspaint
Opens Paint
17
powerpnt
Opens Powerpoint
18
winword
Opens Windows word app
19
notepad
Opens notepad
20
ncpa.cpl
Opens network connections
21
printers
Opens printers
22
intl.cpl
Opens regional settings
23
regedit
Opens registry editor
24
mstsc
Opend Remote Desktop window
25
services.msc
Opens services window
26
fsmgmt.msc
Opens shared folders
27
shutdown
Shut down the system
28
soundrecorder
Opens sound recorder
29
sndvol
Opens System Volume Control
30
sysdm.cpl
my computer properties
31
taskmgr
Opens task manager
32
winver
Check windows version
32
write
Opens wordpad


Most important Commands that can be used are given below.

  1. msconfig - very important command. It shows start up programs , Operatins Systems and also list of other important commands.
  2. msinfo32 - opens the window system information summary dialog.
  3. gpedit.msc - to change the group policy settings
  4. regedit - edit the registry settings
  5. mstsc - Microsoft terminal services client


What do you think on this topic? Please express your opinion through comment below

Wednesday, 25 September 2013

Quick test professional has stopped working windows 7 debug close

Quick test professional has stopped working with buttons debug and close.
When you try to start QTP 10 in windows 7 operating system, you may get above mentioned error.
Reinstalling QTP will not fix the problem.

Solution :

To fix above issue you must right click on short cut icon of QTP and then select troubleshoot compatibility.
Windows will search for incompatibility problems and then try to provide you with recommended settings. Please select recommended settings and then apply.

This will fix your issue and you will be able to launch the QTP 10 or 11 in Windows 7 or Windows 8 without any problem.




What do you think on this topic? Please express your opinion through comment below

Friday, 6 September 2013

How to automate test cases using selenium in JAVA?

In this article I will tell you how we can do web automation using selenium in JAVA.

What you need to start with...
You will need to download below software to start automation

  1. Selenium API - https://code.google.com/p/selenium/downloads/list
  2. Webdriver for Interenet Explorer - https://code.google.com/p/selenium/downloads/list
  3. Webdriver for Chrome - https://code.google.com/p/chromedriver/downloads/list
  4. Eclipse  - Java IDE
Once you have these softwares with you, You can follow below steps.
  1. Open Eclipse and create new Java Project.
  2. Create a package and class with name SampleTest in it.
  3. Go to project properties and select Java build path. Select libraries tab and then choose add external jar.
  4. Browse to the jar file you have downloaded in step 1 first list.
  5. Select apply and close
Source code of SampleTest.java is given below.



package seleniumpackage;
import java.util.List;
import java.util.concurrent.TimeUnit;

import org.openqa.selenium.*;
import org.openqa.selenium.chrome.*;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.ie.InternetExplorerDriver;
import org.openqa.selenium.interactions.Action;
import org.openqa.selenium.interactions.Actions;
import org.openqa.selenium.support.ui.ExpectedConditions;
import org.openqa.selenium.support.ui.Select;
import org.openqa.selenium.support.ui.WebDriverWait;

//import com.gargoylesoftware.htmlunit.javascript.background.JavaScriptExecutor;
//import org.openqa.selenium.firefox.*;

@SuppressWarnings("unused")
public class SampleTest {
    
public static void main(String [] arg) 
{
System.setProperty("webdriver.chrome.driver", "C:\\chromedriver.exe");
WebDriver driver =  new ChromeDriver();

        // System.setProperty("webdriver.ie.driver", "C:\\IEDriverServer.exe");
//wd =  new InternetExplorerDriver();
try{
//Install selenium 2.0 -> https://code.google.com/p/selenium/downloads/list
//Install chromedriver -> https://code.google.com/p/chromedriver/downloads/list
//Install IEDriver     -> https://code.google.com/p/selenium/downloads/list
//Get Eclipse          -> Java IDE

//***********************************************************************
// List of common operations on web elements
//***********************************************************************
//We will see lot of operation that can be done in selenium 
//1.Clicking on the WebElement.
//2.Enter value in editbox WebElement.
//3.Select value from the dropdown WebElement.
//4.Select radiobutton WebElement.
//5.Select the checkbox WebElement.
//6.Clicking/accessing hidden WebElements. -> Make them visible first and then click
//7.How to check if element exists in page.
//8.reading data from table rows, cells etc.
//9.Different ways of accessing elements.
//10.Synchronization methods in selenium in Java.
driver.navigate().to("http://www.google.com");
Thread.sleep(5000);
/* Check if element is present or Not */
Boolean isPresent = driver.findElements(By.id("lst-ib")).size()<0;
System.out.println("Element is present  " + isPresent );
/*Check if element is displayed in selenium */
System.out.println ( "Element with id visible -> " + driver.findElement(By.id("gb_51")).isDisplayed());
System.out.println ( "Element with id visible -> " + driver.findElement(By.name("q")).isDisplayed());
/*click on the webelelment */
driver.findElement(By.linkText("News")).click();
/*enter value in the edit box */
driver.findElement(By.name("q")).sendKeys("Selenium");
 
      /*Select value from drop down*/
//Select select=new Select(driver.findElement(By.id("abc")));
       //select.selectByVisibleText("=");   
/* Peforming mouseOver Event on the WebElement*/
//Actions builder = new Actions(driver);
                //Action hoverAction = builder.moveToElement(WE).build();
                //hoverAction.perform();
/*Accessing data from webtable */
/*
WebElement r =  wd.findElement(By.xpath("//*[@id='acd']/table/thead/tr"));
List<WebElement> cells = r.findElements(By.tagName("th"));
        int c = 0;
    for (WebElement cell : cells) {
       c=c+1;
       System.out.println(c + " --> "+ cell.getText() );
    if (head.equals(cell.getText()))
    break;
    }
    */
/*Wait until Element is present */
//WebElement me = (new WebDriverWait(driver, 10)).until(ExpectedConditions.presenceOfElementLocated(By.id("myid")));
/*Wait until Element is clickable */
//WebDriverWait wait = new WebDriverWait(driver, 10);
//me = wait.until(ExpectedConditions.elementToBeClickable(By.id("myid")));
/*Implicit waits */
//driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);
/* Locating elements */
//WebElement frame = driver.findElement(By.tagName("iframe"));
//List<WebElement> cheeses = driver.findElements(By.className("cheese"));
//WebElement cheese = driver.findElement(By.name("cheese"));
//WebElement element = driver.findElement(By.id("coolestWidgetEvah"));
//WebElement cheese = driver.findElement(By.linkText("cheese"));
//WebElement cheese = driver.findElement(By.partialLinkText("cheese"));
//WebElement cheese = driver.findElement(By.cssSelector("#food span.dairy.aged"));
//List<WebElement> inputs = driver.findElements(By.xpath("//input"));
/*We can also execute java script*/ 
//WebElement element = (WebElement) ((JavascriptExecutor)driver).executeScript("return $('.cheese')[0]");
//List<WebElement> inputs = (List<WebElement>) ((JavascriptExecutor)driver).executeScript(
//    "var labels = arguments[0], inputs = []; for (var i=0; i < labels.length; i++){" +
 //  "inputs.push(document.getElementById(labels[i].getAttribute('for'))); } return inputs;", labels);
/* Getting all options in drop down */
/*
WebElement select = driver.findElement(By.tagName("select"));
List<WebElement> allOptions = select.findElements(By.tagName("option"));
for (WebElement option : allOptions) {
   System.out.println(String.format("Value is: %s", option.getAttribute("value")));
   option.click();
}
*/
/* Selecting from dropdown
 
Select select = new Select(driver.findElement(By.tagName("select")));
select.deselectAll();
select.selectByVisibleText("Edam");
*/
//Alert alert = driver.switchTo().alert();
//driver.navigate().forward();
//driver.navigate().back();
//driver.get("www.google.com");
 //***************************************************************
// List of common Exception while working with WebElements
//*********************************************************************
//1."Element is not clickable at point (x, y). 
//2.No Such Element - for Frame related issue
//3.The driver executable does not exist
//4.Driver executable must be set by the webdriver.ie.driver system property
//5.The path to the driver executable must be set by the webdriver.chrome.driver system property
}
catch(Exception e){
System.out.println("Exception - > " + e.toString());
}
finally{
driver.close();
driver.quit();
}
    
}
}




This is how we can automate any web browser using selenium



What do you think on this topic? Please express your opinion through comment below

Tuesday, 16 July 2013

English Sentences Types

Hello friends - here you will find the frequently used english sentence types.

1. Command Sentences in English: 

This is used to give commands to people. 
Syntax -
verb + object
Examples

Run for 10 mins
Take a lunch

2. Sentences based on tenses in English: 

There are 4 types of sentences for each tense.
I
Present
Past
Future
simple
I work
I worked
I will work
Imperfect
I am working
I was working
I will be working
Perfect
I have worked
I had worked
I would have worked
Perfect  Imperfect
I have been working
I had been working
I would have been working

We/You/They
Present
Past
Future
simple
We work
We worked
We will work
Imperfect
We are working
We were working
We will be working
Perfect
We have worked
We had worked
We would have worked
Perfect  Imperfect
We have been working
We had been working
We would have been working

(He/She/It)
Present
Past
Future
simple
He works
He worked
He will work
Imperfect
He is working
He was working
He will be working
Perfect
He has worked
He had worked
He would have worked
Perfect  Imperfect
He has been working
He had been working
He would have been working


3. Sentences based on Subject/Object Importance: 

There are 2 types.
  1. Active Voice   (S+V+O)  - I have completed the work.
  2. Passive Voice  (O+V+S)  - The work has been completed by me.

4. Singular/Plural Subjects: 


Singular Subject
Plural Subject
I (am, was, will be)
We (are, were, will be)
You (are, were, will be)
You (are, were, will be)
He/she/it (is, was, will be)
They (are, were, will be)




What do you think on this topic? Please express your opinion through comment below

Sponsored Links

Popular Posts

Comments

ShareThis