Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add API for creating test result via global data store #103

Merged
merged 8 commits into from
Nov 24, 2020

Conversation

tianfeng92
Copy link
Contributor

@tianfeng92 tianfeng92 commented Nov 19, 2020

Add API for creating test result via global data store.

Example

./bin/sl createTestResult --tld="net" --region="staging" '{"name":"string","acl":[{"type":"username","value":"username"}],"source":"vdc","platform":"webdriver","status":"new","live":false,"metadata":{},"attributes":{"container":false,"commands_not_successful":1,"devx":true,"log_url":"test","os":"test","performance_enabled":"true","public":"team","record_logs":true,"record_mp4":"true","record_screenshots":"true","record_video":"true","video_url":"test"}}'

Response:

{
  "id": "d2a69920271c4848b34769b762bf3a14",
  "rev": 1,
  "acl": [
    xxx
  ],
  "name": "string",
  "creation_time": "2020-11-19T23:38:27.817937",
  "start_time": null,
  "end_time": null,
  "deletion_time": null,
  "platform": "webdriver",
  "status": "new",
  "source": "vdc",
  "tags": [
    
  ],
  "live": false,
  "error": null,
  "attributes": {
    "browser": null,
    "browser_version": null,
    "build": null,
    "capture_performance": false,
    "commands_not_successful": 1,
    "container": false,
    "device_orientation": null,
    "device_type": null,
    "devx": true,
    "devx_framework": null,
    "extended_debugging": false,
    "language": null,
    "locale": null,
    "log_url": "test",
    "os": "test",
    "passed": null,
    "performance_enabled": true,
    "public": "team",
    "record_logs": true,
    "record_mp4": true,
    "record_screenshots": true,
    "record_video": true,
    "sauce_video_viewonly_secret": null,
    "screen_resolution": null,
    "time_zone": null,
    "video_secret": null,
    "video_url": "test",
    "vnc_viewonly_password": null
  }
}

src/index.js Outdated Show resolved Hide resolved
src/index.js Outdated Show resolved Hide resolved
Copy link
Contributor

@christian-bromann christian-bromann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 thank you!

@christian-bromann christian-bromann merged commit f2b6d5a into master Nov 24, 2020
@christian-bromann christian-bromann deleted the devx-320 branch November 24, 2020 22:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants