Tuesday, 7 February 2017

Singly Linked List in java for beginners

Linked List is a dynamic data structure which is used to store data in the form of a list. Linked List is very common and is used in maintaining data storage and management more convenient.

Linked List are of many type such as

Singly Linked List
Doubly Linked List

Here we would be discussing about the most basic Linked List which is singly linked list.

import java.io.*;
public class SingleLinkedList
public LinkedListNode head;
public static class LinkedListNode
private int data;
private ListNode next;
public LinkedListNode (int data)
this.data =data;
this.next = null;
public static void main(String a[])
LinkedListNode head = new LinkedListNode(10);

LinkedListNode second = new LinkedListNode(20);

LinkedListNode last = new LinkedListNode(30);

head.next = second;
second.next = last;


The above code is represents a Linked List which consist of three node, the first node is the head node.

Here we have made a custom data structure node which consist of a data and the address of next node.

We have made a class LinkedListNode which consist of two properties first one is data and another one is the address of another node of its own type.

We have made three nodes with different data values and then we have arranged accordingly to the address of one another.

Sunday, 22 January 2017

Appium mobile app automation installation for windows

Appium, the free automation testing framework to test UI. Appium is open source, it can be used without any agreement. Its totally fee. Appium can be used to test native iOS Apps, Android apps and hybrid apps. It supports physical devices, simulators and emulators. It uses Selenium Webdriver at the backend which converts the element in the UIAutomation for iOS and UIAutomator for Android.

Appium offers cross platform testing application which runs for both android and iphone. Platform is not a bar. The commands are dependent on device type not on OS type. Appium gives every element in the app a perticular xpath and id, through which it detects the functionality and perfomance of the flow of the app.

Appium, any language can be from the following list.

1. Java
2. Objective -C
3. Java Script with node JS.
4. PHP
5. Ruby
6. Python
7. C#

For making test cases, firstly we need to set dependencies in accordance to the app we are running, the device and SDK.

Appium, the mobile testing framwork.

  Appium is a tool which basically uses some selenium dependencies in the background and performs automation UI testing for mobile apps.

It is a HTTP Server, using NODE JS platform, for both iOS and Android session  it uses JSON wire protocol. So before initializing it uses Appium server with Node JS.

Appium sets up a sort of rest api interface.
It recieves a request through test cases code and runs it on the mobile device.

Setting up the appium for mobile app automation installation for windows

  1. ANDROID SDK [Link]-
  2. JDK (Java Development Kit) [Link]
  3. TestNG [Link]
  4. Eclipse [Link]
  5. Selenium Server JAR [Link]
  6. Webdriver Language Binding Library [Link]
  7. APPIUM For Windows [Link]
  8. APK App Info On Google Play [Link]
  9. Node.js