Newman Run Dashboard

Thursday, 21 December 2023 02:01:12
Total Iterations

1

Total Assertions

23

Total Failed Tests

4

Total Skipped Tests

0


File Information
Collection: TESTCASE
Environment: Test
Timings and Data
Total run duration: 12.6s
Total data received: 6.74KB
Average response time: 1558ms
Summary Item Total Failed
Requests 8 0
Prerequest Scripts 0 0
Test Scripts 8 0
Assertions 23 4
Skipped Tests 0 -



Showing 4 Failures

Failed Test: Test data type of the response

Assertion Error Message
expected null to be a number
Failed Test: status code is 200

Assertion Error Message
expected response to have status code 200 but got 400
Failed Test: Check message response: success

Assertion Error Message
expected 'Failure' to deeply equal 'Success'
Failed Test: Check reason response: Stock Account COS not found

Assertion Error Message
expected 'Insufficient Stock Available' to deeply equal 'Stock Account COS not found: Cash:Ass…'


There are no skipped tests



1 Iteration available to view
Response Information
Response Code: 200 - OK
Mean time per request: 1151ms
Mean size per request: 5.64KB

Test Pass Percentage
83 %
Request Headers
Header NameHeader Value
User-Agent PostmanRuntime/7.33.0
Accept */*
Cache-Control no-cache
Postman-Token db255ad9-9003-4849-bb7c-1741c32b52f3
Host cash-bo-api.dev.rakutentrade.com
Accept-Encoding gzip, deflate, br
Connection keep-alive
Response Headers
Header NameHeader Value
Date Thu, 21 Dec 2023 02:01:00 GMT
Content-Type application/json
Content-Length 5777
Connection keep-alive
Vary Origin
Vary Access-Control-Request-Method
Vary Access-Control-Request-Headers
Cache-Control no-cache, no-store, max-age=0, must-revalidate
Pragma no-cache
Expires 0
X-Content-Type-Options nosniff
X-Frame-Options DENY
X-XSS-Protection 0
Referrer-Policy no-referrer
Response Body
{"content":[{"id":61,"tradeId":null,"tan":"CA-00000073","orderId":"102","originalOrderId":"102","orderType":"LIMIT_ORDER","lot":"BOARD","matchedQuantity":0,"earmarkedQuantity":10,"amendingQuantity":0,"earmarkedTotalPrice":10.0000000000000000,"matchedTotalPrice":0E-16,"amendingTotalPrice":0E-16,"earmarkedMiscCharged":1.0000000000000000,"matchedMiscCharged":0E-16,"amendingMiscCharged":0E-16,"orderAction":"BUY","marketCode":"SGX","stockCode":"STO","status":"CREATED","tradingDate":"2023-12-18","version":0,"rewardCode":"null"},{"id":62,"tradeId":null,"tan":"CA-00000073","orderId":"103","originalOrderId":"103","orderType":"LIMIT_ORDER","lot":"BOARD","matchedQuantity":0,"earmarkedQuantity":10,"amendingQuantity":0,"earmarkedTotalPrice":10.0000000000000000,"matchedTotalPrice":0E-16,"amendingTotalPrice":0E-16,"earmarkedMiscCharged":1.0000000000000000,"matchedMiscCharged":0E-16,"amendingMiscCharged":0E-16,"orderAction":"BUY","marketCode":"SGX","stockCode":"STO","status":"CREATED","tradingDate":"2023-12-18","version":0,"rewardCode":"null"},{"id":63,"tradeId":null,"tan":"CA-00000073","orderId":"105","originalOrderId":"105","orderType":"LIMIT_ORDER","lot":"BOARD","matchedQuantity":0,"earmarkedQuantity":10,"amendingQuantity":0,"earmarkedTotalPrice":10.0000000000000000,"matchedTotalPrice":0E-16,"amendingTotalPrice":0E-16,"earmarkedMiscCharged":1.0000000000000000,"matchedMiscCharged":0E-16,"amendingMiscCharged":0E-16,"orderAction":"BUY","marketCode":"SGX","stockCode":"STO","status":"CREATED","tradingDate":"2023-12-18","version":0,"rewardCode":"null"},{"id":64,"tradeId":null,"tan":"CA-00000073","orderId":"107","originalOrderId":"107","orderType":"LIMIT_ORDER","lot":"BOARD","matchedQuantity":0,"earmarkedQuantity":10,"amendingQuantity":0,"earmarkedTotalPrice":10.0000000000000000,"matchedTotalPrice":0E-16,"amendingTotalPrice":0E-16,"earmarkedMiscCharged":1.0000000000000000,"matchedMiscCharged":0E-16,"amendingMiscCharged":0E-16,"orderAction":"BUY","marketCode":"SGX","stockCode":"STO","status":"CREATED","tradingDate":"2023-12-18","version":0,"rewardCode":"null"},{"id":66,"tradeId":null,"tan":"CA-00000073","orderId":"108","originalOrderId":"108","orderType":"LIMIT_ORDER","lot":"BOARD","matchedQuantity":0,"earmarkedQuantity":10,"amendingQuantity":0,"earmarkedTotalPrice":10.0000000000000000,"matchedTotalPrice":0E-16,"amendingTotalPrice":0E-16,"earmarkedMiscCharged":1.0000000000000000,"matchedMiscCharged":0E-16,"amendingMiscCharged":0E-16,"orderAction":"BUY","marketCode":"SGX","stockCode":"STO","status":"CREATED","tradingDate":"2023-12-18","version":0,"rewardCode":"null"},{"id":68,"tradeId":null,"tan":"CA-00000073","orderId":"109","originalOrderId":"109","orderType":"LIMIT_ORDER","lot":"BOARD","matchedQuantity":0,"earmarkedQuantity":10,"amendingQuantity":0,"earmarkedTotalPrice":10.0000000000000000,"matchedTotalPrice":0E-16,"amendingTotalPrice":0E-16,"earmarkedMiscCharged":1.0000000000000000,"matchedMiscCharged":0E-16,"amendingMiscCharged":0E-16,"orderAction":"BUY","marketCode":"SGX","stockCode":"STO","status":"CREATED","tradingDate":"2023-12-18","version":0,"rewardCode":"null"},{"id":70,"tradeId":null,"tan":"CA-00000073","orderId":"110","originalOrderId":"110","orderType":"LIMIT_ORDER","lot":"BOARD","matchedQuantity":0,"earmarkedQuantity":10,"amendingQuantity":0,"earmarkedTotalPrice":10.0000000000000000,"matchedTotalPrice":0E-16,"amendingTotalPrice":0E-16,"earmarkedMiscCharged":1.0000000000000000,"matchedMiscCharged":0E-16,"amendingMiscCharged":0E-16,"orderAction":"BUY","marketCode":"SGX","stockCode":"STO","status":"CREATED","tradingDate":"2023-12-18","version":0,"rewardCode":"null"},{"id":71,"tradeId":null,"tan":"CA-00000073","orderId":"111","originalOrderId":"111","orderType":"LIMIT_ORDER","lot":"BOARD","matchedQuantity":0,"earmarkedQuantity":10,"amendingQuantity":0,"earmarkedTotalPrice":10.0000000000000000,"matchedTotalPrice":0E-16,"amendingTotalPrice":0E-16,"earmarkedMiscCharged":1.0000000000000000,"matchedMiscCharged":0E-16,"amendingMiscCharged":0E-16,"orderAction":"BUY","marketCode":"SGX","stockCode":"STO","status":"CREATED","tradingDate":"2023-12-18","version":0,"rewardCode":"null"},{"id":73,"tradeId":null,"tan":"CA-00000073","orderId":"112","originalOrderId":"112","orderType":"LIMIT_ORDER","lot":"BOARD","matchedQuantity":0,"earmarkedQuantity":10,"amendingQuantity":0,"earmarkedTotalPrice":10.0000000000000000,"matchedTotalPrice":0E-16,"amendingTotalPrice":0E-16,"earmarkedMiscCharged":1.0000000000000000,"matchedMiscCharged":0E-16,"amendingMiscCharged":0E-16,"orderAction":"BUY","marketCode":"SGX","stockCode":"STO","status":"CREATED","tradingDate":"2023-12-18","version":0,"rewardCode":"null"},{"id":75,"tradeId":null,"tan":"CA-00000073","orderId":"113","originalOrderId":"113","orderType":"LIMIT_ORDER","lot":"BOARD","matchedQuantity":0,"earmarkedQuantity":10,"amendingQuantity":0,"earmarkedTotalPrice":10.0000000000000000,"matchedTotalPrice":0E-16,"amendingTotalPrice":0E-16,"earmarkedMiscCharged":1.0000000000000000,"matchedMiscCharged":0E-16,"amendingMiscCharged":0E-16,"orderAction":"BUY","marketCode":"SGX","stockCode":"STO","status":"CREATED","tradingDate":"2023-12-18","version":0,"rewardCode":"null"},{"id":76,"tradeId":null,"tan":"CA-00000073","orderId":"122","originalOrderId":"122","orderType":"LIMIT_ORDER","lot":"BOARD","matchedQuantity":0,"earmarkedQuantity":10,"amendingQuantity":0,"earmarkedTotalPrice":10.0000000000000000,"matchedTotalPrice":0E-16,"amendingTotalPrice":0E-16,"earmarkedMiscCharged":1.0000000000000000,"matchedMiscCharged":0E-16,"amendingMiscCharged":0E-16,"orderAction":"BUY","marketCode":"SGX","stockCode":"STO","status":"CREATED","tradingDate":"2023-12-18","version":0,"rewardCode":"null"}],"pageNumber":0,"pageSize":20,"totalElements":11,"last":true,"first":true,"totalPages":1}
Test Information
NamePassedFailedSkipped
status code is 200 1 0 0
Check mesage response: success 1 0 0
data response is an object 1 0 0
Check orderId are unique 1 0 0
Test data type of the response 0 1 0
Count: 11 1 0 0
Total 5 1 0
Test Failure
Test NameAssertion Error
Test data type of the response
expected null to be a number
Response Information
Response Code: 200 - OK
Mean time per request: 125ms
Mean size per request: 101B

Test Pass Percentage
100 %
Request Headers
Header NameHeader Value
User-Agent PostmanRuntime/7.33.0
Accept */*
Cache-Control no-cache
Postman-Token 07119627-e6c1-401f-bc6f-b37811359518
Host cash-bo-api.dev.rakutentrade.com
Accept-Encoding gzip, deflate, br
Connection keep-alive
Response Headers
Header NameHeader Value
Date Thu, 21 Dec 2023 02:01:00 GMT
Content-Type application/json
Content-Length 101
Connection keep-alive
Vary Origin
Vary Access-Control-Request-Method
Vary Access-Control-Request-Headers
Cache-Control no-cache, no-store, max-age=0, must-revalidate
Pragma no-cache
Expires 0
X-Content-Type-Options nosniff
X-Frame-Options DENY
X-XSS-Protection 0
Referrer-Policy no-referrer
Response Body
{"content":[],"pageNumber":0,"pageSize":20,"totalElements":0,"last":true,"first":true,"totalPages":1}
Test Information
NamePassedFailedSkipped
status code is 200 1 0 0
List is empty 1 0 0
Total 2 0 0
Test Failure
Test NameAssertion Error
Response Information
Response Code: 500 - Internal Server Error
Mean time per request: 766ms
Mean size per request: 111B

