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/users.feature 176 0 0 0 0 176 9 0 9 3.233 Passed
Feature tests/features/users.feature
sample karate test script for help, see: https://github.com/karatelabs/karate/wiki/IDE-Support
0.014
* def smoke = read('classpath:tests/CSVfiles/allusers/smoke.csv') 0.002
15:56:31.961 karate.env system property was: qa 
* def smoke2 = read('classpath:tests/CSVfiles/usersbyname/smoke.csv') 0.001
* def negative2 = read('classpath:tests/CSVfiles/usersbyname/negative.csv') 0.001
* def smoke3 = read('classpath:tests/CSVfiles/usersbyid/smoke.csv') 0.001
* def negative3 = read('classpath:tests/CSVfiles/usersbyid/negative.csv') 0.001
* def smoke4 = read('classpath:tests/CSVfiles/useravailable/smoke.csv') 0.002
* def DbUtils = Java.type('util.DBUtils') 0.001
* def db = new DbUtils(dbconfig) 0.000
Tags: @smoke
1.225
* print 'test' 0.000
15:56:33.862 karate.env system property was: qa 
15:56:33.863 [print] test 
* def test = call read('classpath:tests/services/allusers.feature') 0.392
tests/services/allusers.feature 0.000
> * print 'Inside get review service' 0.000
15:56:33.867 [print] Inside get review service 
> Given url baseUrl + 'all' 0.000
> When method get 0.386
15:56:33.869 request:
1 > GET http://localhost:8085/all
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:34.254 response time in milliseconds: 385
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:33 GMT
1 < Keep-Alive: timeout=60
1 < Connection: keep-alive
[{"profileid":4,"fullname":"Sam Barlow","pwd":"$2a$10$gvvz2d2PYcgA5kMLoca60uxWCFAfAvN6qV3xl8gYTZb3y46fPxUc.","username":"sbarlowc","aboutme":"undefined"},{"profileid":5,"fullname":"Jeff Barlow","pwd":"$2a$10$0mhm8RTvvvGd79fcEJqN.ezsT.ER9QIU2UKGx.hixGvFEsk8OHnUS","username":"Jelvetica","aboutme":"undefined"},{"profileid":6,"fullname":"Bryce Corning ","pwd":"$2a$10$46l68n\/kf0st3e8FLKpZp.0mTjtTUzBYL84FKznGKZU3z7v61NRse","username":"Corndog55","aboutme":"undefined"},{"profileid":7,"fullname":"James Cluff","pwd":"$2a$10$wJZCd9ik15NeFh9czNvNiuRxUXWq.Dqg3cAc70KjT0WgqPb5KRb86","username":"cyanoticsamurai","aboutme":"undefined"},{"profileid":40,"fullname":"Test User","pwd":"$2a$10$D9ehlw3Zt.4oW6OZV2VvIOAtRSLHXL2RtS0MMATu9TMnYOF0.utAq","username":"testuserc","aboutme":"undefined"}]
> Then status 200 0.000
* karate.log(test.response[0].profileid) 0.001
15:56:34.257 4 
* def users = db.readRows('SELECT * FROM userprofiles WHERE profileid IN (' + test.response[0].profileid + ',' + test.response[1].profileid + ',' + test.response[2].profileid + ')') 0.441
* karate.log(users.length) 0.001
15:56:34.700 3 
* assert users.length == 3 0.001
* assert test.responseStatus == respStatus 0.000
0.007
* def smoke = read('classpath:tests/CSVfiles/allusers/smoke.csv') 0.000
15:56:31.985 karate.env system property was: qa 
* def smoke2 = read('classpath:tests/CSVfiles/usersbyname/smoke.csv') 0.000
* def negative2 = read('classpath:tests/CSVfiles/usersbyname/negative.csv') 0.001
* def smoke3 = read('classpath:tests/CSVfiles/usersbyid/smoke.csv') 0.001
* def negative3 = read('classpath:tests/CSVfiles/usersbyid/negative.csv') 0.000
* def smoke4 = read('classpath:tests/CSVfiles/useravailable/smoke.csv') 0.000
* def DbUtils = Java.type('util.DBUtils') 0.000
* def db = new DbUtils(dbconfig) 0.000
Tags: @smoke
0.628
* print 'test' 0.000
15:56:33.881 karate.env system property was: qa 
15:56:33.882 [print] test 
* def test = call read('classpath:tests/services/userbyname.feature') 0.060
tests/services/userbyname.feature 0.000
> * print 'Inside get review service' 0.000
15:56:33.888 [print] Inside get review service 
> Given url baseUrl + 'userbyname?username=' + textuname 0.000
> When method get 0.053
15:56:33.891 request:
1 > GET http://localhost:8085/userbyname?username=sbarlowc
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.942 response time in milliseconds: 50
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:33 GMT
1 < Keep-Alive: timeout=60
1 < Connection: keep-alive
4
* karate.log(test.response) 0.000
15:56:33.944 4 
* def user = db.readRows('SELECT * FROM userprofiles WHERE profileid = "' + test.response + '"') 0.509
* karate.log(user) 0.001
15:56:34.456 {
  "profileid": 4,
  "username": "sbarlowc",
  "pwd": "$2a$10$gvvz2d2PYcgA5kMLoca60uxWCFAfAvN6qV3xl8gYTZb3y46fPxUc.",
  "fullname": "Sam Barlow",
  "aboutme": "undefined"
}
 
