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/E2ELogin.feature 171 0 0 0 0 171 1 0 1 7.592 Passed
Feature tests/features/E2ELogin.feature
sample karate test script for help, see: https://github.com/karatelabs/karate/wiki/IDE-Support
0.088
* def smoke = read('classpath:tests/CSVfiles/logine2e/smoke.csv') 0.046
15:56:31.470 karate.env system property was: qa 
* def sessionvalue = '' 0.000
* def DbUtils = Java.type('util.DBUtils') 0.008
* def db = new DbUtils(dbconfig) 0.032
Tags: @smoke
7.503
* print 'test' 0.001
15:56:31.631 karate.env system property was: qa 
15:56:31.635 [print] test 
* def deletereview = call read('classpath:tests/services/reviewdelete.feature') 1.224
tests/services/reviewdelete.feature 0.000
> * print 'Inside get review service' 0.001
15:56:31.651 [print] Inside get review service 
> Given url baseUrl + 'deletereviews?revid=' + revid 0.010
> And header Cookie = 'JSESSIONID=' + sessionvalue + '; Domain=localhost' 0.000
> When method delete 1.198
15:56:32.530 request:
1 > DELETE http://localhost:8085/deletereviews?revid=20
1 > Cookie: JSESSIONID=; Domain=localhost
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.855 response time in milliseconds: 287
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: 33
1 < Date: Tue, 09 Jan 2024 22:56:32 GMT
1 < Keep-Alive: timeout=60
1 < Connection: keep-alive
1 < Set-Cookie: JSESSIONID=2A07EC9F7A6FC5B371D0F7BDE0E8C929; Domain=localhost
This is not your review to delete
> Then status 200 0.000
* karate.log(deletereview) 0.003
15:56:32.864 {
  "baseUrl": "http://localhost:8085/",
  "responseHeaders": {
    "Vary": [
      "Origin",
      "Access-Control-Request-Method",
      "Access-Control-Request-Headers"
    ],
    "Content-Type": [
      "text/plain;charset=UTF-8"
    ],
    "Content-Length": [
      "33"
    ],
    "Date": [
      "Tue, 09 Jan 2024 22:56:32 GMT"
    ],
    "Keep-Alive": [
      "timeout=60"
    ],
    "Connection": [
      "keep-alive"
    ],
    "Set-Cookie": [
      "JSESSIONID=2A07EC9F7A6FC5B371D0F7BDE0E8C929; Domain=localhost"
    ]
  },
  "DbUtils": "util.DBUtils",
  "response": "This is not your review to delete",
  "dbconfig": {
    "username": "sbarlowc_iClient",
    "password": "B0ttle5@",
    "url": "jdbc:mysql://samuelrbarlow.com:3306/sbarlowc_Moviegram_QA",
    "driverClassName": "com.mysql.jdbc.Driver"
  },
  "smoke": [
    {
      "Scenario": "Login Happy Path",
      "revid": "20",
      "respStatus": "200",
      "failedrevdelete": "This is not your review to delete",
      "usernamefore2e": "testuserc",
      "passwordfore2e": "test",
      "fullnamefore2e": "Test%20User",
      "imdbid": "tt11858890",
      "revrating": "2.0",
      "revdesc": "It was okay actually"
    }
  ],
  "responseStatus": 200,
  "db": "util.DBUtils@17b0a5cd",
  "sessionvalue": ""
}
 
* karate.log(deletereview.responseHeaders) 0.002
15:56:32.866 {
  "Vary": [
    "Origin",
    "Access-Control-Request-Method",
    "Access-Control-Request-Headers"
  ],
  "Content-Type": [
    "text/plain;charset=UTF-8"
  ],
  "Content-Length": [
    "33"
  ],
  "Date": [
    "Tue, 09 Jan 2024 22:56:32 GMT"
  ],
  "Keep-Alive": [
    "timeout=60"
  ],
  "Connection": [
    "keep-alive"
  ],
  "Set-Cookie": [
    "JSESSIONID=2A07EC9F7A6FC5B371D0F7BDE0E8C929; Domain=localhost"
  ]
}
 
