0
点赞
收藏
分享

微信扫一扫

TestNG的顺序测试代码

北冥有一鲲 2022-08-02 阅读 121
编程语言

package com.gloryroad.TestNGCo;



import org.testng.annotations.Test;



public class SequenceTest {


@Test(priority=1)

public void test1()

{

System.out.println("test1");

}

@Test(priority=2)

public void test2()

{

System.out.println("test2");

}

@Test(priority=3)

public void test3()

{

System.out.println("test3");

}

@Test(priority=4)

public void test4()

{

System.out.println("test4");

}




}

举报

相关推荐

0 条评论