package com.course.testng.suite;

import org.testng.annotations.Test;

public class DepenTest {
    @Test
    public void test1(){
        System.out.println("test1 run");
        throw new RuntimeException();
    }

    @Test(dependsOnMethods = {"test1"})
    public void test2(){
        System.out.println("test2 run");
    }
}

 

package com.course.testng.suite;

import org.testng.annotations.Test;

public class DepenTest {
    @Test
    public void test1(){
        System.out.println("test1 run");

    }

    @Test(dependsOnMethods = {"test1"})
    public void test2(){
        System.out.println("test2 run");
    }
}

 

TestNG(十) 依赖测试

 

TestNG(十) 依赖测试

 

相关文章:

  • 2022-12-23
  • 2021-04-27
  • 2021-10-27
  • 2022-12-23
  • 2021-05-15
  • 2022-12-23
  • 2022-12-23
  • 2021-09-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-08-08
  • 2021-07-14
  • 2022-12-23
  • 2021-12-22
相关资源
相似解决方案