* assert test.responseStatus == respStatus 0.000
* assert test.response == user[0].profileid 0.000
0.009
* def smoke = read('classpath:tests/CSVfiles/allusers/smoke.csv') 0.001
15:56:31.999 karate.env system property was: qa 
* def smoke2 = read('classpath:tests/CSVfiles/usersbyname/smoke.csv') 0.000
* def negative2 = read('classpath:tests/CSVfiles/usersbyname/negative.csv') 0.000
* def smoke3 = read('classpath:tests/CSVfiles/usersbyid/smoke.csv') 0.000
* def negative3 = read('classpath:tests/CSVfiles/usersbyid/negative.csv') 0.001
* def smoke4 = read('classpath:tests/CSVfiles/useravailable/smoke.csv') 0.002
* def DbUtils = Java.type('util.DBUtils') 0.000
* def db = new DbUtils(dbconfig) 0.000
Tags: @negative
0.162
* print 'test' 0.000
15:56:34.022 karate.env system property was: qa 
15:56:34.023 [print] test 
* def test = call read('classpath:tests/services/userbyname.feature') 0.085
tests/services/userbyname.feature 0.000
> * print 'Inside get review service' 0.000
15:56:34.034 [print] Inside get review service 
> Given url baseUrl + 'userbyname?username=' + textuname 0.000
> When method get 0.073
15:56:34.036 request:
1 > GET http://localhost:8085/userbyname?username=idontexistsorry
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:34.108 response time in milliseconds: 71
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:33 GMT
1 < Connection: close
{"path":"\/userbyname","error":"Internal Server Error","message":"No message available","timestamp":"2024-01-09T22:56:34.107+0000","status":500}
* assert test.responseStatus == respStatus 0.000
* karate.log(test.response.error) 0.000
15:56:34.109 Internal Server Error 
* karate.log(error) 0.000
15:56:34.110 Internal Server Error 
* assert test.response.error == error 0.000
* assert test.response.message == message 0.000
0.009
* def smoke = read('classpath:tests/CSVfiles/allusers/smoke.csv') 0.001
15:56:31.999 karate.env system property was: qa 
* def smoke2 = read('classpath:tests/CSVfiles/usersbyname/smoke.csv') 0.000
* def negative2 = read('classpath:tests/CSVfiles/usersbyname/negative.csv') 0.000
* def smoke3 = read('classpath:tests/CSVfiles/usersbyid/smoke.csv') 0.000
* def negative3 = read('classpath:tests/CSVfiles/usersbyid/negative.csv') 0.001
* def smoke4 = read('classpath:tests/CSVfiles/useravailable/smoke.csv') 0.002
* def DbUtils = Java.type('util.DBUtils') 0.000
* def db = new DbUtils(dbconfig) 0.000
Tags: @negative
0.138
* print 'test' 0.000
15:56:34.035 karate.env system property was: qa 
15:56:34.037 [print] test 
* def test = call read('classpath:tests/services/userbyname.feature') 0.071
tests/services/userbyname.feature 0.000
> * print 'Inside get review service' 0.000
15:56:34.043 [print] Inside get review service 
> Given url baseUrl + 'userbyname?username=' + textuname 0.000
> When method get 0.064
15:56:34.045 request:
1 > GET http://localhost:8085/userbyname?username=hjkl;'@#$
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:34.108 response time in milliseconds: 62
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:33 GMT
1 < Connection: close
{"path":"\/userbyname","error":"Internal Server Error","message":"No message available","timestamp":"2024-01-09T22:56:34.105+0000","status":500}
* assert test.responseStatus == respStatus 0.000
* karate.log(test.response.error) 0.000
15:56:34.110 Internal Server Error 
* karate.log(error) 0.000
15:56:34.110 Internal Server Error 
* assert test.response.error == error 0.000
* assert test.response.message == message 0.000
0.024
* def smoke = read('classpath:tests/CSVfiles/allusers/smoke.csv') 0.001
15:56:32.017 karate.env system property was: qa 
* def smoke2 = read('classpath:tests/CSVfiles/usersbyname/smoke.csv') 0.002
* def negative2 = read('classpath:tests/CSVfiles/usersbyname/negative.csv') 0.005
* def smoke3 = read('classpath:tests/CSVfiles/usersbyid/smoke.csv') 0.005
* def negative3 = read('classpath:tests/CSVfiles/usersbyid/negative.csv') 0.002
* def smoke4 = read('classpath:tests/CSVfiles/useravailable/smoke.csv') 0.005
* def DbUtils = Java.type('util.DBUtils') 0.000
* def db = new DbUtils(dbconfig) 0.000
Tags: @smoke
0.586
* print 'test' 0.000
15:56:34.114 karate.env system property was: qa 
15:56:34.115 [print] test 
* def test = call read('classpath:tests/services/userbyid.feature') 0.056
tests/services/userbyid.feature 0.000
> * print 'Inside get review service' 0.000
15:56:34.120 [print] Inside get review service 
> Given url baseUrl + 'namebyuser?userid=' + textuid 0.000
> When method get 0.050
15:56:34.123 request:
1 > GET http://localhost:8085/namebyuser?userid=4
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:34.171 response time in milliseconds: 48
1 < 200
1 < Vary: Origin
1 < Vary: Access-Control-Request-Method
1 < Vary: Access-Control-Request-Headers
1 < Content-Type: text/plain;charset=UTF-8
1 < Content-Length: 21
1 < Date: Tue, 09 Jan 2024 22:56:33 GMT
1 < Keep-Alive: timeout=60
1 < Connection: keep-alive
{"uname":"sbarlowc"}
* karate.log(test.response) 0.000
15:56:34.172 {
  "uname": "sbarlowc"
}
 