* karate.log(sessionvalue) 0.001
15:56:32.868  
* def sessionvalue = deletereview.responseHeaders['Set-Cookie'][0].split('=')[1].split(';')[0].trim() 0.046
15:56:32.868 over-writing existing variable 'sessionvalue' with new value: deletereview.responseHeaders['Set-Cookie'][0].split('=')[1].split(';')[0].trim()
* assert deletereview.responseStatus == respStatus 0.000
* assert deletereview.response == failedrevdelete 0.000
* def sessioncheck = call read('classpath:tests/services/sessioncheck.feature') 0.018
tests/services/sessioncheck.feature 0.000
> * print 'Inside get review service' 0.001
15:56:32.926 [print] Inside get review service 
> Given url baseUrl + 'session' 0.000
> And header Cookie = 'JSESSIONID=' + sessionvalue + '; Domain=localhost' 0.001
> When method get 0.006
15:56:32.930 request:
1 > GET http://localhost:8085/session
1 > Cookie: JSESSIONID=2A07EC9F7A6FC5B371D0F7BDE0E8C929; Domain=localhost
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.934 response time in milliseconds: 3
1 < 200
1 < Vary: Origin
1 < Vary: Access-Control-Request-Method
1 < Vary: Access-Control-Request-Headers
1 < Content-Length: 0
1 < Date: Tue, 09 Jan 2024 22:56:32 GMT
1 < Keep-Alive: timeout=60
1 < Connection: keep-alive

> Then status 200 0.000
* karate.log(sessioncheck.response) 0.001
15:56:32.936  
* assert sessioncheck.responseStatus == respStatus 0.000
* match sessioncheck.response == '' 0.006
* def register = call read('classpath:tests/services/sessionregister.feature') 0.328
tests/services/sessionregister.feature 0.000
> * print 'Inside get review service' 0.000
15:56:32.953 [print] Inside get review service 
> Given url baseUrl + 'register?username=' + usernamefore2e + '&password=' + passwordfore2e + '&fullname=' + fullnamefore2e + '&aboutme=undefined' 0.001
> And header Cookie = 'JSESSIONID=' + sessionvalue + '; Domain=localhost' 0.000
> When method post 0.317
15:56:32.956 request:
1 > POST http://localhost:8085/register?username=testuserc&password=test&fullname=Test%20User&aboutme=undefined
1 > Cookie: JSESSIONID=2A07EC9F7A6FC5B371D0F7BDE0E8C929; Domain=localhost
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.272 response time in milliseconds: 316
1 < 200
1 < Vary: Origin
1 < Vary: Access-Control-Request-Method
1 < Vary: Access-Control-Request-Headers
1 < Content-Length: 0
1 < Date: Tue, 09 Jan 2024 22:56:32 GMT
1 < Keep-Alive: timeout=60
1 < Connection: keep-alive

> Then status 200 0.000
* karate.log(register.response) 0.001
15:56:33.274  
* assert register.responseStatus == respStatus 0.000
* def login = call read('classpath:tests/services/sessionlogin.feature') 0.148
tests/services/sessionlogin.feature 0.000
> * print 'Inside get review service' 0.000
15:56:33.280 [print] Inside get review service 
> Given url baseUrl + 'login?username=' + usernamefore2e + '&password=' + passwordfore2e 0.000
> And header Cookie = 'JSESSIONID=' + sessionvalue + '; Domain=localhost' 0.000
> When method post 0.142
15:56:33.282 request:
1 > POST http://localhost:8085/login?username=testuserc&password=test
1 > Cookie: JSESSIONID=2A07EC9F7A6FC5B371D0F7BDE0E8C929; Domain=localhost
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.422 response time in milliseconds: 139
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
{"profileid":40,"fullname":"Test User","pwd":"$2a$10$D9ehlw3Zt.4oW6OZV2VvIOAtRSLHXL2RtS0MMATu9TMnYOF0.utAq","username":"testuserc","aboutme":"undefined"}
> Then status 200 0.000
* karate.log(login.response) 0.001
15:56:33.424 {
  "profileid": 40,
  "fullname": "Test User",
  "pwd": "$2a$10$D9ehlw3Zt.4oW6OZV2VvIOAtRSLHXL2RtS0MMATu9TMnYOF0.utAq",
  "username": "testuserc",
  "aboutme": "undefined"
}
 