Test Pass Percentage
100 %
Request Headers
Header NameHeader Value
User-Agent PostmanRuntime/7.33.0
Accept */*
Cache-Control no-cache
Postman-Token b4ab8379-688c-4cbc-8ab1-8b3e04c49a7d
Host cash-bo-api.dev.rakutentrade.com
Accept-Encoding gzip, deflate, br
Connection keep-alive
Content-Length 0
Response Headers
Header NameHeader Value
Date Thu, 21 Dec 2023 02:01:01 GMT
Content-Type application/json
Content-Length 111
Connection keep-alive
Cache-Control no-cache, no-store, max-age=0, must-revalidate
Pragma no-cache
Expires 0
X-Content-Type-Options nosniff
X-Frame-Options DENY
X-XSS-Protection 0
Referrer-Policy no-referrer
Response Body
{"messages":["405 METHOD_NOT_ALLOWED \"Request method 'PUT' is not supported.\""],"errorCode":null,"data":null}
Test Information
NamePassedFailedSkipped
status code is 500 1 0 0
Check message response: 405 METHOD_NOT_ALLOWED 1 0 0
Total 2 0 0
Test Failure
Test NameAssertion Error
Request Information
Request Method: POST
Request URL: https://cash-bo-api.dev.rakutentrade.com/internal/order-creation
Response Information
Response Code: 400 - Bad Request
Mean time per request: 5.3s
Mean size per request: 610B

Test Pass Percentage
0 %
Request Headers
Header NameHeader Value
Content-Type application/json
User-Agent PostmanRuntime/7.33.0
Accept */*
Cache-Control no-cache
Postman-Token 639f0fb8-a5a0-48dd-9c6a-11cad30088dd
Host cash-bo-api.dev.rakutentrade.com
Accept-Encoding gzip, deflate, br
Connection keep-alive
Content-Length 404
Request Body
{
          "accountNo": "CA-00000073",
          "cif": "thaohtt_001",
          "clordId": "122",
          "orderSide": "BUY",
          "orderQty": 10,
          "exchangeCode": "SGX",
          "stockCode": "STO",
          "currencyCode": "SGD",
          "orderValidity": "DAY",
          "orderLot": "BOARD",
          "orderType": "LIMIT_ORDER",
          "rewardCode": "null",
          "estimatedNetAmount": "10",
          "fees": "1",
          "orderDatetime": "2023-12-18T16:55:41.864275200"
        }
