• What is Automation Testing - Advantages & Types of Tools
  • What is Selenium IDE, Selenium RC, Selenium WebDriver, Selenium Grid?
  • Selenium IDE, Firebug & Firepath Installation


  • Selenium WebDriver Architecture
  • Selenium Installation
  • Challenges and Limitations of Selenium
  • First Selenium WebDriver Script
  • Working with Firefox Browser
  • Solution - Failed To Launch Browser Using Selenium WebDriver
  • Working with Chrome Browser
  • Working with IE Browser
  • Difference Between FindElement & FindElements
  • Install Firebug, Fire path and other add on for Selenium
  • Locators in Selenium
  • Dynamic Xpath
  • Dynamic CSS
  • Handle drop-downs
  • How to work with file upload
  • Handle Alerts & Popups
  • Handle Multiple Windows
  • Mouse Hover event in Selenium
  • Right Click
  • Double Click
  • Drag and Drop
  • Capture Screenshots in Selenium
  • Parameterization
  • Synchronization
  • Implicit Wait, Explicit Wait and Fluent Wait in Selenium
  • Implicit Waits
  • Explicit WebDriver Waits
  • Fluent Wait In Selenium
  • Apache POI
  • How To Read Data From Excel File
  • How To Write Data In Excel File
  • Database Testing Using MSSQL
  • Database Testing Using MySQL
  • Database Testing Using DB2
  • Handle Ajax Call in Selenium
  • Listeners in Selenium
  • Handling JavaScript in Selenium
  • Stale Element Reference Exception in Selenium
  • Integrate Sikuli with Selenium
  • Headless Browser Testing 
  • Headless Browser Testing using HtmlUnitDriver
  • Headless Browser Testing using PhanthomJSDriver


  • TestNG Installation
  • TestNG Complete Tutorial


  • Extent Reports Introduction
  • Extent Reports Generation
  • Capturing Screenshots & Including In Extent Reports
  • Extent Reports Version 4


  • ANT Build Tool - How To Download & Install
  • Maven Build Tool - How To Download & Install
  • Creating Maven Selenium Project
  • GIT Integration with Selenium
  • Jenkins - How To Download & Install
  • Jenkins - Executing TestNG Scripts
  • Jenkins - Generating Reports After Test Execution
  • Jenkins - Executing Maven Project
  • Create build and Execute build for nightly execution
  • Send Email report based on build Status
  • Selenium Continuous Integration with Jenkins [Selenium – Maven – Git – Jenkins] – Step By Step Guide


  • Running Selenium Tests On BrowserStack
  • Kobiton - Mobile Testing Platform with Real Devices


  • Mobile Testing Platform with Real Devices


  • What is Framework & Types of Framework
  • Page Object Model Design Pattern
  • Data Driven Framework
  • How to explain Test Automation Framework or Selenium Automation Framework Architecture In Interview

  • API Testing:

  • Learn API Testing
  • Postman Tutorial (API Testing with Postman)


  • Test Automation Framework Interview Questions
  • Selenium Interview Questions
  • TestNG Interview Questions
  • Java Interview Questions
  • Python Interview Questions
  • API Testing Interview Questions


  • Automation Tester Resume
  • How To Run A Java Program Using Command Prompt

    Run a Java Program using Command Prompt:

    We use Java compiler javac to compile Java program and the Java interpreter java to run the Java program.

    Goal: To run a Java program using Command Prompt.

    Steps to achieve our goal:
    i. Create a folder
    ii. Create a java class and write a java program
    iii. Open command prompt
    iv. Run the created Java program using command prompt

    Step i: Create a folder

    Step ii: Create a java class and write a java program

    Using Notepad or another text editor, create a Java file with the following text:

    Save your file as in C:\SoftwareTestingMaterial.

    Step iii: Open command prompt

    Open Command Prompt (Open Run (Windows+R) and type cmd)

    Step iv: Run the created Java program using command prompt

    Follow the below steps:

    This makes C:\SoftwareTestingMaterial the current directory.

    This displays the directory contents.  You should see among the files.

    (use the JDK folder for the version installed on your system).  This tells the system where to find JDK programs.

    This runs javac.exe, the compiler.  You should see nothing but the next system prompt.

    javac has created the HelloTesters.class file.  You should see and HelloTesters.class among the files.

    This runs the Java interpreter.  You should see the program output:

    Output:This is SoftwareTestngMaterial website!

    i. Java is case-sensitive! Check your Java text. Check the spelling and capitalization in the file name and the class name and the java HelloTesters command.

    ii. In “Step iv”, we set the jdk path. It is possible to make the path setting permanent but you have to be very careful because your system might crash in case of any mistake. Proceed with extreme caution!

    To ensure that Windows can find the Java compiler and interpreter:

    Select Start -> Computer -> System Properties -> Advanced System Settings -> Environment Variables -> System Variables -> PATH

    Click “Edit” and at the end append the jdk path after semicolon ( ; )

    Note: Add jdk path based on your system jdk path

    Click on OK.

    Also find How To Run TestNG Using Command Prompt

    Get our latest blog posts delivered to your inbox

    Subscribe and get popular blog posts about software testing industry.


    Leave a Comment

    Share via
    Copy link
    Powered by Social Snap