Thursday, December 7, 2017

Java Basic Programming with Eclipse IDE - 1



How to write a Java program and run in Eclipse IDE :

1) Download Eclipse in your machine . Click here to download.
2) Install Eclipse in your machine , before that ensure that JAVA is installed .
3) After installing both Java(To check Java is installed correctly ,
    refer "JMeter Introduction" Page) and Eclipse, Open the Eclipse by double clicking
    the eclipse icon.           
4) When Eclipse is Opened, it will ask for the WorkSpace ( it is nothing but where your
     projects will be stored), Create the WorkSpace by giving preferred name.


5) Once the Eclipse IDE is opened , you will be seeing 2 perspectives (Windows)

               1) Project Explorer -  where you can create packages , classes etc.
               2) Java Editor -  where you can write the Java coding .



6) Create a Java Project in Eclipse IDE(Hello World Project)

       1) Right Click in the Project Explorer and Select New > Java Project.
      2) Specify the name as "HelloWorld" in the Project Name and Click Finish.
      3) Then the project will be created in Project Explorer.



7) Create a Package in the Java Project

       1) Right Click in the "SRC" Folder and then Select New > Package.
      2) Give the Package Name as "com.HelloWorld" and Click Finish.
      3) Now you can see the "com.HelloWorld" Package in the Project Explorer.



8) Create a Class in the Java Project

       1) Right Click in the "com.HelloWorld" Package Name and Select New > Class.
      2) Give the Class Name as "HelloWorld" and Click Finish.
      3) Now you can see the "HelloWorld.class" is created in the "Project Explorer"
           and Default code is generated in the Java Editor.



9) How to Run and Print the "Hello World " in the Console

      1) Use "System.out.println("Hello World");" to Print the Hello World as the
           Output in the Console.
      2) Then Right Click in the Project and Select Run As > Java Application.
      3) Then "Hello World " Output can be seen in the Console.



10) HelloWorld Program

              package com.HelloWorld;

              public class HelloWorld {

      public static void main(String[] args) {

System.out.println("Hello World");

       }

               }

Thanks ,

A M Balaji

Monday, December 4, 2017

Appium Introduction



Mobile software application(Native/Hybrid) is increasing day by day and now software companies are converting their Web Applications to Mobile Applications.To test the functionality of the application , we need some tool and to stay connected with new technology . Appium(Automation) tool is currently trending in Mobile Automation Industry which is used to do mobile automation testing.

Appium is similar to selenium web driver(Used for Web Application Automation).It will be easy to learn Appium if he/she has the knowledge of how selenium web driver works and Basics of Java Programming .

Here we are going to see about What is Appium and Why is Appium?

 1) Appium tool is used to automate Mobile Web Applications , Native Applications and
     Hybrid applications.
2) It is a open source automation tool which is used to automate both Android(Windows)
    and IOS(MAC) Applications.
3) Appium is a "cross platform" automation tool , Which enables you to reuse large
    amount of codes(If it uses same API).
4) Appium supports test automation on both emulator and physical devices(Preferred:
    Based on the execution speed).
5) Appium supports many programing languages like Java(Prefered),PHP and C# etc..
6) Appium supports many platforms like Android ,IOS and FirefoxOS.
7) No source code is needed to test the app , can test directly with the App itself.
8) Can use Built in apps like camera , calendar etc , if your test script needs.

Limitations of Appium :

1) For Android , No Support for API level < 17. (Prefered Selendroid for API < 17).
2) Script execution is slow in IOS.
3) Gestures support is limited.
4) No support for Toast Messages.

Thanks,

A M Balaji