* def user = db.readRows('SELECT * FROM userprofiles WHERE profileid = "' + textuid + '"') 0.474
* karate.log(user) 0.001
15:56:34.647 {
  "profileid": 4,
  "username": "sbarlowc",
  "pwd": "$2a$10$gvvz2d2PYcgA5kMLoca60uxWCFAfAvN6qV3xl8gYTZb3y46fPxUc.",
  "fullname": "Sam Barlow",
  "aboutme": "undefined"
}
 
* assert test.responseStatus == respStatus 0.000
* assert test.response.uname == user[0].username 0.000
0.012
* def smoke = read('classpath:tests/CSVfiles/allusers/smoke.csv') 0.001
15:56:32.049 karate.env system property was: qa 
* def smoke2 = read('classpath:tests/CSVfiles/usersbyname/smoke.csv') 0.005
* def negative2 = read('classpath:tests/CSVfiles/usersbyname/negative.csv') 0.001
* def smoke3 = read('classpath:tests/CSVfiles/usersbyid/smoke.csv') 0.001
* def negative3 = read('classpath:tests/CSVfiles/usersbyid/negative.csv') 0.000
* def smoke4 = read('classpath:tests/CSVfiles/useravailable/smoke.csv') 0.000
* def DbUtils = Java.type('util.DBUtils') 0.000
* def db = new DbUtils(dbconfig) 0.000
Tags: @negative
0.119
* print 'test' 0.000
15:56:34.115 karate.env system property was: qa 
15:56:34.116 [print] test 
* def test = call read('classpath:tests/services/userbyid.feature') 0.060
tests/services/userbyid.feature 0.000
> * print 'Inside get review service' 0.000
15:56:34.122 [print] Inside get review service 
> Given url baseUrl + 'namebyuser?userid=' + textuid 0.001
> When method get 0.052
15:56:34.124 request:
1 > GET http://localhost:8085/namebyuser?userid=999
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:34.176 response time in milliseconds: 51
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:33 GMT
1 < Connection: close
{"path":"\/namebyuser","error":"Internal Server Error","message":"No message available","timestamp":"2024-01-09T22:56:34.173+0000","status":500}
* karate.log(test.response) 0.000
15:56:34.177 {
  "path": "/namebyuser",
  "error": "Internal Server Error",
  "message": "No message available",
  "timestamp": "2024-01-09T22:56:34.173+0000",
  "status": 500
}
 