* assert login.responseStatus == respStatus 0.001
* def sessioncheck2 = call read('classpath:tests/services/sessioncheck.feature') 0.012
tests/services/sessioncheck.feature 0.000
> * print 'Inside get review service' 0.000
15:56:33.432 [print] Inside get review service 
> Given url baseUrl + 'session' 0.000
> And header Cookie = 'JSESSIONID=' + sessionvalue + '; Domain=localhost' 0.000
> When method get 0.004
15:56:33.433 request:
1 > GET http://localhost:8085/session
1 > Cookie: JSESSIONID=2A07EC9F7A6FC5B371D0F7BDE0E8C929; Domain=localhost
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.436 response time in milliseconds: 3
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
{"profileid":40,"fullname":"Test User","pwd":"$2a$10$D9ehlw3Zt.4oW6OZV2VvIOAtRSLHXL2RtS0MMATu9TMnYOF0.utAq","username":"testuserc","aboutme":"undefined"}
> Then status 200 0.000
* karate.log(sessioncheck2.response.username) 0.001
15:56:33.439 testuserc 
* assert sessioncheck2.responseStatus == respStatus 0.001
* match sessioncheck2.response.username == usernamefore2e 0.000
* def savereview1 = call read('classpath:tests/services/reviewsave.feature') 0.262
tests/services/reviewsave.feature 0.000
> * print 'Inside get review service' 0.000
15:56:33.448 [print] Inside get review service 
> Given url baseUrl + 'savereviews' 0.000
> And header Cookie = 'JSESSIONID=' + sessionvalue + '; Domain=localhost' 0.000
> And request { movieid: '#(imdbid)', revrating: '#(revrating)', revdesc: '#(revdesc)' } 0.002
> When method post 0.251
15:56:33.526 request:
1 > POST http://localhost:8085/savereviews
1 > Cookie: JSESSIONID=2A07EC9F7A6FC5B371D0F7BDE0E8C929; Domain=localhost
1 > Content-Type: application/json; charset=UTF-8
1 > Content-Length: 75
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
{"revrating":"2.0","revdesc":"It was okay actually","movieid":"tt11858890"}

15:56:33.703 response time in milliseconds: 177
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: 7
1 < Date: Tue, 09 Jan 2024 22:56:33 GMT
1 < Keep-Alive: timeout=60
1 < Connection: keep-alive
Success
> Then status 200 0.000
* karate.log(savereview1.response) 0.001
15:56:33.705 Success 
* assert savereview1.responseStatus == respStatus 0.000
* def savereview2 = call read('classpath:tests/services/reviewsave.feature') 0.197
tests/services/reviewsave.feature 0.000
> * print 'Inside get review service' 0.017
15:56:33.731 [print] Inside get review service 
> Given url baseUrl + 'savereviews' 0.000
> And header Cookie = 'JSESSIONID=' + sessionvalue + '; Domain=localhost' 0.000
> And request { movieid: '#(imdbid)', revrating: '#(revrating)', revdesc: '#(revdesc)' } 0.000
> When method post 0.170
15:56:33.733 request:
1 > POST http://localhost:8085/savereviews
1 > Cookie: JSESSIONID=2A07EC9F7A6FC5B371D0F7BDE0E8C929; Domain=localhost
1 > Content-Type: application/json; charset=UTF-8
1 > Content-Length: 75
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
{"revrating":"2.0","revdesc":"It was okay actually","movieid":"tt11858890"}

