'What should I do after I write webdriver tests? how do I run them automatically? [closed]

I'm testing this website:

website

public static void main(String[] args) {
    
    WebDriver firefox = new FirefoxDriver();

    
    firefox.get("http://test.naimi.me");
    
    WebElement row = firefox.findElement(By.className("row"));
    
    
   
    WebElement navigationPane = 
            firefox.findElement(By.xpath("//nav[contains(@nav,'nav')]"));
    
    
    WebElement billboard = firefox.findElement(By.id("billboard")) ;
    if(billboard != null) System.out.println("good bilboard") ;

I have some Java test code to check if elements loaded after opening the main page. How do I make it run automatically? and on what server/software? Maybe cloud?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source