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

Video recording for WDIO [8h] #83

Closed
AronNovak opened this Issue Mar 23, 2017 · 17 comments

Comments

Projects
None yet
2 participants
@AronNovak
Member

AronNovak commented Mar 23, 2017

Current status:
WDIO tests are executed by Travis, step-by-step, random failure of specs is allowed.

Todo:

@AronNovak AronNovak self-assigned this Mar 23, 2017

@AronNovak AronNovak changed the title from Video recording for WDIO [6] to Video recording for WDIO [6h] Mar 23, 2017

@AronNovak

This comment has been minimized.

Show comment
Hide comment
@AronNovak

AronNovak Mar 28, 2017

Member

The video recording part works perfectly out of the box:
https://drive.google.com/open?id=0B7FpNcQYpf7GSXdpU0hqMF9YOFE
As only the actual test is recorded, the video size is quite reasonable.

Member

AronNovak commented Mar 28, 2017

The video recording part works perfectly out of the box:
https://drive.google.com/open?id=0B7FpNcQYpf7GSXdpU0hqMF9YOFE
As only the actual test is recorded, the video size is quite reasonable.

@AronNovak

This comment has been minimized.

Show comment
Hide comment
@AronNovak

AronNovak Mar 28, 2017

Member

For the upload part, I looked around.
https://github.com/prasmussen/gdrive - for Google Drive, it seems to be the best, but to machine 2 machine communication, it requires paid Google Compute account / API access.
However Vimeo would allow to upload 500 Mb per week. Waiting for the approval of the account from Vimeo to be able to programmatically upload videos.

Member

AronNovak commented Mar 28, 2017

For the upload part, I looked around.
https://github.com/prasmussen/gdrive - for Google Drive, it seems to be the best, but to machine 2 machine communication, it requires paid Google Compute account / API access.
However Vimeo would allow to upload 500 Mb per week. Waiting for the approval of the account from Vimeo to be able to programmatically upload videos.

@AronNovak

This comment has been minimized.

Show comment
Hide comment
@AronNovak

AronNovak Mar 28, 2017

Member

Hm, with those video sizes, we could even consider uploading it as a GH comment attachment, especially if we reduce the resolution.

Member

AronNovak commented Mar 28, 2017

Hm, with those video sizes, we could even consider uploading it as a GH comment attachment, especially if we reduce the resolution.

@amitaibu

This comment has been minimized.

Show comment
Hide comment
@amitaibu

amitaibu Mar 28, 2017

Member

it requires paid Google Compute account / API access.

We have that (for Shoov), so it shouldn't be problematic.

Member

amitaibu commented Mar 28, 2017

it requires paid Google Compute account / API access.

We have that (for Shoov), so it shouldn't be problematic.

@amitaibu

This comment has been minimized.

Show comment
Hide comment
@amitaibu

amitaibu Mar 28, 2017

Member

Hm, with those video sizes, we could even consider uploading it as a GH comment attachment

You mean as gif?

Member

amitaibu commented Mar 28, 2017

Hm, with those video sizes, we could even consider uploading it as a GH comment attachment

You mean as gif?

@AronNovak

This comment has been minimized.

Show comment
Hide comment
@AronNovak

AronNovak Mar 28, 2017

Member

Hm, It would be a bit strange to re-encode the video, for we could ZIP the MP4 however.

Member

AronNovak commented Mar 28, 2017

Hm, It would be a bit strange to re-encode the video, for we could ZIP the MP4 however.

@amitaibu

This comment has been minimized.

Show comment
Hide comment
@amitaibu

amitaibu Mar 28, 2017

Member

👍

Member

amitaibu commented Mar 28, 2017

👍

@AronNovak

This comment has been minimized.

Show comment
Hide comment
@AronNovak

AronNovak Mar 29, 2017

Member

Google Drive upload is automated:
upload

I crafted the basic Travis part using encrypt-file, need to iron out in the coming days. Also it should upload videos only on failure, also only the failed specs, it's still do be done.

Member

AronNovak commented Mar 29, 2017

Google Drive upload is automated:
upload

I crafted the basic Travis part using encrypt-file, need to iron out in the coming days. Also it should upload videos only on failure, also only the failed specs, it's still do be done.

@amitaibu

