Package org.arquillian.extension.recorder

Examples of org.arquillian.extension.recorder.When


        if(previouslyRegistered.isEmpty()) {
            return result;
        }

        if (context.getMethod().getName().equals("get") && !alreadyDone) {
            When when = When.BEFORE;
            takeScreenshotEvent.getMetaData().setOptionalDescription("get");

            DefaultFileNameBuilder nameBuilder = DefaultFileNameBuilder.getInstance();
            String screenshotName = nameBuilder
                    .withMetaData(takeScreenshotEvent.getMetaData())
View Full Code Here


            return result;
        }
        Method interceptedMethod = context.getMethod();

        if (isInterceptedMethodAllowed(interceptedMethod)) {
            When when = When.ON_EVERY_ACTION;
            takeScreenshotEvent.getMetaData()
                    .setOptionalDescription(interceptedMethod.getName() + Integer.toString(counter++));

            DefaultFileNameBuilder nameBuilder = DefaultFileNameBuilder.getInstance();
            String screenshotName = nameBuilder.withMetaData(takeScreenshotEvent.getMetaData()).withStage(when)
View Full Code Here

        if (new TakingScreenshotDecider(recorderStrategyRegister.get()).decide(event, result)) {
            ScreenshotMetaData metaData = getMetaData(event);
            metaData.setTestResult(result);
            metaData.setResourceType(getScreenshotType());

            When when = result.getStatus() == TestResult.Status.FAILED ? When.FAILED : When.AFTER;

            DefaultFileNameBuilder nameBuilder = DefaultFileNameBuilder.getInstance();
            String screenshotName = nameBuilder
                .withMetaData(metaData)
                .withStage(when)
View Full Code Here

            metaData.setTestResult(result);
            metaData.setResourceType(getScreenshotType());

            beforeScreenshotTaken.fire(new BeforeScreenshotTaken(metaData));

            When when = result.getStatus() == TestResult.Status.FAILED ? When.FAILED : When.AFTER;

            DefaultFileNameBuilder nameBuilder = DefaultFileNameBuilder.getInstance();
            String screenshotName = nameBuilder
                .withMetaData(metaData)
                .withStage(when)
View Full Code Here

TOP

Related Classes of org.arquillian.extension.recorder.When

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.