title: How to run an exported selenium test case using TestNG in Eclipse
body: <p>I recorded a test case using Selenium IDE 1.10.0. I exported the case as Java/TestNG/Remote Control. </p>
  
  <p>My Eclipse version is 4.2.0 and I installed TestNG plug-in version 6.8</p>
  
  <p>I am wondering how can I create a project within the eclipse to run this exported test case? </p>
  
  <p>Please give me some instructions or share with me some online tutorial / documentations. Thanks!</p>
  
  <p>Below is the java code generated by the Eclipse: </p>
  
  <pre><code>package com.example.tests;
  
  import com.thoughtworks.selenium.*;
  import org.testng.annotations.*;
  import static org.testng.Assert.*;
  import java.util.regex.Pattern;
  
  public class SearchDonor extends SeleneseTestNgHelper {
      @Test public void testSearchDonor() throws Exception {
          // set overall speed of the test case
          selenium.setSpeed("4000");
          selenium.open("/?html=openid");
          selenium.click("css=input[type=\"submit\"]");
          selenium.waitForPageToLoad("30000");
          Thread.sleep(4000);
          selenium.click("id=cmp_admin");
          selenium.waitForPageToLoad("30000");
          selenium.click("id=quicksearch_anchor");
          selenium.click("css=img[alt=\"Member\"]");
          selenium.waitForPageToLoad("30000");
          selenium.type("id=search_name", "suzy");
          selenium.click("css=input[type=\"image\"]");
          selenium.click("link=Balagia, Suzy");
          selenium.waitForPageToLoad("30000");
      }
  }
  </code></pre>