Project Date
moviegram-test 09 Jan 2024, 15:56

Feature Report

Steps Scenarios Features
Feature Passed Failed Skipped Pending Undefined Total Passed Failed Total Duration Status
tests/features/movies.feature 100 0 0 0 0 100 6 0 6 9.736 Passed
Feature tests/features/movies.feature
sample karate test script for help, see: https://github.com/karatelabs/karate/wiki/IDE-Support
0.008
* def smoke = read('classpath:tests/CSVfiles/moviesearch/smoke.csv') 0.001
15:56:31.616 karate.env system property was: qa 
* def smoke2 = read('classpath:tests/CSVfiles/movieposter/smoke.csv') 0.001
* def negative = read('classpath:tests/CSVfiles/moviesearch/negative.csv') 0.001
* def negative2 = read('classpath:tests/CSVfiles/movieposter/negative.csv') 0.001
* def DbUtils = Java.type('util.DBUtils') 0.000
* def db = new DbUtils(dbconfig) 0.000
Tags: @smoke
2.374
* print 'test' 0.001
15:56:31.649 karate.env system property was: qa 
15:56:31.652 [print] test 
* def test = call read('classpath:tests/services/moviesearch.feature') 1.177
tests/services/moviesearch.feature 0.000
> * print 'Inside get review service' 0.001
15:56:31.668 [print] Inside get review service 
> Given url baseUrl + 'movies?moviename=' + filmtitle + '&movieyear=' + filmyear 0.000
> When method get 1.159
15:56:32.530 request:
1 > GET http://localhost:8085/movies?moviename=star%20trek&movieyear=2009
1 > Host: localhost:8085
1 > Connection: Keep-Alive
1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_231)
1 > Accept-Encoding: gzip,deflate


15:56:32.828 response time in milliseconds: 298
1 < 200
1 < Vary: Origin
1 < Vary: Access-Control-Request-Method
1 < Vary: Access-Control-Request-Headers
1 < Content-Type: application/json
1 < Transfer-Encoding: chunked
1 < Date: Tue, 09 Jan 2024 22:56:32 GMT
1 < Keep-Alive: timeout=60
1 < Connection: keep-alive
{"Year":"2009","imdbID":"tt0796366","Poster":"https:\/\/m.media-amazon.com\/images\/M\/MV5BMjE5NDQ5OTE4Ml5BMl5BanBnXkFtZTcwOTE3NDIzMw@@._V1_SX300.jpg","Title":"Star Trek"}
> Then status 200 0.000
* karate.log(test.response) 0.001
15:56:32.831 {
  "Year": "2009",
  "imdbID": "tt0796366",
  "Poster": "https://m.media-amazon.com/images/M/MV5BMjE5NDQ5OTE4Ml5BMl5BanBnXkFtZTcwOTE3NDIzMw@@._V1_SX300.jpg",
  "Title": "Star Trek"
}
 
* assert test.responseStatus == respStatus 0.000
* match test.response.imdbID == imdbID 0.031
0.005
* def smoke = read('classpath:tests/CSVfiles/moviesearch/smoke.csv') 0.001
15:56:31.635 karate.env system property was: qa 
* def smoke2 = read('classpath:tests/CSVfiles/movieposter/smoke.csv') 0.000
* def negative = read('classpath:tests/CSVfiles/moviesearch/negative.csv') 0.000
* def negative2 = read('classpath:tests/CSVfiles/movieposter/negative.csv') 0.001
* def DbUtils = Java.type('util.DBUtils') 0.000
* def db = new DbUtils(dbconfig) 0.000
Tags: @negative
2.168
* print 'test' 0.001
15:56:31.680 karate.env system property was: qa 
15:56:31.680 [print] test 
* def test = call read('classpath:tests/services/moviesearch.feature') 1.002
tests/services/moviesearch.feature 0.000
> * print 'Inside get review service' 0.001
15:56:31.700 [print] Inside get review service 
> Given url baseUrl + 'movies?moviename=' + filmtitle + '&movieyear=' + filmyear 0.000
> When method get 0.984
15:56:32.533 request:
1 > GET http://localhost:8085/movies?moviename=asdfghjkljklgfld&movieyear=2009
1 > Host: localhost:8085
1 > Connection: Keep-Alive
1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_231)
1 > Accept-Encoding: gzip,deflate


