java.lang.NoClassDefFoundError: io/restassured/mapper/factory/GsonObjectMapperFactory

前端 未结 5 1007
不知归路
不知归路 2021-01-01 12:35

I am getting error when I try to execute script with rest assured framework. Please guide me to resolve the same. And I used below jars

Java version - 8
rest         


        
5条回答
  •  北荒
    北荒 (楼主)
    2021-01-01 12:52

    In looking at the error, You need to put GSON in your classpath or POM dependancy section explicitly since it's an optional dependency to Rest Assured.

    
    
        com.google.code.gson
        gson
        2.8.1
    
    

提交回复
热议问题