15:56:33.901 response time in milliseconds: 168
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: 7
1 < Date: Tue, 09 Jan 2024 22:56:33 GMT
1 < Keep-Alive: timeout=60
1 < Connection: keep-alive
Success
> Then status 200 0.000
* karate.log(savereview2.response) 0.001
15:56:33.903 Success 
* assert savereview2.responseStatus == respStatus 0.000
* def revusername = usernamefore2e 0.000
* def test = call read('classpath:tests/services/reviewsbyuser.feature') 0.198
tests/services/reviewsbyuser.feature 0.000
> * print 'Inside get review service' 0.000
15:56:33.912 [print] Inside get review service 
> Given url baseUrl + 'reviewsbyuser?username=' + revusername 0.000
> When method get 0.190
15:56:33.913 request:
1 > GET http://localhost:8085/reviewsbyuser?username=testuserc
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.103 response time in milliseconds: 189
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
[{"revrating":2.0,"revid":61,"revdesc":"It was okay actually","movieid":"tt11858890","userid":40},{"revrating":2.0,"revid":62,"revdesc":"It was okay actually","movieid":"tt11858890","userid":40}]
* karate.log(test.response) 0.004
15:56:34.108 {
  "revrating": 2.0,
  "revid": 61,
  "revdesc": "It was okay actually",
  "movieid": "tt11858890",
  "userid": 40
}
 {
  "revrating": 2.0,
  "revid": 62,
  "revdesc": "It was okay actually",
  "movieid": "tt11858890",
  "userid": 40
}
 
* def reviews = db.readRows('SELECT * FROM reviews WHERE revid IN (' + test.response[0].revid + ',' + test.response[1].revid + ')') 0.434
* karate.log(reviews.length) 0.001
15:56:34.543 2 
* assert reviews.length == 2 0.000
* def revid = test.response[0].revid 0.000
* def deletereview1 = call read('classpath:tests/services/reviewdelete.feature') 0.276
tests/services/reviewdelete.feature 0.000
> * print 'Inside get review service' 0.000
15:56:34.550 [print] Inside get review service 
> Given url baseUrl + 'deletereviews?revid=' + revid 0.000
> And header Cookie = 'JSESSIONID=' + sessionvalue + '; Domain=localhost' 0.000
> When method delete 0.268
15:56:34.553 request:
1 > DELETE http://localhost:8085/deletereviews?revid=61
1 > Cookie: JSESSIONID=2A07EC9F7A6FC5B371D0F7BDE0E8C929; Domain=localhost
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.819 response time in milliseconds: 266
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: 7
1 < Date: Tue, 09 Jan 2024 22:56:34 GMT
1 < Keep-Alive: timeout=60
1 < Connection: keep-alive
Success
> Then status 200 0.000
* karate.log(deletereview1.response) 0.001
15:56:34.822 Success 
* assert deletereview1.responseStatus == respStatus 0.000
* match deletereview1.response == 'Success' 0.000
* def test = call read('classpath:tests/services/reviewsbyuser.feature') 0.122
tests/services/reviewsbyuser.feature 0.000
> * print 'Inside get review service' 0.000
15:56:34.823 over-writing existing variable 'test' with new value: call read('classpath:tests/services/reviewsbyuser.feature')
15:56:34.831 [print] Inside get review service 
> Given url baseUrl + 'reviewsbyuser?username=' + revusername 0.000
> When method get 0.113
15:56:34.832 request:
1 > GET http://localhost:8085/reviewsbyuser?username=testuserc
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.945 response time in milliseconds: 112
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:34 GMT
1 < Keep-Alive: timeout=60
1 < Connection: keep-alive
[{"revrating":2.0,"revid":62,"revdesc":"It was okay actually","movieid":"tt11858890","userid":40}]
* karate.log(test.response) 0.000
15:56:34.947 {
  "revrating": 2.0,
  "revid": 62,
  "revdesc": "It was okay actually",
  "movieid": "tt11858890",
  "userid": 40
}
 
* karate.log(test.response.length) 0.001
15:56:34.948 1 
* assert test.response.length == 1 0.000
* def logout = call read('classpath:tests/services/sessionlogout.feature') 0.014
tests/services/sessionlogout.feature 0.000
> * print 'Inside get review service' 0.000
15:56:34.955 [print] Inside get review service 
> Given url baseUrl + 'logout' 0.000
> And header Cookie = 'JSESSIONID=' + sessionvalue + '; Domain=localhost' 0.000
> When method get 0.003
15:56:34.957 request:
1 > GET http://localhost:8085/logout
1 > Cookie: JSESSIONID=2A07EC9F7A6FC5B371D0F7BDE0E8C929; Domain=localhost
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.959 response time in milliseconds: 2
1 < 200
1 < Vary: Origin
1 < Vary: Access-Control-Request-Method
1 < Vary: Access-Control-Request-Headers
1 < Content-Length: 0
1 < Date: Tue, 09 Jan 2024 22:56:34 GMT
1 < Keep-Alive: timeout=60
1 < Connection: keep-alive