This comment has been minimized.

Show comment
Hide comment
@amitaibu

amitaibu Mar 29, 2017

Member

Google Drive upload is automated

That great. In that case We shouldn't zip the video, as what's nice with GDrive is that it gives you automatically a youTube like video player.

Member

amitaibu commented Mar 29, 2017

Google Drive upload is automated

That great. In that case We shouldn't zip the video, as what's nice with GDrive is that it gives you automatically a youTube like video player.

@AronNovak

This comment has been minimized.

Show comment
Hide comment
@AronNovak

AronNovak Mar 30, 2017

Member

Yep, for sure, for Google Drive, no zipping. For your information, I discarded the GitHub comment file attachment way, as I could not find any evidence that this operation is supported by their API.

Member

AronNovak commented Mar 30, 2017

Yep, for sure, for Google Drive, no zipping. For your information, I discarded the GitHub comment file attachment way, as I could not find any evidence that this operation is supported by their API.

@amitaibu

This comment has been minimized.

Show comment
Hide comment
@AronNovak

This comment has been minimized.

Show comment
Hide comment
@AronNovak

AronNovak Mar 30, 2017

Member

Indeed, and the only parameter is the body, which cannot hold binary, or do i miss something?
Of course it will be perfect to post the link to the Google Drive upload.

Member

AronNovak commented Mar 30, 2017

Indeed, and the only parameter is the body, which cannot hold binary, or do i miss something?
Of course it will be perfect to post the link to the Google Drive upload.

@amitaibu

This comment has been minimized.

Show comment
Hide comment
@amitaibu

amitaibu Mar 30, 2017

Member

Sorry - I mean, yeah - upload video to GDrive -- and add the link they give us as a comment

Member

amitaibu commented Mar 30, 2017

Sorry - I mean, yeah - upload video to GDrive -- and add the link they give us as a comment

@AronNovak

This comment has been minimized.

Show comment
Hide comment
@AronNovak

AronNovak Mar 30, 2017

Member

Via Travis, now the video upload works well:
upload

The next steps are:

  • GitHub comment
  • make sure the output status is indeed proper in case of a failure
  • no shell warnings are outputted
Member

AronNovak commented Mar 30, 2017

Via Travis, now the video upload works well:
upload

The next steps are:

  • GitHub comment
  • make sure the output status is indeed proper in case of a failure
  • no shell warnings are outputted
@AronNovak

This comment has been minimized.

Show comment
Hide comment
@AronNovak

AronNovak Mar 30, 2017

Member

https://drive.google.com/file/d/0B4uFEYHNgo60YWl0VC1mSnAwSWM/view?usp=drivesdk
And the first video that was uploaded by Travis, without any human interaction.

Member

AronNovak commented Mar 30, 2017

https://drive.google.com/file/d/0B4uFEYHNgo60YWl0VC1mSnAwSWM/view?usp=drivesdk
And the first video that was uploaded by Travis, without any human interaction.

@AronNovak

This comment has been minimized.

Show comment
Hide comment
@AronNovak

AronNovak Mar 31, 2017

Member

https://github.com/gizra-robot - he will comment for us on GH

Member

AronNovak commented Mar 31, 2017

https://github.com/gizra-robot - he will comment for us on GH

@AronNovak

This comment has been minimized.

Show comment
Hide comment
@AronNovak

AronNovak Mar 31, 2017

Member

About posting a GH comment:
Travis provides us the branch name only, it seems: travis-ci/travis-ci#6652 (comment)

GitHub provides an API to:

So the way to go would be to get issue/PR number from https://api.github.com/repos/Gizra/drupal-elm-starter/pulls?head=83-video (or similarly) , then post the comment.

Member

AronNovak commented Mar 31, 2017

About posting a GH comment:
Travis provides us the branch name only, it seems: travis-ci/travis-ci#6652 (comment)

GitHub provides an API to:

So the way to go would be to get issue/PR number from https://api.github.com/repos/Gizra/drupal-elm-starter/pulls?head=83-video (or similarly) , then post the comment.

@amitaibu amitaibu changed the title from Video recording for WDIO [6h] to Video recording for WDIO [8h] Apr 7, 2017

@amitaibu amitaibu closed this May 4, 2017

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