Maven Compilation error [package org.testng.annotations does not exist]

后端 未结 9 1381
陌清茗
陌清茗 2020-12-10 11:09

I\'m pretty new to maven and I want to run my test classes using maven. I have generated the testng.xml and I have created the POM.xml file also. But when you run the

9条回答
  •  臣服心动
    2020-12-10 11:56

    In your pom.xml file you have scope of testng as test

    
                org.testng
                testng
                6.9.13.6
                test
    
    

    Replace the scope by compile

    
                org.testng
                testng
                6.9.13.6
                compile
    
    

提交回复
热议问题