How to install Apache Tomcat Server in Eclipse

Apache Tomcat server is a application server and using for web application development.Tomcat server is a open source and we can download from Apache foundation website.Most of the java development web applications are developing using this Tomcat server.

Apache tomcat server is an open source and free server for developing the web applications which is 
creating using java servlets,Java Server Pages, java JEL ,Websocket technologies.Apache tomcat is developed and released under license of Apache License Version 2. Different versions of Tomcat servers are available for different types of java server pages and java servlets.

Apache Tomcat Versions:





Prerequisite:


  1. Download Apache tomcat server from Apache site
  2. Download Eclipse from Eclipse website
  3. JDK ,JRE should be available and download from Oracle
  4. Configure JDK in your personal computer.

Follow Below Steps to Create:


  1. Open Eclipse
  2. Go to Window-->Preferences-->Server-->Runtime Environment
  3. Server Runtime Environment window will open and if you don't have Tomcat Server then use 4th step
  4. Click on Add
  5. Now you are seeing New Server Runtime Environment window and it will display Different types of environments that is JBoss,IBM,ObjectWeb,Oracle ,Apache..etc
  6. Select Apache Server version from the available Apache tomcat servers versions will be listed
  7. Click on Next button
  8. Enter Name of Server
  9. Select Tomcat Installation Directory:Browse the downloaded Apache Tomcat server location whether it will be C Drive or D drive path
  10. Select JRE Ex:jre6
  11. Click on Finish button

Unsupported versions:


The following Apache Tomcat versions are not fully supported those are

Tomcat 3.0.x
Tomcat 3.1.x
Tomcat 3.2.x
Tomcat 3.3.x
Tomcat 4.0.x
Tomcat 4.1.x
Tomcat 5.0.x


In this way we can configure Apache Tomcat server in Eclipse and Configured Apache Tomcat Server can show in project under New Server Wizard of Servers tab.

How to install jira in windows

This post provides how to install a JIRA installation on Windows using the Windows Installer.
JIRA is a tool where it is used for Testing and Software Development for Agile model.



Below Steps provide information to install jira in windows

  1. Download latest windows version i.e atlassian-jira-6.4.11-x32.exe
  2. Double click on .exe file
  3. It will open installer
  4. In installer you will see two options
  • Express Install(Default Settings)
  • Custom Install
  • Upgrade existing jira installation
1.Express Install(Default Settings):

Express install will JIRA install default settings in the coming next steps and it will select directory and jira home directory automatically.

2.Custom Install:

Custom install is will prompt to select user selection to select Directory ,JIRA home directory to install.Custom install will provide option to select/update HTTP,Control ports options while installing JIRA.If we are installing JIRA as a service in our system then every time we have to start jara as start-jira.jar using command prompt or run the jar file on 
C:\Program Files\Atlassian\JIRA\bin\start-jira.jar

How to earn money online easily

In this post i am giving details regarding How to earn money online easily,with this below details you can earn money online.



Techniques to Earn Money Online


1.Youtube partner program.
2.Creating new web sites in freelancer websites
3.Work from home
4.Blog postings
5.Start your own website
6.Affiliate Marketing ex:Amazon,Flipkart
7.A part time jobs
8.Review music for money
9.Selling second hand material,Electronics online Ex:OLX
10.Buy and Sell Domain Names Ex:Godaddy
11.Onlne Tutorials
12.Google Adsense
13.Google Adwords for your websites
14.Placing ads for your websites
15.Blogging the knowledge and joining into google adsense.

HP Quick Test Professional Shortcut Keys to success

Please find the some of the QTP Short cut keys to success in Automation Frameworks creation.



