I’m using java codes in karate feature file, refering github demo: I noticed that the feature file is in src/test/java, which defined as classpath in pom.xml. Meanwhile the util class is in src/main/java. In my project I use similar structure Following code is in the feature file with Class Reference: But I got an exception below: Is it a classpath
Tag: web-api-testing
Rest Assured java.util.HashMap cannot be cast to class java.util.List
I am working on Rest assured framework to automate API testing. actually I want to get the response as list not as an object. cause I want to do assertions for each element. to check data integrity for each element. I am executing this code: This is the Category Class: This is the console log: My Json raw: { “id”:
Internal Server Error when making POST request using Rest Assured
I tried to make a POST request using POJO but getting “vHTTP/1.1 500 Internal Server Error”, could you please advise why? When I pass body as string it works fine, but the passing the bookingDetails will throw the error. I think something is not right with the BookingDates class but I’m not sure why. Answer You should pass the json