> Then status 200 0.000
* karate.log(logout.response) 0.001
15:56:34.963  
* assert logout.responseStatus == respStatus 0.000
* def sessioncheck3 = call read('classpath:tests/services/sessioncheck.feature') 0.021
tests/services/sessioncheck.feature 0.000
> * print 'Inside get review service' 0.001
15:56:34.975 [print] Inside get review service 
> Given url baseUrl + 'session' 0.000
> And header Cookie = 'JSESSIONID=' + sessionvalue + '; Domain=localhost' 0.000
> When method get 0.004
15:56:34.977 request:
1 > GET http://localhost:8085/session
1 > Cookie: JSESSIONID=2A07EC9F7A6FC5B371D0F7BDE0E8C929; Domain=localhost
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.979 response time in milliseconds: 2
1 < 200
1 < Vary: Origin
1 < Vary: Access-Control-Request-Method
1 < Vary: Access-Control-Request-Headers
1 < Content-Length: 0
1 < Date: Tue, 09 Jan 2024 22:56:34 GMT
1 < Keep-Alive: timeout=60
1 < Connection: keep-alive
1 < Set-Cookie: JSESSIONID=C4EB818344F0385517C5613A82DB4776; Domain=localhost

> Then status 200 0.000
* karate.log(sessioncheck3.response) 0.000
15:56:34.986  
* assert test.responseStatus == respStatus 0.000
* match sessioncheck.response == '' 0.000
* def login = call read('classpath:tests/services/sessionlogin.feature') 0.148
tests/services/sessionlogin.feature 0.000
> * print 'Inside get review service' 0.000
15:56:34.987 over-writing existing variable 'login' with new value: call read('classpath:tests/services/sessionlogin.feature')
15:56:35.002 [print] Inside get review service 
> Given url baseUrl + 'login?username=' + usernamefore2e + '&password=' + passwordfore2e 0.000
> And header Cookie = 'JSESSIONID=' + sessionvalue + '; Domain=localhost' 0.000
> When method post 0.126
15:56:35.004 request:
1 > POST http://localhost:8085/login?username=testuserc&password=test
1 > Cookie: JSESSIONID=2A07EC9F7A6FC5B371D0F7BDE0E8C929; Domain=localhost
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:35.129 response time in milliseconds: 125
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:34 GMT
1 < Keep-Alive: timeout=60
1 < Connection: keep-alive
1 < Set-Cookie: JSESSIONID=2CBACD5DC75F7A35B3879358977427AD; Domain=localhost
{"profileid":40,"fullname":"Test User","pwd":"$2a$10$D9ehlw3Zt.4oW6OZV2VvIOAtRSLHXL2RtS0MMATu9TMnYOF0.utAq","username":"testuserc","aboutme":"undefined"}
> Then status 200 0.000
* def sessionvalue = login.responseHeaders['Set-Cookie'][0].split('=')[1].split(';')[0].trim() 0.001
15:56:35.136 over-writing existing variable 'sessionvalue' with new value: login.responseHeaders['Set-Cookie'][0].split('=')[1].split(';')[0].trim()
* karate.log(login.response) 0.000
15:56:35.137 {
  "profileid": 40,
  "fullname": "Test User",
  "pwd": "$2a$10$D9ehlw3Zt.4oW6OZV2VvIOAtRSLHXL2RtS0MMATu9TMnYOF0.utAq",
  "username": "testuserc",
  "aboutme": "undefined"
}
 
