Showing posts with label manual to automation. Show all posts
Showing posts with label manual to automation. Show all posts

Saturday, May 31, 2014

How to run your first java program?

How to run your first java program?

Well you are the person who is waiting to understand how do you print the text  "I want to become Manual to Automation tester." using Java program.

Follow the steps:

1. open your Notepad++, i have told you to install in my last posting.

2. Now save the file name say 'ManualToAutomation.java' where .java extension file format in Java.

3. Enter the below code.

class ManualToAutomation{ // Note: File name and class name should be same

public static void main(String[] args){  // main Function.

System.out.println("I want to become Manual to Automation tester.");
}

4. Now navigate to the folder path where the "ManualToAutomation.java"  file is saved.

5. Now enter the command in DOS command prompt
javac ManualToAutomation.java
and press ENTER button.
Note: javac - is a java compiler.

6. Observe the "ManualToAutomation.class" file is created which is a byte code file. which is created by our program after compiling.

7. Now to run the below command to work our program
java ManualToAutomation

and press ENTER button, Note that I have not added any file extension.
8. Observe the DOS command prompt screen will print the line "I want to become Manual to Automation tester." which is entered in the program file.


Remember these: 
1. Main function should be there to run the program,  otherwise program throws "Exception in thread "main" java.lang.NoSuchMethodError: main". You can  compile the program without main function.
2. 'S' Should be uppercase in System.out.println("")
3. File name and class name should be same and save the file extension in .java , for good practice.

Want to switch your career from 'Manual testers' to 'Web Test Automation'??

You want to move your career from Classic 'Manual testers' to Smarter way of 'Web Test Automation'??

Hurrah! Here is the solution ;) Lets start with Selenium-webdriver. Which is now ruling web automation industry.

I am writing this post to help to a basic manual tester/ fresher who are aspire to become automation tester or make their career.
If you dont know from where to start?!!!!!!!!!!!!!!!!
You are landed on the right blog for the information. Dont worry here is list you will be trained to achieve your success and move towards your career.

1. Basics of Programming Language. - This Skill is required to improve your logical skills, this is very much required to work with selenium-webdriver automation.

2. Java
|->  Oops Concept - World is crazy about this :) obviously you also!! so you need learn.
|-> Abstraction
|-> Inheritance
|-> Encapsulation
|-> Polymarphism
|->  Collection
|-> Exception handling
|-> File I/O
|-> Data base

3. Web element Locators - name, ID, Linktext, xpath, CSSlocator,class, DOM
4. Selenium webdriver - basic, advance
5. TestNG - a unit testing framework, comes with handy annotation and you can control your test automation scripts.
6. Frameworks - Data driven, modular, Keyword, hybrid and POM (Page Object Model) - This is required to maintain the scripts.
7. Automation Test management tools - ANT, Maven, SVN, Hudson
8. Selenium Grid

Well we will start working on each one to Achieve our dreams!!!
All The Best.