Package org.arquillian.extension.recorder.video

Examples of org.arquillian.extension.recorder.video.VideoMetaData


    @Inject
    private Event<StopRecordSuiteVideo> stopRecordSuiteVideo;

    public void beforeSuite(@Observes BeforeSuite event) {
        if (strategy.get().isTakingAction(event)) {
            VideoMetaData suiteMetaData = getMetaData();
            VideoType videoType = getVideoType();

            beforeVideoStart.fire(new BeforeVideoStart(videoType, suiteMetaData));

            startRecordSuiteVideo.fire(new StartRecordSuiteVideo(videoType, suiteMetaData));
View Full Code Here


        }
    }

    public void beforeClass(@Observes BeforeClass event) {
        if (strategy.get().isTakingAction(event)) {
            VideoMetaData classMetaData = getClassMetaData(event);
            VideoType videoType = getVideoType();

            beforeVideoStart.fire(new BeforeVideoStart(videoType, classMetaData));

            startRecordVideo.fire(new StartRecordVideo(videoType, classMetaData));
View Full Code Here

        }
    }

    public void beforeTest(@Observes Before event) {
        if (strategy.get().isTakingAction(event)) {
            VideoMetaData testMetaData = getMetaData(event);
            VideoType videoType = getVideoType();

            beforeVideoStart.fire(new BeforeVideoStart(videoType, testMetaData));

            startRecordVideo.fire(new StartRecordVideo(videoType, testMetaData));
View Full Code Here

        }
    }

    public void afterTest(@Observes After event) {
        if (strategy.get().isTakingAction(event, testResult.get())) {
            VideoMetaData metaData = getMetaData(event);
            metaData.setTestResult(testResult.get());
            VideoType videoType = getVideoType();

            beforeVideoStop.fire(new BeforeVideoStop(videoType, metaData));

            stopRecordVideo.fire(new StopRecordVideo(videoType, metaData));
View Full Code Here

        }
    }

    public void afterClass(@Observes AfterClass event) {
        if (strategy.get().isTakingAction(event)) {
            VideoMetaData metaData = getClassMetaData(event);
            VideoType videoType = getVideoType();

            beforeVideoStop.fire(new BeforeVideoStop(videoType, metaData));

            stopRecordVideo.fire(new StopRecordVideo(videoType, metaData));
View Full Code Here

        }
    }

    public void afterSuite(@Observes AfterSuite event) {
        if (strategy.get().isTakingAction(event)) {
            VideoMetaData metaData = getMetaData();
            VideoType videoType = getVideoType();

            beforeVideoStop.fire(new BeforeVideoStop(videoType, metaData));

            stopRecordSuiteVideo.fire(new StopRecordSuiteVideo(videoType, metaData));
View Full Code Here

            afterVideoStop.fire(new AfterVideoStop(videoType, metaData));
        }
    }

    private VideoMetaData getMetaData() {
        VideoMetaData metaData = new VideoMetaData();
        metaData.setTimeStamp(System.currentTimeMillis());
        return metaData;
    }
View Full Code Here

        metaData.setTimeStamp(System.currentTimeMillis());
        return metaData;
    }

    private VideoMetaData getMetaData(TestLifecycleEvent event) {
        VideoMetaData metaData = getMetaData();
        metaData.setTestClass(event.getTestClass());
        metaData.setTestMethod(event.getTestMethod());
        return metaData;
    }
View Full Code Here

        metaData.setTestMethod(event.getTestMethod());
        return metaData;
    }

    private VideoMetaData getClassMetaData(ClassLifecycleEvent event) {
        VideoMetaData metaData = getMetaData();
        metaData.setTestClass(event.getTestClass());
        return metaData;
    }
View Full Code Here

        recorder.get().startRecording(videoTarget, event.getVideoType());
    }

    public void onStartRecording(@Observes StartRecordVideo event) {

        VideoMetaData metaData = event.getVideoMetaData();
        metaData.setResourceType(event.getVideoType());
        String fileName = nb
            .withMetaData(metaData)
            .build();

        File videoTarget = new File(event.getVideoMetaData().getTestClassName(), fileName);
View Full Code Here

TOP

Related Classes of org.arquillian.extension.recorder.video.VideoMetaData

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.