0.0.4 • Published 29 days ago
oute-services-test-case-logs-sdk v0.0.4
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)