New - Test CTRL + N
New - Business Component CTRL + SHIFT + N
New - Scripted Component ALT + SHIFT + N
New - Application Area CTRL +Alt + N
Open - Test CTRL + O
Open - Business Component CTRL + SHIFT + O
Record - F3
Run - F5
Stop - F4
Analog Recording - CTRL + SHIFT + F4
Low Level Recording - CTRL + SHIFT + F3
Open - Application Area - CTRL + ALT + O
Object Properties  -CTRL + ENTER
Value Configuration Options  - CTRL + F11 input value
Save - CTRL + S
Export Test to Zip File - CTRL + ALT +S
Output Options - CTRL + F11 output value
Import Test from Zip File - CTRL + ALT + I
Print - CTRL + P
Pause  - PAUSE
Cut - CTRL + X
Copy - CTRL + C
Paste - CTRL + V
Delete - DEL
Step Into - F11
Step Over - F10
Step Out - SHIFT + F11
Insert/Remove Breakpoint F9
Undo CTRL + Z
Clear All Breakpoints CTRL + SHIFT + F9
Redo CTRL + Y (EV only)
Edit - Cut CTRL + X
Rename Action F2
Edit - Copy CTRL + C
Find CTRL + F
Edit - Paste CTRL + V
Replace CTRL + H
Edit - Clear - Contents CTRL + DEL
Go To CTRL + G
Bookmarks CTRL + B
Complete Word CTRL + Space
Argument Info CTRL + SHIFT + SPACE
Apply With To Script CTRL + W
Remove “With” Statements CTRL + SHIFT + W
Edit - Insert CTRL + I
Edit - Delete CTRL + K
Edit - Fill Right CTRL + R
Edit - Fill Down CTRL + D
Edit - Find CTRL + F
Edit - Replace CTRL + H
Checkpoint - Standard F12
Data - Recalc F9
Insert Multi-line Value CTRL + F2 editing cell
Output Value - Standard Output CTRL + F12
Value Activate next/previous sheet CTRL + PAGEUP/ CTRL + PAGEDOWN
Step Generator F7
View Keyword View/Expert View CTRL + TAB
New Step F8
New Step After Block SHIFT + F8
Open context menu SHIFT + F10

Mobile App Development Frameworks for HTML 5,Java Script and CSS

According to recent survey Mobile usage is increasing like anything and coming in future mobiles ,Mobile Apps are playing vital role in the world.Most of the companies are doing business on only Mobile apps and Mobiles.Everyone things that Mobile Apps are developing with Android,ios etc platforms but Mobile Apps can develop with HTML5,Javascripts and CSS also with this below frameworks.Lets see the details below.



Some of the useful Frameworks are

1.Jquery Mobile
2.Apache Cordova
3.JQT
4.Ionic
5.Ratchet
6.Lungo

JQuery Mobile:

JQuery Mobile framework provide Write less and do lot magic to develop mobile apps with HTML 5.JQuery Mobile Framework provides option to design responsive mobile website or mobile apps to create for your brand for any platform.

Cordova:

Apache Cordova is a set of APIs will allow a mobile app developers to access native device functions.Contains UI jquery mobile frameworks to develop Smartphone mobile apps.Using Apache Cordova mobile app developers will develop mobile app with out Java,C,Objective C languages ,where cordova provides set of javascript libraries.

JQT:

JQT zepto it is a jquery plugin to develop mobile apps for iPhone,Android,iPod touch.It is offers many features and customizable for mobile apps.Developers use this jqt to get more required functionality.

Ionic:

Ionic is a advanced mobile app development framework and it is a open sourcefront end sdk for mobile app developeres where you can build native mobile apps.To develop with this Ionic framework you should require Angular js .

Ratchet:

Using this Ratchet mobile app developers will develop easily with simple HTML,Javascript and CSS coding.It will provide more reusable HTML classes,JS Plugins to start developing mobile apps.

Lungo:

Lungo is a HTML 5 framework for your mobile apps,it is a open source project and it will provide powerful Java script API.

Apple iOS 9 out now for iPad, iPhone and iPod

Apple released final ios 9 for IPhone,iPad and iPod with this update your phone,ipad,ipod touch will become more proactive.Search is also increased.In this update you can work with two or more apps at a time.



Some of Features 

1.Built in apps becomes more proactive.
2.Maps
3.Redesign of Notes
4.Improvement of Operating System.
5.An extra battery life
6.Search of your personal photos,videos on the base of dates.
7.In maps you can get with this update as you can browse places around by category,which includes foods,shopping and more fun.
8.Mail functionality is improved
9.Apple pay and wallet related changes and improvements
10.Supports for Discover cards

This is releases with more improvements with this IOS9 for iPad,iPhone and iPod

How to read data from excel using Selenium

We have know that Selenium is using for Web application testing and Browser testing.

Today we are learning how to read data from excel using Selenium.In order to perform this action we need to download third party APIs for excel to load into Selenium.For this we are using jxl.jar file for Excel operations in Selenium.

Please download jxl jar from this download jar

Steps to create script.

1.Create project
2.Create Package
3.Create Class
4.Associate library files to project
5.Create the Excel sheet with data,for example i am using Gmail login.Please fine the below


