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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: VNC recording with BrowserWebdriverContainer in Spock-Extension #726

Closed
wants to merge 1 commit into from

Conversation

kiview
Copy link
Member

@kiview kiview commented May 31, 2018

Roughly poc, still WIP.
Done as part of the Hackergarten at Gr8ConfEU 2018.

Thanks to Tamer Shahin, Marcin Erdmann and Dawid Kublik for working on this 馃檪 !

Fixes #631.

Copy link

@tamershahin tamershahin left a comment

Choose a reason for hiding this comment

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

some question

@@ -50,6 +55,15 @@ class TestcontainersMethodInterceptor extends AbstractMethodInterceptor {

@Override
void interceptCleanupMethod(IMethodInvocation invocation) throws Throwable {
findAllBrowserWebDriverContainers(invocation).each {

Choose a reason for hiding this comment

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

I was thinking about this and it seems that it will result in exporting the video after each failed test..
does it mean we have to restart the container after each test(failed or not)?
or it will just stop the execution?

maybe we want to do this at cleanupSpec time, not sure

Copy link
Member Author

Choose a reason for hiding this comment

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

So we actually have to add it to both methods but have a conditional findAllBrowserWebDriverContainers() method, so we get the non-shared containers in interceptCleanupMethod and only the @Shared ones in interceptCleanupSpecMethod.

@bsideup bsideup changed the title VNC recording with BrowserWebdriverContainer in Spock-Extension WIP: VNC recording with BrowserWebdriverContainer in Spock-Extension Jul 10, 2018
@stale
Copy link

stale bot commented Oct 28, 2018

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you believe this is a mistake, please reply to this comment to keep it open. If there isn't one already, a PR to fix or at least reproduce the problem in a test case will always help us get back on track to tackle this.

@stale stale bot added the stale label Oct 28, 2018
@igor-dmitriev
Copy link

igor-dmitriev commented Oct 29, 2018

@here guys, any updates on this? It's a very cool feature

@stale stale bot removed the stale label Oct 29, 2018
@kiview
Copy link
Member Author

kiview commented Oct 29, 2018

Hey @igor-dmitriev, sorry, I should resume work I suppose.

@igor-dmitriev
Copy link

@kiview thank you, actually, it just generates screenshots, but video is not available

@kiview
Copy link
Member Author

kiview commented Oct 29, 2018

This PR just takes screenshots?

@igor-dmitriev
Copy link

@kiview not this one, I meant current version - 1.9.1, it generates screenshots

@kiview
Copy link
Member Author

kiview commented Oct 30, 2018

Are you really talking about the Spock extension? Because it doesn't have this feature in master.

@igor-dmitriev
Copy link

I've just realized that it's not a TestContainers feature, sorry for confusion, I am a newbie with Selenium

@stale
Copy link

stale bot commented Jan 28, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you believe this is a mistake, please reply to this comment to keep it open. If there isn't one already, a PR to fix or at least reproduce the problem in a test case will always help us get back on track to tackle this.

@stale stale bot added the stale label Jan 28, 2019
@kiview
Copy link
Member Author

kiview commented Jan 28, 2019

Leave it open.

@stale stale bot removed the stale label Jan 28, 2019
@srose
Copy link

srose commented Mar 28, 2019

Hi @kiview,

really like this feature (saw your talk at Javaland 2019 and want to use geb, spock and videos from testcontainers).

Would be great to see it merged.

Thank you & Regards

@kiview
Copy link
Member Author

kiview commented Mar 28, 2019

@srose
Thanks, I agree, I would also like to finish it 馃槃
Since I'm currently at Greach Conference and I was talking with some GEB devs who are also interested in this feature there exists a slight chance, that we will implement it this weekend 馃檪

@stale
Copy link

stale bot commented Jun 26, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you believe this is a mistake, please reply to this comment to keep it open. If there isn't one already, a PR to fix or at least reproduce the problem in a test case will always help us get back on track to tackle this.

@stale stale bot added the stale label Jun 26, 2019
@stale
Copy link

stale bot commented Jul 10, 2019

This issue has been automatically closed due to inactivity. We apologise if this is still an active problem for you, and would ask you to re-open the issue if this is the case.

@rnorth
Copy link
Member

rnorth commented Apr 13, 2020

This was released in https://github.com/testcontainers/testcontainers-java/releases/tag/1.14.0 馃帀

Thanks for the contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Spock extension does not create video recordings of failed BrowserWebDriverContainer tests
5 participants