Skip to content

Instantly share code, notes, and snippets.

@dbwest
Created April 4, 2014 14:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dbwest/9975350 to your computer and use it in GitHub Desktop.
Save dbwest/9975350 to your computer and use it in GitHub Desktop.
CURL / Ruby / JIRA /Watir-Webdriver screenshot
@browser.screenshot.save 'my_screenshot.png'
`curl -D- -X POST -H "Authorization: Basic YOUR_USERNAME_AND_PASS_IN_BASE64" -H "X-Atlassian-Token: nocheck" -F "file=@my_screenshot.png" http://jira.mycompany.com/rest/api/2/issue/PROJ-123/attachments`
Copy link

ghost commented Apr 4, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment