0.0.4 • Published 29 days ago

oute-services-test-case-logs-sdk v0.0.4

Weekly downloads
-
License
-
Repository
-
Last release
29 days ago

This module expose helper functions

  • Initialization
  params = {
    url: @server url
    token: @access token
  }
  TestCaseLog = require("oute-services-test-case-log-sdk")
  test_case_log_instance = new TestCaseLog(params)

Cache functions

Core functions

  • Save route
  body = {
    "asset_id": "q-GmTD5-K",
    "asset": {"key": "value", "name": "Abhi"},
    "workspace_id": "ZzBfJMpfQ",
    "label": "Test case 1",
    "inputs": [{"a": 20, "b": 30}],
    "asserts": [{"result": 50}]
  }
  await test_case_log_instance.save(body)
  • Find One
  query = {
    "_id": "UvuPE2PGn"
  }
  await test_case_log_instance.findOne(query)
  • Find
  query = {
    "project_id": "q-GmTD5-K"
  }
  await test_case_log_instance.find(query)
0.0.3

29 days ago

0.0.4

29 days ago

0.0.2

1 month ago

0.0.1

7 months ago