15:56:32.685 response time in milliseconds: 151
1 < 200
1 < Vary: Origin
1 < Vary: Access-Control-Request-Method
1 < Vary: Access-Control-Request-Headers
1 < Content-Type: application/json
1 < Transfer-Encoding: chunked
1 < Date: Tue, 09 Jan 2024 22:56:32 GMT
1 < Keep-Alive: timeout=60
1 < Connection: keep-alive
{"Year":null,"imdbID":null,"Poster":null,"Title":null}
> Then status 200 0.000
* karate.log(test.response) 0.001
15:56:32.688 {
  "Year": null,
  "imdbID": null,
  "Poster": null,
  "Title": null
}
 
* assert test.responseStatus == respStatus 0.000
* match test.response.imdbID == imdbID 0.175
0.005
* def smoke = read('classpath:tests/CSVfiles/moviesearch/smoke.csv') 0.001
15:56:31.635 karate.env system property was: qa 
* def smoke2 = read('classpath:tests/CSVfiles/movieposter/smoke.csv') 0.000
* def negative = read('classpath:tests/CSVfiles/moviesearch/negative.csv') 0.000
* def negative2 = read('classpath:tests/CSVfiles/movieposter/negative.csv') 0.001
* def DbUtils = Java.type('util.DBUtils') 0.000
* def db = new DbUtils(dbconfig) 0.000
Tags: @negative
2.178
* print 'test' 0.001
15:56:31.675 karate.env system property was: qa 
15:56:31.679 [print] test 
* def test = call read('classpath:tests/services/moviesearch.feature') 1.016
tests/services/moviesearch.feature 0.000
> * print 'Inside get review service' 0.001
15:56:31.701 [print] Inside get review service 
> Given url baseUrl + 'movies?moviename=' + filmtitle + '&movieyear=' + filmyear 0.000
> When method get 0.991
15:56:32.531 request:
1 > GET http://localhost:8085/movies?moviename=star%20trek&movieyear=sad'f@
1 > Host: localhost:8085
1 > Connection: Keep-Alive
1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_231)
1 > Accept-Encoding: gzip,deflate


15:56:32.692 response time in milliseconds: 159
1 < 200
1 < Vary: Origin
1 < Vary: Access-Control-Request-Method
1 < Vary: Access-Control-Request-Headers
1 < Content-Type: application/json
1 < Transfer-Encoding: chunked
1 < Date: Tue, 09 Jan 2024 22:56:32 GMT
1 < Keep-Alive: timeout=60
1 < Connection: keep-alive
{"Year":"2009","imdbID":"tt0796366","Poster":"https:\/\/m.media-amazon.com\/images\/M\/MV5BMjE5NDQ5OTE4Ml5BMl5BanBnXkFtZTcwOTE3NDIzMw@@._V1_SX300.jpg","Title":"Star Trek"}
> Then status 200 0.000
* karate.log(test.response) 0.001
15:56:32.698 {
  "Year": "2009",
  "imdbID": "tt0796366",
  "Poster": "https://m.media-amazon.com/images/M/MV5BMjE5NDQ5OTE4Ml5BMl5BanBnXkFtZTcwOTE3NDIzMw@@._V1_SX300.jpg",
  "Title": "Star Trek"
}
 