6.Start the Selenium Server
7.Create the below script

package com.Gmail.Login;

import static org.junit.Assert.*;

import java.io.FileInputStream;
import java.io.IOException;
import jxl.Sheet;
import jxl.Workbook;
import jxl.read.biff.BiffException;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.openqa.selenium.server.SeleniumServer;
import com.thoughtworks.selenium.DefaultSelenium;
import com.thoughtworks.selenium.SeleneseTestCase;

@SuppressWarnings({ "unused", "deprecation" })
public class Gmaillogins extends SeleneseTestCase{

   @Before
   public void setUp() throws Exception {
       SeleniumServer ss=new SeleniumServer();
       ss.start();
       selenium=new DefaultSelenium("localhost",4444,"firefox", "http://www.gmail.com");
       selenium.start();
   }

   @After
   public void tearDown() throws Exception {
   }

   @Test
   public void test() throws BiffException, IOException, InterruptedException {
       selenium.open("/");
       selenium.windowMaximize();
       FileInputStream fis=new FileInputStream("D:\\2014\\Java_Applications\\gmail_login.xls");
       Workbook wb=Workbook.getWorkbook(fis);
       Sheet s=wb.getSheet(0);
       selenium.type("id=Email",s.getCell(0,1).getContents());
       selenium.type("id=Passwd",s.getCell(1,1).getContents());
       Thread.sleep(3500);
   }

}

8.Save the script

9.Run the script

Apache Gora 0.6.1 is released


For Apache Gora tutorials ,Apache used to store web server logs in HBase and for analyze the results used Apache Hadoop for storing purpose using HSQLDB or MYSQL.For Apache Gora tutorials please use this link Apache Gora Tutorials.



Apache Gora  0.6.1 is released  on 05 September 2015 with new changes in this version below changes are improved

  1. Improve Source Code as Java 7 Compatible
  2. Clean up code bug fix
  3. Test Driver for AccumuloStoreTest
  4. Hadoop-1 compatible binaries for Apache Gora
  5. Gora Spark Backend Support

More are there total 21 changes and bug fixes in this release for more details you can have a look 0.6.1 changes.

The Apache Gora open source framework which is provides an in-memory data model, resolution for Big data,it supports resolutions to column stores, key values, document stores and DBMSs,analyzing the data with extensive Apache Hadoop MapReduce. 

Apache Gora is a framework aimed for 
  • Apache Gora is for developers who will work with data volumes for Big Data under No SQL.
  • Mapping Java REST API to NoSQL
  • For Software Testers in order to check the application under Big Data Storage mediums for those how applications are suitable for data storage and easy interchangeable.
  • Data storage tasks who is interested like Developers

Apache Gora supports below OS

  • MAC OSX 10.9.3
  • Linux Mint
  • Ubuntu

Salesforce Announces IOT Internet of Things Cloud

Now Sales force is enters into the basket of IOT for their Big Data platform

Salesforce announces Internet of Things cloud and step into IOT cloud.Salesforce already immersed CRM into Cloud platform.Across the globe all the peoples are connecting to the internet in order to access the information which is related to all the information of Technology,Medical,Software etc as well as to do business with people's.

Most of the business is running with internet and communicating with people in order to do success business,suppose example Online Work,Work from home.Not only people is connected to Internet but most of the electronics are connection each other and using Internet to work successfully.

If we take mobile devices those are connected to the Cloud and communicating to each other mobiles through waves transmission.In order to work this required Internet and communication.

Day by day Internet usage is increasing like anything to connect to cloud formation as "Internet of Things".IOT Cloud allow businesses to connect data from internet of things and digital  with customers information.

IOT Cloud provide information to companies which are using internet will provide complete picture of information or data they are using and managing the data ,IOT will give better picture how to use those data and capture it.

When to stop Software Testing

Software Testing is a procedure or process of flow or testing of a product or Requirements in order to find the defects in developed application.May be testers are thinking that we are done or completed because there are no bugs ,defects or errors are not existed in tested application or product/Software.It should not think like this to stop the testing.

According to expetise Software testing is to find maximum of defects in products which you are testing but can't say when to stop testing because who don't know when there is a one scenario which is missed because of that cause errors in software product may be it because of network problems,integration problem and etc. Software testers should not think like we are done the testing to release the product for stakeholders  but need to test the application where no one can find the defects in exists and tested application or Software.