Response Headers
Header NameHeader Value
Date Thu, 21 Dec 2023 02:01:06 GMT
Content-Type application/json
Content-Length 610
Connection keep-alive
Vary Origin
Vary Access-Control-Request-Method
Vary Access-Control-Request-Headers
Cache-Control no-cache, no-store, max-age=0, must-revalidate
Pragma no-cache
Expires 0
X-Content-Type-Options nosniff
X-Frame-Options DENY
X-XSS-Protection 0
Referrer-Policy no-referrer
Response Body
{"result":"Failure","reason":"executeMany; SQL [INSERT INTO trade_order (tan, order_id, original_order_id, order_type, lot, matched_quantity, earmarked_quantity, earmarked_total_price, matched_total_price, earmarked_misc_charged, matched_misc_charged, order_action, stock_code, market_code, reward_code, trading_date, status, created_on, created_by, modified_on, modified_by, trace_id, span_id, version) VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20, $21, $22, $23, $24)]; duplicate key value violates unique constraint \"original_order_id_pk\"","data":null}
Test Information
NamePassedFailedSkipped
status code is 200 0 1 0
Check message response: success 0 1 0
Total 0 2 0
Test Failures
Test NameAssertion Error
status code is 200
expected response to have status code 200 but got 400
Check message response: success
expected 'Failure' to deeply equal 'Success'
Request Information
Request Method: POST
Request URL: https://cash-bo-api.dev.rakutentrade.com/internal/order-creation
Response Information
Response Code: 400 - Bad Request
Mean time per request: 2.9s
Mean size per request: 71B