* assert test.responseStatus == respStatus 0.000
* karate.log(test.response.error) 0.000
15:56:34.178 Internal Server Error 
* karate.log(error) 0.000
15:56:34.178 Internal Server Error 
* assert test.response.error == error 0.000
* karate.log(test.response.message) 0.000
15:56:34.179 No message available 
* karate.log(message) 0.000
15:56:34.180 No message available 
* assert test.response.message == message 0.000
0.012
* def smoke = read('classpath:tests/CSVfiles/allusers/smoke.csv') 0.001
15:56:32.049 karate.env system property was: qa 
* def smoke2 = read('classpath:tests/CSVfiles/usersbyname/smoke.csv') 0.005
* def negative2 = read('classpath:tests/CSVfiles/usersbyname/negative.csv') 0.001
* def smoke3 = read('classpath:tests/CSVfiles/usersbyid/smoke.csv') 0.001
* def negative3 = read('classpath:tests/CSVfiles/usersbyid/negative.csv') 0.000
* def smoke4 = read('classpath:tests/CSVfiles/useravailable/smoke.csv') 0.000
* def DbUtils = Java.type('util.DBUtils') 0.000
* def db = new DbUtils(dbconfig) 0.000
Tags: @negative
0.021
* print 'test' 0.000
15:56:34.184 karate.env system property was: qa 
15:56:34.185 [print] test 
* def test = call read('classpath:tests/services/userbyid.feature') 0.011
tests/services/userbyid.feature 0.000
> * print 'Inside get review service' 0.000
15:56:34.189 [print] Inside get review service 
> Given url baseUrl + 'namebyuser?userid=' + textuid 0.000
> When method get 0.007
15:56:34.191 request:
1 > GET http://localhost:8085/namebyuser?userid=abc
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:34.196 response time in milliseconds: 5
1 < 400
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:33 GMT
1 < Connection: close
{"path":"\/namebyuser","error":"Bad Request","message":"Failed to convert value of type 'java.lang.String' to required type 'int'; nested exception is java.lang.NumberFormatException: For input string: \"abc\"","timestamp":"2024-01-09T22:56:34.195+0000","status":400}
* karate.log(test.response) 0.000
15:56:34.197 {
  "path": "/namebyuser",
  "error": "Bad Request",
  "message": "Failed to convert value of type 'java.lang.String' to required type 'int'; nested exception is java.lang.NumberFormatException: For input string: \"abc\"",
  "timestamp": "2024-01-09T22:56:34.195+0000",
  "status": 400
}
 