Any software ,Product have unlimited of defects may be because of program like coding and we can not say that product is bug free.When coming to Mobile App testing testers should test each and everything from scratch like UI designs,Spell mistakes,Functionalities,Network (2g,3g,Wifi), Performance,Security etc.After testing all these types at last we can find any bug which is missed in scenarios.

Please ensure that any software tester can't say when we need to stop the testing ,according to my experience can't say because always we can't guarantee that programme is 100% bug free.According to testing the applications we need to find more number of bugs in order to release the software to stakeholders.

How to use vb script for QTP

VBSCRIPT

VB Script is used for HP QTP scripting in order to create Test Scripts.VB Script is a Microsoft language where using for .Net development for Web applications. VB Script is a light weight language ,easy to understand,easy to learn and very easy to prepare QTP Test scripts for QTP framework.



Purpose of VB Script in QTP

1.VB Script coding used in hp QTP Test scripting.
2.VB Script is a Microsoft language.
3.Licensed by a many companies and using for programming Language.

VB Script Data Types

VB Script has only one Data type i.e Variant which is used in vb script.Variant is a type of data type that having different information.Variant used as a Null pointer,Boolean,Byte,Storage purpose..etc
Variable is used as a Array type to store information.We can store different type of data into this variable.Vb Script variable should not exceed 255 characters and must be unique.

Variables

VB Script has different variable to declare values or assigned types using Dim,Public,Private statements.
Dim - Used for all functions with in the script like global declarations
Public - Used for all functions or procedures for all the scripts
Private - Used for only for which scripts it has declared.

Ex: 
'Global Variable Declarations
Dim k,l,m
'Assign value to K
K = Inputype("Please Enter k value")
'Assign value to l
l= InputType("Please Enter l value")
'Addition of two integers
m=l+k
'Display Addition value m
MsgBox(m)

Option Explicit is also a variable to declare variables,if Option Explicit used you should declare variables in Test scripts for all the variables.If used Option Explicit it will provide details if variables are not declare under Dim or Public or Private  statements.

VB Script Arrays

Array is a type of storage container which is used to store  the particular fixed size of  values of a single type.The length for array is established at the time of array is created.Array is starts with number 0 for example below

Ex: 
a[3] means 
a[0],a[1],a[2],a[3]
a[0] = 1
a[1]= 2
a[2] = 3
a[3] = 4

Two Types of Arrays

1.Static Array
2.Dynamic Array

Static Array:
In this Static Array we can mention size of the array while declaring the array.For Example

Dim Value[3]
Value[0] = 1
Value[1] = 2
Value[2] = 3
Value[3] = 4


Dynamic Array

In this type of Array we can change the array size at the type of Test script and we can resize the array size in Dynamic Array.

Ex: Dim a()

Suppose if we want to resize the specified array we can use ReDim statement to resize the dynamic array size.

ReDim a(5) 

HP QTP Data Driven Framework

HP quick Test Professional Data Driven Framework will create using QTP Data Driven Methods

We can prepare HP QTP Data Driven Framework using below procedure or steps



Steps to Create Data Driven Framework:


Using Creating Search Flight Reservation Login

1.Create Framework folder structure Folders are

1.Object Repository
2.Test Scripts
3.Test Data
4.Test Log

2.Create Flight Reservation xls with Username,password and Reservation parameters and paste into Test Data folder.
3.Create Object Repository  of  Flight Reservation and save it in Object Repository folder.
4.Associate Object Repository to Test Scripts.

Test Script:

Option Explicit
Dim RowCounts ,k

'Add new sheet
DataTable.AddSheet "Test_Data"
'Import Test_Data sheet
DataTable.ImportSheet "E:\Automation\FlightReservation\FlightReservation.xls","Login","Test_Data"

'Count Number of row count in Input sheet
RowCounts = DaaTable.GetSheet("Test_Data").GetRowCount

'Use for loop to run multiple data
For k=1 to RowCounts Step 1
DataTable.SetCurrentRow(k)

'Open Flight Application
SystemUtil.Run "Flight reservation application path .exe"

Uname= DataTable.Value("AgentName","Test_Data")
Pwd = DataTable.Value("Password","Test_Data")

Dialog("Login").WinEdit("Agent Name").Set Uname
Dialog("Login").WinEdit("Password").Set Pwd
Dialog("Login").WinButton("OK").Click

If Window("Flight Reservation").exist Then

