本文整理汇总了Java中net.serenitybdd.screenplay.Task类的典型用法代码示例。如果您正苦于以下问题:Java Task类的具体用法?Java Task怎么用?Java Task使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Task类属于net.serenitybdd.screenplay包,在下文中一共展示了Task类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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()
);
}
开发者ID:serenity-bdd,项目名称:journey-planner,代码行数:12,代码来源:Confirm.java
示例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);
}
开发者ID:serenity-bdd,项目名称:journey-planner,代码行数:14,代码来源:PlanATrip.java
示例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);
}
开发者ID:serenity-bdd,项目名称:journey-planner,代码行数:11,代码来源:ChooseToStation.java
示例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)
);
}
开发者ID:serenity-bdd,项目名称:journey-planner,代码行数:7,代码来源:OpenApplication.java
示例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);
}
开发者ID:jan-molak,项目名称:jenkins-build-monitor-plugin,代码行数:4,代码来源:BrokenBuildClaiming.java
示例7: indicatedBy
import net.serenitybdd.screenplay.Task; //导入依赖的package包/类
public DefineAFailureCause indicatedBy(Task... configurationTasks) {
configureFailureCauseIndicators.addAll(configurationTasks);
return this;
}
开发者ID:jan-molak,项目名称:jenkins-build-monitor-plugin,代码行数:6,代码来源:DefineAFailureCause.java
示例8: to
import net.serenitybdd.screenplay.Task; //导入依赖的package包/类
public static UseFailureCauseManagement to(Task... defineFailureCauses) {
return instrumented(UseFailureCauseManagement.class, asList(defineFailureCauses));
}
开发者ID:jan-molak,项目名称:jenkins-build-monitor-plugin,代码行数:4,代码来源:UseFailureCauseManagement.java
示例9: UseFailureCauseManagement
import net.serenitybdd.screenplay.Task; //导入依赖的package包/类
public UseFailureCauseManagement(List<Task> defineFailureCauses) {
this.defineFailureCauses.addAll(defineFailureCauses);
}
开发者ID:jan-molak,项目名称:jenkins-build-monitor-plugin,代码行数:4,代码来源:UseFailureCauseManagement.java
示例10: toAnEmptyBuildMonitor
import net.serenitybdd.screenplay.Task; //导入依赖的package包/类
public static Task toAnEmptyBuildMonitor() {
return instrumented(AddProjects.class);
}
开发者ID:jan-molak,项目名称:jenkins-build-monitor-plugin,代码行数:4,代码来源:AddProjects.java
示例11: to
import net.serenitybdd.screenplay.Task; //导入依赖的package包/类
public static ModifyControlPanelOptions to(Task... configurationTasks) {
return instrumented(ModifyControlPanelOptions.class, asList(configurationTasks));
}
开发者ID:jan-molak,项目名称:jenkins-build-monitor-plugin,代码行数:4,代码来源:ModifyControlPanelOptions.java
示例12: onTheDashboard
import net.serenitybdd.screenplay.Task; //导入依赖的package包/类
public static Task onTheDashboard() {
return instrumented(ShowBadges.class);
}
开发者ID:jan-molak,项目名称:jenkins-build-monitor-plugin,代码行数:4,代码来源:ShowBadges.java
示例13: andConfigureItTo
import net.serenitybdd.screenplay.Task; //导入依赖的package包/类
public Task andConfigureItTo(Task... configurationTasks) {
this.configureBuildMonitor.addAll(configurationTasks);
return this;
}
开发者ID:jan-molak,项目名称:jenkins-build-monitor-plugin,代码行数:6,代码来源:CreateABuildMonitorView.java
示例14: andExitTheConfigurationScreen
import net.serenitybdd.screenplay.Task; //导入依赖的package包/类
public static Task andExitTheConfigurationScreen() {
return instrumented(SaveTheChangesToBuildMonitor.class);
}
开发者ID:jan-molak,项目名称:jenkins-build-monitor-plugin,代码行数:4,代码来源:SaveTheChangesToBuildMonitor.java
示例15: usingARegularExpression
import net.serenitybdd.screenplay.Task; //导入依赖的package包/类
public static Task usingARegularExpression() {
return instrumented(DisplayAllProjects.class);
}
开发者ID:jan-molak,项目名称:jenkins-build-monitor-plugin,代码行数:4,代码来源:DisplayAllProjects.java
示例16: fromSubfolders
import net.serenitybdd.screenplay.Task; //导入依赖的package包/类
public static Task fromSubfolders() {
return instrumented(DisplayNestedProjects.class);
}
开发者ID:jan-molak,项目名称:jenkins-build-monitor-plugin,代码行数:4,代码来源:DisplayNestedProjects.java
示例17: showingAllTheProjects
import net.serenitybdd.screenplay.Task; //导入依赖的package包/类
public static Task showingAllTheProjects() {
return instrumented(HaveABuildMonitorViewCreated.class);
}
开发者ID:jan-molak,项目名称:jenkins-build-monitor-plugin,代码行数:4,代码来源:HaveABuildMonitorViewCreated.java
示例18: to
import net.serenitybdd.screenplay.Task; //导入依赖的package包/类
public static ConfigureEmptyBuildMonitorView to(Task... configurationTasks) {
return instrumented(ConfigureEmptyBuildMonitorView.class, asList(configurationTasks));
}
开发者ID:jan-molak,项目名称:jenkins-build-monitor-plugin,代码行数:4,代码来源:ConfigureEmptyBuildMonitorView.java
示例19: andInsideIt
import net.serenitybdd.screenplay.Task; //导入依赖的package包/类
public Task andInsideIt(Task... createProjects) {
configurationTasks.addAll(createProjects);
return this;
}
开发者ID:jan-molak,项目名称:jenkins-build-monitor-plugin,代码行数:6,代码来源:HaveAFolderCreated.java
示例20: called
import net.serenitybdd.screenplay.Task; //导入依赖的package包/类
public static Task called(String name) {
return instrumented(HaveANestedProjectCreated.class, name);
}
开发者ID:jan-molak,项目名称:jenkins-build-monitor-plugin,代码行数:4,代码来源:HaveANestedProjectCreated.java
注:本文中的net.serenitybdd.screenplay.Task类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论