当前位置: 首页>>代码示例>>Java>>正文


Java Step类代码示例

本文整理汇总了Java中net.thucydides.core.annotations.Step的典型用法代码示例。如果您正苦于以下问题:Java Step类的具体用法?Java Step怎么用?Java Step使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


Step类属于net.thucydides.core.annotations包,在下文中一共展示了Step类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: performAs

import net.thucydides.core.annotations.Step; //导入依赖的package包/类
@Step("{0} selects origin station of #station")
@Override
public <T extends Actor> void performAs(T actor) {
    actor.attemptsTo(
            Enter.theValue(station).into(TripPlanner.FROM),
            WaitUntilTheSuggestedStations.areVisible(),
            PickFirstSuggestion.from(TripPlanner.FROM)
    );
}
 
开发者ID:serenity-bdd,项目名称:journey-planner,代码行数:10,代码来源:ChooseFromStation.java

示例2: performAs

import net.thucydides.core.annotations.Step; //导入依赖的package包/类
@Override
@Step("{0} selects the first suggestion")
public <T extends Actor> void performAs(T actor) {

    actor.attemptsTo(
            Hit.the(Keys.ARROW_DOWN).into(inputField),
            Hit.the(Keys.ENTER).into(inputField)
    );
    BrowseTheWeb.as(actor).waitFor(500).milliseconds();
}
 
开发者ID:serenity-bdd,项目名称:journey-planner,代码行数:11,代码来源:PickFirstSuggestion.java

示例3: addAdvancedServer

import net.thucydides.core.annotations.Step; //导入依赖的package包/类
@Step
public FlavorRulesAddPageSteps addAdvancedServer(String serverPath) {
    addPage.addServer();
    addPage.selectServerEditMode("advanced");
    addPage.setAdvancedServerPath(serverPath);

    return getThis();
}
 
开发者ID:Comcast,项目名称:redirector,代码行数:9,代码来源:FlavorRulesAddPageSteps.java

示例4: getNameFromStepAnnotationIn

import net.thucydides.core.annotations.Step; //导入依赖的package包/类
private Optional<String> getNameFromStepAnnotationIn(final Method
                                                             testMethod) {
    Step step = testMethod.getAnnotation(Step.class);

    if ((step != null) && (!StringUtils.isEmpty(step.value()))) {
        return Optional.of(step.value());
    }
    return Optional.absent();
}
 
开发者ID:tapack,项目名称:satisfy,代码行数:10,代码来源:SatisfyAnnotatedStepDescription.java

示例5: isFluent

import net.thucydides.core.annotations.Step; //导入依赖的package包/类
public boolean isFluent() {
    if (description.getTestMethod() != null) {
        Step step = description.getTestMethod().getAnnotation(Step.class);
        return ((step != null) && (step.fluent()));
    }
    return false;
}
 
开发者ID:tapack,项目名称:satisfy,代码行数:8,代码来源:SatisfyAnnotatedStepDescription.java

示例6: setUrlParams

import net.thucydides.core.annotations.Step; //导入依赖的package包/类
@Step
public UrlRulesAddPageUserSteps setUrlParams(String protocol, String port, String urn, String ipVersion) {
    page.selectProtocol(protocol);
    page.setPort(port);
    page.setUrn(urn);
    page.selectIpVersion(ipVersion);

    return getThis();
}
 
开发者ID:Comcast,项目名称:redirector,代码行数:10,代码来源:UrlRulesAddPageUserSteps.java

示例7: editTestSuiteByName

import net.thucydides.core.annotations.Step; //导入依赖的package包/类
@Step
public TestSuiteShowPageUserSteps editTestSuiteByName(String testCaseName) {
    showPage.editTestCase(testCaseName);

    addPage.setParameterName("param_1_edited");
    addPage.setParameterValue("value_1_edited");
    addPage.clickParameterValueAddButton();
    addPage.addParameterButtonClick();
    addPage.saveButtonClick();

    verifySuccessMessageShown(testCaseName);

    return this;
}
 
开发者ID:Comcast,项目名称:redirector,代码行数:15,代码来源:TestSuiteShowPageUserSteps.java

示例8: editTestSuiteByNameRemovingTwoUrlParams

