JC Web Concepts

Selenium Automation With TestNG

I wanted to start off with a simple tutorial that shows you how to write some simple automation scripts. Basically you write Selenium scripts that will test/verify information on a webpage. Example would be lets say you have a webstore that has a shopping cart. You might want to write automation that goes thru purchasing something to make sure it is working. So here is the video and below that I will have the script as well.

package com.jcwebconcepts.tutorials.basics;

import org.openqa.selenium.firefox.FirefoxDriver;
import org.testng.annotations.Test;

public class SimpleBrowserTests {
    private String appURL = "http://www.jcwebconcepts.net";

    @Test public void openMyBlog() {
        FirefoxDriver driver = new FirefoxDriver();

    @Test public void searchGoogle() {
        FirefoxDriver driver = new FirefoxDriver();

Java Hello World

Well I have decided to jump back into Java programming due to some recent events. I went out and bought Sams Teach Yourself Java in 24 Hours to help me in this journey. So to help me grasp the material I wanted to create blog posts/tutorials to help me and to help others who might be on this same goal.

Oh and the two things that you will not see the void main for is applets and servlets. Here is the source code of the file I created

class HelloWorld {
  public static void main(String[] args) {
      String sayHello = "Hello, World!";
      String myName = "John Costanzo";
      int myAge = 28;
      boolean theTruth = false;
      System.out.println(sayHello + " My name is " + myName);
      System.out.println("Is my age " + myAge + "?\nThe answer is " + theTruth);