* assert test.responseStatus == respStatus 0.000
* karate.log(test.response.error) 0.000
15:56:34.198 Bad Request 
* karate.log(error) 0.000
15:56:34.198 Bad Request 
* assert test.response.error == error 0.000
* karate.log(test.response.message) 0.000
15:56:34.198 Failed to convert value of type 'java.lang.String' to required type 'int'; nested exception is java.lang.NumberFormatException: For input string: "abc" 
* karate.log(message) 0.000
15:56:34.199 Failed to convert value of type 'java.lang.String' to required type 'int'; nested exception is java.lang.NumberFormatException: For input string: "abc" 
* assert test.response.message == message 0.000
0.033
* def smoke = read('classpath:tests/CSVfiles/allusers/smoke.csv') 0.000
15:56:32.075 karate.env system property was: qa 
* def smoke2 = read('classpath:tests/CSVfiles/usersbyname/smoke.csv') 0.005
* def negative2 = read('classpath:tests/CSVfiles/usersbyname/negative.csv') 0.001
* def smoke3 = read('classpath:tests/CSVfiles/usersbyid/smoke.csv') 0.001
* def negative3 = read('classpath:tests/CSVfiles/usersbyid/negative.csv') 0.006
* def smoke4 = read('classpath:tests/CSVfiles/useravailable/smoke.csv') 0.005
* def DbUtils = Java.type('util.DBUtils') 0.008
* def db = new DbUtils(dbconfig) 0.004
Tags: @smoke
0.100
* print 'test' 0.000
15:56:34.202 karate.env system property was: qa 
15:56:34.203 [print] test 
* def test = call read('classpath:tests/services/useravailable.feature') 0.051
tests/services/useravailable.feature 0.000
> * print 'Inside get review service' 0.000
15:56:34.209 [print] Inside get review service 
> Given url baseUrl + 'checkuser?username=' + textuname 0.000
> When method post 0.044
15:56:34.211 request:
1 > POST http://localhost:8085/checkuser?username=sbarlowc
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:34.254 response time in milliseconds: 43
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:33 GMT
1 < Keep-Alive: timeout=60
1 < Connection: keep-alive
true
> Then status 200 0.000
* karate.log(test.response) 0.000
15:56:34.256 true 
* assert test.responseStatus == respStatus 0.000
* assert test.response == returned 0.000
0.033
* def smoke = read('classpath:tests/CSVfiles/allusers/smoke.csv') 0.000
15:56:32.075 karate.env system property was: qa 
* def smoke2 = read('classpath:tests/CSVfiles/usersbyname/smoke.csv') 0.005
* def negative2 = read('classpath:tests/CSVfiles/usersbyname/negative.csv') 0.001
* def smoke3 = read('classpath:tests/CSVfiles/usersbyid/smoke.csv') 0.001
* def negative3 = read('classpath:tests/CSVfiles/usersbyid/negative.csv') 0.006
* def smoke4 = read('classpath:tests/CSVfiles/useravailable/smoke.csv') 0.005
* def DbUtils = Java.type('util.DBUtils') 0.008
* def db = new DbUtils(dbconfig) 0.004
Tags: @smoke
0.092
* print 'test' 0.000
15:56:34.261 karate.env system property was: qa 
15:56:34.262 [print] test 
* def test = call read('classpath:tests/services/useravailable.feature') 0.048
tests/services/useravailable.feature 0.000
> * print 'Inside get review service' 0.000
15:56:34.267 [print] Inside get review service 
> Given url baseUrl + 'checkuser?username=' + textuname 0.000
> When method post 0.042
15:56:34.269 request:
1 > POST http://localhost:8085/checkuser?username=ffsadjyuuiouong
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:34.310 response time in milliseconds: 41
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:33 GMT
1 < Keep-Alive: timeout=60
1 < Connection: keep-alive
false
> Then status 200 0.000
* karate.log(test.response) 0.000
15:56:34.311 false 
* assert test.responseStatus == respStatus 0.000
* assert test.response == returned 0.000