package com.example;

import junit.framework.TestCase;

public class ProjectTest extends TestCase {

     public void testGoogle() {
          
             System.out.println("inside testGoogle");
        
            Actionwords action1 = new Actionwords();
            System.out.println(action1);
        
           action1.iOpenP1("http://www/google.com");
           System.out.println("after iOpenP1");
          
          action1.iSearchForP1("Hiptest");
          System.out.println("after iSearchForP1");
     }
}

package com.example;

import junit.framework.TestCase;

public class ProjectTest extends TestCase {
     
     WebDriver driver=null;
     
     public void testP1(String p1) 
	{
	     String url = "http://www.google.com";
          driver = new FirefoxDriver();
          driver.get(url);
	}
}

Update ProjectTest.java