Package com.consol.citrus.actions

Examples of com.consol.citrus.actions.InputAction


        builder.execute();
       
        Assert.assertEquals(builder.testCase().getActions().size(), 1);
        Assert.assertEquals(builder.testCase().getActions().get(0).getClass(), InputAction.class);
       
        InputAction action = (InputAction)builder.testCase().getActions().get(0);
        Assert.assertEquals(action.getName(), "input");
        Assert.assertEquals(action.getMessage(), "TestMessage");
        Assert.assertEquals(action.getValidAnswers(), "Yes/No/Maybe");
        Assert.assertEquals(action.getVariable(), "TestVariable");
    }
View Full Code Here


    @Test
    public void testInputActionParser() {
        assertActionCount(4);
        assertActionClassAndName(InputAction.class, "input");
       
        InputAction action = getNextTestActionFromTest();
        Assert.assertEquals(action.getMessage(), "Press return key to continue ...");
        Assert.assertNull(action.getValidAnswers());
        Assert.assertEquals(action.getVariable(), "userinput");
       
        action = getNextTestActionFromTest();
        Assert.assertEquals(action.getMessage(), "Do you want to continue?");
        Assert.assertNull(action.getValidAnswers());
        Assert.assertEquals(action.getVariable(), "userinput");
       
        action = getNextTestActionFromTest();
        Assert.assertEquals(action.getMessage(), "Do you want to continue?");
        Assert.assertEquals(action.getValidAnswers(), "yes/no");
        Assert.assertEquals(action.getVariable(), "userinput");
       
        action = getNextTestActionFromTest();
        Assert.assertEquals(action.getMessage(), "Do you want to continue?");
        Assert.assertEquals(action.getValidAnswers(), "y/n");
        Assert.assertEquals(action.getVariable(), "inputVar");
    }
View Full Code Here

TOP

Related Classes of com.consol.citrus.actions.InputAction

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.