• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

SoftwareTestingo - Interview Questions, Tutorial & Test Cases Template Examples

SoftwareTestingo - Interview Questions, Tutorial & Test Cases Template Examples

  • Home
  • Test Case Examples
  • Interview Questions
  • Interview Questions Asked
  • Java
  • Selenium
  • Manual Testing
  • SQL Tutorial For Beginners
  • Difference
  • Tools
  • Contact Us
  • Search
SoftwareTestingo » Selenium » Selenium Programs » How TestNG AlwaysRun Annotation Works In Selenium Example?

How TestNG AlwaysRun Annotation Works In Selenium Example?

Last Updated on: November 5, 2018 By Softwaretestingo Editorial Board

TestNG AlwaysRun Annotation Example: How TestNG AlwaysRun Annotation Works In Selenium Example?

package com.selenium.TestNG;
import org.testng.annotations.Test;
public class AlwaysRunExample 
{
   @Test(alwaysRun=true)
   public void method1()
   {
      System.out.println("Inside Method 1");
   }
   @Test(alwaysRun=false)
   public void method2()
   {
      System.out.println("Inside Method 1");
   }
}
Read Also: TestNG Enabled Annotation Works In Selenium

    Filed Under: Selenium Programs

    Reader Interactions

    Leave a Reply Cancel reply

    Your email address will not be published. Required fields are marked *

    Primary Sidebar

    Join SoftwareTestingo Telegram Group

    Categories

    Copyright © 2023 SoftwareTestingo.com ~ Contact Us ~ Sitemap ~ Privacy Policy ~ Testing Careers