title: How to use testng tag for smoke, regression tests
body: <p>I have several test methods and i need to select some of them as smoke tests and others regression tests. How can i make a condition/dependency in Testng selenium, So smoke tests will run first as a group. And i can set up different Bamboo job for regression tests and those will be running only if smoke test group passed.</p>
  
  <p>Here's my tests are:</p>
  
  <pre><code>@Test(priority=1)
  public void test_1(){
  ----}
  
  @Test(priority=2)
  public void test_2(){
  ----}
  
  @Test(priority=3)
  public void test_3(){
  ----}
  
  @Test(priority=4)
  public void test_4(){
  ----}
  
  @Test(priority=5)
  public void test_5(){
  ----}
  </code></pre>
  
  <p>Here, test_1 to test_3 are smoke tests. So if they pass others will be executed. How can i do that?</p>