本文整理汇总了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)
);
}
示例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();
}
示例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();
}
示例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();
}
示例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;
}
示例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();
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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();
}
示例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();
}
示例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;
}
示例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();
}
示例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();
}