import net.thucydides.core.annotations.Step; //导入依赖的package包/类
@Step
public TestSuiteShowPageUserSteps editTestSuiteByNameRemovingTwoUrlParams(String testCaseName) {
    showPage.editTestCase(testCaseName);

    addPage.removeUrlRuleByNumberInList(0);
    addPage.removeUrlRuleByNumberInList(0);
    addPage.saveButtonClick();

    verifySuccessMessageShown(testCaseName);

    return this;
}
 
开发者ID:Comcast,项目名称:redirector,代码行数:13,代码来源:TestSuiteShowPageUserSteps.java

示例9: deleteTestSuiteByName

import net.thucydides.core.annotations.Step; //导入依赖的package包/类
@Step
public TestSuiteShowPageUserSteps deleteTestSuiteByName(String testCaseName) {
    showPage.clickActionButton(testCaseName);
    showPage.clickDeleteButton(testCaseName);
    showPage.confirmDeletion();

    return this;
}
 
开发者ID:Comcast,项目名称:redirector,代码行数:9,代码来源:TestSuiteShowPageUserSteps.java

示例10: addParameter

import net.thucydides.core.annotations.Step; //导入依赖的package包/类
@Step
public TestSuiteAddPageUserSteps addParameter(String name, String value) {
    page.setParameterName(name);
    page.setParameterValue(value);
    page.clickParameterValueAddButton();
    return this;
}
 
开发者ID:Comcast,项目名称:redirector,代码行数:8,代码来源:TestSuiteAddPageUserSteps.java

示例11: verifyPendingAddedRuleAdvancedServerIsShown

import net.thucydides.core.annotations.Step; //导入依赖的package包/类
@Step
public FlavorRulesShowPageSteps verifyPendingAddedRuleAdvancedServerIsShown(String ruleName, String serverPath) {
    rulesShowPage.waitFor(1).second();
    Assert.assertTrue(rulesShowPageObjects.isRulePresent(ruleName));
    Assert.assertTrue(rulesShowPage.isRuleReturningServerPath(ruleName, serverPath));
    Assert.assertTrue("Rule Preview should have 'PENDING ADD' look and feel", rulesShowPageObjects.isRulePendingForAddition(ruleName));
    return getThis();
}
 
开发者ID:Comcast,项目名称:redirector,代码行数:9,代码来源:FlavorRulesShowPageSteps.java

示例12: addSimpleServer

import net.thucydides.core.annotations.Step; //导入依赖的package包/类
@Step
public FlavorRulesAddPageSteps addSimpleServer(String flavor) {
    addPage.addServer();
    addPage.selectServerEditMode("simple");
    addPage.selectSimpleServerPath(flavor);

    return getThis();
}
 
开发者ID:Comcast,项目名称:redirector,代码行数:9,代码来源:FlavorRulesAddPageSteps.java

示例13: cancelChange

import net.thucydides.core.annotations.Step; //导入依赖的package包/类
@Step
public ChangesPageSteps cancelChange(final PendingChangeType changeType, final String name) {
    waitFor(500).milliseconds();
    page.cancelChange(changeType, name);

    return this;
}
 
开发者ID:Comcast,项目名称:redirector,代码行数:8,代码来源:ChangesPageSteps.java

示例14: verifyPermanentRuleExists

import net.thucydides.core.annotations.Step; //导入依赖的package包/类
@Step
public FlavorRulesShowPageSteps verifyPermanentRuleExists(String ruleName, String flavor, String queryPairs) {
    Assert.assertTrue(rulesShowPage.isRuleReturningFlavor(ruleName, flavor));
    Assert.assertTrue(rulesShowPage.isRuleReturningQueryPairs(ruleName, queryPairs));

    return getThis();
}
 
开发者ID:Comcast,项目名称:redirector,代码行数:8,代码来源:FlavorRulesShowPageSteps.java

示例15: verifyPendingModifiedRuleIsShown

import net.thucydides.core.annotations.Step; //导入依赖的package包/类
@Step
public UrlRulesShowPageUserSteps verifyPendingModifiedRuleIsShown(String ruleName) {
    Assert.assertTrue(rulesShowPageObjects.isRulePresent(ruleName));
    Assert.assertTrue("Rule Preview should have 'PENDING UPDATE' look and feel", rulesShowPageObjects.isRulePendingForUpdate(ruleName));

    return getThis();
}
 
开发者ID:Comcast,项目名称:redirector,代码行数:8,代码来源:UrlRulesShowPageUserSteps.java


注:本文中的net.thucydides.core.annotations.Step类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。