Package org.arquillian.extension.recorder.screenshooter.event

Examples of org.arquillian.extension.recorder.screenshooter.event.ScreenshooterExtensionConfigured


        if (logger.isLoggable(Level.INFO)) {
            System.out.println("Configuration of Arquillian Browser Screenshooter:");
            System.out.println(this.configuration.get().toString());
        }

        extensionConfiguredEvent.fire(new ScreenshooterExtensionConfigured());
    }
View Full Code Here


    }

    @Test
    public void recorderStrategyRegisterTest() {
        fire(new ArquillianDescriptorImpl("arquillian.xml"));
        fire(new ScreenshooterExtensionConfigured());

        ScreenshooterConfiguration configuration = getManager().getContext(ApplicationContext.class)
            .getObjectStore()
            .get(ScreenshooterConfiguration.class);
View Full Code Here

    @Test
    public void beforeTestEventTakeBeforeTestFalse() throws Exception {

        Mockito.when(configuration.getTakeBeforeTest()).thenReturn(false);

        fire(new ScreenshooterExtensionConfigured());

        initRecorderStrategyRegister();

        fire(new Before(FakeTestClass.class, FakeTestClass.class.getMethod("fakeTest")));
View Full Code Here

    @Test
    public void beforeTestEventTakeBeforeTestTrue() throws Exception {

        Mockito.when(configuration.getTakeBeforeTest()).thenReturn(true);

        fire(new ScreenshooterExtensionConfigured());

        initRecorderStrategyRegister();

        fire(new Before(FakeTestClass.class, FakeTestClass.class.getMethod("fakeTest")));
View Full Code Here

    @Test
    public void afterTestEventTakeAfterTestTrue() throws Exception {

        Mockito.when(configuration.getTakeAfterTest()).thenReturn(true);

        fire(new ScreenshooterExtensionConfigured());

        initRecorderStrategyRegister();

        fire(new Before(FakeTestClass.class, FakeTestClass.class.getMethod("fakeTest")));
View Full Code Here

    public void afterTestEventTestStatusFailedTakeAfterTestTrueTakeWhenFailedFalse() throws Exception {

        Mockito.when(configuration.getTakeAfterTest()).thenReturn(true);
        Mockito.when(configuration.getTakeWhenTestFailed()).thenReturn(false);

        fire(new ScreenshooterExtensionConfigured());

        initRecorderStrategyRegister();

        fire(new Before(FakeTestClass.class, FakeTestClass.class.getMethod("fakeTest")));
View Full Code Here

    public void afterTestEventTestStatusFailedTakeAfterTestTrueTakeWhenFailedTrue() throws Exception {

        Mockito.when(configuration.getTakeAfterTest()).thenReturn(true);
        Mockito.when(configuration.getTakeWhenTestFailed()).thenReturn(true);

        fire(new ScreenshooterExtensionConfigured());

        initRecorderStrategyRegister();

        fire(new Before(FakeTestClass.class, FakeTestClass.class.getMethod("fakeTest")));
View Full Code Here

    @Test
    public void afterTestEventTestStatusPassed() throws Exception {

        Mockito.when(configuration.getTakeAfterTest()).thenReturn(true);

        fire(new ScreenshooterExtensionConfigured());

        initRecorderStrategyRegister();

        fire(new Before(FakeTestClass.class, FakeTestClass.class.getMethod("fakeTest")));
View Full Code Here

    @Test
    public void takeBeforeTestTrueScreenshotMethodTest() throws Exception {

        Mockito.when(configuration.getTakeBeforeTest()).thenReturn(false); // false in config

        fire(new ScreenshooterExtensionConfigured());

        initRecorderStrategyRegister();

        // true in annotation
        fire(new Before(FakeAnnotatedClass.class, FakeAnnotatedClass.class.getMethod("takeBeforeTestTrueMethod")));
View Full Code Here

    @Test
    public void takeBeforeTestFalseScreenshotMethodTest() throws Exception {

        Mockito.when(configuration.getTakeBeforeTest()).thenReturn(true); // true in config

        fire(new ScreenshooterExtensionConfigured());

        initRecorderStrategyRegister();

        // false in annotation
        fire(new Before(FakeAnnotatedClass.class, FakeAnnotatedClass.class.getMethod("takeBeforeTestFalseMethod")));
View Full Code Here

TOP

Related Classes of org.arquillian.extension.recorder.screenshooter.event.ScreenshooterExtensionConfigured

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.