Reporter.ReportEvent micPass "Verify Flight Reservation Login","Test Case is Pass"
DataTable.Value("Test_Results","Test_Data") = "Test Case is Pass"
Window("Flight Reservation").Close

else

Reporter.ReportEvent micFail "Verify Flight Reservation Login","Test Case is Fail"
DataTable.Value("Test_Result","Test_Data") = "Test Case is Fail"
Dialog("Login").Dialog("Flight Reservation").Winbutton("OK").Click
Dialog("Login").WinButton("Cancel").Click

End If

Next

DataTable.ExportSheet "E:\Automation\FlightReservation\TestLog\FlightReservation_Results.xls","Test_Data"

5.Save the Scripts in Test Script folder
6.Run the Test Script
7.Verify Results of Test Script in Test Log folder with excel data.


SDLC Agile model for Software Developers and Software Testers


Agile model is a software development life cycle model(SDLC) where happening continuos development and testing through out the SDLC i.e software development Life cycle to develop and provide quality software to stakeholders.Development and Testing happening continuously with iteration basics.
Advantages of Agile Model in SDLC:
  • Software developes very fast.
  • Customer satisfaction with rapid development of requirements.
  • Sofware is delivered in production with in 2-4 week s time.
  • Continuous working software delivery.
  • Continuous interaction of development and testing team with software requirements and changes.
Dis Advantages of Agile Model in SDLC:
  • For long lasting project development this model is not useful.
  • For short term project is useful.
  • Unable to prepare proper Design and documentation regarding project.
Various types of Agile methods are listed below.

SCRUM:

Scrum is a agile method where it speak about how to manage the tasks between the teams like development environments. Scrum master will conduct the meeting with development team in order to divide the team into no of people to handle particular requirements to develop.In this meeting requirements will divided and assigns to particular team members to complete the task in order to deliver the projects on time.This task will known as one Sprint,once all the task is completed and release for production then one sprint will close.
In this way all the major requirements will release for production with number of sprints.
Each sprint have number of major requirements.

In this Agile model.
  • Daily Scrum meetings will happens.
  • Daily updates regarding project status.
  • Daily task completion and changes(CR).
  • Defects will fix immediately in middle of development.
  • Developers and Testers will work together parallelly.

How to create data driven framework using selenium

Selenium Automated software tools on the market supports data driven testing, which allows software to automatically run a tests multiple times with multiple inputs and validations.Selenium is used to automate the software with data driven testing framework where we can use Excel sheets.



Below Script provide details about simple data driven testing using Excel sheet.



Steps:

Download apache POI jar files and add jars to project library in Eclipse

Selenium Script

Selenium Data Driven testing

package com.selenium.pack;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;

import jxl.Cell;
import jxl.Sheet;
import jxl.Workbook;
import jxl.read.biff.BiffException;

import com.thoughtworks.selenium.DefaultSelenium;
import com.thoughtworks.selenium.Selenium;

public class DataDriven {

    Selenium sel=new DefaultSelenium("localhost",4444,"firefox","https://");
    public void test() throws BiffException, IOException, InterruptedException {
        sel.start();
        sel.open("www.rightstart.com/customer/account/create/");
        sel.windowMaximize();
        Thread.sleep(7000);
        for(int i=1;i<=6;i++) {
            textBox(excelRead(2,i),excelRead(3,i));
        }
        /*textBox(excelRead(2,1),excelRead(3, 1));
        textBox(excelRead(2,2),excelRead(3, 2));
        textBox(excelRead(2,3),excelRead(3, 3));
        textBox(excelRead(2,4),excelRead(3, 4));
        textBox(excelRead(2,5),excelRead(3, 5));
        
        textBox(excelRead(2,6),excelRead(3, 6));*/
    }
    public void textBox(String sprop,String sval){
        if(sprop.startsWith("//")) {
            sel.type(sprop,sval);

        }else{
            sel.type("id="+sprop,sval);
        }
    }
    public String excelRead(int icol,int irow) throws BiffException, IOException {
        FileInputStream fis=new FileInputStream("C:\\Documents and Settings\\righstart.xls");
        Workbook wb=Workbook.getWorkbook(fis);
        Sheet s=wb.getSheet(0);
        Cell a=s.getCell(icol,irow);
        String a1=a.getContents();
        return a1;
    }
    public static void main(String[] args) throws BiffException, IOException, InterruptedException {
        DataDriven dataDriven=new DataDriven();
        dataDriven.test();

    }

}