Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project.

前端 未结 28 1527
予麋鹿
予麋鹿 2020-12-03 06:41

I have been trying from a couple of days to resolve the following error but I am unable to resolve it :(

My module\'s pom.xml file is:



        
28条回答
  •  失恋的感觉
    2020-12-03 06:59

    I was facing the same kind of issue, your version numbers in the dependency of Selenium, TestNG, Junit should the same that you have used in your project. For example, in your project you are using the Selenium version 3.8. This version number should be mentioned in the dependency.

     
        org.testng
        testng
        7.0.0-beta1
        test
    
        
          junit
          junit
          4.12
          test
        
    
        
          org.seleniumhq.selenium
          selenium-java
          3.8.1
               
                        
          org.testng                             
          testng                               
          6.8                                
          test                                       
           
      
    

提交回复
热议问题