* assert test.responseStatus == respStatus 0.000
* match test.response.imdbID == imdbID 0.164
0.034
* def smoke = read('classpath:tests/CSVfiles/moviesearch/smoke.csv') 0.000
15:56:31.651 karate.env system property was: qa 
* def smoke2 = read('classpath:tests/CSVfiles/movieposter/smoke.csv') 0.000
* def negative = read('classpath:tests/CSVfiles/moviesearch/negative.csv') 0.001
* def negative2 = read('classpath:tests/CSVfiles/movieposter/negative.csv') 0.030
* def DbUtils = Java.type('util.DBUtils') 0.000
* def db = new DbUtils(dbconfig) 0.000
Tags: @smoke
1.922
* print 'test' 0.001
15:56:31.717 karate.env system property was: qa 
15:56:31.720 [print] test 
* def test = call read('classpath:tests/services/movieposter.feature') 0.958
tests/services/movieposter.feature 0.000
> * print 'Inside get review service' 0.005
15:56:31.732 [print] Inside get review service 
> Given url baseUrl + 'movieposter?imdbID=' + imdbID 0.001
> When method get 0.943
15:56:32.535 request:
1 > GET http://localhost:8085/movieposter?imdbID=tt0796366
1 > Host: localhost:8085
1 > Connection: Keep-Alive
1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_231)
1 > Accept-Encoding: gzip,deflate


15:56:32.676 response time in milliseconds: 134
1 < 200
1 < Vary: Origin
1 < Vary: Access-Control-Request-Method
1 < Vary: Access-Control-Request-Headers
1 < Content-Type: application/json
1 < Transfer-Encoding: chunked
1 < Date: Tue, 09 Jan 2024 22:56:32 GMT
1 < Keep-Alive: timeout=60
1 < Connection: keep-alive
{"Year":"2009","imdbID":"tt0796366","Poster":"https:\/\/m.media-amazon.com\/images\/M\/MV5BMjE5NDQ5OTE4Ml5BMl5BanBnXkFtZTcwOTE3NDIzMw@@._V1_SX300.jpg","Title":"Star Trek"}
* karate.log(test.response) 0.005
15:56:32.684 {
  "Year": "2009",
  "imdbID": "tt0796366",
  "Poster": "https://m.media-amazon.com/images/M/MV5BMjE5NDQ5OTE4Ml5BMl5BanBnXkFtZTcwOTE3NDIzMw@@._V1_SX300.jpg",
  "Title": "Star Trek"
}
 
* assert test.responseStatus == respStatus 0.004
* assert test.response.imdbID == imdbID 0.001
* assert test.response.Poster == moviePoster 0.000
0.005
* def smoke = read('classpath:tests/CSVfiles/moviesearch/smoke.csv') 0.001
15:56:31.701 karate.env system property was: qa 
* def smoke2 = read('classpath:tests/CSVfiles/movieposter/smoke.csv') 0.000
* def negative = read('classpath:tests/CSVfiles/moviesearch/negative.csv') 0.000
* def negative2 = read('classpath:tests/CSVfiles/movieposter/negative.csv') 0.001
* def DbUtils = Java.type('util.DBUtils') 0.000
* def db = new DbUtils(dbconfig) 0.001
Tags: @negative
0.460
* print 'test' 0.001
15:56:32.818 karate.env system property was: qa 
15:56:32.822 [print] test 
* def test = call read('classpath:tests/services/movieposter.feature') 0.239
tests/services/movieposter.feature 0.000
> * print 'Inside get review service' 0.001
15:56:32.848 [print] Inside get review service 
> Given url baseUrl + 'movieposter?imdbID=' + imdbID 0.000
> When method get 0.212
15:56:32.851 request:
1 > GET http://localhost:8085/movieposter?imdbID=tt9999999
1 > Host: localhost:8085
1 > Connection: Keep-Alive
1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_231)
1 > Accept-Encoding: gzip,deflate


