本文整理汇总了Java中net.serenitybdd.screenplay.Task类的典型用法代码示例。如果您正苦于以下问题:Java Task类的具体用法?Java Task怎么用?Java Task使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Task类属于net.serenitybdd.screenplay包,在下文中一共展示了Task类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: journeyDetails
import net.serenitybdd.screenplay.Task; //导入依赖的package包/类
/**
* Usage: Confirm.journeyDetails()
*/
public static Task journeyDetails() {
return Task.where("{0} confirms the journey details",
Click.on(TripPlanner.GO),
WaitUntil.the(TripResults.RESULTS_LIST, isVisible())
.forNoMoreThan(15).seconds()
);
}
示例2: next
import net.serenitybdd.screenplay.Task; //导入依赖的package包/类
@Override
public Task next(DayOfWeek departureDay) {
return Task.where("{0} plans a journey between #departure and #destination, leaving around #departureTime next #departureDay",
OpenApplication.onTheJourneyPlannerPage(),
ChooseFromStation.of(departure),
ChooseToStation.of(destination),
ChooseTimeOfDeparture.of(departureTime).next(departureDay),
Confirm.journeyDetails())
.with("departure").of(departure)
.with("destination").of(destination)
.with("departureTime").of(departureTime)
.with("departureDay").of(departureDay);
}
示例3: of
import net.serenitybdd.screenplay.Task; //导入依赖的package包/类
/**
* Usage: ChooseToStation.of("Town Hall")
*/
public static Task of(String station) {
return Task.where("{0} selects destination station of #station",
Enter.theValue(station).into(TripPlanner.DESTINATION),
WaitUntilTheSuggestedStations.areVisible(),
PickFirstSuggestion.from(TripPlanner.DESTINATION))
.with("station").of(station);
}
示例4: onTheJourneyPlannerPage
import net.serenitybdd.screenplay.Task; //导入依赖的package包/类
public static Task onTheJourneyPlannerPage() {
return Task.where(
"{0} opens the trip planner application",
Open.browserOn().the(TripPlannerPage.class)
);
}
示例5: called
import net.serenitybdd.screenplay.Task; //导入依赖的package包/类
public static Task called(String name) {
return instrumented(HaveAFailingClaimableProjectCreated.class, name);
}
开发者ID:jan-molak,项目名称:jenkins-build-monitor-plugin,代码行数:4,代码来源:HaveAFailingClaimableProjectCreated.java
示例6: allow
import net.serenitybdd.screenplay.Task; //导入依赖的package包/类
public static Task allow() {
return instrumented(BrokenBuildClaiming.class);
}
示例7: indicatedBy
import net.serenitybdd.screenplay.Task; //导入依赖的package包/类
public DefineAFailureCause indicatedBy(Task... configurationTasks) {
configureFailureCauseIndicators.addAll(configurationTasks);
return this;
}
示例8: to
import net.serenitybdd.screenplay.Task; //导入依赖的package包/类
public static UseFailureCauseManagement to(Task... defineFailureCauses) {
return instrumented(UseFailureCauseManagement.class, asList(defineFailureCauses));
}
示例9: UseFailureCauseManagement
import net.serenitybdd.screenplay.Task; //导入依赖的package包/类
public UseFailureCauseManagement(List<Task> defineFailureCauses) {
this.defineFailureCauses.addAll(defineFailureCauses);
}
示例10: toAnEmptyBuildMonitor
import net.serenitybdd.screenplay.Task; //导入依赖的package包/类
public static Task toAnEmptyBuildMonitor() {
return instrumented(AddProjects.class);
}
示例11: to
import net.serenitybdd.screenplay.Task; //导入依赖的package包/类
public static ModifyControlPanelOptions to(Task... configurationTasks) {
return instrumented(ModifyControlPanelOptions.class, asList(configurationTasks));
}
示例12: onTheDashboard
import net.serenitybdd.screenplay.Task; //导入依赖的package包/类
public static Task onTheDashboard() {
return instrumented(ShowBadges.class);
}
示例13: andConfigureItTo
import net.serenitybdd.screenplay.Task; //导入依赖的package包/类
public Task andConfigureItTo(Task... configurationTasks) {
this.configureBuildMonitor.addAll(configurationTasks);
return this;
}
示例14: andExitTheConfigurationScreen
import net.serenitybdd.screenplay.Task; //导入依赖的package包/类
public static Task andExitTheConfigurationScreen() {
return instrumented(SaveTheChangesToBuildMonitor.class);
}
示例15: usingARegularExpression
import net.serenitybdd.screenplay.Task; //导入依赖的package包/类
public static Task usingARegularExpression() {
return instrumented(DisplayAllProjects.class);
}