* assert test.responseStatus == respStatus 0.000
* def sessioncheck6 = call read('classpath:tests/services/sessioncheck.feature') 0.038
tests/services/sessioncheck.feature 0.000
> * print 'Inside get review service' 0.000
15:56:35.160 [print] Inside get review service 
> Given url baseUrl + 'session' 0.000
> And header Cookie = 'JSESSIONID=' + sessionvalue + '; Domain=localhost' 0.000
> When method get 0.003
15:56:35.162 request:
1 > GET http://localhost:8085/session
1 > Cookie: JSESSIONID=2CBACD5DC75F7A35B3879358977427AD; Domain=localhost
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:35.164 response time in milliseconds: 2
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:34 GMT
1 < Keep-Alive: timeout=60
1 < Connection: keep-alive
{"profileid":40,"fullname":"Test User","pwd":"$2a$10$D9ehlw3Zt.4oW6OZV2VvIOAtRSLHXL2RtS0MMATu9TMnYOF0.utAq","username":"testuserc","aboutme":"undefined"}
> Then status 200 0.000
* karate.log(sessioncheck6.response.username) 0.001
15:56:35.177 testuserc 
* assert sessioncheck6.responseStatus == respStatus 0.000
* match sessioncheck6.response.username == usernamefore2e 0.000
* def login = call read('classpath:tests/services/sessionunregister.feature') 0.314
tests/services/sessionunregister.feature 0.000
> * print 'Inside get review service' 0.000
15:56:35.178 over-writing existing variable 'login' with new value: call read('classpath:tests/services/sessionunregister.feature')
15:56:35.208 [print] Inside get review service 
> Given url baseUrl + 'unregister' 0.000
> And header Cookie = 'JSESSIONID=' + sessionvalue + '; Domain=localhost' 0.000
> When method delete 0.254
15:56:35.209 request:
1 > DELETE http://localhost:8085/unregister
1 > Cookie: JSESSIONID=2CBACD5DC75F7A35B3879358977427AD; Domain=localhost
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:35.463 response time in milliseconds: 253
1 < 200
1 < Vary: Origin
1 < Vary: Access-Control-Request-Method
1 < Vary: Access-Control-Request-Headers
1 < Content-Length: 0
1 < Date: Tue, 09 Jan 2024 22:56:34 GMT
1 < Keep-Alive: timeout=60
1 < Connection: keep-alive

> Then status 200 0.000
* karate.log(login.response) 0.000
15:56:35.493  
* assert test.responseStatus == respStatus 0.000
* def sessioncheck4 = call read('classpath:tests/services/sessioncheck.feature') 0.131
tests/services/sessioncheck.feature 0.000
> * print 'Inside get review service' 0.000
15:56:35.565 [print] Inside get review service 
> Given url baseUrl + 'session' 0.000
> And header Cookie = 'JSESSIONID=' + sessionvalue + '; Domain=localhost' 0.000
> When method get 0.002
15:56:35.567 request:
1 > GET http://localhost:8085/session
1 > Cookie: JSESSIONID=2CBACD5DC75F7A35B3879358977427AD; Domain=localhost
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:35.569 response time in milliseconds: 1
1 < 200
1 < Vary: Origin
1 < Vary: Access-Control-Request-Method
1 < Vary: Access-Control-Request-Headers
1 < Content-Length: 0
1 < Date: Tue, 09 Jan 2024 22:56:34 GMT
1 < Keep-Alive: timeout=60
1 < Connection: keep-alive
1 < Set-Cookie: JSESSIONID=9126D6619ADE287208EC0FB1BBCE30DD; Domain=localhost

> Then status 200 0.000
* karate.log(sessioncheck4.response) 0.001
15:56:35.628  
* assert test.responseStatus == respStatus 0.000
* match sessioncheck.response == '' 0.000
* def test = call read('classpath:tests/services/reviewsbyuser.feature') 0.326
tests/services/reviewsbyuser.feature 0.000
> * print 'Inside get review service' 0.000
15:56:35.628 over-writing existing variable 'test' with new value: call read('classpath:tests/services/reviewsbyuser.feature')
15:56:35.765 [print] Inside get review service 
> Given url baseUrl + 'reviewsbyuser?username=' + revusername 0.000
> When method get 0.076
15:56:35.767 request:
1 > GET http://localhost:8085/reviewsbyuser?username=testuserc
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:35.841 response time in milliseconds: 74
1 < 200
1 < Vary: Origin
1 < Vary: Access-Control-Request-Method
1 < Vary: Access-Control-Request-Headers
1 < Content-Length: 0
1 < Date: Tue, 09 Jan 2024 22:56:35 GMT
1 < Keep-Alive: timeout=60
1 < Connection: keep-alive

* karate.log(test.response) 0.000
15:56:35.954  
* karate.log(test.response.length) 0.000
15:56:35.955 0 
* assert test.response.length == 0 0.000