15:56:33.060 response time in milliseconds: 207
1 < 500
1 < Vary: Origin
1 < Vary: Access-Control-Request-Method
1 < Vary: Access-Control-Request-Headers
1 < Content-Type: application/json
1 < Transfer-Encoding: chunked
1 < Date: Tue, 09 Jan 2024 22:56:32 GMT
1 < Connection: close
{"path":"\/movieposter","error":"Internal Server Error","message":"ids for this class must be manually assigned before calling save(): com.revature.model.Movies; nested exception is org.hibernate.id.IdentifierGenerationException: ids for this class must be manually assigned before calling save(): com.revature.model.Movies","timestamp":"2024-01-09T22:56:33.056+0000","status":500}
* karate.log(test.response) 0.001
15:56:33.062 {
  "path": "/movieposter",
  "error": "Internal Server Error",
  "message": "ids for this class must be manually assigned before calling save(): com.revature.model.Movies; nested exception is org.hibernate.id.IdentifierGenerationException: ids for this class must be manually assigned before calling save(): com.revature.model.Movies",
  "timestamp": "2024-01-09T22:56:33.056+0000",
  "status": 500
}
 
* assert test.responseStatus == respStatus 0.000
* karate.log(test.response.error) 0.000
15:56:33.063 Internal Server Error 
* karate.log(error) 0.000
15:56:33.064 Internal Server Error 
* assert test.response.error == error 0.000
* assert test.response.message == message 0.000
0.005
* def smoke = read('classpath:tests/CSVfiles/moviesearch/smoke.csv') 0.001
15:56:31.701 karate.env system property was: qa 
* def smoke2 = read('classpath:tests/CSVfiles/movieposter/smoke.csv') 0.000
* def negative = read('classpath:tests/CSVfiles/moviesearch/negative.csv') 0.000
* def negative2 = read('classpath:tests/CSVfiles/movieposter/negative.csv') 0.001
* def DbUtils = Java.type('util.DBUtils') 0.000
* def db = new DbUtils(dbconfig) 0.001
Tags: @negative
0.566
* print 'test' 0.000
15:56:32.873 karate.env system property was: qa 
15:56:32.874 [print] test 
* def test = call read('classpath:tests/services/movieposter.feature') 0.285
tests/services/movieposter.feature 0.000
> * print 'Inside get review service' 0.001
15:56:32.885 [print] Inside get review service 
> Given url baseUrl + 'movieposter?imdbID=' + imdbID 0.000
> When method get 0.273
15:56:32.892 request:
1 > GET http://localhost:8085/movieposter?imdbID=s@3,;'
1 > Host: localhost:8085
1 > Connection: Keep-Alive
1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_231)
1 > Accept-Encoding: gzip,deflate


15:56:33.159 response time in milliseconds: 267
1 < 500
1 < Vary: Origin
1 < Vary: Access-Control-Request-Method
1 < Vary: Access-Control-Request-Headers
1 < Content-Type: application/json
1 < Transfer-Encoding: chunked
1 < Date: Tue, 09 Jan 2024 22:56:32 GMT
1 < Connection: close
{"path":"\/movieposter","error":"Internal Server Error","message":"ids for this class must be manually assigned before calling save(): com.revature.model.Movies; nested exception is org.hibernate.id.IdentifierGenerationException: ids for this class must be manually assigned before calling save(): com.revature.model.Movies","timestamp":"2024-01-09T22:56:33.157+0000","status":500}
* karate.log(test.response) 0.000
15:56:33.161 {
  "path": "/movieposter",
  "error": "Internal Server Error",
  "message": "ids for this class must be manually assigned before calling save(): com.revature.model.Movies; nested exception is org.hibernate.id.IdentifierGenerationException: ids for this class must be manually assigned before calling save(): com.revature.model.Movies",
  "timestamp": "2024-01-09T22:56:33.157+0000",
  "status": 500
}
 
* assert test.responseStatus == respStatus 0.000
* karate.log(test.response.error) 0.001
15:56:33.162 Internal Server Error 
* karate.log(error) 0.000
15:56:33.163 Internal Server Error 
* assert test.response.error == error 0.000
* assert test.response.message == message 0.000