package com.example;

import junit.framework.TestCase;

public class ProjectTest extends TestCase {

    Actionwords action = new Actionwords();

    public void testGoogle() {
        System.out.println("inside testGoogle");
        
        if (action != null)
        {
            // Given  I open "http://www/google.com"
            action.iOpenP1("http://www/google.com");
            // When I search for "Hiptest"
            action.iSearchForP1("Hiptest");
        }
        else
        {
          Actionwords action1 = new Actionwords();
          action1.iOpenP1("http://www/google.com");
          // When I search for "Hiptest"
          action1.iSearchForP1("Hiptest");
            
        }
        
    }
}

@@ -99,52 +99,8 @@
 %7B%0A%0A 
-   Actionwords action = new Actionwords();%0A%0A
     
@@ -188,272 +188,8 @@
    %0A
-        if (action != null)%0A        %7B%0A            // Given  I open %22http://www/google.com%22%0A            action.iOpenP1(%22http://www/google.com%22);%0A            // When I search for %22Hiptest%22%0A            action.iSearchForP1(%22Hiptest%22);%0A        %7D%0A        else%0A        %7B%0A
     
@@ -235,16 +235,66 @@
 ords();%0A
+            System.out.println(action1);%0A        %0A
         
@@ -435,29 +435,8 @@
     
-  %0A        %7D%0A        
 %0A   

Update ProjectTest.java