Test Pass Percentage
100 %
Request Headers
Header NameHeader Value
Content-Type application/json
User-Agent PostmanRuntime/7.33.0
Accept */*
Cache-Control no-cache
Postman-Token 29881eaf-b868-483e-a7a4-99a04e573e1e
Host cash-bo-api.dev.rakutentrade.com
Accept-Encoding gzip, deflate, br
Connection keep-alive
Content-Length 404
Request Body
{
          "accountNo": "CA-00000078",
          "cif": "thaohtt_002",
          "clordId": "125",
          "orderSide": "BUY",
          "orderQty": 10,
          "exchangeCode": "SGX",
          "stockCode": "STO",
          "currencyCode": "SGD",
          "orderValidity": "DAY",
          "orderLot": "BOARD",
          "orderType": "LIMIT_ORDER",
          "rewardCode": "null",
          "estimatedNetAmount": "10",
          "fees": "1",
          "orderDatetime": "2023-12-18T16:55:41.864275200"
        }
Response Headers
Header NameHeader Value
Date Thu, 21 Dec 2023 02:01:09 GMT
Content-Type application/json
Content-Length 71
Connection keep-alive
Vary Origin
Vary Access-Control-Request-Method
Vary Access-Control-Request-Headers
Cache-Control no-cache, no-store, max-age=0, must-revalidate
Pragma no-cache
Expires 0
X-Content-Type-Options nosniff
X-Frame-Options DENY
X-XSS-Protection 0
Referrer-Policy no-referrer
Response Body
{"result":"Failure","reason":"Insufficient amount of cash","data":null}
Test Information
NamePassedFailedSkipped
status code is 400 1 0 0
Check result response: Failure 1 0 0
Check reason response: Insufficient amount of cash 1 0 0
Total 3 0 0
Test Failure
Test NameAssertion Error
Request Information
Request Method: POST
Request URL: https://cash-bo-api.dev.rakutentrade.com/internal/order-creation
Response Information
Response Code: 400 - Bad Request
Mean time per request: 1245ms
Mean size per request: 72B

Test Pass Percentage
67 %
Request Headers
Header NameHeader Value
Content-Type application/json
User-Agent PostmanRuntime/7.33.0
Accept */*
Cache-Control no-cache
Postman-Token 0cfbd8c7-63d5-4b97-8698-ba93af44a979
Host cash-bo-api.dev.rakutentrade.com
Accept-Encoding gzip, deflate, br
Connection keep-alive
Content-Length 405
Request Body
{
          "accountNo": "CA-00000078",
          "cif": "thaohtt_002",
          "clordId": "121",
          "orderSide": "SELL",
          "orderQty": 10,
          "exchangeCode": "SGX",
          "stockCode": "STO",
          "currencyCode": "SGD",
          "orderValidity": "DAY",
          "orderLot": "BOARD",
          "orderType": "LIMIT_ORDER",
          "rewardCode": "null",
          "estimatedNetAmount": "10",
          "fees": "1",
          "orderDatetime": "2023-12-18T16:55:41.864275200"
        }
Response Headers
Header NameHeader Value
Date Thu, 21 Dec 2023 02:01:11 GMT
Content-Type application/json
Content-Length 72
Connection keep-alive
Vary Origin
Vary Access-Control-Request-Method
Vary Access-Control-Request-Headers
Cache-Control no-cache, no-store, max-age=0, must-revalidate
Pragma no-cache
Expires 0
X-Content-Type-Options nosniff
X-Frame-Options DENY
X-XSS-Protection 0
Referrer-Policy no-referrer
Response Body
{"result":"Failure","reason":"Insufficient Stock Available","data":null}
Test Information
NamePassedFailedSkipped
status code is 400 1 0 0
Check result response: Failure 1 0 0
Check reason response: Stock Account COS not found 0 1 0
Total 2 1 0
Test Failure
Test NameAssertion Error
Check reason response: Stock Account COS not found
expected 'Insufficient Stock Available' to deeply equal 'Stock Account COS not found: Cash:Ass…'
Request Information
Request Method: POST
Request URL: https://cash-bo-api.dev.rakutentrade.com/internal/order-creation
Response Information
Response Code: 400 - Bad Request
Mean time per request: 684ms
Mean size per request: 49B

Test Pass Percentage
100 %
Request Headers
Header NameHeader Value
Content-Type application/json
User-Agent PostmanRuntime/7.33.0
Accept */*
Cache-Control no-cache
Postman-Token 2833b2ce-dd2a-41e3-bb18-eefe104100d0
Host cash-bo-api.dev.rakutentrade.com
Accept-Encoding gzip, deflate, br
Connection keep-alive
Content-Length 417
Request Body
{
          "accountNo": "CA-00000078453543535543",
          "cif": "thaohtt_002",
          "clordId": "155",
          "orderSide": "SELL",
          "orderQty": 10,
          "exchangeCode": "SGX",
          "stockCode": "STO",
          "currencyCode": "SGD",
          "orderValidity": "DAY",
          "orderLot": "BOARD",
          "orderType": "LIMIT_ORDER",
          "rewardCode": "null",
          "estimatedNetAmount": "10",
          "fees": "1",
          "orderDatetime": "2023-12-18T16:55:41.864275200"
        }
Response Headers
Header NameHeader Value
Date Thu, 21 Dec 2023 02:01:11 GMT
Content-Type application/json
Content-Length 49
Connection keep-alive
Vary Origin
Vary Access-Control-Request-Method
Vary Access-Control-Request-Headers
Cache-Control no-cache, no-store, max-age=0, must-revalidate
Pragma no-cache
Expires 0
X-Content-Type-Options nosniff
X-Frame-Options DENY
X-XSS-Protection 0
Referrer-Policy no-referrer
Response Body
{"result":"Failure","reason":"value","data":null}
Test Information
NamePassedFailedSkipped
status code is 400 1 0 0
Check result response: Failure 1 0 0
Check reason response:value 1 0 0
Total 3 0 0
Test Failure
Test NameAssertion Error
Request Information
Request Method: POST
Request URL: https://cash-bo-api.dev.rakutentrade.com/internal/order-creation
Response Information
Response Code: 500 - Internal Server Error
Mean time per request: 107ms
Mean size per request: 108B

Test Pass Percentage
100 %
Request Headers
Header NameHeader Value
Content-Type application/json
User-Agent PostmanRuntime/7.33.0
Accept */*
Cache-Control no-cache
Postman-Token 1c6f6cbe-63cf-4f16-a0ac-d4166577193e
Host cash-bo-api.dev.rakutentrade.com
Accept-Encoding gzip, deflate, br
Connection keep-alive
Content-Length 413
Request Body
{
          "accountNo": "CA-00000078",
          "cif": "thaohtt_002",
          "clordId": "156",
          "orderSide": "SELLrtyeryer",
          "orderQty": 10,
          "exchangeCode": "SGX",
          "stockCode": "STO",
          "currencyCode": "SGD",
          "orderValidity": "DAY",
          "orderLot": "BOARD",
          "orderType": "LIMIT_ORDER",
          "rewardCode": "null",
          "estimatedNetAmount": "10",
          "fees": "1",
          "orderDatetime": "2023-12-18T16:55:41.864275200"
        }
Response Headers
Header NameHeader Value
Date Thu, 21 Dec 2023 02:01:11 GMT
Content-Type application/json
Content-Length 108
Connection keep-alive
Vary Origin
Vary Access-Control-Request-Method
Vary Access-Control-Request-Headers
Cache-Control no-cache, no-store, max-age=0, must-revalidate
Pragma no-cache
Expires 0
X-Content-Type-Options nosniff
X-Frame-Options DENY
X-XSS-Protection 0
Referrer-Policy no-referrer
Response Body
{"messages":["No enum constant rt.domain.enums.OrderType.Action.SELLrtyeryer"],"errorCode":null,"data":null}
Test Information
NamePassedFailedSkipped
status code is 500 1 0 0
Check messages response: Sai orderAction 1 0 0
Total 2 0 0
Test Failure
Test NameAssertion Error